:root {
    /* カラー */
    --color-orange: #FFA011;
    --color-yellow: #FFCC0D;
    --color-black: #333333;
    --color-red: #CC0C39;
    --color-main: #F1921F;
    --color-gray: #9a9a9a;
    --color-buttonactive: #265AD2;

    /* 余白 */
    --spacing-horizontal: 16px;
    --spacing-vertical: 16px;
    --spacing-item-button: 2px;
    --spacing-button-item: 20px;

    /* ページサイズ */
    --page-width: 440px;
}

[hidden] {
    display: none !important;
}

.text-orange {
    color: var(--color-orange);
}

.text-yellow {
    color: var(--color-yellow);
}

.text-black {
    color: var(--color-black);
}

.text-red {
    color: var(--color-red);
}

.text-orange--main {
    color: var(--color-main);
}

.input-text::placeholder {
    color: #ddd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /*font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;*/
    font-family: 'Noto Sans JP', sans-serif;
}

#common_header .fixed {
    position: relative !important;
}

.cf_main,
.cf_sub,
#common_footer .cf_fixed {
    display: none !important;
}

#common_footer {
    padding-bottom: 0 !important;
}

select {
    /* ネイティブなスタイルを無効化 */
    -webkit-appearance: none;
    /* Safari/Chrome向け */
    -moz-appearance: none;
    /* Firefox向け */
    appearance: none;

    /* 任意のスタイルを適用 */
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;

    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
    /* 矢印分の余白を確保 */

    color: var(--color-black);
}

.estimate-form {
    width: var(--page-width);
    max-width: 100%;
    margin: 30px auto;
    padding: 0 var(--spacing-horizontal);
    font-size: 16px;
    color: var(--color-black);
}

.question-group {
    margin-top: 35px;
}

.option {
    flex-direction: column;
}

h3 {
    border-left: 10px solid var(--color-main);
    padding: 0.6em 0 0.7em 0.5em;
    line-height: 1em;
    font-size: 1rem;
    margin-top: 2rem;
}

.sticky_wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    background: #fff;
}

.form_step {
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: var(--page-width);
    margin: 0 auto;
}

.form_step img {
    width: 60px;
}

.form_step h2 {
    font-size: 23px;
    font-weight: bold;
}

fieldset {
    border: none;
    margin: 0 0 var(--spacing-button-item) 0;
    padding: 0;
}

legend {
    font-weight: bold;
    margin: 0 0 var(--spacing-item-button) 0;
    padding: 0;
}

