/* NISA診断 - ページ固有のスタイル */

html {
    scroll-behavior: smooth;
}

/* 背景色を白に統一（アップロード先のform.cssを上書き） */
body,
.main-content,
.result-section,
.compare-section,
.compare-card,
.faq-section,
.faq-list,
.faq-item,
#form-container,
.reserve_lp_reserve,
.content_inner {
    background-color: #FFFFFF !important;
}

/* 診断でわかること（list） */
.fv {
    width: 100%;
    max-width: 648px;
    margin: 0 auto;
    line-height: 0;
    position: relative;
    background: #fff;
}

.fv-image {
    width: 100%;
    height: auto;
    display: block;
}

.fv-list {
}

/* =====================
   診断コンテンツ
   ===================== */
.diagnosis {
    width: 100%;
    max-width: 648px;
    margin: 0 auto;
    padding: 40px 16px;
    background: #fff;
}

/* 設問カード */
.question-card {
    background: #fff;
    border: 2px solid #002C23;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
}

/* 設問番号 */
.question-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 24px;
    font-weight: 700;
    color: #2d9b6a;
    font-style: italic;
}

/* 設問文 */
.question-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-top: 8px;
    line-height: 1.5;
}

/* 設問画像 */
.question-image {
    width: 100%;
    margin-bottom: 20px;
}

.question-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* 設問アイコン */
.question-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1;
}

/* 選択肢ボタン */
.question-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* 設問1用のボタングリッド */
.question-options--q1 {
    grid-template-columns: 1fr 1fr;
}

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

.option-with-recommend {
    position: relative;
    min-width: 0; /* グリッド内で他セルと同じ幅になるように */
}

.option-with-recommend .option-btn {
    width: 100%;
    box-sizing: border-box;
}

.option-recommend {
    position: absolute;
    top: -18px;
    right: 16px;
    left: auto;
    font-size: 11px;
    font-weight: 900;
    color: #e67e22;
    letter-spacing: 0.02em;
    pointer-events: none;
    white-space: nowrap;
}

/* 設問2用のボタングリッド */
.question-options--q2 {
    grid-template-columns: 1fr 1fr;
}

.option-btn--q2 {
    font-size: 15px;
    padding: 14px 12px;
}

/* その他ボタンの下の入力欄（2列分の横幅） */
.other-input-below {
    display: none;
    grid-column: 1 / -1;
}

.other-input-below.show {
    display: block;
}

.other-input-below .other-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    text-align: left;
}

/* 設問3用のボタングリッド */
.question-options--q3 {
    grid-template-columns: 1fr 1fr;
}

.option-btn--q3 {
    font-size: 15px;
    padding: 14px 12px;
}

.option-btn {
    background: #fff;
    border: 2px solid #2d9b6a;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #2d9b6a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: #2d9b6a;
    color: #fff;
}

.option-btn.selected {
    background: #FBF300;
    color: #002C23;
    border-color: #2d9b6a;
}

/* 設問の注釈 */
.question-note {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 12px;
}

/* 設問5〜9: 小さい太字の注釈（※〜） */
.question-note--bold {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
}

/* 設問6〜9: タイトル内の小さい太字（1つのh3で改行＋span） */
.question-title-sub {
    font-size: 15px;
    font-weight: 700;
    color: #666;
}

/* 設問6〜9: 設問文の行間を1.0に */
.question-card--tight-line .question-title {
    line-height: 1.3;
}

.question-subtitle {
    text-align: center;
    margin: 4px 0 0 0;
}

.question-subtitle-small {
    font-size: 12px;
    font-weight: 700;
    color: #666;
}

/* 1行に1選択肢（設問5・6） */
.question-options--single {
    grid-template-columns: 1fr;
    gap: 10px;
}

.option-btn--q5,
.option-btn--q6 {
    font-size: 15px;
    padding: 14px 16px;
    text-align: center;
    white-space: normal;
}

/* 設問7: 郵便番号入力 */
.question-options--zip {
    display: block;
}

.zip-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zip-input {
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
    letter-spacing: 0.1em;
}

/* 入力時エラー表示（郵便番号・メールアドレス） */
.input-error-msg {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #c00;
    text-align: center;
    margin-top: 6px;
    min-height: 1.4em;
}

