/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #444444;
    overflow-x: hidden;
}


/* Image styles ----------------------------------------------------------------------------------------*/
.hero__logo-square {
    max-width: 1440px;
    max-height: 547px;
    background: url('../images/logo_app.png') no-repeat center;
    background-size: contain;
}

.hero__download-square {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: filter 0.3s ease; /* hover効果のためのトランジション */
}

.hero__download-square:hover {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)); /* ホバー時のドロップシャドウ */
}

.hero__download-button--ios {
    width: 239px;
    height: 80px;
}

.hero__download-button--ios .hero__download-square {
    background-image: url('../images/btn_dl_appstore.png');
}

.hero__download-button--android {
    width: 270px;
    height: 80px;
} 

.hero__download-button--android .hero__download-square {
    background-image: url('../images/btn_dl_googleplay.png');
}

.problem__item-square {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.problem__item:nth-child(1) .problem__item-square {
    background-image: url('../images/faceimage01.png');
}

.problem__item:nth-child(2) .problem__item-square {
    background-image: url('../images/faceimage02.png');
}

.problem__item:nth-child(3) .problem__item-square {
    background-image: url('../images/faceimage03.png');
}

.problem__mockup-square {
    width: 100%;
    height: 100%;
    background: url('../images/image_salesquest.png') no-repeat center;
    background-size: contain;
}

.problem__appeal-square {
    width: 100%;
    height: 100%;
    background: url('../images/image_appealtext.png') no-repeat center;
    background-size: contain;
}

.features__card-square {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.features__card:nth-child(1) .features__card-square {
    background-image: url('../images/sales_merit1.png');
}

.features__card:nth-child(2) .features__card-square {
    background-image: url('../images/sales_merit2.png');
}

.features__card:nth-child(3) .features__card-square {
    background-image: url('../images/sales_merit3.png');
}

.features__card:nth-child(4) .features__card-square {
    background-image: url('../images/sales_merit4.png');
}

.benefits__arrow-square {
    width: 100%;
    height: 100%;
    background: url('../images/arrow.png') no-repeat center;
    background-size: contain;
}

.benefits__frame-square {
    width: 100%;
    height: 100%;
    background: url('../images/image_frametext.png') no-repeat center;
    background-size: contain;
}

.benefits__item-square {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.benefits__item:nth-child(1) .benefits__item-square {
    background-image: url('../images/icon_check.png');
}

.benefits__item:nth-child(2) .benefits__item-square {
    background-image: url('../images/icon_check.png');
}

.benefits__item:nth-child(3) .benefits__item-square {
    background-image: url('../images/icon_check.png');
}

.merit__item-square {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.merit__item:nth-child(1) .merit__item-square {
    background-image: url('../images/merit_flag1.png');
}

.merit__item:nth-child(2) .merit__item-square {
    background-image: url('../images/merit_flag2.png');
}

.merit__item:nth-child(3) .merit__item-square {
    background-image: url('../images/merit_flag3.png');
}

.footer__logo-square {
    width: 100%;
    height: 100%;
    background: url('../images/AppIcon.png') no-repeat center;
    background-size: contain;
}

.footer__download-square {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: filter 0.3s ease; /* hover効果のためのトランジション */
}

.footer__download-square:hover {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3)); /* ホバー時のドロップシャドウ */
}

.footer__download-button:nth-child(1) {
    width: 239px;
    height: 80px;
}

.footer__download-button:nth-child(1) .footer__download-square {
    background-image: url('../images/btn_dl_appstore.png');
}

.footer__download-button:nth-child(2) {
    width: 270px;
    height: 80px;
}

.footer__download-button:nth-child(2) .footer__download-square {
    background-image: url('../images/btn_dl_googleplay.png');
}

.footer__company-square {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer__companies .footer__company-logo:nth-child(1) .footer__company-square {
    background-image: url('../images/logo_anotherlegend_128.png');
}

.footer__companies .footer__company-logo:nth-child(2) .footer__company-square {
    background-image: url('../images/logo_ogix_128.png');
}

.footer__award-square {
    width: 100%;
    height: 100%;
    background: url('../images/award_logo.png') no-repeat center;
    background-size: contain;
}
/* Image styles ------------------------------------------------------------------------------------END----*/

/* Hero Section ----------------------------------------------------------------------------------------*/
.hero {
    min-height: 100vh;
    max-height: 1150px; /* bg_hero.pngの実寸高さに設定 */
    height: 1150px; /* 固定高さを設定 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: url('../images/bg_hero.png') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.hero__container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero__logo {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1440px; /* logo_app.pngの実寸幅に設定 */
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.hero__logo-square {
    width: 100%;
    height: 0;
    padding-bottom: 38.02%; /* 547 / 1440 * 100 = アスペクト比を維持 */
    background: url('../images/logo_app.png') no-repeat center;
    background-size: contain;
    position: relative;
}

.hero__download {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    align-items: center;
}

.hero__download-button {
    /* 実寸サイズに固定 */
}

.hero__catchcopy {
    margin-top: 2rem;
}

.hero__text {
    font-size: 60pt; /* PC表示時60pt */
    font-weight: 900; /* 最大ウェイト */
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W6", "Noto Sans JP", sans-serif;
    color: #F7F7F7;
    text-shadow: 3px 3px 12px #002BA3; /* シャドウカラーを#002BA3に変更、少し強化 */
    margin-bottom: 1rem; /* 下のsubtextとの間隔調整 */
}

.hero__subtext {
    font-size: 30pt; /* PC表示時40pt */
    font-weight: 800; /* 太めのウェイト */
    font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W6", "Noto Sans JP", sans-serif;
    color: #2B2A47; /* フォントカラーを#2B2A47に設定 */
    margin-top: -1rem; /* ロゴに近づける */
    margin-bottom: 3rem; /* ダウンロードボタンとの間隔を開ける */
}

/* Problem Section ----------------------------------------------------------------------------------------*/*/
.problem {
    background-color: #F7F7F7;
    padding: 8rem 0; /* 6remから8remに増加 */
}

.problem__container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.problem__title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative; /* 相対位置指定を追加 */
}

.problem__title-text {
    background-color: #3ABC98;
    color: #444444;
    padding: 1.5rem 2.5rem;
    display: inline-block;
    font-size: 2rem;
    font-weight: bold;
    position: relative; /* 相対位置指定を追加 */
}

/* text_painpoints.png を左上角に配置 */
.problem__title-text::before {
    content: '';
    position: absolute;
    top: -60px; /* 上側に少しはみ出すように配置 */
    left: -45px; /* 左側に少しはみ出すように配置 */
    width: 320px;
    height: 132px;
    background: url('../images/text_painpoints.png') no-repeat top left;
    background-size: 320px 132px; /* 実寸で表示 */
    z-index: 2; /* テキストの上に表示 */
    pointer-events: none; /* クリック無効 */
}

.problem__items {
    display: flex;
    flex-direction: column; /* 縦並び（各アイテムごとに改行） */
    gap: 2rem;
    margin-bottom: 4rem;
    justify-content: center;
    align-items: center;
}

.problem__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 600px; /* 幅を少し広げる */
    width: 100%;
}

.problem__item-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.problem__item-text {
    font-size: 1.5rem;
    line-height: 1.5;
    flex: 1;
}

.problem__appeal {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.problem__mockup {
    width: 700px; /* image_salesquest.pngの実寸幅 */
    height: 420px; /* image_salesquest.pngの実寸高さ */
}

.problem__appeal-text {
    width: 640px; /* image_appealtext.pngの実寸幅 */
    height: 200px; /* image_appealtext.pngの実寸高さ */
}

/* Features Section -------------------------------------------------------------------------*/
.features {
    background-color: #3ABC98;
    padding: 4rem 0;
}

.features__container {
    max-width: 1300px; /* 1200pxから1300pxに変更 */
    margin: 0 auto;
    padding: 0 2rem;
}

.features__title {
    text-align: left;
    margin-bottom: 2rem;
    margin-top: -30px;
}

.features__title-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #F7F7F7;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 522px); /* PC表示時：1行に2カード（522px固定） */
    gap: 3rem;
    justify-content: center; /* グリッド全体を中央配置 */
    margin: 0 auto;
}

.features__card {
    background: #F7F7F7;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 552px; /* PC表示時固定サイズ */
    height: 522px; /* PC表示時固定サイズ */
}

.features__card-image {
    width: 100%;
    height: 240px;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features__card-square {
    width: 100%;
    max-width: 552px; /* 実寸の最大幅 */
    height: 100%;
    max-height: 240px; /* 実寸の最大高さ */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.features__card-content {
    padding: 2rem;
    height: calc(522px - 240px - 48px);
    display: flex;
    flex-direction: column;
    text-align: center; /* テキスト類をcenter表示 */
}

.features__card-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top:-30px;
    color: #3ABC98;
    text-align: center; /* center表示 */
}
.features__card-text {
    font-size: 1.6rem;
    line-height: 1.6;
    flex: 1;
    text-align: center; /* center表示 */
}

/* Benefits Section ------------------------------------------------------------------------------------*/
.benefits {
    background-color: #E4B848;
    padding: 4rem 0 4rem; /* 上部paddingを4remに統一 */
    position: relative;
}

.benefits__arrow {
    position: absolute;
    top: 0; /* Y軸開始位置をsectionのtop0に変更 */
    left: 50%;
    transform: translateX(-50%);
    width: 374px;
    height: 132px;
    z-index: 1;
}

.benefits__container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
}

.benefits__content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.benefits__frame {
    width: 356px;
    height: 290px;
    flex-shrink: 0;
}

.benefits__list {
    flex: 1;
}

.benefits__item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 1.5rem;
    border-radius: 10px;
}

.benefits__item-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.benefits__item-content {
    flex: 1;
}

.benefits__item-title {
    font-size: 1.8rem; /* フォントサイズを大幅にアップ（1.1rem → 1.8rem） */
    font-weight: bold;
    margin-bottom: 0; /* 下の要素との間隔を削除 */
    color: #f7f7f7;
    line-height: 1.2; /* 行間を詰める */
}

.benefits__item-text {
     display: none;
}

/* Merit Section ----------------------------------------------------------------------------------------*/
.merit {
    background-color: #EE3E37;
    padding: 4rem 0;
}

.merit__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.merit__title {
    text-align: left;
    margin-bottom: 2rem;
    margin-top: -30px;
}

.merit__title-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #F7F7F7;
}