.required-label:before {
    content: "必須";
    background-color: var(--color-red);
    color: #fff;
    font-size: 0.6em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

.no-required-label:before {
    content: "任意";
    background-color: #000;
    color: #fff;
    font-size: 0.6em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

.question {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 0;
    justify-content: space-between;
    width: 100%;
}

.button-label {
    border: 1px solid var(--color-gray);
    display: inline-block;
    border-radius: 5px;
    font-size: 0.88rem;
    padding: 1em 0;
    text-align: center;
    cursor: pointer;
    flex-basis: calc(50% - 5px);
    width: auto;
}

.button-label.flex-3 {
    flex-basis: calc(33% - 5px);
}

.button-label.flex-full {
    flex-basis: 100%;
}

.button-label input[type="radio"] {
    /*display: none;*/
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.button-label:has(input[type="radio"]:checked) {
    background-color: var(--color-buttonactive);
    color: #fff;
    font-weight: bold;
}

.button-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.button-label:has(input[type="checkbox"]:checked) {
    background-color: var(--color-buttonactive);
    color: #fff;
    font-weight: bold;
}

.button-label.gray-style:has(input[type="checkbox"]:checked) {
    background-color: #D8D8D8;
    color: #8e8e8e;
    position: relative;
}

.button-label.gray-style::after {
    content: "※従業員は特別加入できません";
    display: none;
}

.button-label.gray-style:has(input[type="checkbox"]:checked)::after {
    display: block;
    position: absolute;
    color: var(--color-black);
    font-weight: bold;
    font-size: 12px;
    width: 105%;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.common-button {
    width: 100%;
    font-size: 0.88rem;
    border: none;
    border-radius: 2em;
    padding: 0.7em 0;
    margin: var(--spacing-button-item) 0;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    color: var(--color-black);
    text-decoration: none;
}

.common-button:hover {
    filter: brightness(95%);
}

.common-button.yellow {
    background-color: var(--color-yellow);
}

.common-button.orange {
    background-color: var(--color-orange);
}

.common-button:active {
    background-color: var(--color-green);
    color: #fff;
}

.price-result-display {
    margin: 40px 0;
}

.price-result {
    border-top: 1px solid var(--color-gray);
    /*border-bottom: 1px solid var(--color-gray);*/
    width: auto;
    margin: 0 1rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-weight: bold;
    align-items: center;
}

.result-value {
    text-align: right;
    font-size: 1.5rem;
}

.price-nichigaku {
    margin: 0;
    font-size: 0.88rem;
}

.price-period {
    margin: 0;
    font-size: 0.88rem;
}

.re-estimate-title {
    font-size: 0.88rem;
    text-align: center;
    font-weight: bold;
    width: 100%;
}

.result-box {
    border: 1px solid var(--color-green);
    border-radius: 5px;
    padding: 1em 0;
    text-align: center;
    font-size: 0.88rem;
}

.result-box p {
    margin: 0;
}

.result-message-ok {
    color: var(--color-green);
    line-height: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--color-green);
}

.result-message-confirm {
    padding-top: 1em;
    line-height: 1.5em;
}

.result-message-confirm-title {
    font-weight: bold;
    font-size: 1.1em;
    padding-bottom: 0.5em;
}

.input-text {
    width: 100%;
    border: 1px solid var(--color-gray);
    border-radius: 5px;
    padding: 1em;
    font-size: 1rem;
}

.input-textarea {
    width: 100%;
    min-height: 8em;
    border: 1px solid var(--color-gray);
    border-radius: 5px;
    padding: 1em;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.2em;
}

.twocolumn-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.additional-info {
    margin: 0;
    font-size: 0.7rem;
}

.input-select {
    border: 1px solid var(--color-gray);
    display: inline-block;
    border-radius: 5px;
    font-size: 1rem;
    padding: 1em;
    width: 100%;
}

.input-select.half {
    flex-basis: calc(50% - 5px);
}

.address_state {
    flex-basis: 100%;
}


p#ninzu_disp {
    display: flex;
    align-items: flex-end;
    font-size: 14px;
    margin-top: 0px;
    font-weight: bold;
}

span.ninzu {
    width: 1.5em;
    text-align: center;
    font-size: 25px;
    padding: 0;
    height: 1em;
    background-color: transparent;
}

input.kanyusya_input_copy {
    background-color: #fff;
    border: 1px solid #707070;
    border-radius: 30px;
    padding: 5px 0;
    width: 100%;
    max-width: 162px;
    margin-left: 10px;
    cursor: pointer;
}

input.kanyusya_input_copy:hover {
    filter: brightness(95%);
}

.toggle-title {
    color: var(--color-main);
    font-weight: bold;
    font-size: 0.88rem;
    cursor: pointer;
}

.toggle-title::before {
    content: '?';
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--color-main);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    margin-right: 5px;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

.josen-text {
    background-color: #FFFFE1;
    border: 1px solid var(--color-main);
    border-radius: 5px;
    padding: 1em;
    font-size: 0.88rem;
}

.motouke_kensu {
    margin: 0 5px;
}

.price-detail-title {
    color: var(--color-main);
    width: 100%;
    text-align: center;
    margin: 5px 0;
}

.payment-att {
    font-size: 14px;
    margin: 0;
    width: 100%;
}

.payment-camp-title {
    text-align: center;
    width: 100%;
    background-color: var(--color-red);
    color: #fff;
    font-weight: bold;
    line-height: 1em;
    padding: 7px;
}

.paid-check {
    width: 100%;
    /*cursor: auto;*/
}

.paid-red {
    color: var(--color-red);
    font-weight: bold;
}

.paid-text {
    font-size: 14px;
}

ul.paid-text {
    font-weight: bold;
}

/* custom-checkbox クラスを持つ input を非表示にする */
.custom-checkbox input[type="checkbox"] {
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* custom-checkbox クラスを持つ label のスタイル */
.custom-checkbox label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    /* テキスト選択を無効化して、よりボタンのように見せる */
    font-weight: bold;
    margin-top: 5px;
}

/* カスタムチェックボックスの四角いボックス部分 */
.custom-checkbox label::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border: 2px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    transition: background-color 0.2s, border-color 0.2s;
}

/* チェックされたときのボックスの色と枠線 */
.custom-checkbox input[type="checkbox"]:checked+label::before {
    background-color: var(--color-main);
    border-color: var(--color-main);
}

/* チェックマークのスタイル */
.custom-checkbox input[type="checkbox"]:checked+label::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 6px;
    border: solid #fff;
    border-width: 0 0 3px 3px;
    transform: translate(6px, -3px) rotate(-45deg);
}


