/* lp.css  v1.7
   LP（集客用の入口ページ：pages.php で type が landing のページ）の共通レイアウト。
   型：見出し → 直書きの本文（lp-body）→ 強調の箱（lp-box、各節1つ）。
   見出しだけを拾い読みして話が通じるように組む。囲みの中に囲みは作らない。
   読み込み：各ページで $page_styles = ['/lp.css?v=1.7']; */

.lp-reading {
    max-width: 820px;
}

/* ---------- 冒頭 ---------- */
.lp-reading .lp-hero {
    padding: 12px 0 4px;
    margin-bottom: 26px;
    text-align: center;
}
.lp-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 14px;
    background: #f4f8fc;
    border: 1px solid #cce0ff;
    color: #062852;
    font-size: 13px;
    font-weight: 700;
}
.lp-reading .hero-title {
    margin-bottom: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 27px;
    line-height: 1.65;
}
.lp-hero .sp-only {
    display: none;
}

.lp-lead {
    margin: 0;
    font-size: 15.5px;
    line-height: 2;
    color: #3a3a3a;
}
.lp-lead p {
    margin: 0 0 14px;
}
.lp-lead p:last-child {
    margin-bottom: 0;
    color: #062852;
    font-weight: 700;
}

/* ---------- 節と本文（直書き） ---------- */
.lp-reading .lp-section {
    margin-top: 64px;
    margin-bottom: 0;
}
.lp-reading .section-title {
    margin-bottom: 22px;
    font-size: 21px;
    line-height: 1.6;
}
.lp-body {
    font-size: 15px;
    line-height: 1.95;
    color: #3a3a3a;
}
.lp-body p {
    margin: 0 0 16px;
}
.lp-body > p:last-child {
    margin-bottom: 0;
}
.lp-body strong {
    color: #062852;
}

/* 問いかけ：背景なし、細い左線だけ */
.lp-body .lp-key {
    margin: 24px 0;
    padding: 2px 0 2px 18px;
    border-left: 3px solid #8dbcf0;
    color: #062852;
    font-weight: 700;
    line-height: 1.9;
}

/* ---------- 強調の箱 ---------- */
.lp-box {
    margin: 26px 0 28px;
    padding: 30px 32px;
    background: #ffffff;
    border: 1px solid #c9dbee;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(6, 40, 82, 0.07);
    color: #062852;
}
.lp-body .lp-box p {
    color: #222;
}
.lp-body .lp-box .lp-box-point {
    margin: 22px 0 0;
    color: #062852;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.9;
}
.lp-body .lp-box .lp-box-point:first-child {
    margin: 0 0 22px;
}
.lp-box-point strong {
    font-weight: 700;
}

/* 3節：決め文だけの箱 */
.lp-statement {
    padding: 30px 28px;
    border-top: 4px solid #062852;
    text-align: center;
}
.lp-body .lp-statement p {
    margin: 0;
    color: #062852;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.85;
}

/* ---------- 1節：解説と自分の対比 ---------- */
.lp-compare {
    border-top: 2px solid #062852;
}
.lp-compare-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    padding: 10px 4px;
    border-bottom: 1px solid #d2dfed;
    color: #062852;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
}
.lp-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
    padding: 14px 4px;
    border-bottom: 1px solid #e3ebf4;
}
.lp-body .lp-box .lp-compare-cell {
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}
.lp-body .lp-box .lp-compare-cell.is-explain {
    color: #062852;
}
.lp-body .lp-box .lp-compare-cell.is-self {
    color: #222;
    font-weight: 700;
}
.lp-compare-label {
    display: none;
}

/* ---------- 2節：数式・答案写真・アコーディオン ---------- */
.lp-equation {
    max-width: 100%;
    margin: 4px 0 18px;
    padding: 2px 0;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
}
.lp-equation-pair {
    display: flex;
    justify-content: center;
    gap: 0 56px;
}
.lp-equation-pair > div {
    min-width: 0;
}
.lp-reading mjx-container {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    vertical-align: middle;
}

.lp-figure-pair {
    margin: 0;
}
.lp-figure-pair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.lp-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e3ebf4;
    border-radius: 6px;
}
.lp-body .lp-box .lp-figure-label {
    margin: 10px 0 0;
    color: #062852;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    text-align: center;
}
.lp-figure-pair figcaption {
    margin-top: 14px;
    color: #444;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.lp-note {
    margin: 0 0 24px;
    border-top: 1px solid #c9dbee;
    border-bottom: 1px solid #c9dbee;
}
.lp-note .feature-accordion-item {
    border-bottom: 0;
}
.lp-note .feature-accordion-item > summary {
    font-size: 15px;
}
.lp-note .feature-accordion-item > summary:hover {
    background: rgba(255, 255, 255, 0.5);
}
.lp-note .feature-accordion-body {
    padding: 2px 4px 20px;
    font-size: 14.5px;
    line-height: 1.95;
}