.zip-input-hint {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    text-align: center;
}

/* 設問11・12: 入力欄下の注釈（ハイフンなし7桁と同じデザイン） */
.question-input-with-hint {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 400px;
    margin: 0 auto;
}

.question-input-hint {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    text-align: center;
}

/* 設問8: 性別（2列のまま） */
.question-options--q8 {
    grid-template-columns: 1fr 1fr;
}

.option-btn--q8 {
    font-size: 16px;
    padding: 16px;
}

/* 設問9: 生年月日 */
.question-options--birthdate {
    display: block;
}

.birth-date-inputs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.birth-date-item {
    flex: 0 0 auto;
}

.birth-date-item .birth-select {
    min-width: 90px;
    padding: 14px 36px 14px 16px;
}

/* 設問10〜12: テキスト入力 */
.question-options--text {
    display: block;
}

/* 設問10: 名前とフリガナを縦に並べる */
.name-kana-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.name-inputs--diagnosis {
    display: flex;
    gap: 12px;
    width: 100%;
}

.name-inputs--diagnosis .diagnosis-text-input {
    flex: 1;
}

.diagnosis-text-input {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    text-align: left;
}

.question-options--text .diagnosis-text-input:only-of-type {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .name-inputs--diagnosis {
        gap: 8px;
        max-width: 100%;
    }
}

/* 診断結果へ進むセクション */
.diagnosis-submit {
    margin-top: 40px;
    text-align: center;
}

.diagnosis-submit-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.diagnosis-submit-btn {
    display: block;
    margin: 24px auto 0;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.diagnosis-submit-btn-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 50px;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease;
}

.diagnosis-submit-btn:hover .diagnosis-submit-btn-image {
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(2px);
}

.diagnosis-submit-btn:active .diagnosis-submit-btn-image {
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(4px);
}

.diagnosis-submit-btn.disabled .diagnosis-submit-btn-image {
    opacity: 0.5;
    filter: grayscale(30%);
}

.diagnosis-submit-btn.disabled:hover .diagnosis-submit-btn-image {
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
    transform: none;
}

/* 診断送信ボタン下の利用規約注釈 */
.diagnosis-terms-note {
    margin: 16px auto 0;
    max-width: 500px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}
.diagnosis-terms-link {
    color: #2d9b6a;
    text-decoration: underline;
    cursor: pointer;
}
.diagnosis-terms-link:hover {
    color: #237a52;
}

/* 利用規約モーダル（診断結果表示用） */
.terms-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
.terms-modal.is-open {
    visibility: visible;
    opacity: 1;
}
.terms-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.terms-modal-window {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.terms-modal-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f8f8;
}
.terms-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.terms-modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.terms-modal-close:hover {
    background: #eee;
    color: #333;
}
.terms-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.terms-modal-body .reserve_lp_reserve_form_kiyaku {
    padding: 0;
}

/* セレクトボックス */
.select-wrapper {
    position: relative;
    width: 100%;
    grid-column: 1 / -1;
}

.option-select {
    width: 100%;
    padding: 14px 40px 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #2d9b6a;
    background: #fff;
    border: 2px solid #2d9b6a;
    border-radius: 30px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #2d9b6a;
    pointer-events: none;
}

.option-select:focus {
    outline: none;
    background: #fff;
}

.option-select option {
    background: #fff;
    color: #002C23;
}

.option-select option:disabled {
    background: #2864f0 !important;
    color: #fff !important;
}

.option-select option:checked,
.option-select option:hover,
.option-select option:focus,
.option-select option:active,
.option-select option:disabled:checked {
    background: #2864f0 !important;
    color: #fff !important;
}

.option-select {
    color: #002C23;
}

.option-select.has-value {
    background: #FBF300;
}

/* その他入力欄 */
.other-input-wrapper {
    margin-top: 12px;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-suffix {
    font-size: 16px;
    font-weight: 600;
    color: #002C23;
}

.input-with-suffix {
    position: relative;
    width: 100%;
}

.input-with-suffix .other-input-number {
    padding-right: 60px;
}

.input-suffix-inside {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600;
    color: #002C23;
    pointer-events: none;
}

.other-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    color: #002C23;
    background: #fff;
    border: 2px solid #2d9b6a;
    border-radius: 30px;
    text-align: center;
}