/* 会則 */
.regulation_box {
    height: 100px;
    overflow: auto;
    border: 1px solid var(--color-gray);
    font-size: 12px;
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}


.price-detail-line {
    display: grid;
    grid-template-columns: 1fr 8em;
    width: 80%;
    margin: 0 auto;
    font-size: 0.88em;
    line-height: 1.5em;
}

.js-toggle-target {
    width: 100%;
}

.price-detail {
    margin: 1em auto;
}

.detail-value {
    text-align: right;
}

.detail-title {
    font-weight: bold;
}



.session_info {
    background-color: #fca;
    border-radius: 5px;
    padding: 1rem;
    position: relative;
    margin: 1rem 0 4rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.session_info_title {
    font-size: 1rem;
    font-weight: bold;
}

.session_info::after {
    content: '▼';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    color: #fca;
    font-size: 1.5rem;
}


.kikan-title {
    width: 100%;
    background-color: #FCFBCD;
    text-align: center;
    padding: 10px 0;
    margin: 0 0 10px 0;
    font-weight: bold;
    line-height: 1em;
}

.kikan-title-pop {
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1em;
}

.kikan-title-pop img {
    width: 80px;
}

.button-label.plan-button {
    flex-basis: 100%;
    /*
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 0;
    align-items: center;
    justify-content: center;
    text-align: right;
    */
    display: block;
    text-align: center;
    padding: 15px;
}

.plan-button-left {
    display: grid;
}

.plan-button-right {
    display: grid;
}

.plan-button-title {
    font-size: 1.2em;
}

.plan-button-info {
    font-size: 0.9em;
}

.plan-button-value-kingaku {
    font-size: 1.5em;
}

.plan-info-title {
    margin: 1em 0 0 0;
    cursor: default;
}

.plan-info-body p {
    margin: 0;
    padding: 0 1em;
}

legend.check {
    font-weight: normal;
    font-size: 0.9em;
    padding: 0 0 0 1em;
    margin-bottom: 1em;
}

.shiharaihouhou-info {
    font-size: 0.8em;
    padding-left: 1em;
}

.fix_banner {
    position: fixed;
    bottom: 0px;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--color-red);
}

.fix_banner img {
    display: block;
    width: 100%;
    max-width: var(--page-width);
    margin: 0 auto;
}




.price-result-detail {
    width: 100%;
    padding: 1rem;
}

.price-result-detail-line {
    width: 100%;
    margin: 0;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 8em;
    align-items: center;
    font-size: 0.8em;
    line-height: 1.6em;
}

.result-detail-value {
    text-align: right;
}

.price-result-detail-line .camp {
    color: var(--color-red);
    font-size: 1.2em;
    font-weight: bold;
}

.price-result-base {
    background-color: #f6f6f6;
    width: 100%;
}

body {
    padding-bottom: 60px;
}


.license-box-title {
    text-align: center;
    margin: var(--spacing-item-button);
    font-size: 1.2rem;
}

.license-box {
    border: 1px solid var(--color-main);
    border-radius: 5px;
    padding: var(--spacing-vertical) var(--spacing-horizontal);
    text-align: center;
    margin-bottom: 1em;
}

.license-box img {
    width: 80%;
    margin-top: 30px;
}

.note {
    font-size: 0.88em;
    text-align: left;
}

.note ul {
    list-style: none;
    padding: 0;
    font-weight: bold;
}

.note li {
    margin-bottom: 5px;
}