.merit__items {
    max-width: 1300px;
    margin: 0 auto;
}

.merit__item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    background: #f7f7f7;
    padding: 0 2rem 2rem 2rem;
    border-radius: 15px;
}

.merit__item-ribbon {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    margin-top: 0; /* 上マージンを0に */
    position: relative;
    top: 0; /* 上辺にくっつける */
}

.merit__item-content {
    flex: 1;
}

.merit__item-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #444444;
}

.merit__item-text {
    font-size: 1.5rem;
    line-height: 1.7;
    color: #444444;
}

.merit__item-highlight {
    background-color: #FBBC04;
    color: #444444;
    padding: 0px;
    font-weight: bold;
}

/* Contact Section ----------------------------------------------------------------------------------------*/
.contact {
    background-color: #F7F7F7;
    padding: 4rem 0;
}

.contact__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact__title {
    text-align: left;
    margin-bottom: 3rem;
    margin-top: -30px;
}

.contact__title-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: #444444;
}

.contact__form-group {
    margin-bottom: 2rem;
}

.contact__label {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #444444;
}

.contact__required {
    background-color: #EE3E37;
    color: #F7F7F7;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.contact__input,
.contact__textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact__input:focus,
.contact__textarea:focus {
    outline: none;
    border-color: #3ABC98;
}

.contact__textarea {
    resize: vertical;
}

.contact__privacy {
    font-size: 1rem;
    color: #444444;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact__privacy a {
    font-weight: bold;
    color: #3ABC98;
}

.contact__submit {
    text-align: center;
}

.contact__button {
    background: #ffffff;
    border: 6px solid #3ABC98;
    color: #3ABC98;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.contact__button:hover {
    background: #3ABC98;
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: #433F3E;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer__logo {
    width: 200px;
    height: 80px;
    margin: 0 auto 2rem;
}

.footer__text,
.footer__subtitle {
    color: #F7F7F7;
    margin-bottom: 1rem;
}

.footer__text {
    font-size: 1.5rem;
}

.footer__subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.footer__download {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    align-items: center;
}

.footer__download-button {
    /* 個別サイズ指定に変更 */
}

.footer__companies {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.footer__company-logo {
    width: 128px;
    height: 128px;
    flex-shrink: 1; /* 画面サイズに応じて縮小を許可 */
    min-width: 60px; /* 最小サイズを設定 */
    min-height: 60px;
}

.footer__award {
    width: 150px;
    height: 80px;
    margin: 0 auto 2rem;
}

.footer__link a{
    color:#ffffff;
}

.footer__copyright {
    color: #F7F7F7;
    font-size: 0.8rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #666;
}

/* Responsive Design -----------------------------------------------------------------------Responsive 1400---------------*/
@media (max-width: 1400px) {
    .problem__mockup {
        width: 525px; /* 実寸の75% */
        height: 315px;
    }
    
    .problem__appeal-text {
        width: 480px; /* 実寸の75% */
        height: 150px;
    }
}

/* Responsive Design -----------------------------------------------------------------------Responsive 768〜1280---------------*/
@media (max-width: 1280px) and (min-width: 769px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr); /* 2列表示 */
        max-width: 1000px; /* 全体幅を調整 */
        gap: 1.5rem;
        justify-content: center;
    }
    
    .features__card {
        width: 100%; /* フレキシブルに調整 */
        max-width: 480px; /* 最大幅を制限 */
        height: 450px; /* 高さを縮小 */
    }
    
    .features__card-image {
        height: 200px; /* 画像エリアを縮小 */
    }
    
    .features__card-content {
        height: calc(450px - 200px - 32px); /* 高さを再計算 */
        padding: 1.5rem;
    }
    
    .features__card-title {
        font-size: 1.4rem;
    }
    
    .features__card-text {
        font-size: 1.1rem;
    }
}



