/* =============================================================
 * 2604re LP - 新規セクション(01〜08)用カスタムCSS
 * 既存 /20251225assets/css/styles.css の後に読み込まれる
 * ============================================================= */

/* -------------------------------------------------------------
 * 01: ヘッダー(固定2バナー)
 *
 * - DOM順: yellow → red (PCで左→右)
 * - SP(<768px): flex-direction: column-reverse → red(上) / yellow(下)
 * - PC(>=768px): flex-direction: row → yellow(左) / red(右) 50/50
 * - position: fixed なので <main> に padding-top でクリアランスを確保
 * ------------------------------------------------------------- */
.lp2604-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    flex-direction: column-reverse;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

@media (min-width: 768px) {
    .lp2604-header {
        flex-direction: row;
    }
}

.lp2604-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    /* SP: 高さは min-height で確保。flex は使わずコンテンツ + パディングで自然に伸びる。
       (column-reverse 時に flex:1 1 0 + height だと flex-basis:0 が height を上書きして高さ0になるため) */
    min-height: 44px;
    padding: 10px 8px;
    font-weight: 900;
    /* SP: Figma 402px フレーム時に約15pxとなるよう vw で流動的にスケール
       (3.7vw × 402 / 100 ≈ 14.87px)。狭い端末でも下限 12px で1行を維持。 */
    font-size: clamp(12px, 3.7vw, 15px);
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
    /* SP/PC ともに折返し禁止 — 全テキストを必ず1行で表示 */
    white-space: nowrap;
}

.lp2604-banner > span {
    display: inline-block;
}

.lp2604-banner:hover {
    opacity: 0.9;
    text-decoration: none;
}

.lp2604-banner--yellow {
    background-color: #ffde59;
    color: #000;
}

.lp2604-banner--red {
    background-color: #b51809;
    color: #ffcc00; /* Figma: text-[#fc0] */
}

@media (min-width: 768px) {
    .lp2604-banner {
        /* PC: row direction での 50/50 等幅にするため flex:1 1 0 を有効化 */
        flex: 1 1 0;
        min-width: 0;
        min-height: 64px;
        padding: 0 20px;
        /* PC: 固定 22px に戻す(SPの clamp を上書き) */
        font-size: 22px;
    }
}

/* <main> のクリアランス:
   KV (.lp2604-kv) が固定ヘッダー分の padding-top を担う構造に変更したため、
   <main> 側は padding-top 不要。 */

/* -------------------------------------------------------------
 * 02: KV (キービジュアル)
 *
 * 構造:
 *   .lp2604-kv
 *     └ .lp2604-kv__visual (背景画像 + テキスト/バッジ)
 *         ├ .lp2604-kv__bg (object-fit: cover の <img>)
 *         └ .lp2604-kv__inner
 *             ├ .lp2604-kv__labels (3ラベル)
 *             ├ .lp2604-kv__subcatch (サブキャッチ)
 *             ├ .lp2604-kv__title (メインタイトル)
 *             ├ .lp2604-kv__subcopy (赤帯サブコピー)
 *             └ .lp2604-kv__badges (3円形バッジ)
 *     └ .lp2604-kv__partners (協力ロゴ2枚 / 白背景)
 * ------------------------------------------------------------- */
.lp2604-kv {
    background: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    /* 固定ヘッダー分のクリアランスは .lp2604-kv__inner の padding-top で確保。
       .lp2604-kv 自体には padding-top を入れず、背景画像 (.lp2604-kv__visual)
       がヘッダー直下から開始するようにする。 */
}

/* Visual area (背景画像 + コンテンツ) */
.lp2604-kv__visual {
    position: relative;
    overflow: hidden;
}

.lp2604-kv__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* SP: 人物がやや右寄りに見える位置 */
    object-position: 65% center;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .lp2604-kv__bg {
        /* PC: Figma の構図に合わせて人物が右側に見える位置 */
        object-position: 60% center;
    }
}

.lp2604-kv__inner {
    position: relative;
    z-index: 1;
    /* padding-top = 固定ヘッダー高さ(SP:88px) + デザイン余白(1px) = 89px
       → 上部 88px は固定ヘッダーの裏に隠れる。残り1pxが認定証交付ラベルの上の青背景余白。 */
    padding: 89px 16px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
}