.common-info-box {
    background-color: #eee;
    padding: 1em;
    border-radius: 5px;
    font-size: 0.88rem;
}

.no-license-text ul {
    list-style: none;
    padding: 0;
}

.no-license-text li {
    margin-bottom: 5px;
    font-weight: bold;
}

.dl-button.white a {
    width: 100%;
    font-size: 0.88rem;
    border-radius: 2em;
    padding: 0.7em 0;
    margin: var(--spacing-button-item) 0;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    border: 1px solid #707070;
    text-decoration: none;
    color: var(--color-black);
    display: block;
    background-color: #fff;
}

.form-check-label {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    line-height: 1em;
    margin: 2em 0;
}

.form-check-label input[type="checkbox"] {
    width: 1.5em;
    height: 1.5em;
    margin: 0;
    position: relative;
    top: -1px;
}

.kanyu-kikan {
    color: var(--color-main);
    font-weight: bold;
}


.tanki-mask-base {
    position: relative;
}

.tanki-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 5px;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 9999;
}

.error-message {
    text-align: center;
    background-color: #FEF4F4;
    padding: 1em;
    color: #f009;
    border-radius: 5px;
}


.validation-wrapper {
    width: 100%;
}

.birth_year {
    flex-basis: calc(50% - 5px);
}

.birth_month {
    flex-basis: calc(25% - 5px);
}

.birth_day {
    flex-basis: calc(25% - 5px);
}

.filebutton {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    align-items: center;
    margin: 5px 0;
}