/* Responsive Design -------------------------------------------------------------------------Responsive 768---------------*/
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
    }

    .hero__container {
        height: auto;
        min-height: 100vh;
        justify-content: center;
    }
    
    .hero__logo {
        max-width: 500px; /* 400pxから500pxに拡大 */
    }

    .hero__logo-square {
        height: auto; /* 固定高さを解除 */
        padding-bottom: 38.02%; /* アスペクト比を維持 */
    }
    
     .hero__download {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero__download-button--ios {
        width: 239px;　/* モバイルでも実寸を維持 */
        height: 80px;
    }

    .hero__download-button--android {
        width: 270px;
        height: 80px;
    }
    
    .hero__text {
        font-size: 40pt; /* タブレットサイズ */
    }
    
    .hero__subtext {
        font-size: 28pt; /* タブレットサイズ */
        margin-bottom: 2rem;
    }

    /* Problem Section Mobile */
    .problem__container {
        padding: 0 20px;
    }
    
    .problem__title-text {
        font-size: 1.5rem; /* 2remから1.5remに縮小 */
        padding: 1rem 2rem; /* パディングも少し縮小 */
    }
    
    .problem__title-text::before {
        width: 240px; /* 75%サイズ */
        height: 99px;
        background-size: 240px 99px;
        top: -50px; /* 位置も調整 */
        left: -35px;
    }

    .problem__items {
        gap: 3rem; /* モバイルでは間隔を広げる */
    }
    
    .problem__item {
        flex-direction: column; /* 縦並び（アイコンとテキストを上下配置） */
        text-align: center;
        max-width: 100%;
        gap: 1.5rem;
    }

    .problem__item-text {
        font-size: 1.1rem;
    }
    
    .problem__appeal {
        flex-direction: column;
        text-align: center;
    }
    
    .problem__mockup {
        width: 350px; /* 実寸の50% */
        height: 210px;
    }
    
    .problem__appeal-text {
        width: 320px; /* 実寸の50% */
        height: 100px;
    }

    /* Features Section Mobile */
    .features__container {
        padding: 0 20px;
    }
    
    .features__title-text {
    font-size: 2rem;
    font-weight: bold;
    color: #F7F7F7;
    }

    .features__grid {
        grid-template-columns: 1fr; /* 縦並び */
        max-width: 400px;
        gap: 2rem;
    }
    
    .features__card {
        width: 100%; /* 幅を縮小 */
        max-width: 400px;
        height: auto; /* 高さを内容に応じて調整 */
    }
    
    .features__card-image {
        height: 180px; /* 固定の高さを設定 */
        min-height: 180px;
    }
    
    .features__card-square {
        width: 100%;
        height: 100%;
        max-width: none; /* max-widthを無効化 */
        max-height: none; /* max-heightを無効化 */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .features__card-content {
        height: auto; /* 内容に応じて高さ調整 */
        padding: 1.5rem;
    }
    .features__card-title {
        font-size: 1.3rem;
    }
    
    .features__card-text {
        font-size: 1.0rem;
    }

    /* Benefits Section Mobile */
    .benefits__container {
        padding: 4rem 20px 0;
    }
    
    .benefits__arrow {
        top: 0; /* モバイルでもtop0 */
        width: 280px;
        height: 99px;
    }
    
    .benefits__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .benefits__frame {
        width: 280px;
        height: 228px;
        margin-bottom: 2rem;
    }
    
    .benefits__item {
        flex-direction: row;
        text-align: left;
    }

    .benefits__item-title {
        font-size: 1.4rem; /* モバイルでもサイズアップ */
        line-height: 1.3;
    }

    /* Merit Section Mobile */
    .merit__container {
        padding: 0 20px;
    }
    
    .merit__item {
        flex-direction: column;
        text-align: center;
        padding: 0 2rem 2rem 2rem;
    }
    
    .merit__item-ribbon {
        margin: 0 auto;
    }
    
    .merit__item-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #444444;
    }

    .merit__item-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #444444;
    }

    .merit__title-text {
        font-size: 2rem;
        padding: 0.8rem 2rem;
        text-align: left;
    }

    /* Contact Section Mobile */
    .contact__container {
        padding: 0 20px;
    }
    
    .contact__button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }

    /* Footer Mobile */
    .footer__container {
        padding: 0 20px;
    }
    
    .footer__companies {
        flex-direction: row; /* 横並びを維持 */
        gap: 1rem; /* ギャップを小さく */
        justify-content: center;
        align-items: center;
    }

    .footer__company-logo {
        width: 100px;
        height: 100px;
    }
    
    .footer__download {
        flex-direction: column;
        align-items: center;
    }

    .footer__download {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer__download-button:nth-child(1) {
        width: 239px;
        height: 80px;
    }

    .footer__download-button:nth-child(2) {
        width: 270px;
        height: 80px;
    }
}

