/*
Created: 2025-05-19
Author: Claude (Anthropic)
Description: Mobile-specific styles for Ednoah Corporate Site - Top Page
*/

@media (max-width: 824px) {
    .main--sp {
        /* margin-top: 70px; */
    }

    /* Mobile menu visibility */
    .header__nav--pc {
        display: none;
    }

    .header__container--sp {
        margin-left: 0px;
    }

    .header__logo--sp {
        margin-left: 20px;
    }

    .header__logo-img--sp {
        max-width: 185px;
        height: auto;
    }

    .header__logo-link--sp {
        display: block;
        padding: 0px;
    }

    .header__container--sp {
        max-width: var(--container-max-width);
        /* margin: 0 auto; */
        margin-right: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 25px;
    }

    .header__menu-btn--sp {
        z-index: 3;
        display: block;
    }

    /* Hero mobile adjustments */
    .hero {
        /* min-height: 70vh; */
        /* padding: var(--spacing-xl) 0; */
    }

    .hero__content--sp {
        width: 100%;
        top: 47%;
    }

    .hero__title {
        font-size: 2.5rem;
        line-height: 1.1;
        text-shadow: 3px 2px 0px rgb(255, 255, 255);
        margin-bottom: 4px;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .hero__description {
        flex-direction: column;
        gap: 0;
    }    .hero__content_subtitle--sp {
        font-size: 18px;
        margin-top: 20px;
    }
    
    /* 通常表示（480px超）と小画面表示（480px以下）の切り替え */
 
    
    @media (max-width: 480px) {
        .normal-view {
            display: none; /* 小画面時は非表示 */
        }
        
        .small-mobile-view {
            display: block; /* 小画面時のみ表示 */
            font-size: 16px;
            line-height: 1.4;
            margin: 0;
            padding: 0;
        }
        
        .hero__content_subtitle--sp {
            font-size: 16px;
            margin-top: 15px;
        }
    }

    .hero__video--sp {
        height: 100vh;
    }

    .hero__container--sp {
        height: 100vh;
    }

    /* Features mobile layout */
    .features__content {
        text-align: center;
    }

    .features__particles {
        width: 300px;
        height: 300px;
    }

    /* Sections mobile spacing */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .footer__section {
        display: none;
    }

    .footer__map {
        display: none;
    }

    /* Diagonal adjustments for mobile */
    .service__diagonal,
    .company__diagonal,
    .news__diagonal {
        transform: none;
        position: static;
    }

    .service {
        background: black;
        color: var(--color-white);
    }

    .service--sp {
        padding-bottom: 15px;
    }

    .service--sp::before {
        border-right: 240px solid transparent;
        border-top: 240px solid #512294;
    }

    .service__title--sp {
        font-size: 42px;
    }

    .service__text--sp {
        width: 85%;
    }

    .service__description--sp {
        font-size: small;
    }

    .service__container--sp {
        padding-top: 35px;
    }

    .service__content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .service__text {
        order: 2;
    }

    .service__image img {
        order: 1;
        margin-left: 0px;
    }

    .service__image__size--sp {
        width: 85%;
    }

    .service__subtitle--sp {
        font-size: 21px;
    }

    .service__button {
        display: flex;
        padding: 2px 12px;
        font-size: medium;
    }    
    
    .br__sp {
        display: inline !important; /* SPビューでは改行を強制表示する */
    }

    .features__container--sp {
        padding: 0;
        margin: 0;
    }

    .features__title--sp {
        font-size: 24px;
    }

    .features__item-title--sp {
        font-size: 21px;
    }

    .features__item-text--sp {
        font-size: 14px;
    }

    .features__content {
        gap: 1rem;
    }

    .company {
        /* background: var(--color-light-green); */
    }

    .company-sp::before {
        border-right: 240px solid transparent;
        border-top: 240px solid #bfff00;
    }

    .company__image--sp img {
        width: 90%;
        height: 250px;
    }

    .company__description--sp {
        font-size: medium;
        /* width: 52%; */
    }

    .news-sp::before {
        border-right: 240px solid transparent;
        border-top: 240px solid #bfff00;
    }

    /* Service mobile specific */
    .service__title {
        color: var(--color-white);
        margin-bottom: 54px;
    }

    /* Company mobile layout */
    .company__content {
        grid-template-columns: 1fr;
    }

    .company__image {
        order: -1;
    }

    .company_title--sp {
        font-size: 42px;
        margin-bottom: 54px;
    }    
    .company__container--sp {
        padding-top: 35px;
        padding-bottom: 80px;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;

    }    .company__content {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
        overflow-x: hidden;
    }.company__text {
        order: 2;
        width: 100%;
        /* テキストを後ろに */
        text-align: left;
        margin: 0;
        max-width: 95%;
  
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }    .company__image {
        order: 1;
        /* 画像を前に */
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    .company__image_size {
        width: 90%;
        max-width: 500px;
        height: auto;
    }

    /* .company__subtitle--sp {
        font-size: 24px;
    } */    .company__feature {
        font-size: medium;
        list-style-position: inside;
        text-align: left;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.4;
    }
    
    .company__feature a {
        display: inline-block;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        white-space: normal;
    }
      .company__features {
        display: block;
        margin: 0;
        padding-left: 5px;
        width: 100%;
        max-width: 500px;
    }.company__subtitle--sp {
        margin: 0 0 1.5rem 0;
        font-size: 1.5rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
        text-align: left;
    }    .company__description--sp {
        text-align: left;
        max-width: 500px;
        word-wrap: break-word;
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
        margin: 0 0 1.5rem 0;
        padding: 0 5px;
        line-height: 1.7;
    }

    /* News mobile carousel */
    .news__item {
        margin-right: 0;
        flex: 0 0 20%;
    }

    .news__carousel-controls {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .news_title--sp {
        font-size: 42px;
        margin-bottom: 54px;
    }

    .news__container--sp {
        padding-top: 35px;
        padding-bottom: 80px;
        padding-left: 0px;
    }

    .news__item-title--sp {
        font-size: 24px;
    }

    .news__item-link--sp {
        font-size: medium;
    }

    .Box--sp {
        height: 535px;
        margin-right: 20px !important;
        /* width: 40px; */

        width: 80%;
        max-width: 80vw;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .Arrow--sp {
        height: 60px;
        width: 60px;
        font-size: 32px !important;
    }

    /* CTA mobile layout */
    .cta__content {
        gap: 16px;
        justify-content: center;
        flex-direction: row; /* 横並びに固定 */
        flex-wrap: wrap; /* 必要に応じて折り返し */
        align-items: stretch; /* 高さを揃える */
    }
    
    .cta__item {
        flex: 1 1 45%; /* フレックス比率を調整して2列に */
        min-width: 150px; /* 最小幅を設定 */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta__button--sp {
        font-size: 18px;
        padding: 0.8rem 1.5rem;
        font-weight: bold;
        width: 100%; /* ボタンの幅を100%に */
        max-width: 200px; /* 最大幅を制限 */
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 6px; /* 角を少し丸く */
        transition: all 0.3s ease; /* スムーズな変化 */
    }

    .cta__title--sp {
        margin-bottom: 12px;
        font-size: small;
        text-align: center; /* テキストを中央揃え */
    }

    /* Footer mobile layout */
    .footer__content {
        grid-template-columns: 1fr;
    }

    .footer__info-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .footer__info-label {
        font-weight: 600;
    }

    .footer {
        padding: 0;
    }

    .footer__nav-accordion {
        border-bottom: none;
        padding: 0;
    }

    .footer__nav-summary {
        padding: 0px 16px;
        font-size: x-large;
    }

    .footer__logo-img {
        height: 5rem;
        margin: 36px 0;
    }

    .footer__logo {
        margin-bottom: 0;
    }

    .footer__map--sp iframe {
        border-radius: 16px;
        /* お好みの値に調整（例: 8px, 16px, 24px など） */
        overflow: hidden;
    }

    .footer__map--sp {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 36px 0;
    }

    .footer__company-info--sp {
        margin-left: 24px;
    }

    .footer__info-label--sp {
        font-weight: bold;
    }

    .footer__info-value--sp p {
        margin-bottom: 0;
    }

    .footer__info-value--sp {
        margin-bottom: 16px;
    }

    .footer__copyright p {
        margin-bottom: 0;
        padding-bottom: 16px;
    }

    .sp_contents_none {
        display: block;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    /* .service__buttons, */
    .news__carousel-indicators {
        flex-direction: column;
        align-items: center;
    }

    /* .service__button {
        width: 100%;
        max-width: 200px;
    } */
}