/* レスポンシブスタイル（メディアクエリ） */

/* タブレット (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .fv__title {
        font-size: 32px;
    }

    .merit__cards,
    .merit__cards--reason {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .flow__line {
        display: none;
    }

    /* サポート内容グリッド: 2列 */
    .support__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 料金プラン: 1列 */
    .pricing__container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 24px;
    }

    /* チーム体制: 1列 */
    .team__container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* モバイル (max-width: 768px) */
@media screen and (max-width: 768px) {
    body.theme-corporate {
        padding-top: 64px;
        padding-bottom: 80px;
    }

    .header__nav {
        display: none;
    }

    .header__inner {
        padding: 12px 16px;
    }

    .btn--header {
        display: none;
    }

    /* スマホ専用の画面下部固定CTA */
    .btn--fixed-bottom {
        display: inline-flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        padding: 16px;
        z-index: 100;
        background-color: var(--color-accent);
        color: #fff;
        box-sizing: border-box;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
        font-size: 16px;
        justify-content: center;
    }

    .fv {
        min-height: 400px;
        background-position: center right -100px;
    }

    .fv::before {
        background: linear-gradient(105deg,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.95) 50%,
                rgba(255, 255, 255, 0.8) 65%,
                rgba(255, 255, 255, 0.5) 80%,
                rgba(255, 255, 255, 0.3) 100%);
    }

    .fv__inner {
        padding: 60px 16px;
    }

    .fv__title {
        font-size: 28px;
    }

    .fv__content {
        max-width: 100%;
    }

    .badge {
        display: block;
        margin: 0 0 8px 0;
        text-align: center;
    }

    /* FVバナー: 1列 */
    .fv__banner-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }

    .fv__banner-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 16px 0;
    }

    .fv__banner-item:last-child {
        border-bottom: none;
    }

    /* FVアクション: 1列 */
    .fv__actions {
        flex-direction: column;
    }

    .fv__actions .btn {
        min-width: unset;
    }

    .merit__cards,
    .merit__cards--reason {
        grid-template-columns: 1fr;
    }

    .support__content {
        grid-template-columns: 1fr;
    }

    /* サポート内容グリッド: 1列 */
    .support__grid {
        grid-template-columns: 1fr;
    }

    .flow__steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .contact__bg {
        display: none;
    }

    .footer {
        padding: 32px 16px 16px;
    }

    .footer__nav {
        justify-content: flex-start;
        gap: 15px;
        margin-top: 16px;
        flex-direction: row;
    }

    .footer__contact {
        text-align: left;
    }

    .footer__bottom {
        justify-content: center;
        flex-direction: column;
        gap: 0;
    }

    .footer__company {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .pricing__price-number,
    .pricing__price-value {
        font-size: 32px;
    }

    /* Pain Points セクション */
    .about--pain {
        padding: 60px 0;
    }

    .about__feature--pain {
        font-size: 16px;
    }

    .about__solution-text {
        font-size: 18px;
    }

    /* セクション共通タイトル */
    .section-title--large {
        font-size: 26px;
    }

    /* 料金プランカード */
    .pricing__container {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .pricing__card {
        padding: 32px 24px;
    }

    /* チーム体制 */
    .team__container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team__backoffice-grid {
        grid-template-columns: 1fr;
    }
}

/* 小型スマートフォン (max-width: 480px) */
@media screen and (max-width: 480px) {
    .fv {
        min-height: 360px;
    }

    .fv__inner {
        padding: 40px 16px;
    }

    .fv__title {
        font-size: 24px;
    }

    .about,
    .about--pain,
    .merit,
    .merit--system,
    .merit--reason,
    .support,
    .support--dim,
    .pricing,
    .pricing--custom,
    .flow,
    .flow--team,
    .contact {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-title--large {
        font-size: 22px;
    }

    /* FVバナー: 小画面 */
    .fv__banner-inner {
        padding: 0 10px;
        gap: 0.2rem;
    }

    .fv__banner-note,
    .fv__banner-item-note {
        font-size: 9px;
    }

    .pricing__table th,
    .pricing__table td {
        padding: 20px 12px;
        font-size: 16px;
        line-height: 1.5;
    }

    .pricing__price-box {
        flex-direction: column;
        align-items: center;
    }

    .footer__contact .btn {
        padding: 12px;
        font-size: 16px;
    }

    /* サポートカード内テキスト調整 */
    .support__card-title {
        font-size: 14px;
    }

    .support__card-number {
        font-size: 16px;
    }

    /* テーブル幅 */
    .system-table {
        min-width: 500px;
    }
}