/* ---------- 4節：流れ ---------- */
.lp-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lp-flow li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 11px 18px;
    background: #062852;
    border-radius: 999px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}
.lp-flow li + li {
    margin-left: 34px;
}
.lp-flow li + li::before {
    content: "→";
    position: absolute;
    left: -26px;
    color: #8dbcf0;
    font-size: 17px;
    font-weight: 700;
}
.lp-flow li:last-child {
    background: #ffffff;
    border: 2px solid #062852;
    color: #062852;
}
.lp-body .lp-box .lp-flow + p {
    margin-top: 24px;
}

/* ---------- 相談案内 ---------- */
.lp-consult {
    margin-top: 64px;
    padding: 34px 40px;
    background: #ffffff;
    border: 1px solid #a3c9f1;
    border-top: 4px solid #062852;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(6, 40, 82, 0.07);
    font-size: 15px;
    line-height: 1.95;
    color: #333;
}
.lp-consult p {
    margin: 0 0 16px;
}
.lp-cta {
    margin: 26px 0 22px;
}
.lp-cta .btn-internal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(390px, 100%);
    padding: 16px 20px;
    background: #062852;
    color: #ffffff;
    border: 1px solid #062852;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
    text-decoration: none;
}
.lp-cta .btn-internal-link:hover {
    background: #0b3a73;
}
.lp-cta a:focus-visible,
.lp-course-links a:focus-visible {
    outline: 3px solid #8dbcf0;
    outline-offset: 4px;
}
.lp-course-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    font-size: 14px;
}
.lp-course-links a {
    color: #062852;
    text-underline-offset: 4px;
}

/* ---------- スマートフォン ---------- */
@media (max-width: 600px) {
    .lp-reading {
        padding: 0 16px;
    }
    .lp-reading .pc-only {
        display: none;
    }
    .lp-reading .hero-title {
        font-size: 23px;
        letter-spacing: .01em;
    }
    .lp-hero .sp-only {
        display: initial;
    }
    .lp-lead {
        font-size: 15px;
        line-height: 1.95;
    }
    .lp-reading .lp-section {
        margin-top: 52px;
    }
    .lp-reading .section-title {
        font-size: 18.5px;
    }
    .lp-body {
        font-size: 15px;
        line-height: 1.9;
    }
    .lp-body .lp-key {
        padding-left: 14px;
    }

    .lp-box {
        margin: 22px -4px 24px;
        padding: 22px 18px;
    }
    .lp-body .lp-box .lp-box-point {
        font-size: 15.5px;
    }
    .lp-body .lp-statement p {
        font-size: 17px;
        text-align: left;
    }

    /* 対比：1組ずつ縦に */
    .lp-compare-head {
        display: none;
    }
    .lp-compare-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 2px;
    }
    .lp-compare-label {
        display: inline-block;
        min-width: 3em;
        margin-right: 8px;
        padding: 1px 7px;
        border-radius: 4px;
        font-size: 11.5px;
        font-weight: 700;
        line-height: 1.6;
        text-align: center;
        vertical-align: 1px;
    }
    .is-explain .lp-compare-label {
        background: #e3effc;
        color: #062852;
    }
    .is-self .lp-compare-label {
        background: #062852;
        color: #ffffff;
    }

    /* 2題の式：上下に */
    .lp-equation-pair {
        flex-direction: column;
        gap: 0;
    }

    /* 答案写真：上下に */
    .lp-figure-pair-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    /* 流れ：2×2 */
    .lp-flow {
        flex-wrap: wrap;
        gap: 12px 30px;
    }
    .lp-flow li {
        min-width: 0;
        width: calc(50% - 15px);
        font-size: 14.5px;
    }
    .lp-flow li + li {
        margin-left: 0;
    }
    .lp-flow li + li::before {
        left: -23px;
    }
    .lp-flow li:nth-child(3)::before {
        content: "";
    }

    .lp-consult {
        margin-top: 52px;
        padding: 26px 18px;
        font-size: 14.5px;
    }
    .lp-course-links {
        flex-direction: column;
        align-items: center;
    }
}

