@charset "utf-8";

/* =========================================
   1. 基本設定・リセット
   ========================================= */
html {
    font-size: 10px !important;
    height: 100%;
}

@media screen and (max-width:999px) {

    html {
        font-size: 10px !important;
    }

    html.is-top {
        font-size: 1.3vw !important;
    }

    html.is-top body {
        width: 100%;
        overflow-x: hidden;
    }
}

/* =========================================
   Final answer to reference layout request
   ========================================= */
@media screen and (min-width: 768px) {
    .section_wrap h2 {
        min-height: 168px !important;
        padding: 111px 64px 24px 116px !important;
        background:
            radial-gradient(circle at 72px 131px, var(--lp-blue) 0 8px, transparent 9px),
            linear-gradient(180deg, #fff 0 92px, var(--lp-blue-soft) 92px 100%) !important;
        font-size: 25px !important;
        font-weight: 600 !important;
    }

    .section_wrap h2 > p.question_lead {
        margin-top: 5px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    .section_wrap.active:not(.is-answered),
    .section_wrap.is-revealed:not(.is-answered) {
        padding-bottom: 112px !important;
    }

    .question_wrap ul.question_list {
        grid-template-columns: repeat(2, 358px) !important;
        justify-content: center !important;
        gap: 25px 43px !important;
    }

    .question_wrap .question_list li {
        width: 358px !important;
        max-width: 358px !important;
        margin: 0 !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        width: 358px !important;
        min-height: 76px !important;
        padding: 10px 16px !important;
        font-size: 24px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
    }
}

/* =========================================
   Header/logo and select controls final
   ========================================= */
html.is-top header.l-header {
    position: static !important;
}

html.is-top header.l-header img,
.sub-header img {
    width: 220px !important;
    max-width: 64% !important;
    height: auto !important;
}

.section_wrap:nth-last-of-type(1) select,
.personal_detail select {
    width: 100% !important;
    min-height: 42px !important;
    padding: 8px 34px 8px 10px !important;
    box-sizing: border-box !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    color: #111 !important;
    font-size: 14px !important;
    appearance: auto !important;
    box-shadow: none !important;
}

@media screen and (min-width: 768px) {
    html.is-top header.l-header {
        height: 78px !important;
    }

    html.is-top header.l-header img,
    .sub-header img {
        width: 360px !important;
        max-width: 360px !important;
    }

    .section_wrap:nth-last-of-type(1) select,
    .personal_detail select {
        min-height: 58px !important;
        font-size: 18px !important;
    }
}

@media screen and (max-width: 767px) {
    .section_wrap h2 {
        min-height: 126px !important;
        padding: 76px 18px 14px 31px !important;
        background:
            radial-gradient(circle at 16px 95px, var(--lp-blue) 0 5px, transparent 6px),
            linear-gradient(180deg, #fff 0 62px, var(--lp-blue-soft) 62px 100%) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .section_wrap h2 > p.question_lead {
        font-weight: 500 !important;
    }

    .question_wrap .question_list li {
        max-width: 322px !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        min-height: 54px !important;
        font-size: 19px !important;
        font-weight: 600 !important;
    }

    html.is-top header.l-header img,
    .sub-header img {
        width: 220px !important;
        max-width: 220px !important;
        height: auto !important;
    }
}

/* =========================================
   Real final polish: logo / PC spacing / background
   ========================================= */
html.is-top,
html.is-top body {
    background: #f8f0e8 !important;
}

html.is-top header.l-header img,
.sub-header img {
    width: 360px !important;
    max-width: 84% !important;
    height: auto !important;
}

@media screen and (min-width: 768px) {
    html.is-top header.l-header {
        height: 94px !important;
        background: #fff !important;
    }

    html.is-top header.l-header img,
    .sub-header img {
        width: 320px !important;
        max-width: 320px !important;
    }

    .section_wrap h2 {
        font-size: 25px !important;
        line-height: 1.42 !important;
    }

    .section_wrap h2 > p.question_lead {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .section_wrap.active:not(.is-answered),
    .section_wrap.is-revealed:not(.is-answered) {
        padding-bottom: 112px !important;
    }

    .section_wrap.is-answered {
        padding-bottom: 56px !important;
    }
}

/* =========================================
   Absolute final polish override
   ========================================= */
html.is-top,
html.is-top body {
    background: #f8f0e8 !important;
}

html.is-top header.l-header img,
.sub-header img {
    width: 360px !important;
    max-width: 84% !important;
    height: auto !important;
}

@media screen and (min-width: 768px) {
    html.is-top header.l-header {
        height: 94px !important;
        background: #fff !important;
    }

    html.is-top header.l-header img,
    .sub-header img {
        width: 320px !important;
        max-width: 320px !important;
    }

    .section_wrap h2 {
        font-size: 25px !important;
        line-height: 1.42 !important;
    }

    .section_wrap h2 > p.question_lead {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .section_wrap.active:not(.is-answered),
    .section_wrap.is-revealed:not(.is-answered) {
        padding-bottom: 112px !important;
    }

    .section_wrap.is-answered {
        padding-bottom: 56px !important;
    }
}

/* =========================================
   Logo and final PC polish
   ========================================= */
html.is-top,
html.is-top body {
    background: #f8f0e8 !important;
}

html.is-top header.l-header img,
.sub-header img {
    width: 360px !important;
    max-width: 84% !important;
    height: auto !important;
}

@media screen and (min-width: 768px) {
    html.is-top header.l-header {
        height: 94px !important;
        background: #fff !important;
    }

    html.is-top header.l-header img {
        width: 320px !important;
        max-width: 320px !important;
    }

    .sub-header img {
        width: 320px !important;
        max-width: 320px !important;
    }

    .section_wrap h2 {
        font-size: 25px !important;
        line-height: 1.42 !important;
    }

    .section_wrap h2 > p.question_lead {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .section_wrap.active:not(.is-answered),
    .section_wrap.is-revealed:not(.is-answered) {
        padding-bottom: 88px !important;
    }

    .section_wrap.is-answered {
        padding-bottom: 48px !important;
    }
}

/* =========================================
   Sub pages: company / privacy
   ========================================= */
body.sub-page {
    display: block;
    min-height: 100vh;
    background: #fff8f1;
    color: #222222;
    font-family: "Noto Sans JP", "YakuHanJP", sans-serif;
    letter-spacing: 0;
}

.sub-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f4e3d4;
    text-align: center;
    padding: 18px 16px;
    box-sizing: border-box;
}

.sub-header img {
    width: 320px;
    max-width: 82%;
    height: auto;
}

.sub-main {
    width: min(100%, 1080px);
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 10px 30px rgba(7, 80, 154, .08);
}

.sub-hero {
    padding: 56px 28px 48px;
    background: linear-gradient(145deg, #d9530d 0%, #ef741f 58%, #ffb76e 100%);
    color: #fff;
    text-align: center;
}

.sub-hero__en {
    margin: 0 0 10px;
    color: #fff263;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
}

.sub-hero h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.35;
}

.policy-content,
.company-content {
    padding: 54px 72px 72px;
}

.policy-section {
    padding: 0 0 30px;
    margin: 0 0 30px;
    border-bottom: 1px solid #f7e8da;
}

.policy-section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    position: relative;
    margin: 0 0 14px;
    padding-left: 18px;
    color: #d9530d;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.45;
}

.policy-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 6px;
    height: 1.2em;
    border-radius: 999px;
    background: #ef741f;
}

.policy-section p,
.policy-section li {
    font-size: 16px;
    line-height: 1.9;
}

.policy-section p {
    margin: 0 0 12px;
}

.policy-section p:last-child {
    margin-bottom: 0;
}

.policy-section ul {
    margin: 14px 0 0;
    padding-left: 1.4em;
}

.policy-section li {
    margin: 0 0 8px;
    list-style: disc;
}

.company-table {
    border-top: 1px solid #f5ddc9;
}

.company-table dl {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-bottom: 1px solid #f5ddc9;
}

.company-table dt,
.company-table dd {
    margin: 0;
    padding: 18px 22px;
    font-size: 16px;
    line-height: 1.7;
}

.company-table dt {
    background: #fff3e8;
    color: #d9530d;
    font-weight: 700;
}

.company-table dd {
    background: #fff;
}

body.sub-page .c-footer-privacy {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: #4a2b1c !important;
}

body.sub-page .c-footer-privacy__inner {
    max-width: 1080px !important;
    margin: 0 auto !important;
}

@media screen and (max-width: 767px) {
    .sub-header {
        padding: 14px 12px;
    }

    .sub-header img {
        max-width: 78%;
    }

    .sub-main {
        box-shadow: none;
    }

    .sub-hero {
        padding: 40px 20px 34px;
    }

    .sub-hero__en {
        font-size: 14px;
    }

    .sub-hero h1 {
        font-size: 28px;
    }

    .policy-content,
    .company-content {
        padding: 34px 20px 46px;
    }

    .policy-section {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .policy-section h2 {
        font-size: 19px;
    }

    .policy-section p,
    .policy-section li {
        font-size: 14px;
        line-height: 1.85;
    }

    .company-table dl {
        display: block;
    }

    .company-table dt,
    .company-table dd {
        padding: 12px 14px;
        font-size: 14px;
    }

    .company-table dt {
        padding-bottom: 6px;
    }

    .company-table dd {
        padding-top: 6px;
    }
}

body {
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;

    color: #333333;
    font-family: "YakuHanJP", 'Noto Sans JP', 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    line-height: 1.8;
    letter-spacing: .07em;
    font-feature-settings: "palt";
    -webkit-text-size-adjust: none;
}

div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, button, textarea, select, p, blockquote, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

a {
    text-decoration: none;
    color: #333;
}

ul, ol {
    list-style: none;
}

/* フォーム要素 */
input, button, textarea, select {
    font-family: inherit;
    font-size: 1.8rem;
}

input[type="text"], input[type="email"], input[type="tel"] {
    height: 5rem;
    padding: .5rem 1rem;
    border: .3rem solid #dddddd;
    box-sizing: border-box;
    width: 100%;
}

textarea {
    padding: 1rem;
    border: .3rem solid #dddddd;
    box-sizing: border-box;
    width: 100%;
    vertical-align: top;

}

/* ★PC/SP共通の幅制限 */
header.l-header,
div.l-wrap,
section.c-company,
footer.c-footer-privacy {
    width: 100%;
    max-width: 64rem;
}


/* =========================================
   2. ヘッダー
   ========================================= */
header.l-header {
    height: auto;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    background-color: #fff;
    margin: 0 auto;
}

header.l-header img {
    width: auto;
    height: 4.5rem;
}

/* =========================================
   3. メインエリア（コンテンツ）
   ========================================= */
div.l-wrap {
    background-color: #fcfaf7;
    flex: 1;
    display: flex;
    flex-direction: column;
}

section.c-company {
    background-color: #fff;
    flex: 1;
    padding: 0 0rem;
    font-size: 1.6rem;
}

/* =========================================
   4. フッター
   ========================================= */
.c-footer-privacy {
    background-color: #222222;
    color: #ffffff;
    padding: 4rem 0;
    margin-top: auto;
}

.c-footer-privacy__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.c-footer-privacy__link,
.c-footer-privacy__copy {
    width: 100%;
    text-align: center !important;
}

.c-footer-privacy__link {
    margin-bottom: 0.5rem;
}

.c-footer-privacy__link a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
}

.c-footer-privacy__copy small {
    font-size: 1.2rem;
    opacity: 0.8;
    display: block;
}

@media screen and (max-width: 999px) {
    .c-footer-privacy__link a {
        color: #ffffff;
        font-size: 1.5rem;
        font-weight: bold;
        display: inline-block;
    }

    .c-footer-privacy__copy small {
        font-size: 1.3rem;
        opacity: 0.8;
        display: block;
    }
}

/* =========================================
   Reference LP close reproduction
   ========================================= */
html.is-top,
html.is-top body {
    background: #dddddd !important;
}

html.is-top body {
    display: block;
    color: #111;
    font-family: "Noto Sans JP", "YakuHanJP", sans-serif;
    line-height: 1.55;
    letter-spacing: 0;
}

html.is-top header.l-header,
html.is-top div.l-wrap,
html.is-top footer.c-footer-privacy {
    width: 100%;
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
    box-shadow: none;
}

html.is-top header.l-header {
    position: static;
    height: 55px;
    padding: 0;
    align-items: center;
    background: #fff;
    border: 0;
}

html.is-top header.l-header img {
    width: 255px;
    max-width: 78%;
    height: auto;
}

html.is-top div.l-wrap {
    display: block;
    min-height: 0;
    background: #fff;
    overflow: hidden;
}

html.is-top main.l-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.mv-replica {
    position: relative;
    min-height: 390px;
    padding: 20px 16px 0;
    box-sizing: border-box;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 49%, rgba(111, 224, 107, .72) 0 21%, transparent 22%),
        linear-gradient(155deg, #158239 0%, #2eb94e 48%, #4fd865 100%);
    color: #fff;
    text-align: center;
}

.mv-replica::after {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -66px;
    height: 150px;
    background: #fff;
    clip-path: polygon(0 34%, 50% 76%, 100% 34%, 100% 100%, 0 100%);
}

.mv-replica__badge {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 318px;
    min-height: 38px;
    padding: 0 16px;
    border: 3px solid #096832;
    border-radius: 100px;
    background: #fff15e;
    box-shadow: 0 4px 0 #096832;
    color: #116934;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.mv-replica__badge span {
    margin: 0 2px;
    color: #ff7d00;
    font-size: 28px;
    line-height: .8;
}

.mv-replica__lead {
    position: relative;
    z-index: 2;
    margin: 24px 0 4px;
    color: #fff;
    font-size: 21px;
    font-weight: 900;
    text-shadow: 0 2px 0 #096832;
}

.mv-replica__title {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #fff35c;
    font-size: 48px;
    font-weight: 900;
    line-height: 1.08;
    text-shadow:
        3px 3px 0 #0c5733,
        -2px 2px 0 #0c5733,
        0 6px 0 rgba(0, 0, 0, .22);
}

.mv-replica__circles {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    width: 222px;
    margin: 34px 0 0;
}

.mv-replica__circles p {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 4px solid #16803b;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .2);
    color: #0c7a3d;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.02;
}

.mv-replica__circles span {
    color: #f05a24;
}

.mv-replica__person {
    position: absolute;
    right: 12px;
    bottom: 55px;
    z-index: 2;
    width: 126px;
    height: 170px;
}

.mv-replica__face {
    position: absolute;
    top: 0;
    left: 21px;
    width: 86px;
    height: 94px;
    border: 4px solid #222;
    border-radius: 48% 48% 45% 45%;
    background:
        radial-gradient(circle at 35% 48%, #111 0 3px, transparent 4px),
        radial-gradient(circle at 65% 48%, #111 0 3px, transparent 4px),
        radial-gradient(ellipse at 50% 68%, transparent 0 8px, #d96e5b 9px 10px, transparent 11px),
        #ffd8c2;
}

.mv-replica__face::before {
    content: "";
    position: absolute;
    left: -7px;
    top: -10px;
    width: 94px;
    height: 40px;
    border-radius: 50% 50% 34% 34%;
    background: #333;
}

.mv-replica__body {
    position: absolute;
    left: 7px;
    bottom: 0;
    width: 112px;
    height: 88px;
    border: 4px solid #1d1d1d;
    border-radius: 36px 36px 0 0;
    background:
        linear-gradient(62deg, transparent 0 43%, #fff 44% 56%, transparent 57%),
        linear-gradient(118deg, transparent 0 43%, #fff 44% 56%, transparent 57%),
        #3e3028;
}

.number_list,
.fv_step_img,
.chat-intro,
.hero-hook-area,
.outer-header-wrap,
.main_header,
.fv_wrap {
    display: none !important;
}

.chat-safe-text {
    width: 100%;
    margin: 0;
    padding: 9px 16px 8px;
    box-sizing: border-box;
    border: 0;
    border-top: 1px solid #ededed;
    border-bottom: 1px solid #e3e3e3;
    border-radius: 0;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.section_wrap {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0 0 26px;
    background: #fff;
}

.section_wrap.active,
.section_wrap.is-revealed {
    display: block;
    animation: none;
}

.section_wrap h2 {
    position: relative;
    width: 100%;
    min-height: 132px;
    margin: 0;
    padding: 78px 16px 18px 32px;
    box-sizing: border-box;
    border-radius: 0;
    background: linear-gradient(180deg, #fff 0 72px, #fff3e8 72px 100%);
    box-shadow: none;
    color: #121212;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    text-align: left;
}

.section_wrap h2::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    width: 57px;
    height: 57px;
    border: 3px solid #198e45;
    border-radius: 50%;
    background:
        radial-gradient(circle at 36% 43%, #222 0 2px, transparent 3px),
        radial-gradient(circle at 63% 43%, #222 0 2px, transparent 3px),
        radial-gradient(ellipse at 50% 62%, transparent 0 5px, #c55 6px 7px, transparent 8px),
        linear-gradient(135deg, #4b2a1c 0 29%, transparent 30%),
        #ffd8c2;
    box-shadow: none;
}

.section_wrap h2::after {
    content: "借金問題の無料相談の窓口";
    position: absolute;
    left: 88px;
    top: 42px;
    width: auto;
    height: auto;
    background: none;
    color: #111;
    font-size: 15px;
    font-weight: 500;
}

.section_wrap h2 span {
    display: none;
}

.section_wrap h2 > br {
    display: none;
}

.section_wrap h2 > p.question_lead {
    display: block;
    margin: 4px 0 0;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.section_wrap h2 > p.question_lead::before {
    content: "※";
}

.section_wrap h2::marker {
    display: none;
}

.section_wrap h2 {
    padding-left: 32px;
}

.section_wrap h2 > p::after {
    content: "";
}

.section_wrap:not(.js-validation) h2 {
    border-top: 14px solid #f7f7f7;
}

.section_wrap:not(.js-validation) h2:has(.question_lead)::selection {
    background: transparent;
}

.section_wrap:not(.js-validation) h2 {
    background:
        radial-gradient(circle at 17px 104px, #1ca34d 0 6px, transparent 7px),
        linear-gradient(180deg, #fff 0 72px, #fff3e8 72px 100%);
}

.question_wrap {
    width: 100%;
    margin: 0;
    padding: 25px 32px 0;
    box-sizing: border-box;
}

.question_wrap ul.question_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.question_wrap .question_list li {
    width: 100%;
}

.question_wrap .question_list li::after {
    display: none;
}

.question_wrap .question_list li label,
.question_wrap .checkbox_list li label {
    min-height: 57px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border: 0;
    border-radius: 100px;
    background: linear-gradient(180deg, #3f9c53 0%, #388e4e 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .24), 0 2px 0 #78c987;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}

.question_wrap .question_list li label::after {
    display: none;
}

.question_wrap .question_list li label:has(input[type="radio"]:checked),
.question_wrap .question_list li label:has(input[type="checkbox"]:checked) {
    background: linear-gradient(180deg, #2a7d42 0%, #176f35 100%);
    color: #fff;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), 0 2px 0 #65b873;
}

.has-radio-options .nextBtn {
    display: none;
}

button.nextBtn,
.section_wrap:nth-last-of-type(1) button.nextBtn {
    width: calc(100% - 64px);
    min-height: 57px;
    margin: 22px 32px 0;
    border: 0;
    border-radius: 100px;
    background: linear-gradient(180deg, #40a956 0%, #238640 100%);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 3px 0 #12622b;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0;
}

button.nextBtn:disabled {
    background: #b8b8b8;
    box-shadow: 0 3px 0 #999;
    color: #fff;
}

.chat-answer {
    display: none;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 6px;
    padding: 0 32px;
    margin: 0 0 20px;
}

.chat-answer.is-visible {
    display: flex;
}

.chat-answer p {
    max-width: 73%;
    margin: 0;
    padding: 9px 16px;
    border-radius: 18px;
    background: #86d957;
    color: #11240c;
    box-shadow: none;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
}

.chat-read {
    color: #222;
    font-size: 10px;
    line-height: 1;
}

.section_wrap.is-answered .question_wrap,
.section_wrap.is-answered .nextBtn {
    display: none;
}

.section_wrap.js-validation {
    padding: 0 0 32px;
    background: #fff;
}

.section_wrap.js-validation .last-step {
    margin: 0;
    padding: 22px 24px;
    border-top: 14px solid #f7f7f7;
    border-radius: 0;
    background: #fff3e8;
    box-shadow: none;
    text-align: center;
}

.last-step__label {
    margin: 0 0 4px;
    color: #0b8e43;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.last-step__label::after {
    display: none;
}

.last-step__label .step-num {
    font-size: 42px;
}

.last-step__lead {
    margin: 0 0 8px;
    color: #111;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
    letter-spacing: 0;
}

.last-step__note {
    color: #222;
    font-size: 13px;
    line-height: 1.55;
    letter-spacing: 0;
}

.last-step__note strong {
    color: #0b8e43;
}

.section_wrap:nth-last-of-type(1) .question_wrap {
    max-width: none;
    margin: 0;
    padding: 22px 32px 0;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl,
.section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(4),
.section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(5) {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dt {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 0 0 5px;
    padding: 0;
    color: #111;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    text-align: left;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dt::before {
    order: 2;
    width: auto;
    min-width: 28px;
    height: 17px;
    padding: 0 4px;
    border-radius: 2px;
    background: #777;
    color: #fff;
    font-size: 10px;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl.required dt::before {
    background: #e21f16;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dd {
    width: 100%;
    border: 0;
    padding: 0;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dd input,
.section_wrap:nth-last-of-type(1) .question_wrap>dl dd textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    box-sizing: border-box;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    background: #fff;
    box-shadow: none;
    color: #111;
    font-size: 14px;
}

.section_wrap:nth-last-of-type(1) textarea {
    min-height: 86px;
}

.personal_detail input::placeholder,
.personal_detail textarea::placeholder {
    color: #777;
    font-size: 12px;
}

.input_note {
    margin: 5px 0 0;
    color: #111;
    font-size: 11px;
    line-height: 1.45;
}

.agreement_container {
    margin: 18px 0 14px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.agreement_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 9px;
    padding: 10px;
    border-radius: 4px;
    background: #fff3e8;
    color: #111;
    font-size: 13px;
    font-weight: 900;
}

.check_important {
    display: flex;
    align-items: center;
    gap: 7px;
}

.check_important input {
    width: 18px;
    height: 18px;
    accent-color: #238640;
}

.require_label {
    min-width: 28px;
    padding: 2px 4px;
    border-radius: 2px;
    background: #e21f16;
    color: #fff;
    font-size: 10px;
    text-align: center;
}

.section_wrap:nth-last-of-type(1) .question_wrap .privacy {
    width: 100%;
    height: 86px;
    margin: 10px 0 0;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    background: #fff;
    color: #111;
    font-size: 10px;
    line-height: 1.5;
}

.section_wrap:nth-last-of-type(1) button.nextBtn {
    width: calc(100% - 64px);
    margin: 18px 32px 0;
}

.c-footer-privacy {
    padding: 20px 0 18px;
    background: #1e1e1e;
    color: #fff;
}

.c-footer-privacy__inner {
    padding: 0 16px;
}

.c-footer-privacy__link {
    margin: 0 0 8px;
}

.c-footer-privacy__link a {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.c-footer-privacy__copy small {
    color: rgba(255, 255, 255, .65);
    font-size: 11px;
}

@media screen and (min-width: 391px) {
    html.is-top header.l-header,
    html.is-top div.l-wrap,
    html.is-top footer.c-footer-privacy {
        max-width: 390px;
    }
}

@media screen and (max-width: 390px) {
    .mv-replica__badge {
        min-width: 0;
        width: calc(100% - 28px);
        font-size: 17px;
    }

    .mv-replica__title {
        font-size: 45px;
    }

    .mv-replica__person {
        right: 4px;
    }
}

/* =========================================
   5. 相談ページの中身
   ========================================= */
main.l-main {
    background-color: #fff;
    border-radius: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding-top: 4rem;
    width: 92%;
    margin: 3rem auto 5rem;
    max-width: 60rem;
}

main.l-main h1 {
    margin: 0 0 2.8rem;
}

main.l-main h1 img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.fv_wrap {
    text-align: center;
    margin: 0;
    padding: 0;
}

.fv_wrap.hidden {
    display: none;
}

.main_header {
    display: none;
    text-align: center;
    margin-bottom: 2.8rem;
}

.main_header.active {
    display: block;
}

.fv_pc, .debt_pc {
    display: none !important;
}

.fv_sp, .debt_sp {
    display: inline-block !important;
}

.number_list {
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    margin: 0 0 2rem;
}

.number_list li {
    width: 7.4rem;
    height: 3.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid .4rem #c1c1c1;
    border-radius: 10rem;
    padding: 0 0 .4rem;
}

.number_list span {
    height: 2.4rem;
    color: #c1c1c1;
    font-size: 2rem;
    font-weight: 600;
    line-height: 2.4rem;
}

.number_list li.active {
    background-color: #db651b;
    border: solid .4rem #db651b;
}

.number_list li.active span {
    color: #fff;
}

.number_list+p {
    color: #333;
    font-size: 2.3rem;
    text-align: center;
    margin: 0 0rem;
}

.section_wrap {
    width: 100%;
    padding: 0 4rem 7.3rem;
    box-sizing: border-box;
    display: none;
    margin: 0 auto;
}

.section_wrap.active {
    display: block;
}

.section_wrap h2 {
    width: 100%;
    color: #333;
    font-size: 2.3rem;
    font-weight: 500;
    padding: 3.4rem 0 0;
    margin: 0 auto 4.4rem;
    position: relative;
    font-weight: 00;
    text-align: center;
}

.section_wrap h2::after {
    content: "";
    width: 100%;
    height: .5rem;
    background-image: radial-gradient(#fff4e9 2px, transparent 2px);
    background-position: left top;
    background-repeat: repeat-x;
    background-size: .5rem .5rem;
    position: absolute;
    top: -0.5rem;
    left: 0;
}

.section_wrap h2 span {
    width: 6.7rem;
    display: inline-flex;
    justify-content: center;
    background-color: #db651b;
    border-radius: 10rem;
    color: #fff;
    font-weight: 600;
    margin: 0 1.4rem 0 0;
}

.question_wrap {
    width: 100%;
    margin: 0 auto 4.8rem;
}

.question_wrap ul.question_list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.question_wrap .question_list li {
    position: relative;
    width: calc(50% - 1.25rem);
}

.question_wrap .question_list li::after {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    background-color: #a8a8a8;
    border-radius: 100px;
    position: absolute;
    bottom: -.8rem;
    left: 0;
}

.question_wrap .question_list li label {
    width: 100%;
    height: 9rem;
    line-height: 9rem;
    display: block;
    background-color: #c1c1c1;
    border-radius: 100px;
    color: #fff;
    font-size: 2.8rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.question_wrap .question_list li input[type="radio"] {
    display: none;
}

.question_wrap .question_list li label:has(input[type="radio"]:checked) {
    background: linear-gradient(92.01deg, #f1cb1a 0, #eb8c2a 100%);
}

.question_wrap .question_list li:has(label input[type="radio"]:checked)::after {
    background-color: #db6914;
}

button.nextBtn {
    width: 35.5rem;
    max-width: 100%;
    height: 8.3rem;
    display: block;
    background: linear-gradient(92.01deg, #f1cb1a 0, #eb8c2a 100%);
    border: none;
    border-radius: 5rem;
    box-shadow: 0 6px 0 0 #db6914;
    color: #fff;
    font-size: 2.6rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: .16em;
    margin: 0 auto;
    z-index: 20;
    cursor: pointer;
}

button.nextBtn:disabled {
    background-image: linear-gradient(0deg, #c3c3c3, #ededed);
    box-shadow: 0 .6rem 0 0 rgba(117, 117, 117, 1);
    color: #333;
    cursor: default;
}

.section_wrap:nth-last-of-type(1) .question_wrap {
    max-width: 88.7rem;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl {
    display: flex;
    border-bottom: solid .2rem #ddd;
    align-items: center;
    padding: 2.6rem 0;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dt {
    width: 28.2rem;
    height: 5rem;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    font-size: 2rem;
    align-items: center;
    font-weight: bold;
    padding: 0 2rem 0 0;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dd {
    width: calc(100% - 28.2rem);
    border-left: solid .2rem #dddddd;
    padding: 0 0 0 2.2rem;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dd input, .section_wrap:nth-last-of-type(1) .question_wrap>dl dd textarea {
    width: 100%;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl.required dt {
    position: relative;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dt::before {
    content: "任意";
    width: 3.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #999;
    border-radius: .5rem;
    color: #fff;
    font-size: 1.2rem;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl.required dt::before {
    content: "必須";
    background-color: #df2514;
    color: #fff;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-last-of-type(1) {
    margin: 0 0 3rem;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-last-of-type(1)+p label {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: .5rem;
    font-size: 2.2rem;
    font-weight: bold;
}

.section_wrap:nth-last-of-type(1) .question_wrap .privacy {
    height: 14rem;
    font-size: 1.6rem;
    line-height: 1.7;
    padding: 2rem;
    border: solid .2rem #ccc;
    background-color: #fafafa;
    overflow-y: scroll;
    box-sizing: border-box;
    margin-top: 1rem;
}


.section_wrap:nth-last-of-type(1) .privacy h3, .section_wrap:nth-last-of-type(1) .privacy h4 {
    font-weight: 700;
    margin: 0 0 .5rem;
}

.section_wrap:nth-last-of-type(1) .privacy h4+p {
    margin: 0 0 1rem;
}

.section_wrap:nth-last-of-type(1) .privacy dl {
    margin: 0 0 1rem;
}

.section_wrap:nth-last-of-type(1) .privacy dl dt {
    font-weight: 700;
}

.section_wrap:nth-last-of-type(1) button.nextBtn {
    letter-spacing: .12em;
}

.section_wrap:nth-last-of-type(1) select {
    height: 6.2rem;
    padding: 0 1.5rem;
    border: 0.3rem solid #dddddd;
    border-radius: 0.8rem;
    background-color: #fff;
    box-shadow: inset 0 0.4rem 0.6rem rgba(0, 0, 0, 0.08);
    font-size: 2rem;
}

.section_wrap:nth-last-of-type(1) textarea {
    min-height: 16rem;
    resize: vertical;
    font-size: 1.8rem;
}

.section_wrap h2,
.question_wrap {
    margin-top: 1.6rem;
}

.question_lead {
    margin-top: 1rem;

}


/* =========================================
   6. プライバシーポリシー用スタイル
   ========================================= */
.c-company__inner {
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.c-company__logo-wrapper.center {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.c-company__logo {
    max-width: 20rem;
    height: auto;
}

.c-company__privacy-ttl {
    font-size: 2.4rem;
    color: #222222;
    border-bottom: 2px solid #6e412d;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    margin-top: 5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.c-table-style01 {
    width: 100%;
    margin: 0 0 5rem 0;
    border-top: 1px solid #e0e0e0;
}

.c-table-style01 dl {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
}

.c-table-style01 dt {
    width: 25%;
    padding: 1.5rem 2rem;
    background-color: #fffaf6;
    font-weight: bold;
    color: #222222;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.c-table-style01 dd {
    width: 75%;
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.c-company__privacy-content-inner {
    padding: 1rem 0;
}

.c-company__privacy-content-inner .sec {
    margin-bottom: 4rem;
}

.c-company__privacy-content-inner .sec .ttl {
    font-size: 1.8rem;
    color: #222222;
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
    border-left: 0.5rem solid #6e412d;
    font-weight: bold;
    line-height: 1.4;
}

.c-company__privacy-content-inner .txt01 {
    font-size: 1.5rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.c-company__privacy-content-inner .txt01 strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #222222;
    font-weight: bold;
}

.c-company__privacy-content-inner .list {
    margin: 1rem 0 2rem;
    padding-left: 2rem;
}

.c-company__privacy-content-inner .list li {
    margin-bottom: 0.8rem;
    list-style-type: disc;
    font-size: 1.5rem;
}


/* =========================================
   7. SP用レイアウト調整 (max-width: 999px)
   ========================================= */
@media screen and (max-width:999px) {

    /* 共通: ヘッダー */
    header.l-header {
        padding: 0rem 0;
    }

    /* 共通: バナー */
    .outer-header-wrap {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .outer-header-wrap img {
        width: 100%;
        display: block;
    }

    footer.c-footer-privacy {
        max-width: 100%;
    }

    html.is-top header.l-header img {
        height: auto;
        width: 80%;
        max-width: 68rem;
    }

    html.is-top div.l-wrap,
    html.is-top main.l-main {
        max-width: 100%;
        width: 92%;
        margin: 3rem auto 5rem;
        border-radius: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    html.is-top div.l-wrap {
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .number_list+p {
        width: 92.8%;
        font-size: 2.6rem;
        margin: 1rem auto;
        text-align: center;
    }

    .section_wrap {
        width: 100%;
        padding: 1rem 4% 7.3rem;
    }

    .section_wrap h2 {
        width: 100%;
        font-size: 2.8rem;
    }

    .section_wrap h2::after {
        height: 2rem;
        background-size: 2rem 2rem;
        bottom: -1rem;
    }

    .section_wrap h2 span {
        width: 7.8rem;
        margin: 0 2rem 0;

    }

    button.nextBtn {
        font-size: 2.6rem;
    }

    .section_wrap:nth-last-of-type(1) h2 {
        margin: 0 auto;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl {
        width: 87%;
        margin: 0 auto;
        flex-direction: column;
        padding: 3rem 0;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl dt {
        width: 100%;
        justify-content: center;
        font-size: 2.6rem;
        text-align: center;
        padding: 0;
        margin: 0 0 1.2rem;
        position: relative;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl dd {
        width: 100%;
        border-left: 0;
        padding: 0;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl dd input {
        height: 7rem;
        line-height: 7rem;
        padding: 0 1rem;
        font-size: 2.6rem;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl dt::before {
        width: 6.1rem;
        height: 3.8rem;
        font-size: 1.8rem;
        position: absolute;
        transform: translateY(-50%);
        top: 50%;
        right: 0;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-last-of-type(1) {
        margin: 0 auto;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-last-of-type(1)+p label {
        font-size: 2.6rem;
        padding: 5rem 0 0;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap .privacy {
        width: 87%;
        font-size: 1.8rem;
        margin: 4rem auto 0;
    }

    .sp_only {
        display: inline;
    }

    .thanks h2 {
        font-size: 3.2rem;
        line-height: 1.4;
        margin-bottom: 2rem;
    }

    .thanks h2+p {
        width: 100%;
        font-size: 1.8rem;
        line-height: 1.6;
        margin-bottom: 4rem;
    }

    /* --- プライバシーポリシー用SP調整 --- */
    .c-company__inner {
        width: 100%;
        padding: 0 4%;
    }

    .c-company__logo-wrapper.center {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .c-company__logo {
        max-width: 90%;
    }

    .c-company__privacy-ttl {
        font-size: 2rem;
        margin-top: 4rem;
        margin-bottom: 2rem;
    }

    .c-table-style01 dl {
        display: block;
    }

    .c-table-style01 dt {
        width: 100%;
        padding: 1.5rem 1.5rem 0.5rem;
        background-color: transparent;
        font-size: 1.4rem;
    }

    .c-table-style01 dd {
        width: 100%;
        padding: 0.5rem 1.5rem 1.5rem;
        font-size: 1.4rem;
    }

    .c-company__privacy-content-inner .sec .ttl {
        font-size: 1.6rem;
        padding-left: 1rem;
        border-left-width: 0.4rem;
        margin-bottom: 1rem;
    }

    .c-company__privacy-content-inner .txt01 {
        font-size: 1.4rem;
    }

    .c-company__privacy-content-inner .list li {
        font-size: 1.4rem;
    }

    .c-footer-privacy {
        padding: 3rem 0;
    }
}


/* =========================================
   8. PC用レイアウト上書き設定 (768px～)
   ========================================= */
@media screen and (min-width: 768px) {

    header.l-header, main.l-main {
        zoom: 0.7;
    }

    header.l-header img {
        height: 5rem;
        width: auto;
    }

    .fv_sp, .debt_sp {
        display: none !important;
    }

    .fv_pc, .debt_pc {
        display: inline-block !important;
    }

    .outer-header-wrap img {
        width: 100%;
        vertical-align: bottom;
    }

    main.l-main {
        width: 94%;
        max-width: 80rem;
        margin: 4rem auto 8rem;
    }

    .section_wrap {
        width: 100%;
        padding: 0 4rem 7.3rem;
    }

    .section_wrap h2, .question_wrap {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {

    .number_list li {
        width: 9rem;
        height: 5rem;
        border-width: .4rem;
        padding-bottom: .2rem;
    }

    .number_list span {
        height: 2.8rem;
        font-size: 2.2rem;
        line-height: 2.8rem;
    }
}


/* =========================================
   10. 追加調整（簡単3タップ画像）
   ========================================= */
.fv_step_img {
    text-align: center;
    width: 100%;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    box-sizing: border-box;
}

.fv_step_img img {
    max-width: 100%;
    width: 40rem;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media screen and (max-width: 999px) {
    .fv_step_img {
        margin-bottom: 1.5rem;
    }
}

.last-step {
    text-align: center;
    margin: 0px 0 5px;
    padding: 0px;
}

/* あと1STEP！ */
.last-step__label {
    position: relative;
    display: inline-block;
    font-size: 3.3rem;
    font-weight: 800;
    color: #db651b;
    margin-bottom: 5px;
    padding: 0 16px;
    z-index: 1;
    letter-spacing: 0.2em;

}

/* 「1」だけ大きく */
.last-step__label .step-num {
    font-size: 3em;
    font-weight: 900;
    line-height: 1;
    margin: 0 2px;
    position: relative;
}


/* 黄色マーカー */
.last-step__label::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: 100%;
    height: 0.6em;
    background: #ffff45;
    z-index: -1;
    border-radius: 4px;
}

/* 説明文 */
.last-step__lead {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1.5;
    color: #e45c0b;
    margin-bottom: 5px;
    text-align: center;
    letter-spacing: 0.06em;

}

/* 注意・安心文言 */
.last-step__note {
    font-size: 2.6rem;
    line-height: 1.6;
    color: #666;
    letter-spacing: 0.06em;

}

/* 強調部分（守秘義務・無料） */
.last-step__note strong {
    color: #db651b;
    font-weight: 600;
    letter-spacing: 0.06em;

}


/* Q5の1項目目のみ調整 */
.section_wrap:nth-of-type(5) .question_list li:first-child label {
    font-size: 2.5em;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.input_note {
    font-size: 1.7em;
    color: #666;
    margin-top: 5px;
}


@media screen and (max-width: 768px) {
    .input_note {
        font-size: 2.3em;
    }
}

/* チェックボックスもラジオボタンと同じ見た目にする */
.question_wrap .question_list li input[type="checkbox"] {
    display: none;
    /* デフォルトの四角いチェックを消す */
}

/* チェックされた時のラベルの背景色（ラジオボタンと統一） */
.question_wrap .question_list li label:has(input[type="checkbox"]:checked) {
    background: linear-gradient(92.01deg, #f1cb1a 0, #eb8c2a 100%);
}

/* チェックされた時の影の色（ラジオボタンと統一） */
.question_wrap .question_list li:has(label input[type="checkbox"]:checked)::after {
    background-color: #db6914;
}

/* Q4のチェックボックスリスト専用スタイル */
.question_wrap .checkbox_list li label {
    font-size: 2.6rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 9rem;
    text-align: center;
    padding: 0 0.5rem;
}

/* スマホ等、画面幅が狭い時の調整 */
@media screen and (max-width: 999px) {
    .question_wrap .checkbox_list li label {
        font-size: 2.5rem;
        height: 10rem;
    }
}

/* Q5(個人情報入力)の特定の2項目のみ、ラベルと入力欄の余白を調整 */

.section_wrap:nth-last-of-type(1) .question_wrap>dl dt {
    line-height: 1.3;
}

/* 2. 入力欄（dd）との間の余白、および項目ごとの上下余白を調整 */
/* nth-of-type で「サイト名」と「経緯」の項目（4番目と5番目のdl）をピンポイント指定 */
.section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(4),
.section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(5) {
    padding: 3.5rem 0;
}

@media screen and (max-width: 999px) {

    /* スマホ版：ラベルと入力欄が縦並びになるため、その間の余白を調整 */
    .section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(4) dt,
    .section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(5) dt {
        margin-bottom: 2rem;
        height: auto;
    }
}

/* --- Q5(個人情報入力) プレースホルダーの文字サイズ調整 --- */

/* 1〜4番目の入力欄（input）のプレースホルダーを少し小さく */
.personal_detail input::placeholder {
    font-size: 1.6rem;
    color: #999;
}

/* 5番目のテキストエリア（textarea）のプレースホルダーを大きくして他と統一 */
.personal_detail textarea::placeholder {
    font-size: 1.6rem;
    color: #999;
    line-height: 1.7;
}

/* =========================================
   Chat LP redesign
   ========================================= */
html.is-top {
    background: #f5e7db;
}

html.is-top body {
    background: linear-gradient(180deg, #fffbf7 0%, #f5e7db 38%, #f7eee6 100%);
    letter-spacing: 0;
}

html.is-top header.l-header {
    position: sticky;
    top: 0;
    z-index: 50;
    max-width: 64rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #eaded4;
    box-shadow: 0 4px 16px rgba(38, 64, 84, 0.08);
}

html.is-top div.l-wrap {
    max-width: 64rem;
    background: #f5e7db;
    box-shadow: 0 0 28px rgba(36, 62, 84, 0.12);
    overflow: hidden;
}

.hero-hook-area {
    background: #ffffff;
    padding: 1.8rem 2rem 1.3rem;
    border-bottom: 1px solid #f1e4d8;
}

.hook-title {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    line-height: 1.45;
}

.hook-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: .8rem;
}

.hook-tags .tag,
.hook-tags .tag-etc {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0 1rem;
    border-radius: 100px;
    background: #eff7ed;
    color: #1f8f49;
    font-size: 1.5rem;
    font-weight: 700;
}

.hook-tags .tag-etc {
    background: transparent;
    color: #53626d;
    padding: 0;
}

.hook-main-text {
    display: block;
    color: #222222;
    font-size: 2.4rem;
    font-weight: 900;
}

.outer-header-wrap {
    background: #ffffff;
}

.outer-header-wrap .fv_wrap,
.main_header {
    margin: 0;
}

.outer-header-wrap img {
    width: 100%;
    display: block;
}

html.is-top main.l-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 4rem;
    border-radius: 0;
    box-shadow: none;
    background: #f5e7db;
}

.chat-intro {
    position: relative;
    padding: 2.6rem 2.2rem 1.8rem;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #f3e8de;
    border-bottom: 1px solid #c9dce9;
}

.chat-intro__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0 1.4rem;
    border-radius: 100px;
    background: #ffe978;
    color: #222222;
    font-size: 1.6rem;
    font-weight: 800;
}

.chat-intro__title {
    margin: 1rem 0 .8rem;
    color: #222222;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.35;
}

.chat-intro__text,
.chat-safe-text {
    color: #526574;
    font-size: 1.55rem;
    line-height: 1.7;
}

.chat-safe-text {
    width: calc(100% - 3.2rem);
    margin: 1.4rem auto 2.4rem;
    padding: 1rem 1.2rem;
    border-radius: .8rem;
    background: rgba(255, 255, 255, 0.68);
    text-align: center;
}

.number_list {
    display: none;
}

.fv_step_img {
    display: none;
}

.section_wrap {
    display: none;
    width: 100%;
    padding: 0 1.6rem 2.2rem;
    box-sizing: border-box;
}

.section_wrap.active,
.section_wrap.is-revealed {
    display: block;
    animation: chatFadeUp .28s ease both;
}

@keyframes chatFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section_wrap h2 {
    width: auto;
    min-height: 7.2rem;
    margin: 0 0 1.5rem 5.4rem;
    padding: 1.5rem 1.6rem;
    border-radius: 0 1.8rem 1.8rem 1.8rem;
    background: #ffffff;
    color: #222222;
    box-shadow: 0 3px 12px rgba(36, 62, 84, 0.12);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: left;
}

.section_wrap h2::before {
    content: "";
    position: absolute;
    left: -5.2rem;
    top: .2rem;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 50%;
    background: #17a35b;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}

.section_wrap h2::after {
    content: "借金問題の無料相談の窓口";
    position: absolute;
    left: 0;
    top: -2.4rem;
    width: auto;
    height: auto;
    background: none;
    color: #466173;
    font-size: 1.25rem;
    font-weight: 700;
}

.section_wrap h2 span {
    display: none;
}

.question_lead {
    display: block;
    margin-top: .7rem;
    color: #667887;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.55;
}

.question_wrap {
    width: auto;
    margin: 0 0 1.3rem 5.4rem;
}

.question_wrap ul.question_list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-content: stretch;
}

.question_wrap .question_list li {
    width: 100%;
}

.question_wrap .question_list li::after {
    display: none;
}

.question_wrap .question_list li label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 5.6rem;
    height: auto;
    line-height: 1.35;
    padding: 1.2rem 4.4rem 1.2rem 1.7rem;
    border: 2px solid #ead9cb;
    border-radius: 1.2rem;
    background: #ffffff;
    color: #253642;
    box-shadow: 0 3px 0 #b9cbd8;
    font-size: 1.9rem;
    font-weight: 800;
    text-align: left;
}

.question_wrap .question_list li label::after {
    content: "";
    position: absolute;
    right: 1.6rem;
    top: 50%;
    width: 1.1rem;
    height: 1.1rem;
    border-right: 3px solid #19a15a;
    border-bottom: 3px solid #19a15a;
    transform: translateY(-50%) rotate(-45deg);
}

.question_wrap .question_list li label:has(input[type="radio"]:checked),
.question_wrap .question_list li label:has(input[type="checkbox"]:checked) {
    border-color: #17a35b;
    background: #eff9f2;
    color: #0c6d37;
    box-shadow: 0 3px 0 #84c99e;
}

.question_wrap .checkbox_list li label {
    justify-content: flex-start;
    min-height: 6rem;
    height: auto;
    padding: 1.2rem 4.4rem 1.2rem 1.7rem;
    font-size: 1.75rem;
    text-align: left;
}

.has-radio-options .nextBtn {
    display: none;
}

button.nextBtn {
    width: calc(100% - 5.4rem);
    max-width: 42rem;
    height: auto;
    min-height: 6rem;
    margin: 1.4rem 0 0 5.4rem;
    border-radius: 100px;
    background: linear-gradient(180deg, #30c36b 0%, #0aa84e 100%);
    box-shadow: 0 5px 0 #087f3c;
    color: #ffffff;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 0;
}

button.nextBtn:disabled {
    background: #ccd6de;
    box-shadow: 0 5px 0 #a7b4be;
    color: #64727d;
}

.chat-answer {
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    gap: .7rem;
    margin: .6rem 0 2.8rem;
}

.chat-answer.is-visible {
    display: flex;
}

.chat-answer p {
    max-width: 72%;
    padding: 1.15rem 1.45rem;
    border-radius: 1.8rem 0 1.8rem 1.8rem;
    background: #8de055;
    color: #18320f;
    box-shadow: 0 3px 10px rgba(50, 98, 42, 0.18);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.45;
}

.chat-read {
    color: #607280;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.section_wrap.is-answered .question_wrap,
.section_wrap.is-answered .nextBtn {
    display: none;
}

.section_wrap.js-validation {
    margin-top: 1rem;
}

.section_wrap.js-validation .last-step {
    margin: 0 0 1.4rem 5.4rem;
    padding: 1.6rem;
    border-radius: 1.6rem;
    background: #ffffff;
    box-shadow: 0 3px 12px rgba(36, 62, 84, 0.12);
    text-align: left;
}

.last-step__label {
    color: #0b8f45;
    font-size: 1.8rem;
    letter-spacing: 0;
}

.last-step__label .step-num {
    font-size: 2.3em;
}

.last-step__lead {
    color: #222222;
    font-size: 2.25rem;
    line-height: 1.45;
    text-align: left;
    letter-spacing: 0;
}

.last-step__note {
    color: #5e6d78;
    font-size: 1.55rem;
    letter-spacing: 0;
}

.last-step__note strong {
    color: #0b8f45;
}

.section_wrap:nth-last-of-type(1) .question_wrap {
    max-width: none;
    margin-left: 5.4rem;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl {
    display: block;
    margin: 0 0 1.2rem;
    padding: 0;
    border: 0;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dt {
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: .8rem;
    margin: 0 0 .55rem;
    padding: 0;
    color: #222222;
    font-size: 1.55rem;
    line-height: 1.45;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dt::before {
    flex: 0 0 auto;
    width: auto;
    min-width: 3.8rem;
    height: 2.1rem;
    border-radius: .4rem;
    font-size: 1.1rem;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dd {
    width: auto;
    border: 0;
    padding: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    border: 2px solid #ead9cb;
    border-radius: .9rem;
    background: #ffffff;
    box-shadow: inset 0 2px 4px rgba(36, 62, 84, 0.06);
}

.section_wrap:nth-last-of-type(1) textarea {
    min-height: 12rem;
}

.personal_detail input::placeholder,
.personal_detail textarea::placeholder {
    color: #8a98a3;
    font-size: 1.35rem;
}

.agreement_container {
    margin: 1.6rem 0;
    padding: 1.2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.agreement_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    font-size: 1.45rem;
    font-weight: 700;
}

.require_label {
    flex: 0 0 auto;
    padding: .15rem .55rem;
    border-radius: .4rem;
    background: #df2514;
    color: #ffffff;
    font-size: 1.1rem;
}

.section_wrap:nth-last-of-type(1) .question_wrap .privacy {
    width: 100%;
    height: 11rem;
    margin: 1rem 0 0;
    border: 1px solid #cbd9e3;
    border-radius: .9rem;
    background: rgba(255, 255, 255, 0.76);
    font-size: 1.25rem;
}

.section_wrap:nth-last-of-type(1) button.nextBtn {
    width: calc(100% - 5.4rem);
    max-width: none;
    margin-top: 1.8rem;
    letter-spacing: 0;
}

.c-cta-area {
    max-width: 64rem;
    background: #ffffff;
    border-top: 1px solid #dbe5ec;
}

.c-footer-privacy {
    max-width: 64rem;
    background: #46372e;
}

@media screen and (min-width: 768px) {
    header.l-header,
    main.l-main {
        zoom: 1;
    }
}

@media screen and (max-width: 999px) {
    html.is-top div.l-wrap,
    html.is-top main.l-main {
        width: 100%;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    html.is-top header.l-header img {
        width: auto;
        max-width: 78%;
        height: 4.2rem;
    }

    .hook-main-text {
        font-size: 2.25rem;
    }

    .chat-intro__title {
        font-size: 2.7rem;
    }

    .section_wrap {
        padding-right: 1.2rem;
        padding-left: 1.2rem;
    }

    .section_wrap h2 {
        margin-left: 4.8rem;
        font-size: 2rem;
    }

    .section_wrap h2::before {
        left: -4.7rem;
        width: 3.9rem;
        height: 3.9rem;
    }

    .question_wrap,
    .section_wrap:nth-last-of-type(1) .question_wrap,
    .section_wrap.js-validation .last-step {
        margin-left: 4.8rem;
    }

    .question_wrap .question_list li label {
        min-height: 5.4rem;
        font-size: 1.75rem;
    }

    button.nextBtn,
    .section_wrap:nth-last-of-type(1) button.nextBtn {
        width: calc(100% - 4.8rem);
        margin-left: 4.8rem;
        font-size: 1.8rem;
    }

    .last-step__lead {
        font-size: 2rem;
    }

    .agreement_row {
        align-items: flex-start;
        font-size: 1.35rem;
    }

    .c-cta-area__lead {
        font-size: 1.65rem;
    }

    .c-cta-btn {
        min-height: 8.4rem;
        padding: 1rem 1.4rem;
        gap: 1rem;
    }

    .c-cta-btn__sub {
        font-size: 1.35rem;
        margin-bottom: .45rem;
        text-align: left;
    }

    .c-cta-btn__main {
        white-space: normal;
        font-size: 2.2rem;
    }
}

.personal_detail input::-webkit-input-placeholder {
    font-size: 1.6rem;
}

.personal_detail textarea::-webkit-input-placeholder {
    font-size: 1.7rem;
}

.personal_detail input::-moz-placeholder {
    font-size: 1.7rem;
}

.personal_detail textarea::-moz-placeholder {
    font-size: 1.7rem;
}

@media screen and (max-width: 999px) {

    .personal_detail input::placeholder,
    .personal_detail textarea::placeholder {
        font-size: 2.2rem;
    }
}



/* =========================================
   メールフォーム内のプライバシーポリシー
   ========================================= */
/* PC用（780px以上） */
@media screen and (min-width: 780px) {
    .privacy {
        height: 250px;
        overflow-y: scroll;
        background: #fff;
        border: 1px solid #ccc;
        padding: 20px;
        font-size: 14px;
        text-align: left;
    }
}

/* SP用（779px以下） */
@media screen and (max-width: 779px) {
    .privacy {
        height: 50rem;
        /*  */
        overflow-y: scroll;
        background: #fff;
        border: 1px solid #ccc;
        padding: 3rem;
        font-size: 2.4rem;
        text-align: left;
    }
}

/* 共通：リストのポツを消すなど */
.privacy ul {
    padding: 0;
    margin: 0;
}

.privacy li {
    list-style: none;
    margin-bottom: 0.5em;
}

/* =========================================
   メールフォーム内の無料の法律蔵段を希望する
   ========================================= */
/* --- 無料の法律相談項目のデザイン修正 --- */

/* 1. 「はい」が縦書きになるのを防ぎ、中央に寄せる */
.center_item {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    border-left: none !important;
    /* 左の縦線を消す */
    padding: 1.5rem 0 !important;
}

.center_item label {
    display: flex !important;
    flex-direction: row !important;
    /* 強制的に横並び */
    align-items: center !important;
    cursor: pointer;
}

.checkbox_text {
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 1rem;
    white-space: nowrap;
    /* 改行を禁止 */
}

/* 2. ラベル（必須）が重なるのを防ぐ調整 */
.section_wrap:nth-last-of-type(1) .question_wrap>dl.required dt {
    height: auto !important;
    line-height: 1.4 !important;
    padding-right: 5rem !important;
}

/* 3. スマホ用の調整（999px以下） */
@media screen and (max-width: 999px) {
    .section_wrap:nth-last-of-type(1) .question_wrap>dl.required dt {
        font-size: 2.6rem;
        padding-right: 0 !important;
    }

    .checkbox_text {
        font-size: 2.8rem;
    }

    .center_item input[type="checkbox"] {
        width: 3rem;
        height: 3rem;
    }
}




/* =================================================
   サンクスページ専用スタイル (他ページへの影響なし)
================================================== */

/* --- 全体コンテナ --- */
.p-thanks-page {
    background-color: #fff;
    width: 100%;
    margin: 0 auto;
}

@media screen and (min-width: 999px) {
    .p-thanks-page {
        background-color: #fff;
        width: 100%;
        max-width: 64rem;
        margin: 0 auto;
    }
}

.p-thanks-page__inner {
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* --- ロゴ --- */
.p-thanks-page__logo-wrapper.center {
    text-align: center;
    margin: 2rem 0 4rem;
}

.p-thanks-page__logo {
    max-width: 40rem;
    height: auto;
}

/* --- メインコンテンツエリア --- */
.p-thanks-content {
    width: 100%;
    margin: 6rem auto 10rem;
    text-align: center;
}

.p-thanks-lead {
    font-size: 3.2rem;
    font-weight: bold;
    color: #222222;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.p-thanks-text {
    font-size: 1.8rem;
    line-height: 2;
    margin-bottom: 5rem;
}

/* --- TOPへ戻るボタン --- */
.back_btn a {
    width: 25rem;
    max-width: 100%;
    height: 5.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5rem;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .16em;
    margin: 0 auto;
    transition: opacity 0.3s;
    text-decoration: none;
}

.back_btn a {
    background-image: linear-gradient(0deg, #eb3524, #ee5447);
    box-shadow: 0 .4rem 0 0 rgba(158, 24, 12, 1);
    margin-bottom: 4rem;
}

.back_btn a:hover {
    opacity: 0.85;
}

/* 改行制御 */
.sp_only {
    display: none;
}

/* =================================================
   SP版：レスポンシブ（999px以下）
================================================== */
@media screen and (max-width: 999px) {

    /* 外枠の余白を最小限にしてコンテンツ幅を確保 */
    .p-thanks-page__inner {
        padding: 0 3% !important;
    }

    .p-thanks-content {
        margin: 4rem auto;
    }

    /* 文字サイズを大きく調整 */
    .p-thanks-lead {
        font-size: 2.7rem;
        margin-bottom: 2.5rem;
    }

    .p-thanks-text {
        font-size: 2.3rem;
        line-height: 1.8;
        margin-bottom: 4rem;
    }

    /* ボタンの文字サイズ調整 */
    .back_btn a {
        font-size: 2.5rem;
        height: 5.4rem;
        width: 40rem;
        height: 7rem;


    }

    .sp_only {
        display: inline;
    }
}

/* --- 同意エリア・チェックボックス共通スタイル --- */

/* コンテナ全体の調整 */
.agreement_container {
    margin-top: 2rem;
    padding: 0;
}

.agreement_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem 0;
    border-bottom: 0.5px solid #ccc;
}

.agreement_row:last-child {
    border-bottom: none;
}

/* チェックボックスとテキスト */
.agreement_row .check_important {
    display: flex;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    text-align: left;
    font-size: 2.5rem;
}

.agreement_row .check_important input {
    margin-right: 1.2rem;
    transform: scale(1.1);
}

/* 必須ラベル（右側） */
.require_label {
    background-color: #df2514;
    color: #fff;
    font-weight: bold;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1;
    display: inline-block;
    padding: 1rem 1.2rem;
    font-size: 1.8rem;
}

/* PCサイズ調整（1000px以上想定） */
@media screen and (min-width: 1000px) {
    .agreement_row .check_important {
        font-size: 1.8rem;
    }

    .agreement_row .check_important input {
        transform: scale(1.2);
        margin-right: 0.8rem;
    }

    .require_label {
        padding: 0.4rem 0.8rem;
        font-size: 1.2rem;
    }

    .agreement_container {
        margin-top: 1 .5rem;
    }

}

@media screen and (max-width: 999px) {
    .agreement_row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.6rem 0;
        border-bottom: 0.5px solid #ccc;
        width: 87%;
        margin: 0 auto;
    }
}


/* =================================================
   FV上のフックエリア
================================================== */

/* フックエリア全体 */
.hero-hook-area {
    background-color: #222222;
    padding: 0.8rem 1rem;
    text-align: center;
}

/* h2タグ全体のスタイル */
.hook-title {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* 上段：タグの並び */
.hook-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* 白いカプセルタグ（h2の中の要素） */
.hook-tags .tag {
    background-color: #fff;
    color: #222222;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.01rem 2rem;
    display: inline-block;
    font-size: clamp(14px, 3.5vw, 20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.2rem;
}

/* 「など」の部分 */
.hook-tags .tag-etc {
    color: #fff;
    font-weight: bold;
    font-size: clamp(14px, 3vw, 24px);
}

/* 下段：メインの警告テキスト */
.hook-main-text {
    color: #fff !important;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    font-size: clamp(14px, 4.4vw, 24px);
    letter-spacing: 0.1em;
}

/* スマホ表示の微調整 */
@media screen and (max-width: 780px) {
    .hook-title {
        gap: 1rem;
    }

    .hook-tags .tag {
        padding: 0.4rem 2rem;
    }

    .hook-main-text {
        color: #fff !important;
        font-weight: 500;
        line-height: 1.4;
        display: block;
        font-size: clamp(16px, 3.9vw, 28px);
        letter-spacing: 0.1em;
    }
}

/* =========================================
   Final override: match reference LP
   ========================================= */
html.is-top,
html.is-top body {
    background: #f8f0e8 !important;
}

html.is-top header.l-header,
html.is-top div.l-wrap,
html.is-top footer.c-footer-privacy {
    max-width: 390px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html.is-top header.l-header {
    height: 55px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}

html.is-top header.l-header img {
    width: 255px !important;
    max-width: 78% !important;
    height: auto !important;
}

html.is-top div.l-wrap,
html.is-top main.l-main {
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.hero-hook-area,
.outer-header-wrap,
.chat-intro,
.number_list,
.fv_wrap,
.fv_step_img,
.main_header {
    display: none !important;
}

.mv-replica {
    display: block !important;
}

.mv-replica__body {
    background: #3e3028 !important;
}

.mv-replica__body::before {
    content: "";
    position: absolute;
    left: 42px;
    top: 0;
    width: 24px;
    height: 52px;
    background: #fff;
    clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
}

.mv-replica__body::after {
    content: "";
    position: absolute;
    left: 52px;
    top: 24px;
    width: 10px;
    height: 36px;
    background: #16803b;
    border-radius: 10px;
}

.chat-safe-text {
    display: none !important;
}

.section_wrap,
.section_wrap.active,
.section_wrap.is-revealed {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 26px !important;
    background: #fff !important;
}

.section_wrap:not(.active):not(.is-revealed) {
    display: none !important;
}

.section_wrap.active,
.section_wrap.is-revealed {
    display: block !important;
}

.section_wrap h2 {
    width: 100% !important;
    min-height: 132px !important;
    margin: 0 !important;
    padding: 78px 16px 18px 32px !important;
    border-top: 14px solid #f7f7f7 !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at 17px 104px, #1ca34d 0 6px, transparent 7px),
        linear-gradient(180deg, #fff 0 72px, #fff3e8 72px 100%) !important;
    box-shadow: none !important;
    color: #111 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    text-align: left !important;
}

.section_wrap h2::before {
    left: 18px !important;
    top: 22px !important;
    width: 57px !important;
    height: 57px !important;
    border: 3px solid #198e45 !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 36% 43%, #222 0 2px, transparent 3px),
        radial-gradient(circle at 63% 43%, #222 0 2px, transparent 3px),
        radial-gradient(ellipse at 50% 62%, transparent 0 5px, #c55 6px 7px, transparent 8px),
        linear-gradient(135deg, #4b2a1c 0 29%, transparent 30%),
        #ffd8c2 !important;
}

.section_wrap h2::after {
    content: "借金問題の無料相談の窓口" !important;
    left: 88px !important;
    top: 42px !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

.section_wrap h2 span,
.section_wrap h2 > br {
    display: none !important;
}

.section_wrap h2 > p.question_lead {
    display: block !important;
    margin: 4px 0 0 !important;
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
}

.section_wrap h2 > p.question_lead::before {
    content: "※";
}

.question_wrap,
.section_wrap:nth-last-of-type(1) .question_wrap {
    width: 100% !important;
    margin: 0 !important;
    padding: 25px 32px 0 !important;
    box-sizing: border-box !important;
}

.question_wrap ul.question_list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

.question_wrap .question_list li {
    width: 100% !important;
}

.question_wrap .question_list li::after,
.question_wrap .question_list li label::after {
    display: none !important;
}

.question_wrap .question_list li label,
.question_wrap .checkbox_list li label {
    min-height: 57px !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 9px 16px !important;
    border: 0 !important;
    border-radius: 100px !important;
    background: linear-gradient(180deg, #419e55 0%, #398f4e 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .24), 0 2px 0 #78c987 !important;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .2) !important;
}

.question_wrap .question_list li label:has(input[type="radio"]:checked),
.question_wrap .question_list li label:has(input[type="checkbox"]:checked) {
    background: linear-gradient(180deg, #2b8544 0%, #187236 100%) !important;
}

.has-radio-options .nextBtn {
    display: none !important;
}

button.nextBtn,
.section_wrap:nth-last-of-type(1) button.nextBtn {
    width: calc(100% - 64px) !important;
    min-height: 57px !important;
    margin: 22px 32px 0 !important;
    border-radius: 100px !important;
    background: linear-gradient(180deg, #40a956 0%, #238640 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 3px 0 #12622b !important;
    color: #fff !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.chat-answer {
    padding: 0 32px !important;
    margin: 0 0 20px !important;
}

.chat-answer p {
    padding: 9px 16px !important;
    border-radius: 18px !important;
    background: #86d957 !important;
    color: #11240c !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.section_wrap.js-validation .last-step {
    margin: 0 !important;
    padding: 22px 24px !important;
    border-top: 14px solid #f7f7f7 !important;
    border-radius: 0 !important;
    background: #fff3e8 !important;
    box-shadow: none !important;
    text-align: center !important;
}

.last-step__label,
.last-step__lead,
.last-step__note {
    letter-spacing: 0 !important;
}

.last-step__lead {
    font-size: 20px !important;
    text-align: center !important;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl,
.section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(4),
.section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(5) {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dt {
    width: 100% !important;
    height: auto !important;
    justify-content: space-between !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    color: #111 !important;
    font-size: 13px !important;
    text-align: left !important;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dd {
    width: 100% !important;
    border: 0 !important;
    padding: 0 !important;
}

.section_wrap:nth-last-of-type(1) .question_wrap>dl dd input,
.section_wrap:nth-last-of-type(1) .question_wrap>dl dd textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    min-height: 42px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    font-size: 14px !important;
}

.agreement_container {
    margin: 18px 0 14px !important;
    padding: 0 !important;
}

.agreement_row {
    width: 100% !important;
    margin: 0 0 9px !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 4px !important;
    background: #fff3e8 !important;
    font-size: 13px !important;
}

.require_label {
    min-width: 28px !important;
    padding: 2px 4px !important;
    border-radius: 2px !important;
    font-size: 10px !important;
}

.c-footer-privacy {
    padding: 20px 0 18px !important;
    background: #1e1e1e !important;
}

/* =========================================
   Blue reference-style final pass
   ========================================= */
:root {
    --lp-blue: #ef741f;
    --lp-blue-dark: #d9530d;
    --lp-blue-soft: #fff3e8;
    --lp-yellow: #fff263;
    --lp-orange: #ff7b22;
}

.fv-image-slot {
    position: relative !important;
    width: 100% !important;
    min-height: 390px !important;
    overflow: hidden !important;
    background: linear-gradient(150deg, #d9530d 0%, #ef741f 48%, #ffb76e 100%) !important;
    color: #fff !important;
    text-align: center !important;
}

.fv-image-slot picture,
.fv-image-slot picture img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.fv-image-slot__fallback {
    display: none !important;
}

.fv-image-slot.is-fallback .fv-image-slot__fallback {
    display: block !important;
    min-height: 390px !important;
    padding: 20px 16px 0 !important;
    box-sizing: border-box !important;
}

.fv-image-slot.is-fallback::after {
    content: "" !important;
    position: absolute !important;
    left: -12% !important;
    right: -12% !important;
    bottom: -66px !important;
    height: 150px !important;
    background: #fff !important;
    clip-path: polygon(0 34%, 50% 76%, 100% 34%, 100% 100%, 0 100%) !important;
}

.fv-image-slot__badge {
    position: relative !important;
    z-index: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: calc(100% - 12px) !important;
    min-height: 38px !important;
    border: 3px solid #b7470b !important;
    border-radius: 100px !important;
    background: var(--lp-yellow) !important;
    box-shadow: 0 4px 0 #b7470b !important;
    color: #d9530d !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.fv-image-slot__badge span {
    margin: 0 2px !important;
    color: var(--lp-orange) !important;
    font-size: 28px !important;
}

.fv-image-slot__fallback p {
    position: relative !important;
    z-index: 2 !important;
    margin: 25px 0 3px !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 0 #b7470b !important;
}

.fv-image-slot__fallback h1 {
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    color: var(--lp-yellow) !important;
    font-size: 50px !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    text-shadow:
        3px 3px 0 #b7470b,
        -2px 2px 0 #b7470b,
        0 6px 0 rgba(0, 0, 0, .24) !important;
}

.fv-image-slot__fallback ul {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    gap: 8px !important;
    width: 230px !important;
    margin: 34px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.fv-image-slot__fallback li {
    width: 70px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    border: 4px solid #d9530d !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 3px 0 rgba(0, 0, 0, .2) !important;
    color: #d9530d !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.02 !important;
}

.fv-image-slot__fallback li span {
    color: #f05a24 !important;
}

.section_wrap h2 {
    background:
        radial-gradient(circle at 17px 104px, var(--lp-blue) 0 6px, transparent 7px),
        linear-gradient(180deg, #fff 0 72px, var(--lp-blue-soft) 72px 100%) !important;
}

.section_wrap h2::before {
    border-color: var(--lp-blue) !important;
    background-image: url("../images/consultant-avatar-female-v1.png") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-color: #fff !important;
}

.section_wrap h2::after {
    content: "借金問題の無料相談の窓口" !important;
}

.question_wrap .question_list li label,
.question_wrap .checkbox_list li label {
    background: linear-gradient(180deg, #f28a35 0%, #e36a1d 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 2px 0 #ffd09a !important;
}

.question_wrap .question_list li label:has(input[type="radio"]:checked),
.question_wrap .question_list li label:has(input[type="checkbox"]:checked) {
    background: linear-gradient(180deg, #ce5b17 0%, #a94b16 100%) !important;
}

button.nextBtn,
.section_wrap:nth-last-of-type(1) button.nextBtn {
    background: linear-gradient(180deg, #f28a35 0%, #e36a1d 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 3px 0 #a94b16 !important;
}

.chat-answer p {
    background: #ffe0ba !important;
    color: #222222 !important;
}

.section_wrap.js-validation .last-step,
.agreement_row {
    background: var(--lp-blue-soft) !important;
}

.last-step__label,
.last-step__note strong {
    color: var(--lp-blue) !important;
}

.c-footer-privacy {
    background: #4a2b1c !important;
}

/* =========================================
   Responsive width/order matching reference LP
   ========================================= */
html.is-top body {
    min-width: 0 !important;
}

html.is-top header.l-header {
    max-width: none !important;
    width: 100% !important;
}

html.is-top div.l-wrap {
    max-width: 1080px !important;
    width: 100% !important;
}

html.is-top footer.c-footer-privacy {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.fv-image-slot {
    max-width: 1080px !important;
    margin: 0 auto !important;
}

.section_wrap,
.section_wrap.active,
.section_wrap.is-revealed {
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.c-footer-privacy__inner {
    max-width: 1080px !important;
    margin: 0 auto !important;
}

.c-footer-privacy__link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 10px !important;
}

.c-footer-privacy__link span {
    color: rgba(255, 255, 255, .8) !important;
    font-size: 14px !important;
}

@media screen and (min-width: 768px) {
    html.is-top header.l-header {
        height: 94px !important;
    }

    html.is-top header.l-header img {
        width: 320px !important;
        max-width: 320px !important;
    }

    .fv-image-slot {
        min-height: 665px !important;
    }

    .fv-image-slot.is-fallback .fv-image-slot__fallback {
        min-height: 665px !important;
        padding: 56px 60px 0 !important;
    }

    .fv-image-slot.is-fallback::after {
        bottom: -104px !important;
        height: 230px !important;
    }

    .fv-image-slot__badge {
        width: auto !important;
        min-width: 680px !important;
        min-height: 66px !important;
        border-width: 5px !important;
        box-shadow: 0 7px 0 #b7470b !important;
        font-size: 34px !important;
    }

    .fv-image-slot__badge span {
        font-size: 50px !important;
    }

    .fv-image-slot__fallback p {
        margin-top: 56px !important;
        font-size: 44px !important;
    }

    .fv-image-slot__fallback h1 {
        font-size: 112px !important;
        line-height: 1 !important;
    }

    .fv-image-slot__fallback ul {
        width: 552px !important;
        gap: 24px !important;
        margin-top: 58px !important;
    }

    .fv-image-slot__fallback li {
        width: 160px !important;
        height: 160px !important;
        border-width: 7px !important;
        font-size: 38px !important;
    }

    .section_wrap h2 {
        min-height: 176px !important;
        padding: 104px 72px 30px 112px !important;
        border-top-width: 22px !important;
        background:
            radial-gradient(circle at 72px 135px, var(--lp-blue) 0 9px, transparent 10px),
            linear-gradient(180deg, #fff 0 96px, var(--lp-blue-soft) 96px 100%) !important;
        font-size: 32px !important;
    }

    .section_wrap h2::before {
        left: 72px !important;
        top: 30px !important;
        width: 88px !important;
        height: 88px !important;
        border-width: 5px !important;
    }

    .section_wrap h2::after {
        left: 182px !important;
        top: 58px !important;
        font-size: 24px !important;
    }

    .section_wrap h2 > p.question_lead {
        margin-top: 7px !important;
        font-size: 20px !important;
    }

    .question_wrap,
    .section_wrap:nth-last-of-type(1) .question_wrap {
        padding: 48px 92px 0 !important;
    }

    .question_wrap ul.question_list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 28px 30px !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        min-height: 88px !important;
        font-size: 32px !important;
    }

    .chat-answer {
        padding: 0 92px !important;
        margin-bottom: 34px !important;
    }

    .chat-answer p {
        max-width: 52% !important;
        padding: 14px 24px !important;
        font-size: 22px !important;
    }

    .chat-read {
        font-size: 14px !important;
    }

    .section_wrap.js-validation .last-step {
        padding: 48px 72px !important;
        border-top-width: 22px !important;
    }

    .last-step__label {
        font-size: 25px !important;
    }

    .last-step__label .step-num {
        font-size: 58px !important;
    }

    .last-step__lead {
        font-size: 36px !important;
    }

    .last-step__note {
        font-size: 18px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px 34px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl,
    .section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(4),
    .section_wrap:nth-last-of-type(1) .question_wrap>dl:nth-of-type(5) {
        margin: 0 !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl dt {
        font-size: 18px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl dd input,
    .section_wrap:nth-last-of-type(1) .question_wrap>dl dd textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        min-height: 58px !important;
        font-size: 18px !important;
    }

    .agreement_container,
    .privacy,
    .section_wrap:nth-last-of-type(1) button.nextBtn {
        grid-column: 1 / -1 !important;
    }

    .agreement_container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        margin-top: 10px !important;
    }

    .agreement_row {
        margin: 0 !important;
        min-height: 58px !important;
        font-size: 15px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap .privacy {
        height: 120px !important;
        font-size: 13px !important;
    }

    button.nextBtn,
    .section_wrap:nth-last-of-type(1) button.nextBtn {
        width: 560px !important;
        min-height: 78px !important;
        margin: 28px auto 0 !important;
        font-size: 28px !important;
    }

    .c-footer-privacy {
        padding: 42px 0 34px !important;
    }

    .c-footer-privacy__link a,
    .c-footer-privacy__link span {
        font-size: 16px !important;
    }

    .c-footer-privacy__copy small {
        font-size: 14px !important;
    }
}

@media screen and (max-width: 767px) {
    html.is-top div.l-wrap,
    .fv-image-slot,
    .section_wrap,
    .section_wrap.active,
    .section_wrap.is-revealed {
        max-width: 100% !important;
    }

    .question_wrap ul.question_list {
        grid-template-columns: 1fr !important;
    }

    .c-footer-privacy__link {
        gap: 9px !important;
    }

    .c-footer-privacy__link a,
    .c-footer-privacy__link span {
        font-size: 12px !important;
    }
}

/* =========================================
   Layout correction from reference CSS
   ========================================= */
@media screen and (min-width: 768px) {
    .section_wrap h2 {
        min-height: 168px !important;
        padding: 111px 64px 24px 116px !important;
        background:
            radial-gradient(circle at 72px 131px, var(--lp-blue) 0 8px, transparent 9px),
            linear-gradient(180deg, #fff 0 92px, var(--lp-blue-soft) 92px 100%) !important;
        font-size: 28px !important;
        font-weight: 600 !important;
    }

    .section_wrap h2 > p.question_lead {
        margin-top: 5px !important;
        font-size: 17px !important;
        font-weight: 500 !important;
    }

    .question_wrap ul.question_list {
        grid-template-columns: repeat(2, 358px) !important;
        justify-content: center !important;
        gap: 25px 43px !important;
    }

    .question_wrap .question_list li {
        width: 358px !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        min-height: 74px !important;
        width: 358px !important;
        font-size: 24px !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .18) !important;
    }
}

@media screen and (max-width: 767px) {
    .section_wrap h2 {
        min-height: 126px !important;
        padding: 76px 18px 14px 31px !important;
        background:
            radial-gradient(circle at 16px 95px, var(--lp-blue) 0 5px, transparent 6px),
            linear-gradient(180deg, #fff 0 62px, var(--lp-blue-soft) 62px 100%) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .section_wrap h2 > p.question_lead {
        font-size: 11.5px !important;
        font-weight: 500 !important;
    }

    .question_wrap {
        padding-left: 34px !important;
        padding-right: 34px !important;
    }

    .question_wrap .question_list li {
        max-width: 322px !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        min-height: 54px !important;
        font-size: 19px !important;
        font-weight: 600 !important;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .18) !important;
    }
}

/* =========================================
   Spacing repair pass
   ========================================= */
@media screen and (min-width: 768px) {
    .question_wrap .question_list li {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .section_wrap h2 {
        min-height: 162px !important;
        padding: 96px 64px 26px 116px !important;
        background:
            radial-gradient(circle at 72px 128px, var(--lp-blue) 0 8px, transparent 9px),
            linear-gradient(180deg, #fff 0 92px, var(--lp-blue-soft) 92px 100%) !important;
        font-size: 29px !important;
    }

    .section_wrap h2::before {
        left: 66px !important;
        top: 24px !important;
        width: 80px !important;
        height: 80px !important;
    }

    .section_wrap h2::after {
        left: 170px !important;
        top: 52px !important;
        font-size: 23px !important;
    }

    .question_wrap,
    .section_wrap:nth-last-of-type(1) .question_wrap {
        padding: 42px 68px 0 !important;
    }

    .question_wrap ul.question_list {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 28px !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        min-height: 68px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        font-size: 22px !important;
        line-height: 1.2 !important;
        border-radius: 999px !important;
    }

    .chat-answer {
        padding: 0 68px !important;
    }
}

@media screen and (max-width: 767px) {
    .section_wrap {
        padding-bottom: 22px !important;
    }

    .section_wrap h2 {
        min-height: 112px !important;
        padding: 64px 18px 14px 31px !important;
        border-top-width: 10px !important;
        background:
            radial-gradient(circle at 16px 88px, var(--lp-blue) 0 5px, transparent 6px),
            linear-gradient(180deg, #fff 0 62px, var(--lp-blue-soft) 62px 100%) !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
    }

    .section_wrap h2::before {
        left: 20px !important;
        top: 14px !important;
        width: 46px !important;
        height: 46px !important;
        border-width: 3px !important;
    }

    .section_wrap h2::after {
        left: 78px !important;
        top: 28px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .section_wrap h2 > p.question_lead {
        margin-top: 3px !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
    }

    .question_wrap,
    .section_wrap:nth-last-of-type(1) .question_wrap {
        padding: 20px 38px 0 !important;
    }

    .question_wrap ul.question_list {
        gap: 12px !important;
        justify-items: center !important;
    }

    .question_wrap .question_list li {
        max-width: 310px !important;
        margin: 0 auto !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        min-height: 50px !important;
        width: 100% !important;
        padding: 7px 14px !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }

    .chat-answer {
        padding: 0 38px !important;
        margin-bottom: 16px !important;
    }

    .chat-answer p {
        max-width: 76% !important;
        padding: 8px 13px !important;
        font-size: 12px !important;
    }

    .section_wrap.js-validation .last-step {
        padding: 20px 22px !important;
        border-top-width: 10px !important;
    }

    .last-step__lead {
        font-size: 18px !important;
        line-height: 1.45 !important;
    }

    .last-step__note {
        font-size: 11px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl dt {
        font-size: 12px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap>dl dd input,
    .section_wrap:nth-last-of-type(1) .question_wrap>dl dd textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        min-height: 39px !important;
        font-size: 13px !important;
    }

    .agreement_row {
        min-height: 48px !important;
        padding: 8px 9px !important;
        font-size: 12px !important;
    }

    .require_label {
        font-size: 9px !important;
    }

    button.nextBtn,
    .section_wrap:nth-last-of-type(1) button.nextBtn {
        width: 270px !important;
        max-width: calc(100% - 76px) !important;
        min-height: 50px !important;
        margin: 18px auto 0 !important;
        font-size: 18px !important;
    }
}

/* =========================================
   Absolute final override for current request
   ========================================= */
@media screen and (min-width: 768px) {
    .section_wrap h2 {
        min-height: 168px !important;
        padding: 111px 64px 24px 116px !important;
        background:
            radial-gradient(circle at 72px 131px, var(--lp-blue) 0 8px, transparent 9px),
            linear-gradient(180deg, #fff 0 92px, var(--lp-blue-soft) 92px 100%) !important;
        font-size: 25px !important;
        font-weight: 600 !important;
    }

    .section_wrap h2 > p.question_lead {
        margin-top: 5px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
    }

    .section_wrap.active:not(.is-answered),
    .section_wrap.is-revealed:not(.is-answered) {
        padding-bottom: 112px !important;
    }

    .question_wrap ul.question_list {
        grid-template-columns: repeat(2, 358px) !important;
        justify-content: center !important;
        gap: 25px 43px !important;
    }

    .question_wrap .question_list li {
        width: 358px !important;
        max-width: 358px !important;
        margin: 0 !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        width: 358px !important;
        min-height: 76px !important;
        padding: 10px 16px !important;
        font-size: 24px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
    }
}

@media screen and (max-width: 767px) {
    .section_wrap h2 {
        min-height: 126px !important;
        padding: 76px 18px 14px 31px !important;
        background:
            radial-gradient(circle at 16px 95px, var(--lp-blue) 0 5px, transparent 6px),
            linear-gradient(180deg, #fff 0 62px, var(--lp-blue-soft) 62px 100%) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .section_wrap h2 > p.question_lead {
        font-weight: 500 !important;
    }

    .question_wrap .question_list li {
        max-width: 322px !important;
    }

    .question_wrap .question_list li label,
    .question_wrap .checkbox_list li label {
        min-height: 54px !important;
        font-size: 19px !important;
        font-weight: 600 !important;
    }
}

/* Final logo sizing */
@media screen and (min-width: 768px) {
    html.is-top header.l-header img,
    .sub-header img {
        width: 230px !important;
        max-width: 230px !important;
        height: auto !important;
    }
}

@media screen and (max-width: 767px) {
    html.is-top header.l-header img,
    .sub-header img {
        width: 150px !important;
        max-width: 150px !important;
        height: auto !important;
    }
}

/* Final answer bubble polish */
.chat-read {
    display: none !important;
}

.chat-answer {
    display: flex !important;
    justify-content: flex-end !important;
    opacity: 0 !important;
    transform: translateY(8px) !important;
    transition: opacity .24s ease, transform .24s ease !important;
}

.chat-answer.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.chat-answer p {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 280px !important;
    max-width: 280px !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    border: 1px solid #f1a35f !important;
    background: #fff4e8 !important;
    box-shadow: none !important;
    color: #222222 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

.chat-answer p::after {
    content: "" !important;
    position: absolute !important;
    right: -10px !important;
    top: 50% !important;
    width: 0 !important;
    height: 0 !important;
    margin-top: -8px !important;
    border-top: 8px solid transparent !important;
    border-bottom: 8px solid transparent !important;
    border-left: 12px solid #fff4e8 !important;
}

@media screen and (min-width: 768px) {
    .section_wrap.is-answered {
        padding-bottom: 28px !important;
    }

    .section_wrap.is-answered .question_wrap {
        margin-bottom: 8px !important;
    }

    .chat-answer {
        padding: 0 96px !important;
        margin: 10px 0 0 !important;
    }
}

@media screen and (max-width: 767px) {
    .section_wrap.is-answered {
        padding-bottom: 20px !important;
    }

    .section_wrap.is-answered .question_wrap {
        margin-bottom: 6px !important;
    }

    .chat-answer {
        padding: 0 34px !important;
        margin: 8px 0 0 !important;
    }

    .chat-answer p {
        width: 190px !important;
        max-width: 190px !important;
        min-height: 40px !important;
        padding: 8px 16px !important;
        font-size: 16px !important;
    }
}

/* Final option button states */
.question_wrap .question_list li label,
.question_wrap .checkbox_list li label,
button.nextBtn,
.section_wrap:nth-last-of-type(1) button.nextBtn {
    background: linear-gradient(180deg, #f28a35 0%, #e36a1d 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 3px 0 #dc520e !important;
    color: #fff !important;
}

.question_wrap .question_list li label:has(input[type="radio"]:checked),
.question_wrap .question_list li label:has(input[type="checkbox"]:checked),
button.nextBtn:not(:disabled) {
    background: #f08a24 !important;
    box-shadow: 0 3px 0 #c96b13 !important;
    color: #fff !important;
}

/* Final contact and thanks page polish */
#submit_btn {
    font-weight: 500 !important;
}

@media screen and (max-width: 767px) {
    .last-step__label {
        font-size: 20px !important;
        line-height: 1.25 !important;
    }

    .last-step__label .step-num {
        font-size: 34px !important;
        line-height: 1 !important;
    }
}

.thanks-body {
    min-width: 0 !important;
    margin: 0 !important;
    background: #f8f0e8 !important;
    color: #222222 !important;
    font-family: "Noto Sans JP", sans-serif !important;
}

.thanks-header {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    height: 94px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(22, 63, 104, .06) !important;
    box-sizing: border-box !important;
}

.thanks-header a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.thanks-header img {
    width: 230px !important;
    max-width: 230px !important;
    height: auto !important;
}

.thanks-body .p-thanks-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 48px 0 74px !important;
    background: #f8f0e8 !important;
}

.thanks-body .p-thanks-page__inner {
    width: 100% !important;
    max-width: 1080px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
}

.p-thanks-complete {
    overflow: hidden !important;
    border-top: 18px solid var(--lp-blue) !important;
    background:
        radial-gradient(circle at 72px 95px, var(--lp-blue) 0 8px, transparent 9px),
        linear-gradient(180deg, #fff 0 72px, var(--lp-blue-soft) 72px 100%) !important;
    padding: 34px 72px 38px 116px !important;
    box-shadow: 0 8px 22px rgba(20, 73, 124, .08) !important;
    box-sizing: border-box !important;
}

.p-thanks-complete__en {
    margin: 0 0 8px !important;
    color: var(--lp-blue) !important;
    font-family: Lato, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
}

.p-thanks-complete__ttl {
    margin: 0 !important;
    color: #222222 !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.thanks-body .p-thanks-content {
    width: 100% !important;
    max-width: 1080px !important;
    margin: 0 auto !important;
    padding: 58px 72px 68px !important;
    background: #fff !important;
    text-align: center !important;
    box-shadow: 0 8px 22px rgba(20, 73, 124, .08) !important;
    box-sizing: border-box !important;
}

.thanks-body .p-thanks-lead {
    margin: 0 0 22px !important;
    color: #222222 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}

.thanks-body .p-thanks-text {
    margin: 0 0 42px !important;
    color: #333333 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 2 !important;
}

.thanks-body .back_btn a {
    width: 360px !important;
    max-width: 100% !important;
    min-height: 64px !important;
    border-radius: 999px !important;
    background: #f08a24 !important;
    box-shadow: 0 3px 0 #c96b13 !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.thanks-body .c-footer-privacy {
    max-width: none !important;
    margin: 0 !important;
    background: #4a2b1c !important;
}

@media screen and (max-width: 767px) {
    .thanks-header {
        height: 72px !important;
        padding: 0 14px !important;
    }

    .thanks-header img {
        width: 150px !important;
        max-width: 150px !important;
    }

    .thanks-body .p-thanks-page {
        padding: 28px 0 48px !important;
    }

    .thanks-body .p-thanks-page__inner {
        padding: 0 16px !important;
    }

    .p-thanks-complete {
        border-top-width: 10px !important;
        background:
            radial-gradient(circle at 28px 76px, var(--lp-blue) 0 5px, transparent 6px),
            linear-gradient(180deg, #fff 0 56px, var(--lp-blue-soft) 56px 100%) !important;
        padding: 24px 24px 26px 52px !important;
    }

    .p-thanks-complete__en {
        font-size: 13px !important;
    }

    .p-thanks-complete__ttl {
        font-size: 24px !important;
    }

    .thanks-body .p-thanks-content {
        padding: 34px 20px 42px !important;
    }

    .thanks-body .p-thanks-lead {
        font-size: 22px !important;
        line-height: 1.5 !important;
    }

    .thanks-body .p-thanks-text {
        margin-bottom: 30px !important;
        font-size: 15px !important;
        line-height: 1.85 !important;
        text-align: left !important;
    }

    .thanks-body .back_btn a {
        width: 270px !important;
        min-height: 54px !important;
        font-size: 16px !important;
    }
}

/* Final thanks layout: match sub-hero and keep footer at viewport bottom */
html:has(body.thanks-body) {
    min-height: 100% !important;
}

.thanks-body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.thanks-body .p-thanks-page {
    flex: 1 0 auto !important;
    display: block !important;
    padding-bottom: 56px !important;
}

.thanks-body .c-footer-privacy {
    flex-shrink: 0 !important;
}

.thanks-body .p-thanks-complete.sub-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 180px !important;
    margin: 0 0 0 !important;
    padding: 38px 24px !important;
    border: none !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #fff3e8 0%, #fff0e2 100%) !important;
    box-shadow: none !important;
    text-align: center !important;
}

.thanks-body .p-thanks-complete .sub-hero__en {
    margin: 0 0 8px !important;
    color: var(--lp-blue) !important;
    font-family: Lato, sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
}

.thanks-body .p-thanks-complete h1 {
    margin: 0 !important;
    color: #222222 !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

@media screen and (max-width: 767px) {
    .thanks-body .p-thanks-page {
        padding-bottom: 36px !important;
    }

    .thanks-body .p-thanks-complete.sub-hero {
        min-height: 132px !important;
        padding: 28px 18px !important;
    }

    .thanks-body .p-thanks-complete .sub-hero__en {
        font-size: 13px !important;
    }

    .thanks-body .p-thanks-complete h1 {
        font-size: 24px !important;
    }
}

@media screen and (min-width: 768px) {
    .thanks-body .p-thanks-page {
        padding: 32px 0 28px !important;
    }

    .thanks-body .p-thanks-complete.sub-hero {
        min-height: 164px !important;
        padding: 34px 24px !important;
    }

    .thanks-body .p-thanks-content {
        padding: 42px 72px 46px !important;
    }

    .thanks-body .p-thanks-text {
        margin-bottom: 34px !important;
    }
}

/* Final FV image container cleanup */
@media screen and (min-width: 768px) {
    .fv-image-slot:not(.is-fallback) {
        min-height: 0 !important;
        background: transparent !important;
        line-height: 0 !important;
    }

    .fv-image-slot:not(.is-fallback) picture,
    .fv-image-slot:not(.is-fallback) img {
        line-height: 0 !important;
    }
}

/* Final header height and SP form width adjustment */
@media screen and (min-width: 768px) {
    html.is-top header.l-header,
    .sub-header,
    .thanks-header {
        height: 58px !important;
        min-height: 58px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media screen and (max-width: 767px) {
    html.is-top header.l-header,
    .sub-header,
    .thanks-header,
    .thanks-body .thanks-header {
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .question_wrap,
    .section_wrap:nth-last-of-type(1) .question_wrap {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap {
        gap: 12px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd input,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd select,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd textarea,
    .personal_detail input,
    .personal_detail select,
    .personal_detail textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Final SP contact form readability */
@media screen and (max-width: 767px) {
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dt,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl.required dt {
        font-size: 14px !important;
        line-height: 1.45 !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl.required dt::before {
        font-size: 10.5px !important;
        padding: 3px 6px !important;
        margin-right: 6px !important;
        vertical-align: 1px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd input,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd select,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd textarea,
    .personal_detail input,
    .personal_detail select,
    .personal_detail textarea {
        font-size: 14px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd input::placeholder,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd textarea::placeholder,
    .personal_detail input::placeholder,
    .personal_detail textarea::placeholder {
        color: #a7b0bb !important;
        font-size: 14px !important;
        opacity: 1 !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd input::-webkit-input-placeholder,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd textarea::-webkit-input-placeholder,
    .personal_detail input::-webkit-input-placeholder,
    .personal_detail textarea::-webkit-input-placeholder {
        color: #a7b0bb !important;
        font-size: 14px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap .privacy,
    .section_wrap:nth-last-of-type(1) .question_wrap .privacy p,
    .section_wrap:nth-last-of-type(1) .question_wrap .privacy dd,
    .section_wrap:nth-last-of-type(1) .question_wrap .privacy li {
        font-size: 12px !important;
        line-height: 1.7 !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap .privacy h3,
    .section_wrap:nth-last-of-type(1) .question_wrap .privacy h4,
    .section_wrap:nth-last-of-type(1) .question_wrap .privacy dt {
        font-size: 12.5px !important;
        line-height: 1.55 !important;
    }

    .agreement_row {
        min-height: 42px !important;
        padding: 7px 8px !important;
        gap: 6px !important;
    }

    .agreement_row .check_important,
    .check_important {
        display: inline-flex !important;
        align-items: center !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .agreement_row .check_important input,
    .check_important input {
        flex: 0 0 auto !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 6px 0 0 !important;
        transform: none !important;
    }

    .require_label {
        flex: 0 0 auto !important;
        font-size: 10px !important;
        padding: 3px 5px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}

/* Final PC required label alignment */
@media screen and (min-width: 768px) {
    .require_label {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 3.4rem !important;
        height: 2.4rem !important;
        padding: 0 0.4rem !important;
        border-radius: 0.5rem !important;
        background-color: #df2514 !important;
        font-size: 1.2rem !important;
        line-height: 1 !important;
    }
}

/* Remove only the gray divider between FV and the first question */
form > .section_wrap:first-of-type h2 {
    border-top: 0 !important;
}

/* Optional label color */
.section_wrap:nth-last-of-type(1) .question_wrap > dl:not(.required) dt::before {
    background: #2559a7 !important;
    background-color: #2559a7 !important;
}

/* Final thanks hero spacing */
.thanks-body .p-thanks-page {
    padding: 0 !important;
    background: #fff !important;
}

@media screen and (min-width: 768px) {
    .thanks-body {
        background: #fff8f1 !important;
    }

    .thanks-body .p-thanks-page {
        display: flex !important;
        flex-direction: column !important;
        background: transparent !important;
    }

    .thanks-body .p-thanks-page__inner {
        flex: 1 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .thanks-body .p-thanks-content {
        flex: 1 0 auto !important;
    }
}

.thanks-body .p-thanks-page__inner {
    width: min(100%, 1080px) !important;
    max-width: 1080px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.thanks-body .p-thanks-complete.sub-hero {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 56px 28px 48px !important;
    background: linear-gradient(145deg, #d9530d 0%, #ef741f 58%, #ffb76e 100%) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.thanks-body .p-thanks-complete .sub-hero__en {
    margin: 0 0 10px !important;
    color: #fff263 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
}

.thanks-body .p-thanks-complete h1 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 38px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.thanks-body .p-thanks-content {
    margin: 0 auto !important;
    box-shadow: none !important;
}

.thanks-body .p-thanks-lead span {
    display: inline !important;
}

@media screen and (max-width: 767px) {
    .thanks-body .p-thanks-page,
    .thanks-body .p-thanks-page__inner,
    .thanks-body .p-thanks-complete.sub-hero,
    .thanks-body .p-thanks-content {
        width: 100% !important;
        max-width: none !important;
    }

    .thanks-body .p-thanks-complete.sub-hero {
        padding: 42px 18px 38px !important;
    }

    .thanks-body .p-thanks-complete .sub-hero__en {
        font-size: 14px !important;
    }

    .thanks-body .p-thanks-complete h1 {
        font-size: 28px !important;
    }

    .thanks-body .p-thanks-content {
        padding: 34px 18px 42px !important;
    }

    .thanks-body .p-thanks-lead span {
        display: block !important;
    }
}

/* Final SP question heading readability */
@media screen and (max-width: 767px) {
    .section_wrap h2 {
        font-size: 17px !important;
        line-height: 1.28 !important;
        white-space: nowrap !important;
    }

    .section_wrap h2::after {
        font-size: 14px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .section_wrap h2 > p.question_lead {
        font-size: 13px !important;
        line-height: 1.32 !important;
        white-space: nowrap !important;
    }
}

/* Final SP contact form size and label alignment */
@media screen and (max-width: 767px) {
    .section_wrap.js-validation .last-step {
        padding: 24px 18px 22px !important;
    }

    .last-step__label {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    .last-step__label .step-num {
        font-size: 46px !important;
    }

    .last-step__lead {
        font-size: 21px !important;
        line-height: 1.45 !important;
    }

    .last-step__note {
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap,
    .section_wrap:nth-last-of-type(1) .question_wrap.personal_detail {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dt,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl.required dt {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dt::before,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl.required dt::before {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 34px !important;
        height: 21px !important;
        padding: 0 6px !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        margin-right: 7px !important;
        box-sizing: border-box !important;
        vertical-align: 1px !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd input,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd select,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd textarea,
    .personal_detail input,
    .personal_detail select,
    .personal_detail textarea {
        min-height: 46px !important;
        padding: 10px 14px !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd select,
    .personal_detail select {
        padding-right: 40px !important;
        background-position: right 14px center !important;
        background-size: 10px auto !important;
    }

    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd input::placeholder,
    .section_wrap:nth-last-of-type(1) .question_wrap > dl dd textarea::placeholder,
    .personal_detail input::placeholder,
    .personal_detail textarea::placeholder {
        font-size: 15px !important;
    }

    .input_note {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }
}

/* Final SP select field room */
@media screen and (max-width: 767px) {
    .personal_detail select[name="age"] {
        width: 100% !important;
        min-height: 52px !important;
        height: 52px !important;
        padding: 11px 44px 11px 16px !important;
        font-size: 16px !important;
        line-height: 1.3 !important;
        box-sizing: border-box !important;
    }
}

/* Final SP agreement row sizing */
@media screen and (max-width: 767px) {
    .agreement_row {
        min-height: 48px !important;
        padding: 9px 8px !important;
        gap: 8px !important;
    }

    .agreement_row .check_important,
    .check_important {
        font-size: 14px !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
    }

    .agreement_row .check_important input,
    .check_important input {
        width: 17px !important;
        height: 17px !important;
        margin-right: 7px !important;
    }

    .agreement_row .require_label {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        min-width: 34px !important;
        height: 21px !important;
        padding: 0 6px !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }
}


/* Yamaha office adaptation: orange theme and correct local navigation */
.fv-image-slot { background: #fff3e8 !important; min-height: 0 !important; }
.fv-image-slot picture img { object-fit: contain !important; }
.l-header > a { display:block; }
.l-header img { max-width: min(280px, 72vw) !important; height:auto !important; }
.privacy-summary { max-height: 180px; overflow:auto; }
.privacy-summary a { color:#b94d13; text-decoration:underline; }
.c-footer-privacy__link { flex-wrap:wrap; gap:8px 12px; justify-content:center; }
/* Keep LINE green as the distinct contact method while the diagnostic UI turns orange. */

/* Orange palette refinements for diagnosis selections and action buttons */
.question_wrap .question_list li label,
.question_wrap .checkbox_list li label,
button.nextBtn,
.section_wrap:nth-last-of-type(1) button.nextBtn {
  background: linear-gradient(180deg, #f28a35 0%, #e36a1d 100%) !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 3px 0 #d9530d !important;
}
.question_wrap .question_list li label:has(input[type="radio"]:checked),
.question_wrap .question_list li label:has(input[type="checkbox"]:checked) {
  background: linear-gradient(180deg, #ef6b16 0%, #e45c0b 100%) !important;
}
.chat-answer p { background:#ffe0ba !important; color:#222222 !important; }


/* Black footer across all pages, matching LP 01. */
.c-footer-privacy,
body.sub-page .c-footer-privacy { background:#1e1e1e !important; color:#fff !important; }
.c-footer-privacy__link a,
.c-footer-privacy__link span { color:#fff !important; }

/* Responsive FV uses separate user-supplied PC and SP artwork. */
.fv-image-slot picture img { display:block !important; width:100% !important; height:auto !important; object-fit:contain !important; }

/* Hide the FV while the form-first campaign is running. */
.fv-image-slot[hidden] { display: none !important; }

/* Compact guide panel based on the supplied horizontal reference banner. */
.form-guide {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid #f4e8bc;
  border-bottom: 1px solid #e9dcae;
  background: #fffef4;
  color: #222;
  font-family: "Noto Sans JP", "YakuHanJP", sans-serif;
  letter-spacing: 0;
  box-sizing: border-box;
}
.form-guide__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 68px;
  padding: 8px 18px;
  background: linear-gradient(90deg, #fffdf0 0%, #fff9d9 52%, #fffdf0 100%);
  box-sizing: border-box;
}
.form-guide__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 4px 22px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: #ea8794;
  box-shadow: inset 0 -3px 0 rgba(145, 49, 65, 0.16);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.form-guide__heading h1 {
  margin: 0 !important;
  color: #262626;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.form-guide__heading h1 strong {
  color: #b83e52;
  font-size: 1.28em;
  font-weight: 900;
  text-decoration: underline wavy #efd63c 3px;
  text-underline-offset: 7px;
}
.form-guide__body {
  display: grid;
  grid-template-columns: 34% 66%;
  min-height: 218px;
  background: linear-gradient(110deg, #effaff 0%, #fff 48%, #f5f3ef 100%);
}
.form-guide__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #edf8fc;
}
.form-guide__visual::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 38px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.94));
}
.form-guide__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.form-guide__content {
  min-width: 0;
  padding: 12px 16px 10px;
  box-sizing: border-box;
}
.form-guide__question {
  margin: 0 0 8px;
  color: #2e2e2e;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.form-guide__worries,
.form-guide__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.form-guide__worries li {
  position: relative;
  min-height: 54px;
  padding: 8px 5px 7px 24px;
  border-radius: 5px;
  background: rgba(207, 207, 207, 0.72);
  color: #353535;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-sizing: border-box;
}
.form-guide__worries li::before {
  content: "〰";
  position: absolute;
  left: 7px;
  top: 13px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  transform: rotate(-18deg);
}
.form-guide__benefits {
  margin-top: 10px;
}
.form-guide__benefits li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 71px;
  padding: 6px 5px 7px;
  border: 2px solid #f0c0c7;
  border-radius: 8px;
  background: rgba(255, 247, 249, 0.96);
  box-shadow: 0 2px 0 rgba(165, 80, 94, 0.15);
  text-align: center;
  box-sizing: border-box;
}
.form-guide__benefits small {
  color: #333;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
.form-guide__benefits strong {
  margin-top: 3px;
  padding: 0 2px;
  background: linear-gradient(transparent 58%, #fff28a 58%);
  color: #c83f52;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}
.form-guide__cta {
  margin: 0 !important;
  padding: 7px 12px 8px;
  background: #ea8794;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.form-guide__cta strong {
  margin: 0 2px;
  color: #fff8a8;
  font-size: 1.08em;
  font-weight: 900;
}
@media screen and (max-width: 767px) {
  .form-guide__heading {
    gap: 6px;
    min-height: 48px;
    padding: 5px 7px;
  }
  .form-guide__badge {
    min-height: 29px;
    padding: 3px 9px;
    border-width: 1px;
    font-size: 12px;
  }
  .form-guide__heading h1 {
    font-size: 15px;
  }
  .form-guide__heading h1 strong {
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }
  .form-guide__body {
    grid-template-columns: 35% 65%;
    min-height: 188px;
  }
  .form-guide__visual::after {
    width: 18px;
  }
  .form-guide__content {
    padding: 7px 6px 6px;
  }
  .form-guide__question {
    margin-bottom: 5px;
    font-size: 10px;
  }
  .form-guide__worries,
  .form-guide__benefits {
    gap: 3px;
  }
  .form-guide__worries li {
    min-height: 48px;
    padding: 6px 2px 5px;
    font-size: 8px;
  }
  .form-guide__worries li::before {
    content: none;
  }
  .form-guide__benefits {
    margin-top: 6px;
  }
  .form-guide__benefits li {
    min-height: 60px;
    padding: 4px 2px 5px;
    border-width: 1px;
    border-radius: 5px;
  }
  .form-guide__benefits small {
    font-size: 8px;
  }
  .form-guide__benefits strong {
    margin-top: 2px;
    font-size: 9px;
    white-space: normal;
  }
  .form-guide__cta {
    padding: 6px 5px 7px;
    font-size: 11px;
  }
}

/* Short photo-and-copy version requested after the full reference recreation. */
.form-guide-compact {
  display: grid;
  grid-template-columns: 18% minmax(0, 1fr) 18%;
  width: 100%;
  height: 92px;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid #f3e4b8;
  border-bottom: 1px solid #ead9a5;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.92) 0 9%, transparent 30%),
    radial-gradient(circle at 56% 120%, rgba(255, 222, 140, 0.34) 0 16%, transparent 45%),
    linear-gradient(110deg, #eaf8ff 0%, #fffaf0 46%, #fff1bd 100%);
  color: #222;
  font-family: "Noto Sans JP", "YakuHanJP", sans-serif;
  letter-spacing: 0;
  box-sizing: border-box;
}
.form-guide-compact__visual {
  position: relative;
  min-width: 0;
  height: 92px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f7ff 0%, #fff8df 100%);
}
.form-guide-compact__visual::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 16px;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 240, 0.96));
}
.form-guide-compact__visual--teacher::after {
  right: auto;
  left: 0;
  background: linear-gradient(90deg, rgba(255, 249, 225, 0.96), transparent);
}
.form-guide-compact__staff,
.form-guide-compact__teacher {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.form-guide-compact__staff {
  object-position: 68% 34%;
}
.form-guide-compact__teacher {
  object-position: 50% 12%;
}
.form-guide-compact__copy {
  display: grid;
  grid-template-columns: max-content;
  align-content: center;
  justify-content: center;
  min-width: 0;
  padding: 2px 10px;
  text-align: center;
  box-sizing: border-box;
}
.form-guide-compact__copy h1 {
  display: block;
  margin: 0 !important;
  color: #262626;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  text-shadow:
    -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 2px 4px rgba(132, 83, 43, 0.16);
  white-space: nowrap;
}
.form-guide-compact__copy h1 span {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #222;
  font-size: 1em;
  font-weight: 700;
}
.form-guide-compact__copy h1 strong {
  margin-left: 3px;
  padding: 0 3px;
  background: linear-gradient(transparent 56%, #ffe36f 56%);
  color: #e45c0b;
  font-size: 1.12em;
  font-weight: 900;
  text-decoration: none;
}
.form-guide-compact__copy p {
  display: block;
  width: 0;
  min-width: 100%;
  box-sizing: border-box;
  margin: 7px 0 0 !important;
  padding: 4px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8b35 0%, #ed650f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 2px 6px rgba(176, 76, 14, 0.24);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 1px rgba(116, 42, 5, 0.28);
  white-space: nowrap;
}
.form-guide-compact__copy p strong {
  margin: 0 2px;
  padding: 0 2px;
  background: transparent;
  color: #fff;
  font-size: 1em;
  font-weight: 500;
}
@media screen and (max-width: 767px) {
  .form-guide-compact {
    grid-template-columns: 12% minmax(0, 1fr) 12%;
    height: 76px;
  }
  .form-guide-compact__visual {
    height: 76px;
  }
  .form-guide-compact__teacher {
    transform: scale(1.12);
    transform-origin: 50% 18%;
  }
  .form-guide-compact__visual::after {
    width: 6px;
  }
  .form-guide-compact__copy {
    padding: 1px 2px;
  }
  .form-guide-compact__copy h1 {
    display: block;
    font-size: 15px;
    line-height: 1.1;
    text-shadow:
      -0.7px -0.7px 0 #fff,
      0.7px -0.7px 0 #fff,
      -0.7px 0.7px 0 #fff,
      0.7px 0.7px 0 #fff,
      0 1px 2px rgba(132, 83, 43, 0.14);
    white-space: nowrap;
  }
  .form-guide-compact__copy h1 span {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #222;
    font-size: 1em;
  }
  .form-guide-compact__copy h1 strong {
    font-size: 1.1em;
    text-decoration: none;
  }
  .form-guide-compact__copy p {
    margin-top: 6px !important;
    padding: 4px 12px;
    font-size: 12px;
    letter-spacing: 0.035em;
    white-space: nowrap;
  }
}

/* Keep the revised conversion copy legible as a two-line CTA. */
#submit_btn {
  min-height: 82px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.3;
}
#submit_btn .submit-btn__lead,
#submit_btn .submit-btn__main {
  display: block;
}
#submit_btn .submit-btn__lead {
  color: #fff0cf;
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.03em;
}
#submit_btn .submit-btn__main {
  margin-top: 6px;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
#submit_btn .submit-btn__accent {
  color: #fff36a;
  font-size: 1.08em;
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(108, 48, 8, 0.28);
}
#submit_btn:disabled .submit-btn__lead {
  color: #f4f4f4;
}
#submit_btn:disabled .submit-btn__accent {
  color: #fff4a8;
}

/* Align the logo and remove excess vertical space in every site header. */
html.is-top header.l-header,
body.sub-page .sub-header,
body.thanks-body .thanks-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

html.is-top header.l-header > a,
body.sub-page .sub-header > a,
body.thanks-body .thanks-header > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  line-height: 0 !important;
}

html.is-top header.l-header img,
body.sub-page .sub-header img,
body.thanks-body .thanks-header img {
  display: block !important;
  height: auto !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

@media screen and (max-width: 767px) {
  html.is-top header.l-header,
  body.sub-page .sub-header,
  body.thanks-body .thanks-header {
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 8px !important;
  }
}

/* Tighten only the top page masthead around its wordmark. */
html.is-top header.l-header {
  height: 36px !important;
  min-height: 36px !important;
}
@media screen and (max-width: 767px) {
  html.is-top header.l-header {
    height: 34px !important;
    min-height: 34px !important;
  }
}

/* Remove the pale outer canvas around the top-page content. */
html.is-top,
html.is-top body,
html.is-top div.l-wrap {
  background: #fff !important;
}
html.is-top div.l-wrap {
  box-shadow: none !important;
}

/* Compact PC masthead and hero while preserving the supplied FV image ratio. */
@media screen and (min-width: 768px) {
  html.is-top header.l-header {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    align-items: center !important;
  }

  html.is-top header.l-header img {
    width: 250px !important;
    max-width: 250px !important;
    height: auto !important;
  }

  .fv-image-slot picture {
    width: min(920px, 100%) !important;
    margin: 0 auto !important;
  }

  .fv-image-slot picture img {
    width: 100% !important;
    height: auto !important;
  }
}

/* Narrow the PC hero panel background to match the reduced hero image. */
@media screen and (min-width: 768px) {
  html.is-top div.l-wrap {
    background: #fcfaf7 !important;
  }

  html.is-top main.l-main {
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .fv-image-slot {
    width: min(920px, 100%) !important;
    max-width: 920px !important;
    background: #fff !important;
  }

  .fv-image-slot picture {
    width: 100% !important;
  }
}

/* Match the page canvas outside the white LP panel to its pale beige tone. */
html.is-top,
html.is-top body {
  background: #fcfaf7 !important;
}

/* Display the complete privacy policy in the form consent panel. */
section.section_wrap.js-validation .question_wrap .privacy-summary {
  width: 100% !important;
  height: 250px !important;
  max-height: 250px !important;
  margin: 10px 0 0 !important;
  padding: 14px !important;
  overflow-y: auto !important;
  border: 1px solid #bdbdbd !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: #222 !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
  text-align: left !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary > h3 {
  margin: 0 0 10px !important;
  padding: 0 0 7px !important;
  border-bottom: 1px solid #e5e5e5 !important;
  color: #222 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-intro,
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section,
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section p,
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section li {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #222 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section h2 {
  margin: 10px 0 5px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #222 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  text-align: left !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section h2::before {
  content: none !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary a {
  color: #222 !important;
  text-decoration: underline !important;
}

/* Keep the policy text compact inside the consent box on small screens. */
@media screen and (max-width: 767px) {
  section.section_wrap.js-validation .question_wrap .privacy-summary {
    padding: 10px !important;
    line-height: 1.55 !important;
  }

  section.section_wrap.js-validation .question_wrap .privacy-summary > h3 {
    margin-bottom: 6px !important;
    padding-bottom: 5px !important;
  }

  section.section_wrap.js-validation .question_wrap .privacy-summary .policy-intro,
  section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section {
    margin: 0 0 6px !important;
  }

  section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section p,
  section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section li {
    margin: 0 0 4px !important;
    line-height: 1.55 !important;
  }

  section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section ul {
    margin: 3px 0 5px !important;
    padding-left: 18px !important;
  }

  section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section h2 {
    margin: 7px 0 3px !important;
    line-height: 1.5 !important;
  }
}

/* Center the privacy consent control on desktop without the extra required badge. */
@media screen and (min-width: 768px) {
  .privacy-agreement-row {
    justify-content: center !important;
    padding: 14px 0 !important;
    border-bottom: 0 !important;
  }

  .privacy-agreement-row .check_important {
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }

  .privacy-agreement-row .check_important input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 8px 0 0 !important;
    transform: none !important;
  }

  .privacy-agreement-row .require_label {
    display: none !important;
  }
}

/* Final overrides for the embedded privacy policy after legacy form styles. */
section.section_wrap.js-validation .question_wrap .privacy-summary {
  border-color: #f0d4bd !important;
  padding: 10px 12px !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary > h3 {
  margin: 0 0 7px !important;
  padding: 0 0 5px !important;
  border-bottom-color: #f0d4bd !important;
  color: #e45c0b !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section {
  margin: 0 0 7px !important;
  padding: 0 0 6px !important;
  border-bottom: 1px solid #f0d4bd !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section h2 {
  position: static !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 5px 0 3px !important;
  padding: 0 0 0 7px !important;
  border: 0 !important;
  border-left: 3px solid #ef741f !important;
  background: transparent !important;
  color: #e45c0b !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-align: left !important;
}
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section h2::before,
section.section_wrap.js-validation .question_wrap .privacy-summary .policy-section h2::after {
  content: none !important;
  display: none !important;
}

/* One shared panel width for the top page and its subpages. */
:root {
  --lp-main-panel-width: 1080px;
  --lp-mobile-panel-width: 390px;
}
html.is-top div.l-wrap {
  width: min(100%, var(--lp-main-panel-width)) !important;
  max-width: var(--lp-main-panel-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media screen and (max-width: 767px) {
  html.is-top div.l-wrap {
    width: min(100%, var(--lp-mobile-panel-width)) !important;
    max-width: var(--lp-mobile-panel-width) !important;
  }
}

/* Full-width, centered privacy consent bar with a visible orange required tag. */
section.section_wrap.js-validation .question_wrap .agreement_container {
  display: block !important;
  grid-template-columns: none !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
section.section_wrap.js-validation .question_wrap .privacy-agreement-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 58px !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #fff3e8 !important;
  box-sizing: border-box !important;
}
section.section_wrap.js-validation .question_wrap .privacy-agreement-row .check_important {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #222 !important;
}
section.section_wrap.js-validation .question_wrap .privacy-agreement-row .check_important a {
  color: #e45c0b !important;
  text-decoration: underline !important;
}
section.section_wrap.js-validation .question_wrap .privacy-agreement-row .check_important input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 8px 0 0 !important;
  transform: none !important;
}
section.section_wrap.js-validation .question_wrap .privacy-agreement-row .require_label {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 3.4rem !important;
  height: 2.4rem !important;
  padding: 0 0.4rem !important;
  border-radius: 0.5rem !important;
  background-color: #df2514 !important;
  color: #fff !important;
  font-size: 1.2rem !important;
  line-height: 1 !important;
}
@media screen and (max-width: 999px) {
  section.section_wrap.js-validation .question_wrap .privacy-agreement-row .require_label {
    min-width: 28px !important;
    height: auto !important;
    padding: 3px 5px !important;
    border-radius: 2px !important;
    font-size: 10px !important;
  }
}
@media screen and (max-width: 767px) {
  section.section_wrap.js-validation .question_wrap .privacy-agreement-row {
    gap: 6px !important;
    min-height: 42px !important;
    padding: 7px 8px !important;
  }
  section.section_wrap.js-validation .question_wrap .privacy-agreement-row .check_important {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  section.section_wrap.js-validation .question_wrap .privacy-agreement-row .check_important input {
    width: 16px !important;
    height: 16px !important;
    margin: 0 6px 0 0 !important;
  }
  section.section_wrap.js-validation .question_wrap .privacy-agreement-row .require_label {
    min-width: 34px !important;
    height: 21px !important;
    padding: 0 6px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    box-sizing: border-box !important;
  }
}
section.section_wrap.js-validation .question_wrap .privacy-summary {
  margin-top: 0 !important;
}
/* Keep the telephone note compact and on one line at every form width. */
section.section_wrap.js-validation .question_wrap.personal_detail .input_note {
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

/* Keep the top-page footer directly after the currently visible form step. */
html.is-top body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: 100vh !important;
}
html.is-top div.l-wrap {
  display: flex !important;
  flex: 1 0 auto !important;
  flex-direction: column !important;
  background: #fff !important;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
html.is-top main.l-main,
html.is-top #diagnosis-form {
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
html.is-top main.l-main {
  flex: 1 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  background: #fff !important;
}
html.is-top footer.c-footer-privacy {
  display: block !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  box-sizing: border-box !important;
}
@media screen and (min-width: 768px) {
  .form-guide-compact {
    grid-template-columns: 20% minmax(0, 1fr) 20%;
    height: 164px;
  }
  .form-guide-compact__visual {
    height: 164px;
    background: transparent;
  }
  .form-guide-compact__visual::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    height: 28px;
    background: linear-gradient(transparent, #fffaf0);
  }
  .form-guide-compact__visual--teacher::before {
    background: linear-gradient(transparent, #fff5d8);
  }
  .form-guide-compact__teacher {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 164px;
    height: 205px;
    object-fit: contain;
    transform: translateX(-50%);
  }
  .form-guide-compact__copy h1 {
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.3;
  }
  .form-guide-compact__copy p {
    margin-top: 12px !important;
    padding: 8px 24px;
    font-size: clamp(14px, 1.7vw, 18px);
    line-height: 1.4;
  }
  html.is-top .section_wrap.active:not(.is-answered),
  html.is-top .section_wrap.is-revealed:not(.is-answered) {
    padding-bottom: 14px !important;
  }
  html.is-top .section_wrap.is-answered {
    padding-bottom: 10px !important;
  }
  html.is-top .question_wrap ul.question_list {
    grid-template-columns: minmax(0, 520px) !important;
    justify-content: center !important;
    gap: 12px !important;
  }
  html.is-top .question_wrap .question_list li {
    width: 100% !important;
    max-width: 520px !important;
  }
  html.is-top .question_wrap .question_list li label {
    width: 100% !important;
    min-height: 58px !important;
    padding: 8px 16px !important;
    font-size: 21px !important;
  }
}