.other-input:focus {
    outline: none !important;
    border-color: #2d9b6a !important;
    box-shadow: none !important;
}

.other-input:focus-visible {
    outline: none !important;
    border-color: #2d9b6a !important;
    box-shadow: none !important;
}

.other-input::placeholder {
    color: #999;
}

.other-input.has-value {
    background: #FBF300;
}

/* =====================
   診断結果
   ===================== */
.result-section {
    width: 100%;
    max-width: 648px;
    margin: 40px auto 80px;
    padding: 0 16px;
    color: #002C23;
}

/* 診断結果以降を非表示（初期状態） */
.main-content {
    display: none;
}

.main-content.show {
    display: block;
}

/* フォームを非表示（初期状態） */
#form-container {
    display: none;
}

#form-container.show {
    display: block;
}

/* ===== 日程回答フォーム（nitteikakunin と同じデザイン） ===== */
/* LP独自：お名前・電話・メール欄（日程の後・規約の前） */
.reserve_lp_reserve_form_lp_fields {
    margin-top: 0;
    margin-bottom: 24px;
}
.reserve_lp_reserve_form_lp_fields .reserve_lp_reserve_form_q + .reserve_lp_reserve_form_content {
    margin-bottom: 16px;
}
/* 入力欄の角を「平日の午前中」ボタンと同じ形（border-radius: 8px）、枠色は黒に */
.reserve_lp_reserve_form_lp_fields .lp-form-input,
.reserve_lp_reserve_form_lp_fields .other-input.diagnosis-text-input {
    border-radius: 8px;
    border-color: #020202;
}
.reserve_lp_reserve_form_lp_fields .lp-form-input:focus,
.reserve_lp_reserve_form_lp_fields .other-input.diagnosis-text-input:focus,
.reserve_lp_reserve_form_lp_fields .lp-form-input:focus-visible,
.reserve_lp_reserve_form_lp_fields .other-input.diagnosis-text-input:focus-visible {
    border-color: #020202 !important;
}

.nittei-schedule-block {
    margin-bottom: 32px;
    padding: 0;
}

.nittei-schedule-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

.nittei-bulk-section {
    margin-bottom: 12px;
}

.nittei-bulk-label {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px 0;
}

.nittei-bulk-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nittei-bulk-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nittei-bulk-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #007aff;
    background: #fff;
    border: 1px solid #007aff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nittei-bulk-btn:hover:not(.active) {
    background: #fff;
}

.nittei-bulk-btn.active {
    background: #007aff;
    color: #fff;
    border-color: #007aff;
}

.nittei-week-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.nittei-week-prev {
    padding: 6px 12px;
    font-size: 13px;
    color: #999;
    background: transparent;
    border: none;
    cursor: not-allowed;
}

.nittei-week-prev:not(:disabled) {
    color: #007aff;
    border-bottom: 1px solid #007aff;
    cursor: pointer;
}

.nittei-week-prev:not(:disabled):hover {
    opacity: 0.8;
}

.nittei-week-next {
    padding: 6px 12px;
    font-size: 13px;
    color: #007aff;
    background: transparent;
    border: none;
    border-bottom: 1px solid #007aff;
    cursor: pointer;
}

.nittei-week-next:disabled {
    color: #999;
    border-bottom: none;
    cursor: not-allowed;
}

.nittei-week-next:not(:disabled):hover {
    opacity: 0.8;
}

.nittei-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.nittei-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
}

/* 横の線は#ddd、縦の線は白（行を横一列とみなして縦線のみ白に） */
.nittei-table th,
.nittei-table td {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    padding: 2px 1px;
    text-align: center;
    vertical-align: middle;
}

.nittei-table th:first-child,
.nittei-table td:first-child {
    border-left-color: #ddd;
}

.nittei-table th:last-child,
.nittei-table td:last-child {
    border-right-color: #ddd;
}

.nittei-th-time {
    width: 11%;
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #fff;
}

.nittei-th-day {
    width: 12.71%;
    background: #fff;
}

.nittei-th-sat {
    background: #E1F0FF;
}