/* ---------- v1.1 追加：箱の中のリスト ---------- */
.lp-body .lp-box .lp-list {
    margin: 0 0 18px;
}
.lp-body .lp-box .lp-list li {
    margin-bottom: 10px;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}
.lp-body .lp-box .lp-list li:last-child {
    margin-bottom: 0;
}
.lp-body .lp-box .lp-list + p {
    margin-top: 0;
}

/* ---------- v1.1 追加：手順と画像の横並び（lp-side） ---------- */
.lp-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
}
.lp-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: lp-step;
}
.lp-steps li {
    position: relative;
    padding: 0 0 0 40px;
    color: #062852;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    counter-increment: lp-step;
}
.lp-steps li + li {
    margin-top: 22px;
}
.lp-steps li::before {
    content: counter(lp-step);
    position: absolute;
    top: -1px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #062852;
    color: #ffffff;
    font-size: 13px;
}
.lp-steps li + li::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 12px;
    width: 2px;
    height: 16px;
    background: #8dbcf0;
}
.lp-side-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---------- v1.1 追加：3つの横並び（lp-trio） ---------- */
.lp-trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0;
}
.lp-trio-item {
    padding: 26px 22px;
}
.lp-trio-item + .lp-trio-item {
    border-left: 1px solid #e3ebf4;
}
.lp-body .lp-box .lp-trio-title {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #062852;
    color: #062852;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}
.lp-body .lp-box .lp-trio-item p:last-child {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.85;
}

/* ---------- v1.1 追加：相談案内の中の悩みの声 ---------- */
.lp-consult .lp-voice {
    margin: 0 0 8px;
    color: #062852;
    font-weight: 700;
}
.lp-consult .lp-voice + p:not(.lp-voice) {
    margin-top: 22px;
}

/* ---------- v1.1 追加：FAQ・関連ページの間隔 ---------- */
.lp-reading .faq-section {
    margin-top: 64px;
}
.lp-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #d2dfed;
}