.validation-wrapper input.hidden-file-input {
    /* display: none; */
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.custom-file-upload-btn {
    display: block;
    width: 120px;
    padding: 5px 15px;
    background-color: #fff;
    border: 1px solid var(--color-gray);
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    font-size: 0.88rem;
}

.preview-box {
    max-width: 360px;
    width: 100%;
    height: 215px;
    border: 2px dashed #A0B9E6;
    border-radius: 5px;
    background-color: #F3F6F6;
    background-image: url(../img/file-picture.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 42px 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 auto;
}

.important-info {
    box-shadow: 1px 1px 2px 1px #cccc;
    border-radius: 5px;
    margin: 1em 0;
    padding: 1em 3em;
    font-size: 0.9em;
}

.important-info-title {
    text-align: center;
    font-weight: bold;
    color: #CC0C39;
    font-size: 1rem;
    margin: 0;
    padding: 1em 0;
    border-bottom: 1px solid #eee;
}

.important-info-strong {
    font-weight: bold;
    color: #CC0C39;
}

.quote {
    background-color: #fff;
    display: block;
    margin: 0 1em;
    padding: 1em;
    border-radius: 5px;
}

.quote-title {
    display: block;
    text-align: center;
    font-weight: bold;
}

.quote-list {
    list-style: none;
    padding: 0;
    line-height: 1.8em;
    margin: 1em 0 0 0;
}

.item-center {
    justify-content: center;
    align-items: center;
}

/* ==========================================
   完了画面 (done.php) 専用スタイル
   ========================================== */
.step-header-wrapper {
    border-bottom: 2px solid var(--color-main);
    background: #fff;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.step-header-content {
    max-width: var(--page-width, 440px);
    margin: 0 auto;
    padding: 15px var(--spacing-horizontal, 16px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.circle-step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--color-main);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
    margin-right: 15px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.step-num-large {
    font-size: 18px;
    font-weight: 900;
    color: var(--color-main);
    position: absolute;
    left: 7px;
    top: 3px;
    line-height: 1;
}

.step-num-separator {
    font-size: 14px;
    color: #ccc;
    position: absolute;
    left: 19px;
    top: 12px;
    line-height: 1;
}

.step-num-small {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    position: absolute;
    right: 7px;
    bottom: 4px;
    line-height: 1;
}

.step-header-content h2 {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-black, #333333);
    margin: 0;
    line-height: 1.2;
}

.done-container {
    width: var(--page-width, 440px);
    max-width: 100%;
    margin: 0 auto;
    padding: 40px var(--spacing-horizontal, 16px);
    box-sizing: border-box;
}

.done-card {
    background: #fff;
    padding: 35px 25px;
    text-align: center;
    box-sizing: border-box;
}

.done-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-black, #333333);
    margin: 0 0 24px 0;
    line-height: 1.4;
    text-align: center;
}

.done-text {
    font-size: 15px;
    color: var(--color-black, #333333);
    line-height: 1.7;
    margin: 0 0 30px 0;
    text-align: left;
}

.done-envelope-box {
    margin: 30px auto;
    text-align: center;
}

.done-envelope-box img {
    width: 120px;
    max-width: 100%;
    height: auto;
}

.done-contact-text {
    font-size: 14px;
    color: var(--color-black, #333333);
    margin: 0 0 15px 0;
    text-align: center;
}

.done-tel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    border: 1.5px solid #a0aec0;
    border-radius: 9999px;
    background-color: #ffffff;
    color: var(--color-black, #333333);
    font-size: 16px;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    margin: 0 auto 40px auto;
    text-align: center;
}

.done-tel-btn:hover {
    background-color: #f7fafc;
    border-color: #718096;
}

.flow-banner {
    background-color: var(--color-main);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    padding: 12px 10px;
    margin: 0 -25px 35px -25px;
    text-align: center;
    letter-spacing: 1px;
}

.flow-steps {
    text-align: left;
    margin-bottom: 35px;
    padding: 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step-num {
    font-size: 28px;
    color: var(--color-main);
    line-height: 1;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.flow-step-content {
    flex: 1;
}

.flow-step-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-black, #333333);
    margin: 0 0 6px 0;
    line-height: 1.3;
    border: none;
    padding: 4px 0;
}

.flow-step-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.done-note-box {
    border: 1.5px solid var(--color-main);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    background-color: #ffffff;
    box-sizing: border-box;
    margin-top: 10px;
}

.done-note-text {
    font-size: 13.5px;
    font-weight: bold;
    color: var(--color-main);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 480px) {
    .done-container {
        padding: 0;
    }

    .done-card {
        padding: 25px 15px;
    }

    .done-title {
        font-size: 20px;
    }

    .done-text {
        font-size: 14px;
    }

    .flow-banner {
        font-size: 18px;
        margin-left: -15px;
        margin-right: -15px;
    }

    .flow-step-title {
        font-size: 15px;
    }

    .flow-step-desc {
        font-size: 13px;
    }

    .done-note-text {
        font-size: 13px;
        text-align: left;
    }
}

/* ==========================================================================
   Figma見積エリア新デザイン用のスタイル追加
   ========================================================================== */

/* 1. お支払い方法トグルスイッチ */
.plan-toggle-container {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 50px auto 15px auto;
    /* バッジ表示用の余白を上部に確保 */
}

.plan-toggle-badge {
    position: absolute;
    top: -28px;
    /* トグルスイッチの上に配置（被らないように調整） */
    left: 25%;
    /* 左側の「年払い」ボタンの中央上に配置 */
    transform: translateX(-50%);
    display: inline-block;
    color: #265AD2;
    font-size: 11.5px;
    font-weight: bold;
    background-color: transparent;
    /* 背景色は不要（白/透明） */
    padding: 0;
    white-space: nowrap;
}

.plan-toggle-switch {
    display: flex;
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 9999px;
    padding: 3px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

.tokutei-disabled-note {
    display: none;
    color: #d9534f;
    font-size: 13px;
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
}

.plan-toggle-switch .btn-toggle {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 0;
    border-radius: 9999px;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.plan-toggle-switch .btn-toggle.active {
    background-color: #ffffff;
    color: #1A202C;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 2. プラン詳細カード */
.plan-cards-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.plan-card {
    background-color: #ffffff;
    border: 1.5px solid #E2E8F0;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.card-status-header {
    display: none !important;
}

.card-header {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    letter-spacing: 1px;
}

.card-header.yearly {
    background: #F1921F;
}

.card-header.monthly {
    background: #F1921F;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.card-price {
    font-size: 16px;
    font-weight: bold;
    color: #1A202C;
    margin-bottom: 2px;
}

.card-price .price-num {
    font-size: 34px;
    font-weight: 800;
}

.card-period-desc {
    font-size: 12px;
    color: #718096;
    margin-bottom: 20px;
}

.btn-select-plan {
    width: 100%;
    border: none;
    border-radius: 9999px;
    font-size: 15px;
    font-weight: bold;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.btn-select-plan.unselected {
    background-color: #FFC400;
    color: #333333;
}

.btn-select-plan.unselected:hover {
    background-color: #E6B000;
}

.btn-select-plan.selected {
    background-color: #265AD2;
    color: #ffffff;
}

.plan-toggle-switch .btn-toggle:disabled,
.plan-toggle-switch .btn-toggle.disabled {
    color: #CBD5E0 !important;
    background-color: transparent !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.4 !important;
}

.btn-select-plan:disabled,
.btn-select-plan.disabled {
    background-color: #E2E8F0 !important;
    color: #A0AEC0 !important;
    border: 1px solid #CBD5E0 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.45 !important;
    box-shadow: none !important;
}

.plan-card.disabled {
    opacity: 0.5;
    background-color: #F7FAFC;
}

.plan-card.disabled .card-header.monthly {
    background-color: #CBD5E0 !important;
}

.card-recommend {
    background-color: #F7FAFC;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: left;
    margin-bottom: 15px;
}

.card-recommend h4 {
    font-size: 13px;
    font-weight: bold;
    color: #2D3748;
    margin: 0 0 6px 0;
}

.card-recommend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-recommend li {
    font-size: 12.5px;
    color: #4A5568;
    margin-bottom: 4px;
}

.card-recommend li:last-child {
    margin-bottom: 0;
}

.card-included {
    text-align: left;
    margin-top: 15px;
}

.card-included .js-toggle-trigger {
    font-size: 13px;
    font-weight: bold;
    color: #4A5568;
    cursor: pointer;
    user-select: none;
    padding: 6px 0;
    border-bottom: 1px dashed #CBD5E0;
    margin-bottom: 10px;
}

.card-included ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 10px 0;
}

.card-included li {
    font-size: 12.5px;
    color: #4A5568;
    margin-bottom: 5px;
}

.card-note {
    font-size: 11.5px;
    color: #718096;
    margin: 0;
    line-height: 1.4;
}

/* 3. 比較表スタイル */
.plan-comparison-table {
    width: 100%;
    margin: 50px auto 40px auto;
    border-collapse: separate;
    border-spacing: 0;
}

.plan-comparison-table th,
.plan-comparison-table td {
    padding: 12px 6px;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    vertical-align: middle;
    box-sizing: border-box;
    width: 50%;
}

.plan-comparison-table .row-title td {
    background-color: #EFEFEF;
    /* タイトル行のグレー背景 */
    color: #1A202C;
    font-size: 13px;
    font-weight: bold;
    text-align: left;
    padding: 8px 12px;
    border-bottom: none;
    width: 100% !important;
}

.plan-comparison-table .row-values td {
    border-bottom: 1px solid #E2E8F0;
    padding: 22px 6px;
}

.table-status-header th {
    border-bottom: none;
    padding: 0 !important;
}

.table-status-header th .status-badge {
    background-color: #265AD2;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 0;
    display: block;
    width: 100%;
    border-radius: 5px 5px 0 0;
    box-sizing: border-box;
    text-align: center;
}

.table-plan-header th {
    font-weight: bold;
    font-size: 14px;
    color: #4A5568;
    border-bottom: 2px solid #CBD5E0;
    padding: 12px 6px;
}

.table-plan-header th.col-yearly-header,
.table-plan-header th.col-monthly-header {
    color: #F1921F;
}

.plan-comparison-table td.col-yearly,
.plan-comparison-table td.col-monthly {
    font-size: 16px;
    font-weight: bold;
    color: #4A5568;
}

.plan-comparison-table .circle-mark {
    color: #F1921F;
    font-weight: bold;
    font-size: 28px;
    -webkit-text-stroke: 1.5px #F1921F;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

.plan-comparison-table th.active,
.plan-comparison-table td.active,
.plan-comparison-table tr th.active,
.plan-comparison-table thead tr th.active {
    background: #FFF9F2 !important;
    background-color: #FFF9F2 !important;
    /* 選択中列背景 */
}

/* 4. お見積結果表示のFigmaデザイン */
.price-result-display {
    border: none;
    background-color: transparent !important;
    padding: 0;
    margin: 25px 0;
    width: 100%;
    box-sizing: border-box;
}

.price-result-display .payment-camp-title {
    background-color: #CC0C39;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
}

.price-result-display .payment-att {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin: 0 0 10px 0;
}

.price-result-display .payment-att::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 22px;
    background-color: #F1921F;
    border-radius: 4px;
    margin-right: 10px;
}

.price-result-display .payment-att-period {
    font-size: 14.5px;
    font-weight: bold;
    color: #F1921F;
    margin-bottom: 15px;
    width: 100%;
}

.price-result-display .price-result-wrapper {
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.price-result-display .price-result-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.price-result-display .payment-method-box {
    background-color: #FFF5E6;
}

.price-result-display .payment-amount-box {
    background-color: #F3F4F6;
    margin-bottom: 0;
}

.price-result-display .result-box-label {
    font-size: 14.5px;
    font-weight: bold;
    color: #4A5568;
}

.price-result-display .result-box-value {
    font-weight: bold;
}

.price-result-display .result-box-value.orange-text {
    color: #F1921F;
    font-size: 20px;
}

.price-result-display .result-box-value.red-text {
    color: #CC0C39;
    font-size: 28px;
    font-weight: 800;
}

.price-result-display .price-result-toggle-wrapper {
    width: 100%;
    margin-top: 5px;
    box-sizing: border-box;
}

.price-result-display .detail-toggle-trigger {
    font-size: 13px;
    font-weight: bold;
    color: #718096;
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-block;
}

.price-result-display .detail-toggle-target ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 15px;
}

.price-result-display .detail-toggle-target li {
    font-size: 12.5px;
    color: #4A5568;
}

.payment-att-note {
    font-size: 12px;
    color: #4A5568;
    line-height: 1.5;
    margin: 10px 0;
}

.btn-final-submit-wrap {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

.btn-final-submit {
    display: block;
    width: 100%;
    max-width: 100%;
    background-color: #FFC400;
    color: #333333;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 0;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    margin: 0 auto;
}

.btn-final-submit:hover {
    background-color: #E6B000;
}

.js-toggle-trigger {
    cursor: pointer;
}

.toggle-icon {
    margin-left: 4px;
}

/* お見積り結果の内訳アコーディオンのスタイル */
.price-result-display .detail-toggle-target ul.breakdown-list {
    list-style: none;
    padding-left: 0;
    margin: 10px 0;
    display: block !important;
}

.price-result-display .detail-toggle-target li.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 12.5px;
    color: #4A5568;
}

.price-result-display .detail-toggle-target li.breakdown-item.border-dashed {
    border-bottom: 1px dashed #eee;
}

/* 確認チェックボックスのスタイル */
.confirmation-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #4A5568;
    margin-top: 8px;
    cursor: pointer;
    user-select: none;
}

.confirmation-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 税理士アラート用スタイル */
.tax-law-violation-alert {
    display: none;
    align-items: center;
    margin-top: 10px;
    padding: 12px 16px;
    background-color: #fbebe9;
    border: none;
    border-radius: 6px;
    color: #cc0c39;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
}
.tax-law-violation-alert.show-alert {
    display: flex;
}
.tax-law-violation-alert .alert-icon {
    margin-right: 8px;
    font-size: 16px;
    color: #cc0c39;
}

/* 新規追加：今後の流れ（法人/個人）のスタイル */
.flow-card {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.flow-card:last-of-type {
    margin-bottom: 0;
}
.flow-card-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-black, #333333);
    margin: 0 0 16px 0;
    text-align: center;
    border-left: none;
    padding: 0;
}
.flow-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 10px;
}
.flow-card-header-num {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-main, #F1921F);
    line-height: 1;
    margin-right: 8px;
}
.flow-card-header-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-black, #333333);
    margin: 0;
    line-height: 1.2;
    border-left: none;
    padding: 0;
}
.done-note-box {
    border-radius: 5px !important;
}
.flow-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.flow-card-item {
    display: flex;
    align-items: flex-start;
}
.flow-card-num-circle {
    background-color: var(--color-main, #F1921F);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}
.flow-card-text {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}
.flow-arrow-down {
    text-align: center;
    margin: 15px 0;
}
.flow-arrow-down svg {
    display: inline-block;
    vertical-align: middle;
}