.nittei-th-sun {
    background: #FFE1E1;
}

.nittei-th-inner {
    line-height: 1.2;
}

.nittei-th-date {
    margin: 0;
    font-weight: 700;
    color: #111;
}

.nittei-th-dow {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #666;
}

.nittei-td-time {
    background: #fff;
    width: 11%;
    border-left: 1px solid #ddd;
    border-right: 1px solid #fff;
}

.nittei-td-time p {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: #333;
}

.nittei-td-cell {
    width: 12.71%;
    height: 28px;
    background: #fff;
}

.nittei-td-cell.nittei-sat {
    background: #E1F0FF;
}

.nittei-td-cell.nittei-sun {
    background: #FFE1E1;
}

.nittei-td-cell.nittei-disabled {
    background: #fff;
}

/* 選択不可セル：グレーのチェックボックスに白い× */
.nittei-td-cell.nittei-disabled .nittei-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #b0b0b0;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    border-radius: 3px;
}

.nittei-check-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 22px;
    cursor: pointer;
    margin: 0;
}

.nittei-check {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.nittei-checkbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 1px solid #666;
    background: #fff;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
}

.nittei-check:checked + .nittei-checkbox {
    background: #007aff;
    border-color: #007aff;
}

.nittei-check:checked + .nittei-checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.nittei-x {
    display: inline-block;
    color: #999;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

.nittei-nextweek-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nittei-nextweek-btn {
    display: none;
}

.nittei-nextweek-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    margin: 0;
}