/* Responsive Design -------------------------------------------------------------------------Responsive 480---------------*/
@media (max-width: 480px) {
    .hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
    }

    .hero__container {
        height: auto;
        min-height: 100vh;
        justify-content: center;
    }
    
    .hero__logo {
        max-width: 420px; /* 300pxから420pxに拡大 */
        margin-left: 10px; /* 左右の余白を最小限に */
        margin-right: 10px;
    }
    
    .hero__logo-square {
        height: auto; /* 固定高さを解除 */
        padding-bottom: 38.02%; /* アスペクト比を維持 */
    }

    .hero__text {
        font-size: 30pt; /* スマートフォンサイズ */
    }
    
    .hero__subtext {
        font-size: 18pt; /* スマートフォンサイズ */
        margin-bottom: 1.5rem;
    }
    
    .problem__title-text {
        font-size: 1.2rem; /* さらに縮小して1行に収める */
        padding: 0.8rem 1.5rem;
    }

    .problem__items {
        gap: 2.5rem;
    }

    .problem__item-text {
        font-size: 1rem;
    }

    .problem__title-text::before {
        width: 160px; /* 50%サイズ */
        height: 66px;
        background-size: 160px 66px;
        top: -40px; /* 位置調整 */
        left: -25px;
    }

    .problem__mockup {
        width: 280px; /* 実寸の40% */
        height: 168px;
    }
    
    .problem__appeal-text {
        width: 256px; /* 実寸の40% */
        height: 80px;
    }
    
    .benefits__item-title {
        font-size: 1.2rem; /* 小画面では少し控えめに */
        line-height: 1.4;
    }

    .benefits__frame {
        width: 240px;
        height: 196px;
    }
    
    .features__grid {
        max-width: 300px;
        gap: 1.5rem;
    }
    
    .features__title-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #F7F7F7;
    }

    .features__card {
        max-width: 300px;
    }
    
    .features__card-image {
        height: 150px; /* さらに小さく調整 */
        min-height: 150px;
    }
    
    .features__card-square {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }
    
    .features__card-content {
        padding: 1rem;
    }
    
    .features__card-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .features__card-text {
        font-size: 0.95rem;
    }
    
    .merit__title-text {
        font-size: 1.5rem;
        padding: 0.6rem 1.5rem;
    }

    .merit__item-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #444444;
    text-align: left;
    }

    .merit__item-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444444;
    text-align: left;
    }   
    
    /* 小画面でも実寸を維持 */
    .hero__download-button--ios {
        width: 239px;
        height: 80px;
    }

    .hero__download-button--android {
        width: 270px;
        height: 80px;
    }
    
    .footer__download-button:nth-child(1) {
        width: 239px;
        height: 80px;
    }

    .footer__download-button:nth-child(2) {
        width: 270px;
        height: 80px;
    }
}

/* btn_inquiry------------------------------------------------------------------------------------------ */
.inquiry-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.inquiry-button img {
    width: 182px;
    height: 182px;
    transition: filter 0.3s ease;
}

.inquiry-button:hover img {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* レスポンシブデザイン対応 */
@media (max-width: 768px) {
    .inquiry-button {
        bottom: 15px;
        right: 15px;
    }
    
    .inquiry-button img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .inquiry-button {
        bottom: 10px;
        right: 10px;
    }
    
    .inquiry-button img {
        width: 80px;
        height: 80px;
    }
}