@media (max-width: 600px) {
    .lp-side {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .lp-trio {
        grid-template-columns: 1fr;
    }
    .lp-trio-item {
        padding: 20px 18px;
    }
    .lp-trio-item + .lp-trio-item {
        border-left: 0;
        border-top: 1px solid #e3ebf4;
    }
    .lp-reading .faq-section {
        margin-top: 52px;
    }
    .lp-related {
        margin-top: 48px;
        padding-top: 32px;
    }
}

/* ---------- v1.3 追加：冒頭の場所ラベル ---------- */
.lp-eyebrow {
    margin: 0 0 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ---------- v1.3 追加：小見出し付きの項目を1つの箱に並べる（lp-points） ---------- */
.lp-points {
    padding-top: 6px;
    padding-bottom: 6px;
}
.lp-point {
    padding: 22px 0;
}
.lp-point + .lp-point {
    border-top: 1px solid #e3ebf4;
}
.lp-body .lp-box .lp-point p {
    margin: 0 0 10px;
}
.lp-body .lp-box .lp-point p:last-child {
    margin-bottom: 0;
}
.lp-point-title {
    margin: 0 0 12px;
    color: #062852;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}
.lp-body .lp-point-link,
.lp-body .lp-inline-link {
    font-size: 14px;
    font-weight: 700;
}
.lp-body .lp-point-link a,
.lp-body .lp-inline-link a {
    color: #062852;
    text-underline-offset: 3px;
}
.lp-body .lp-point-link a::after,
.lp-body .lp-inline-link a::after {
    content: " →";
}

/* ---------- v1.3 追加：箱を2つ並べる（lp-pair） ---------- */
.lp-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.lp-pair > .lp-box {
    margin: 0;
}
.lp-body .lp-pair .lp-box p {
    margin: 0 0 12px;
}
.lp-body .lp-pair .lp-box p:last-child {
    margin-bottom: 0;
}

/* ---------- v1.3 追加：箱なしの横並び ---------- */
.lp-side-plain {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

/* ---------- v1.3 追加：トップへのリンク ---------- */
.lp-home-link {
    margin: 36px 0 8px;
    text-align: center;
}
.lp-home-link a {
    color: #062852;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .lp-pair {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .lp-point {
        padding: 18px 0;
    }
    .lp-point-title {
        font-size: 16px;
    }
}

/* ---------- v1.3 追加：FAQの「その他のよくあるご質問」リンク ---------- */
.lp-reading .faq-more-link {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}
.lp-reading .faq-more-link a {
    color: #062852;
    text-underline-offset: 3px;
}

/* ---------- v1.5 追加：番号付きの項目（PCは常時表示、スマホはアコーディオン） ---------- */
.lp-care {
    padding-top: 6px;
    padding-bottom: 6px;
}
.lp-care-guide {
    display: none;
}
.lp-care-item + .lp-care-item {
    border-top: 1px solid #e3ebf4;
}
.lp-care-item > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 10px;
    color: #062852;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    list-style: none;
    cursor: default;
}
.lp-care-item > summary::-webkit-details-marker {
    display: none;
}
.lp-care-item > summary::marker {
    content: "";
}
.lp-care-num {
    flex: 0 0 auto;
    min-width: 32px;
    padding: 4px 8px;
    border-radius: 4px;
    background: #062852;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}
.lp-care-body {
    padding: 0 0 20px 44px;
}
.lp-body .lp-box .lp-care-body p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.9;
}
.lp-body .lp-box .lp-care-body p:last-child {
    margin-bottom: 0;
}

/* ---------- v1.5 追加：箱の外の注記 ---------- */
.lp-body .lp-aside-note {
    margin-top: 20px;
    color: #555;
    font-size: 13.5px;
    line-height: 1.85;
}
.lp-body .lp-aside-note a {
    color: #062852;
    font-weight: 700;
    text-underline-offset: 3px;
}

@media (max-width: 767px) {
    .lp-care-guide {
        display: block;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #e3ebf4;
        color: #667788;
        font-size: 12px;
        text-align: center;
    }
    .lp-care-item > summary {
        position: relative;
        align-items: flex-start;
        padding: 16px 36px 16px 0;
        font-size: 15.5px;
        cursor: pointer;
    }
    .lp-care-item > summary::after {
        content: "＋";
        position: absolute;
        top: 16px;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #eaf2fb;
        color: #062852;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 14px;
        font-weight: 700;
    }
    .lp-care-item[open] > summary::after {
        content: "－";
        background: #062852;
        color: #ffffff;
    }
    .lp-care-body {
        padding: 0 2px 18px 0;
    }
}

/* ---------- v1.5 追加：箱2つの中のリスト ---------- */
.lp-body .lp-pair .lp-box .lp-list {
    margin: 0;
}
.lp-body .lp-pair + p {
    margin-top: 24px;
}

/* ---------- v1.5 追加：attentive-juku の冒頭バッジ（PCは2つずつ2段） ---------- */
@media (min-width: 768px) {
    .page-attentive .lp-hero .tag-container {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        gap: 12px 14px;
    }
    .page-attentive .lp-hero .tag-container .badge-tag {
        text-align: center;
    }
}

/* ---------- v1.6 追加：箱の外のリスト ---------- */
.lp-body .lp-list-title {
    margin: 22px 0 8px;
    color: #062852;
    font-size: 15px;
    font-weight: 700;
}
.lp-body .lp-plain-list {
    margin: 0 0 18px;
}
.lp-body .lp-plain-list li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* ---------- v1.6 追加：相談案内のボタンを2つ並べる（トップページの相談ボタンと同じ大きさ） ---------- */
.lp-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 4px;
}
.lp-cta-buttons .btn {
    min-width: 230px;
}
@media screen and (max-width: 700px) {
    .lp-cta-buttons {
        flex-direction: column;
    }
    .lp-cta-buttons .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ---------- v1.7 追加：引用の一文（箱にせず明朝で強調） ---------- */
.lp-body .lp-quote {
    margin: 24px 0;
    color: #062852;
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', 'YuMincho', serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.9;
}

/* ---------- v1.7 追加：写真（枠なし・角丸） ---------- */
.lp-photo {
    margin: 30px 0;
}
.lp-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ---------- v1.7 追加：相談案内の中の項目リスト・3つ以上のボタン ---------- */
.lp-consult .lp-consult-list {
    margin: 0 0 8px;
    padding: 0;
}
.lp-consult .lp-consult-list li {
    margin-bottom: 8px;
    line-height: 1.8;
}
.lp-cta-buttons {
    flex-wrap: wrap;
}
/* ボタンが3つのとき：PCは1段目にLINE、2段目に残り2つ */
.lp-cta-stack {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.lp-cta-stack .btn {
    flex: 1 1 200px;
    white-space: nowrap;
}
.lp-cta-stack .btn-line {
    flex-basis: 100%;
}
@media screen and (max-width: 700px) {
    .lp-cta-stack {
        max-width: none;
    }
    .lp-cta-stack .btn {
        flex: none;
    }
}