@media (min-width: 768px) {
    .lp2604-kv__inner {
        /* padding-top = 固定ヘッダー高さ(PC:64px) + デザイン余白(28px) = 92px */
        padding: 92px 36px 44px;
        align-items: flex-start;
        text-align: left;
        max-width: 1100px;
        margin: 0 auto;
    }
}

/* === 3 Labels === */
.lp2604-kv__labels {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
}

.lp2604-kv__labels > li {
    background: linear-gradient(to bottom, #e1d9a9 14%, #ffffff 50%, #7b775c 96%);
    border-radius: 6px;
    padding: 6px 8px;
    color: #12264f;
    font-weight: 900;
    font-size: clamp(11px, 3.4vw, 14px);
    line-height: 1.2;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .lp2604-kv__labels {
        gap: 16px;
        justify-content: flex-start;
        margin-bottom: 36px;
    }
    .lp2604-kv__labels > li {
        border-radius: 10px;
        padding: 14px 20px;
        font-size: 25px;
    }
}

/* === Sub-catch === */
.lp2604-kv__subcatch {
    margin: 0 0 12px;
    font-weight: 900;
    font-size: clamp(22px, 6.7vw, 27px);
    line-height: 1.4;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .lp2604-kv__subcatch {
        font-size: 55px;
        line-height: 1.2;
        margin-bottom: 14px;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    }
}

/* === Main title === */
.lp2604-kv__title {
    margin: 0 0 16px;
    font-weight: 900;
    font-size: clamp(20px, 6.2vw, 26px);
    line-height: 1.3;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
    .lp2604-kv__title {
        font-size: 60px;
        line-height: 1.05;
        margin-bottom: 28px;
        text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    }
}

/* === Red sub-copy === */
.lp2604-kv__subcopy {
    align-self: stretch;
    margin: 0 -16px 22px; /* extend to inner padding edges */
    background: #b51809;
    color: #ffde59;
    font-weight: 900;
    font-size: clamp(13px, 3.85vw, 15px);
    line-height: 1.3;
    padding: 9px 12px;
    text-align: center;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .lp2604-kv__subcopy {
        align-self: flex-start;
        margin: 0 0 32px;
        padding: 22px 56px;
        font-size: 35px;
        text-align: left;
        width: auto;
        max-width: 838px;
    }
}

/* === 3 Circle badges === */
.lp2604-kv__badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.lp2604-kv__badges > li {
    flex: 0 1 auto;
}

.lp2604-kv__badges img {
    display: block;
    width: 100%;
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
}

@media (min-width: 768px) {
    .lp2604-kv__badges {
        gap: 18px;
        justify-content: flex-start;
    }
    .lp2604-kv__badges img {
        max-width: 173px;
    }
}

/* === Partner logos === */
.lp2604-kv__partners {
    background: #fff;
    padding: 18px 16px;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.lp2604-kv__partners img {
    display: block;
    height: auto;
    max-width: 145px;
}

@media (min-width: 768px) {
    .lp2604-kv__partners {
        padding: 28px 16px;
        gap: 36px;
    }
    .lp2604-kv__partners img {
        max-width: 280px;
    }
}

/* -------------------------------------------------------------
 * 03: 全国住宅リフォーム取扱主任者とは？
 *
 * SP: タイトル → 画像(中央) → 本文 → 注意書き の縦積み
 * PC: 画像(左) | タイトル+本文+注意書き(右) の2カラム
 * ------------------------------------------------------------- */
.lp2604-section3 {
    background: #fff;
    padding: 36px 20px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

@media (min-width: 768px) {
    .lp2604-section3 {
        padding: 80px 32px;
    }
}

.lp2604-section3__inner {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .lp2604-section3__inner {
        max-width: 1200px;
        display: grid;
        grid-template-columns: 350px minmax(0, 1fr);
        column-gap: 60px;
        align-items: center;
    }
}

.lp2604-section3__title {
    margin: 0 0 18px;
    color: #0c2651;
    font-weight: 900;
    font-size: clamp(18px, 5.4vw, 22px);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .lp2604-section3__title {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin: 0 0 24px;
        font-size: 30px;
        line-height: 1.3;
        text-align: left;
    }
}

.lp2604-section3__image {
    display: block;
    width: 100%;
    max-width: 247px;
    height: auto;
    margin: 0 0 18px;
}

@media (min-width: 768px) {
    .lp2604-section3__image {
        grid-column: 1;
        grid-row: 1 / span 2;
        max-width: 350px;
        margin: 0;
        align-self: center;
    }
}

.lp2604-section3__text {
    width: 100%;
}

@media (min-width: 768px) {
    .lp2604-section3__text {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }
}

.lp2604-section3__body {
    margin: 0 0 14px;
    color: #333;
    /* SP: セクション06本文と統一(clamp(13px, 4.0vw, 16px)) */
    font-size: clamp(13px, 4.0vw, 16px);
    font-weight: 500;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .lp2604-section3__body {
        margin-bottom: 18px;
        font-size: 18px;
        line-height: 1.7;
    }
}

.lp2604-section3__note {
    margin: 0;
    color: #666;
    font-size: clamp(9px, 2.1vw, 11px);
    font-weight: 400;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .lp2604-section3__note {
        font-size: 12px;
    }
}

/* -------------------------------------------------------------
 * 04: 2級と1級で必要な知識を網羅
 *
 * SP: タイトル → 画像(中央) → 本文 の縦積み
 * PC: タイトル+本文(左) | 画像(右) の2カラム (セクション03と左右逆)
 * ------------------------------------------------------------- */
.lp2604-section4 {
    background: #fff;
    padding: 36px 20px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

@media (min-width: 768px) {
    .lp2604-section4 {
        padding: 80px 32px;
    }
}

.lp2604-section4__inner {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .lp2604-section4__inner {
        max-width: 1200px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 350px;
        column-gap: 60px;
        align-items: center;
    }
}

.lp2604-section4__title {
    margin: 0 0 18px;
    color: #0c2651;
    font-weight: 900;
    font-size: clamp(18px, 5.4vw, 22px);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .lp2604-section4__title {
        grid-column: 1;
        grid-row: 1;
        align-self: end;
        margin: 0 0 24px;
        font-size: 30px;
        line-height: 1.3;
        text-align: left;
    }
}

.lp2604-section4__image {
    display: block;
    width: 100%;
    max-width: 264px;
    height: auto;
    margin: 0 0 18px;
}

@media (min-width: 768px) {
    .lp2604-section4__image {
        grid-column: 2;
        grid-row: 1 / span 2;
        max-width: 350px;
        margin: 0;
        align-self: center;
        justify-self: center;
    }
}

.lp2604-section4__text {
    width: 100%;
}

@media (min-width: 768px) {
    .lp2604-section4__text {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }
}

.lp2604-section4__body {
    margin: 0;
    color: #333;
    /* SP: セクション06本文と統一(clamp(13px, 4.0vw, 16px)) */
    font-size: clamp(13px, 4.0vw, 16px);
    font-weight: 500;
    line-height: 1.7;
}

.lp2604-section4__body + .lp2604-section4__body {
    margin-top: 1em;
}

@media (min-width: 768px) {
    .lp2604-section4__body {
        font-size: 18px;
    }
}

/* -------------------------------------------------------------
 * 05: 公式テキスト付きだからすぐに始められる
 *
 * 紺色背景セクション。
 * SP: 黄バッジ → タイトル → 画像 → 本文 → CTA(縦積み)
 * PC: 画像(左) | 黄バッジ + タイトル + 本文(右) → CTA(下に2カラム横並び)
 * ------------------------------------------------------------- */
.lp2604-section5 {
    background: #12264f;
    padding: 36px 20px 40px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #fff;
}

@media (min-width: 768px) {
    .lp2604-section5 {
        padding: 80px 32px;
    }
}

.lp2604-section5__inner {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

@media (min-width: 768px) {
    .lp2604-section5__inner {
        max-width: 1200px;
        display: grid;
        grid-template-columns: 350px minmax(0, 1fr);
        column-gap: 60px;
        row-gap: 0;
        align-items: start;
    }
}

/* 黄バッジ(サブ見出し) */
.lp2604-section5__badge {
    margin: 0;
    background: #ffde59;
    color: #12264f;
    font-weight: 900;
    font-size: clamp(15px, 4.85vw, 20px);
    line-height: 1.4;
    padding: 11px 18px;
    text-align: center;
    width: 100%;
    max-width: 323px;
}

@media (min-width: 768px) {
    .lp2604-section5__badge {
        grid-column: 2;
        grid-row: 1;
        max-width: 432px;
        padding: 14px 28px;
        font-size: 26px;
        text-align: left;
        margin-bottom: 28px;
        justify-self: start;
    }
}

/* メイン見出し */
.lp2604-section5__title {
    margin: 0;
    color: #fff;
    font-weight: 900;
    font-size: clamp(20px, 5.7vw, 24px);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .lp2604-section5__title {
        grid-column: 2;
        grid-row: 2;
        font-size: 30px;
        line-height: 1.3;
        text-align: left;
        margin-bottom: 24px;
    }
}

/* テキスト画像 */
.lp2604-section5__image {
    display: block;
    width: 100%;
    max-width: 261px;
    height: auto;
}

@media (min-width: 768px) {
    .lp2604-section5__image {
        grid-column: 1;
        grid-row: 1 / span 3;
        max-width: 350px;
        align-self: center;
        justify-self: center;
        margin: 0;
    }
}

/* 本文ブロック */
.lp2604-section5__body-block {
    width: 100%;
}

@media (min-width: 768px) {
    .lp2604-section5__body-block {
        grid-column: 2;
        grid-row: 3;
    }
}

.lp2604-section5__body {
    margin: 0;
    color: #fff;
    /* SP: セクション06本文と統一(clamp(13px, 4.0vw, 16px)) */
    font-size: clamp(13px, 4.0vw, 16px);
    font-weight: 500;
    line-height: 1.7;
}

.lp2604-section5__body + .lp2604-section5__body {
    margin-top: 0.9em;
}

@media (min-width: 768px) {
    .lp2604-section5__body {
        font-size: 18px;
        line-height: 1.7;
    }
}

/* CTA エリア */
.lp2604-section5__cta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}

@media (min-width: 768px) {
    .lp2604-section5__cta {
        grid-column: 1 / span 2;
        grid-row: 4;
        flex-direction: row;
        justify-content: center;
        gap: 60px;
        margin-top: 60px;
    }
}

/* CTA ボタン共通 */
.lp2604-section5__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 251px;
    min-height: 41px;
    padding: 8px 20px;
    border-radius: 9999px;
    font-weight: 900;
    font-size: clamp(13px, 3.65vw, 16px);
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    cursor: pointer;
}

@media (min-width: 768px) {
    .lp2604-section5__btn {
        max-width: 336px;
        min-height: 55px;
        padding: 12px 24px;
        font-size: 20px;
        letter-spacing: 0.06em;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
    }
}

.lp2604-section5__btn:hover {
    opacity: 0.92;
    text-decoration: none;
    transform: translateY(-1px);
}

.lp2604-section5__btn--red {
    background: #b51809;
    color: #fff;
}

.lp2604-section5__btn--blue {
    background: #dcf3ff;
    color: #000;
}

/* -------------------------------------------------------------
 * 06: 資格を持つとこんなに変わる！
 *
 * 白背景セクション。
 * SP: メイン見出し → 3アイテム縦積み(各: 小見出し → 本文 → 画像) → CTA画像
 * PC: メイン見出し → 3アイテム横並び(各: 小見出し → 本文 → 画像) → CTA画像
 * ------------------------------------------------------------- */
.lp2604-section6 {
    background: #fff;
    padding: 36px 20px 40px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

@media (min-width: 768px) {
    .lp2604-section6 {
        padding: 80px 32px;
    }
}

.lp2604-section6__inner {
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .lp2604-section6__inner {
        max-width: 1280px;
    }
}

/* メイン見出し */
.lp2604-section6__title {
    margin: 0 0 32px;
    color: #0c2651;
    font-weight: 900;
    font-size: clamp(22px, 6.7vw, 28px);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .lp2604-section6__title {
        margin-bottom: 48px;
        font-size: 30px;
    }
}

/* 3アイテムリスト */
.lp2604-section6__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

@media (min-width: 768px) {
    .lp2604-section6__list {
        flex-direction: row;
        gap: 40px;
        /* PC: 3カラムを同じ高さに引き伸ばす(画像を各カラムの下端に揃えるため) */
        align-items: stretch;
    }
}

.lp2604-section6__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .lp2604-section6__item {
        flex: 1 1 0;
        min-width: 0;
        text-align: left;
        align-items: flex-start;
    }
}

/* 小見出し */
.lp2604-section6__item-title {
    margin: 0 0 14px;
    color: #0c2651;
    font-weight: 900;
    font-size: clamp(17px, 5.2vw, 21px);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .lp2604-section6__item-title {
        font-size: 23px;
        text-align: left;
        margin-bottom: 18px;
    }
}

/* 本文 */
.lp2604-section6__item-body {
    margin: 0 0 18px;
    color: #333;
    font-size: clamp(13px, 4.0vw, 16px);
    font-weight: 500;
    line-height: 1.7;
    width: 100%;
}

@media (min-width: 768px) {
    .lp2604-section6__item-body {
        font-size: 18px;
        margin-bottom: 24px;
    }
}

/* アイテム画像
 * SP: アスペクト比そのまま(height: auto)、max-width 345px で中央配置
 * PC: 3カラムで高さ統一 + 各カラム下端に揃える
 *     - margin-top: auto で本文との間の余白を吸収し画像を下端へ押し下げ
 *     - height: 230px 固定 + object-fit: cover で元画像のアスペクト比違いを吸収 */
.lp2604-section6__item-image {
    display: block;
    width: 100%;
    max-width: 345px;
    height: auto;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .lp2604-section6__item-image {
        max-width: 100%;
        width: 100%;
        height: 230px;
        object-fit: cover;
        object-position: center;
        margin: auto 0 0;
        align-self: stretch;
    }
}

/* CTA(申込みへ進む画像ボタン) */
.lp2604-section6__cta {
    display: block;
    margin: 36px auto 0;
    width: 100%;
    max-width: 376px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .lp2604-section6__cta {
        margin-top: 56px;
        max-width: 498px;
    }
}

.lp2604-section6__cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.lp2604-section6__cta img {
    display: block;
    width: 100%;
    height: auto;
}

/* -------------------------------------------------------------
 * 07: 申込みから合格までの流れ
 *
 * 紺色背景セクション(セクション05と同じ #12264f)。
 * SP/PC共通: メイン見出し → 4ステップ縦積み(各: 番号 + 説明 + アイコン) → CTA画像
 * カードレイアウトはほぼ同じ、サイズだけ調整。
 * ------------------------------------------------------------- */
.lp2604-section7 {
    background: #12264f; /* セクション05と統一 */
    padding: 36px 16px 40px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #fff;
}

@media (min-width: 768px) {
    .lp2604-section7 {
        padding: 80px 32px;
    }
}

.lp2604-section7__inner {
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .lp2604-section7__inner {
        max-width: 600px;
    }
}

/* メイン見出し */
.lp2604-section7__title {
    margin: 0 0 28px;
    color: #fff;
    font-weight: 900;
    font-size: clamp(22px, 6.7vw, 28px);
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 768px) {
    .lp2604-section7__title {
        font-size: 30px;
        margin-bottom: 40px;
    }
}

/* 4ステップリスト */
.lp2604-section7__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .lp2604-section7__steps {
        gap: 20px;
    }
}

/* 1ステップカード */
.lp2604-section7__step {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 18px 14px 18px 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 92px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .lp2604-section7__step {
        padding: 22px 24px 22px 76px;
        min-height: 136px;
        gap: 24px;
        border-radius: 16px;
    }
}

/* 番号(白カード左端に大きく表示) */
.lp2604-section7__num {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #12264f;
    font-weight: 900;
    font-size: 28px;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1;
}

@media (min-width: 768px) {
    .lp2604-section7__num {
        width: 60px;
        font-size: 30px;
    }
}

/* 説明文ブロック(中央) */
.lp2604-section7__body {
    flex: 1 1 auto;
    min-width: 0;
}

.lp2604-section7__desc {
    margin: 0;
    color: #12264f;
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 500;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .lp2604-section7__desc {
        font-size: 18px;
        line-height: 1.6;
    }
}

.lp2604-section7__note {
    margin: 4px 0 0;
    color: #12264f;
    font-size: clamp(8px, 2.3vw, 10px);
    font-weight: 400;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .lp2604-section7__note {
        font-size: 13px;
    }
}

/* アイコン(右端) */
.lp2604-section7__icon {
    flex: 0 0 auto;
    width: 56px;
    height: auto;
    align-self: center;
}

@media (min-width: 768px) {
    .lp2604-section7__icon {
        width: 80px;
    }
}

/* CTA(申込みへ進む画像ボタン) */
.lp2604-section7__cta {
    display: block;
    margin: 28px auto 0;
    width: 100%;
    max-width: 376px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
    .lp2604-section7__cta {
        margin-top: 48px;
        max-width: 498px;
    }
}

.lp2604-section7__cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.lp2604-section7__cta img {
    display: block;
    width: 100%;
    height: auto;
}

/* -------------------------------------------------------------
 * 08: LINEアカウントCTA
 *
 * バナー画像のみ。背景色をバナー画像と同じ緑(#3BC027)に塗り潰し、
 * PCで画像両サイドに白い余白が出ないようにする。
 * SP では画像が画面幅100%に伸びるため緑背景は見えない。
 * ------------------------------------------------------------- */
.lp2604-section8 {
    /* 画像端と境目が見えないようバナー画像と同じ緑色で塗り潰す
       (Figma指定 #3cc027 ≈ 画像実色 #3BC027 — R値が1だけ違うが視覚的に同色。
        境目が出ないよう画像実色 #3BC027 を採用) */
    background: #3BC027;
    padding: 0;
    margin: 0;
    line-height: 0; /* img の下端の謎の余白を消す */
}

.lp2604-section8__link {
    display: block;
    /* PC: Figma の画像表示幅 ~1299px に合わせて max-width を設定。
       これより広いビューポートでは左右に緑背景が見えるが、
       それは設計意図(画像と同色なので途切れに見えない)。 */
    max-width: 1300px;
    margin: 0 auto;
    transition: opacity 0.2s ease;
}

.lp2604-section8__link:hover {
    opacity: 0.95;
}

.lp2604-section8__image {
    display: block;
    width: 100%;
    height: auto;
}

/* -------------------------------------------------------------
 * JS互換シム: 既存共有JS が動的に付与する旧色クラスを #12264F に上書き
 *
 * /20251225assets/js/script.js は触らない方針のため、JS が走った後に
 * 設定される以下のクラスを CSS 側で上書きして新カラー #12264F に統一する。
 *
 * - switchExamTab(): SP タブ切替時に bg-[#2d5da7] / bg-[#c9a54d] /
 *                    hover:border-[#2d5da7] / hover:border-[#c9a54d]
 *                    を動的にセット
 * - 動的フォーム生成: input に focus:border-[#2d5da7] をセット
 *
 * 影響範囲: このCSSがロードされる新LP(/2604re/) のみ。
 * 既存サイトの他ページは無影響。
 * ------------------------------------------------------------- */
.bg-\[\#2d5da7\],
.bg-\[\#c9a54d\] {
    background-color: #12264F !important;
}

.hover\:border-\[\#2d5da7\]:hover,
.hover\:border-\[\#c9a54d\]:hover {
    border-color: #12264F !important;
}

.focus\:border-\[\#2d5da7\]:focus {
    border-color: #12264F !important;
}

/* =============================================================
 * アンカーリンク用 scroll-margin-top 設定
 * 固定ヘッダー(SP: 88px / PC: 64px)の裏に隠れないようにオフセット
 * ============================================================= */
#about,
#levels,
#textbook,
#benefits,
#flow,
#line,
#exam,
#contact {
    scroll-margin-top: 88px; /* SP: ヘッダー高さ分 */
}

@media (min-width: 768px) {
    #about,
    #levels,
    #textbook,
    #benefits,
    #flow,
    #line,
    #exam,
    #contact {
        scroll-margin-top: 64px; /* PC: ヘッダー高さ分 */
    }
}