.nittei-nextweek-check {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.nittei-nextweek-box {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid #666;
    background: #fff;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}

.nittei-nextweek-check:checked + .nittei-nextweek-box {
    background: #007aff;
    border-color: #007aff;
}

.nittei-nextweek-check:checked + .nittei-nextweek-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.result-heading {
    text-align: center;
    margin-bottom: 32px;
}

.result-label {
    display: inline-block;
    background: #ff7e36;
    color: #fff;
    padding: 8px 32px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.result-purpose {
    padding: 8px 0;
    text-align: center;
}

.result-purpose-title {
    font-size: 22px;
    font-weight: 700;
    color: #183028;
    margin: 0 0 0 0;
}

.result-purpose-body {
    font-size: 22px;
    font-weight: 700;
    color: #183028;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.result-purpose-body span {
    display: inline-block;
    color: #0bb783;
}

.saving-card {
    background: #fff;
    border: 2px solid #0BB783;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.saving-card-header {
    background: #00b38a;
    color: #fff;
    font-weight: 700;
    text-align: center;
    padding: 16px;
    font-size: 18px;
}

.saving-card-body {
    padding: 24px 20px 28px;
    text-align: center;
    color: #111;
    font-weight: 700;
}

.saving-pace {
    font-size: 20px;
    margin-bottom: 18px;
}

.saving-list {
    background: #f8ffe8;
    border-radius: 12px;
    padding: 18px 12px;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.saving-list p {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    margin: 6px 0;
}

.saving-list .year-num,
.saving-list .amount-num {
    font-size: 1.5em;
    font-weight: 800;
    line-height: 1.1;
    display: inline-block;
    transform: translateY(2px);
}

.saving-list .year-unit,
.saving-list .amount-unit {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.saving-note {
    font-size: 18px;
}

.compare-section {
    text-align: center;
    color: #111;
}

.compare-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 20px;
}

.compare-card {
    background: #fff;
    border: 2px solid #0BB783;
    border-radius: 12px;
    padding: 24px 20px 40px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.compare-subtitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.compare-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.legend {
    display: inline-flex;
    flex: 1;
    max-width: 160px;
}

.legend-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 700;
    color: #fff;
    width: 100%;
    justify-content: center;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.legend-pill-label {
    font-size: 16px;
}

.legend-pill-value {
    font-size: 18px;
}

@media (max-width: 480px) {
    .legend-pill {
        flex-direction: column;
        gap: 4px;
        padding: 10px 12px;
        white-space: normal;
    }
    
    .legend-pill-label {
        font-size: 14px;
    }
    
    .legend-pill-value {
        font-size: 16px;
    }
}

.saving-pill {
    background: #b3b3b3;
    border: 2px solid #999;
    color: #fff;
}

.nisa-pill {
    background: #ff7e36;
    border: 2px solid #e66a25;
    color: #fff;
}

/* =====================
   棒グラフ
   ===================== */
.bar-chart-container {
    margin-top: 12px;
    padding-top: 12px;
}

/* 棒グラフ下の銘柄選び方メッセージ */
.chart-brand-note {
    background: #D3F791;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    margin: 12px 0 0;
    padding: 12px 16px;
    text-align: left;
    border-radius: 8px;
}

.chart-brand-note-highlight {
    color: #FF7E36;
    font-weight: 700;
}

.bar-chart-unit {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    margin-bottom: 4px;
    width: 40px;
    text-align: right;
    padding-right: 6px;
    box-sizing: border-box;
    white-space: nowrap;
}

.bar-chart-wrapper {
    display: flex;
}

/* Y軸（目盛り） */
.bar-y-axis {
    width: 40px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 480px;
    text-align: right;
    padding-right: 6px;
    box-sizing: border-box;
}

.y-tick {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    line-height: 1;
    transform: translateY(50%);
}

.y-tick:first-child {
    transform: translateY(0);
}

.y-tick:last-child {
    transform: translateY(0);
}

/* グラフ本体 */
.bar-chart-area {
    flex: 1;
    height: 480px;
    position: relative;
    border-left: 1px solid #999;
    border-bottom: 1px solid #999;
    margin-bottom: 32px;
}

/* 点線グリッド（15本：500刻みで7500まで） */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-line {
    border-bottom: 1px dashed #ccc;
}

.grid-line:last-child {
    border-bottom: none;
}

/* 棒グラフのグループ */
.bar-groups {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.bar-value-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar-value-label {
    font-size: 10px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    white-space: nowrap;
}

.bar {
    width: 24px;
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
}

.saving-bar {
    background: #b3b3b3;
}

.nisa-bar {
    background: #ff7e36;
}

.bar-label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    position: absolute;
    bottom: -28px;
    white-space: nowrap;
}

.bar-group {
    position: relative;
}

/* シミュレーション注釈 */
.simulation-note {
    font-size: 12px;
    color: #666;
    text-align: left;
    margin-top: 16px;
    margin-bottom: 0;
}

/* 今年NISAを始めた場合と来年以降〜（compare-titleと同じスタイル） */
.compare-title--secondary {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.6;
    color: #111;
    margin-top: 20px;
    margin-bottom: 0;
}

/* 損失額タイミング表（compare-cardと同じ枠色） */
.loss-timing-card {
    background: #fff;
    border: 2px solid #0BB783;
    border-radius: 12px;
    padding: 24px 20px;
    margin-top: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.loss-timing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.loss-timing-th {
    text-align: center;
    font-weight: 700;
    color: #111;
    padding: 10px 12px;
    border-bottom: 2px solid #111;
}

.loss-timing-th:first-child,
.loss-timing-td:first-child {
    width: 210px;
}

.loss-timing-td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    color: #111;
    text-align: center;
    font-weight: 700;
}

.loss-timing-table tbody tr:last-child .loss-timing-td {
    border-bottom: none;
}

/* 計算方法アコーディオン */
.calc-accordion {
    margin-top: 12px;
}

.calc-accordion-toggle {
    width: 100%;
    font-size: 12px;
    color: #333;
    background: #e0e0e0;
    padding: 10px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.calc-accordion-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.calc-accordion-toggle.open .calc-accordion-icon {
    transform: rotate(180deg);
}

.calc-accordion-content {
    display: none;
    background: #f5f5f5;
    padding: 12px;
    border-radius: 0 0 4px 4px;
    font-size: 12px;
    color: #333;
    text-align: left;
}

.calc-accordion-content.open {
    display: block;
}

.calc-accordion-content p {
    margin: 0 0 8px 0;
}

.calc-accordion-content p:last-child {
    margin-bottom: 0;
}

/* 少額からでも 今年始めた方がお得（sankou風） */
.sankou-copy-block {
    margin-top: 0;
    width: 100%;
}

.sankou-copy {
    background: none;
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 0 0;
    padding: 20px 24px 0;
}

.sankou-copy-large {
    font-size: 1.25em;
}

/* 提案セクション */
.teian-section {
    margin-top: 0;
    width: 100vw;
    max-width: 648px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.teian-balloon {
    background: #0BB783;
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.teian-balloon::after {
    content: '';
    position: absolute;
    bottom: -29px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    border-top: 30px solid #0BB783;
}

.teian-line1 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.teian-line2 {
    font-size: 36px;
    font-weight: 900;
    color: #FBF300;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.teian-highlight {
    font-size: 1.25em;
}

.teian-nisa {
    font-style: normal;
    font-weight: 900;
    letter-spacing: 1px;
}

.teian-line3 {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.teian-arrow {
    height: 30px;
    display: none;
}

.teian-section + .cta-button-section {
    margin-top: 10px;
}

/* CTAボタンセクション */
.cta-button-section {
    background: #fff;
    padding: 28px 0 40px;
    text-align: center;
}

.cta-microcopy {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto 20px;
}

.cta-microcopy-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.cta-microcopy-text--top-space {
    margin-top: 3px;
}

.cta-microcopy-text .slash {
    font-size: 14px;
}

.cta-microcopy-text .cta-free {
    font-size: 30px;
    color: #FF7E36;
}

.cta-button-link {
    display: block;
    margin: 0 auto;
    max-width: 500px;
}

.cta-button-image {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.2));
    transition: all 0.1s ease;
}

.cta-button-link:hover .cta-button-image {
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.2));
    transform: translateY(2px);
}

.cta-button-link:active .cta-button-image {
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.2));
    transform: translateY(4px);
}

.cta-note {
    font-size: 12px;
    color: #666;
    margin-top: 21px;
}

.cta-button-section--no-top-margin {
    padding-top: 0;
    padding-bottom: 20px;
}

/* 質問OKセクション */
.shitumonok-section {
    margin-top: 0;
    line-height: 0;
}

.shitumonok-image {
    width: 100%;
    height: auto;
    display: block;
}

/* よくある質問セクション */
.faq-section {
    margin-top: 40px;
    width: 100vw;
    max-width: 648px;
    margin-left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
    background: #fff;
}

.faq-header {
    background: #0BB783;
    padding: 16px 20px;
    text-align: center;
}

.faq-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.faq-list {
    padding: 24px 16px 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #0BB783;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.faq-answer {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.7;
    text-align: left;
}

/* お悩みセクション */
.onayami-section {
    margin-top: 0;
    width: 100vw;
    max-width: 648px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.onayami-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 480px) {
    .teian-line1 {
        font-size: 15px;
    }
    .teian-line2,
    .teian-line3 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .result-section {
        padding: 0 8px;
    }
    .saving-list {
        font-size: 18px;
    }
    .bar-chart {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

/* フォームの初期表示を非表示に */
#reserve-lp-form-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* フッターと重ならないよう下に十分な余白を確保 */
    margin-bottom: 280px;
    padding-bottom: 64px;
}

#reserve-lp-form-section.show {
    display: block;
    opacity: 1;
}

/* フォーム見出しを中央揃え */
#reserve-lp-form-section .reserve_lp_reserve_header_title {
    text-align: center;
}

/* フォーム外枠の縦幅を長く（利用規約がはみ出さないように） */
#reserve-lp-form-section .reserve_lp_reserve_form_wrap {
    min-height: 2400px;
}

/* 申込内容の確認画面：公式LINEの文を「下記ボタンで申し込み～～」と同じ太さ・色に */
.confirmation-thanks,
.confirmation-note {
    font-size: calc(1em - 5px);
}
.confirmation-note {
    font-weight: 600;
    color: #183028;
}

/* ＼あと1ステップで予約完了！／の上の余白を1/2に */
.confirmation-step {
    margin-top: 16px;
}

/* 申込内容の確認画面：「この内容で予約する」ボタン（旧LINE画像ボタンと同じ大きさ・角最大限丸く） */
.confirmation-submit-btn {
    display: block;
    width: 100%;
    max-width: 343px;
    margin: 16px auto 16px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #06c755;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    line-height: 1.3;
}

.confirmation-submit-btn:hover {
    opacity: 0.9;
}
