@charset "utf-8";

/* =================================================================
   料金ページ 改修分（2026-10-14）
   cost.css のあとに読み込む追加スタイル。
   既存の配色・フォント・見出し帯はそのまま流用している。
================================================================= */

:root {
    --cost-card-bg: #FFF;   /* 2026-10-28 商品画像の白背景と色を合わせるため純白に（以前は rgba(255,255,255,0.95)） */
    --cost-card-head: #E0D2AA;
    --cost-pale: #F2EEE3;
    --cost-line: #B5AC98;
    --cost-gold: #97743C;
    --cost-gold-light: #C29243;
    --cost-price: #D36464;
    --cost-text: #312D2C;
    --cost-sub: #5f574f;
    --cost-alert: #B04A4A;
}

/* -------------------------
   共通パーツ
------------------------- */

/* セクション見出しの上に添える英字 */
.cost-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--lower-yellow);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-align: center;
}

/* -------------------------
   01. 導入（写真＋リード／お悩みチェック）
------------------------- */
#cost-intro .cost-intro__row {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 974px;
    margin: 56px auto 0;
    box-sizing: border-box;
}

.cost-intro__image {
    flex: 0 0 340px;
    margin: 0;
}

.cost-intro__image img {
    display: block;
    width: 100%;
    height: auto;
}

.cost-intro__body {
    flex: 1;
}

.cost-intro__title {
    margin: 0 0 20px;
    color: var(--lower-white);
    font-family: var(--lower-font-family);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.6;
}

.cost-intro__body p {
    margin: 0 0 1em;
    color: var(--lower-white);
    font-size: 16px;
    line-height: 1.9;
}

.cost-intro__body p:last-child {
    margin-bottom: 0;
}

.cost-checklist {
    width: 100%;
    max-width: 880px;
    margin: 56px auto 0;
    padding: 36px 40px;
    background: var(--lower-gray);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.cost-checklist__title {
    margin: 0 0 20px;
    color: var(--lower-gold);
    font-family: var(--lower-font-family);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.cost-checklist__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    column-gap: 32px;
}

.cost-checklist__list li {
    position: relative;
    padding-left: 34px;
    color: var(--lower-black);
    font-size: 17px;
    line-height: 1.7;
}

.cost-checklist__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: var(--lower-yellow);
    clip-path: polygon(8% 48%, 0 62%, 38% 100%, 100% 20%, 86% 8%, 36% 72%);
}

/* -------------------------
   02. 目次（アンカーナビ）
------------------------- */
#cost-jumpnav {
    padding: 0 6.5% 100px;
    background: var(--lower-black-back);
    box-sizing: border-box;
}

.cost-jumpnav__list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1120px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.cost-jumpnav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 18px 20px;
    background: var(--lower-black-back);
    color: var(--lower-white);
    font-size: 16px;
    text-decoration: none;
    line-height: 1.5;
}

.cost-jumpnav__list a::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--lower-yellow);
    border-bottom: 2px solid var(--lower-yellow);
    transform: rotate(45deg);
}

.cost-jumpnav__list a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cost-lead-text {
    margin: 0 auto;
    max-width: 1030px;
    color: #FFF;
    font-family: var(--lower-font-family);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    text-align: center;
}

.cost-lead-text--sub {
    margin-top: -12px;
    margin-bottom: 24px;
    font-size: 16px;
    text-align: left;
}

.cost-tax-badge {
    display: table;
    margin: 20px auto 0;
    padding: 6px 20px;
    border: 1px solid var(--cost-gold-light);
    color: var(--cost-gold-light);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.cost-caption {
    max-width: 1110px;
    margin: 24px auto 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

/* 既存の料金リストに足した「どんなときに必要か」の一行 */
.cost-when {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* -------------------------
   1. インプラント1本の費用のしくみ
------------------------- */
.cost-formula {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    max-width: 1110px;
    margin: 40px auto 0;
}

.cost-formula__item {
    flex: 1 1 0;
    min-width: 0;
    background: var(--cost-card-bg);
    padding: 0 0 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cost-formula__item--total {
    outline: 2px solid var(--cost-gold-light);
}

.cost-formula__head {
    margin: 0 0 14px;
    padding: 9px 8px 10px;
    background: var(--cost-card-head);
    color: var(--cost-text);
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.cost-formula__head span {
    display: block;
    font-size: 16px;
}

.cost-formula__img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 116px;
    margin: 0 0 12px;
}

.cost-formula__img img {
    display: block;
    width: auto;
    max-width: 80%;
    max-height: 100%;
}

.cost-formula__img--total img {
    max-width: 90%;
}

.cost-formula__price {
    margin: auto 0 0;
    padding: 0 8px;
    color: var(--cost-price);
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
}

.cost-formula__price small {
    font-size: 16px;
}

.cost-formula__wave {
    display: inline-block;
    margin: 0 2px;
    color: var(--cost-text);
    font-size: 16px;
}

.cost-formula__sub {
    margin: 10px 0 0;
    padding: 0 10px;
    color: var(--cost-sub);
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.cost-formula__op {
    align-self: center;
    flex: 0 0 auto;
    color: var(--cost-card-head);
    font-family: var(--lower-font-family);
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

/* -------------------------
   2〜4. 選択肢カード（STEP1〜3）
------------------------- */
.cost-options {
    display: grid;
    gap: 18px;
    max-width: 1110px;
    margin: 40px auto 0;
}

.cost-options--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cost-options--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    /* タグ分の逃げ */
    margin-top: 52px;
}

.cost-opt {
    position: relative;
    background: var(--cost-card-bg);
    padding: 0 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.cost-opt__head {
    margin: 0 0 14px;
    padding: 10px 8px 11px;
    background: var(--cost-card-head);
    color: var(--cost-text);
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

/* 見出し帯の高さを揃えて、以降の要素の位置をカード間でそろえる */
.cost-options--3 .cost-opt__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    box-sizing: border-box;
}

.cost-opt--small .cost-opt__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    font-size: 16px;
    box-sizing: border-box;
}

.cost-opt__head span {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    /* 「（アメリカ製）」が「アメリ／カ製」と割れないように */
    white-space: nowrap;
}

/* 語のまとまりで折り返したい箇所に付ける */
.nw {
    white-space: nowrap;
}

/* スマホで語の途中に改行が入らないようにする（対応ブラウザのみ効く）。
   注記や選択肢のラベルなど、文章が入る要素にかけている */
.cost-section,
.cost-sim-section,
.sim-opt__name,
.sim-caption,
.sim-note {
    word-break: auto-phrase;
}

.cost-opt__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    margin-bottom: 8px;
}

.cost-opt__logo img {
    display: block;
    width: auto;
    max-width: 122px;
    max-height: 100%;
}

.cost-opt__logo--empty {
    height: 34px;
}

.cost-opt__img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 108px;
    margin-bottom: 12px;
}

.cost-opt--small .cost-opt__img {
    height: 74px;
}

.cost-opt__img img {
    display: block;
    width: auto;
    max-width: 70%;
    max-height: 100%;
}

.cost-opt__tag {
    position: absolute;
    /* 16px になって高さが増えたぶん、カードの外へ出す */
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    margin: 0;
    padding: 6px 14px;
    background: var(--cost-gold);
    color: #FFF;
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    z-index: 1;
}

/* STEP1：担当がひと目で分かるタグ */
.cost-opt__tag--director {
    background: var(--cost-gold);
}

.cost-opt__tag--staff {
    background: #8C8275;
}

.cost-opt__price {
    margin: 0 0 10px;
    color: var(--cost-price);
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
}

.cost-opt--small .cost-opt__price {
    font-size: 22px;
}

.cost-opt__price small {
    font-size: 16px;
}

.cost-opt__warranty {
    margin: 0 14px 14px;
    padding: 6px 8px;
    background: var(--cost-pale);
    color: var(--cost-gold);
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.cost-opt__list {
    margin: 0;
    padding: 0 18px;
    list-style: none;
}

.cost-opt__list li {
    position: relative;
    padding-left: 14px;
    color: var(--cost-text);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.cost-opt__list li+li {
    margin-top: 6px;
}

.cost-opt__list li::before {
    content: "・";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cost-gold);
}

.cost-opt__note {
    margin: 14px 14px 0;
    padding: 8px 10px;
    border: 1px solid var(--cost-alert);
    color: var(--cost-alert);
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
}

/* -------------------------
   STEP3（5カード）は画像・金額・保証を1行にまとめて高さを抑える
------------------------- */
.cost-options--5 .cost-opt__visual {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 0 14px;
}

.cost-options--5 .cost-opt__img {
    flex: 0 0 56px;
    height: 56px;
    margin-bottom: 0;
}

.cost-options--5 .cost-opt__img img {
    max-width: 100%;
}

.cost-options--5 .cost-opt__meta {
    flex: 1;
    min-width: 0;
}

.cost-options--5 .cost-opt__price {
    margin: 0 0 6px;
    text-align: left;
    font-size: 19px;
    line-height: 1;
}

.cost-options--5 .cost-opt__price small {
    font-size: 16px;
}

.cost-options--5 .cost-opt__warranty {
    margin: 0;
    padding: 5px 6px;
    font-size: 16px;
}

.cost-options--5 .cost-opt__list li {
    font-size: 16px;
    line-height: 1.55;
}

/* 注記はカード下端に揃える */
.cost-options--5 .cost-opt__note {
    margin: auto 14px 0;
    text-align: left;
}

/* STEP2：横並びの1カード */
.cost-opt--row {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    max-width: 1110px;
    margin: 40px auto 0;
    padding: 24px 32px;
}

.cost-opt__img--row {
    flex: 0 0 90px;
    height: 120px;
    margin-bottom: 0;
}

.cost-opt__img--row img {
    max-width: 100%;
}

.cost-opt__rowbody {
    flex: 1;
    min-width: 0;
}

.cost-opt__head--row {
    margin: 0 0 12px;
    padding: 8px 14px;
    text-align: left;
    font-size: 18px;
}

.cost-opt__rowbody .cost-opt__list {
    padding: 0;
}

.cost-opt__price--row {
    flex: 0 0 auto;
    margin: 0;
    font-size: 28px;
}

/* プレミアムインプラントの加算行 */
.cost-addon {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1110px;
    margin: 22px auto 0;
    padding: 18px 28px;
    background: var(--cost-pale);
    box-sizing: border-box;
}

.cost-addon__main {
    flex: 1;
    min-width: 0;
}

.cost-addon__title {
    margin: 0 0 6px;
    color: var(--cost-gold);
    font-family: var(--lower-font-family);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.cost-addon__text {
    margin: 0;
    color: var(--cost-text);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.cost-addon__price {
    flex: 0 0 auto;
    margin: 0;
    color: var(--cost-price);
    font-family: var(--lower-font-family);
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.cost-addon__price small {
    font-size: 16px;
}

/* -------------------------
   5. 合計金額 早見表
------------------------- */
.cost-matrix-hint {
    display: none;
}

.cost-matrix-wrap {
    max-width: 1110px;
    margin: 36px auto 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cost-matrix-wrap--sub {
    margin-top: 28px;
}

.cost-matrix {
    width: 100%;
    border-collapse: collapse;
    background: var(--cost-card-bg);
    font-family: var(--lower-font-family);
}

.cost-matrix th,
.cost-matrix td {
    border: 1px solid var(--cost-line);
    padding: 14px 10px;
    text-align: center;
    vertical-align: middle;
}

.cost-matrix thead th {
    background: var(--cost-card-head);
    color: var(--cost-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.cost-matrix thead th span {
    display: block;
    font-size: 16px;
}

.cost-matrix tbody th {
    background: var(--cost-pale);
    color: var(--cost-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    white-space: nowrap;
}

.cost-matrix tbody th span {
    display: block;
    font-size: 16px;
    color: var(--cost-sub);
}

.cost-matrix__corner {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--cost-sub) !important;
    background: var(--cost-pale) !important;
    white-space: nowrap;
}

.cost-matrix tbody td {
    color: var(--cost-price);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.cost-matrix tbody td small {
    font-size: 16px;
}

/* -------------------------
   6. 費用シミュレーター
------------------------- */
.sim {
    max-width: 1110px;
    margin: 40px auto 0;
}

.sim__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.sim__panel {
    background: var(--cost-card-bg);
    padding: 28px 28px 32px;
    box-sizing: border-box;
}

.sim-step+.sim-step {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--cost-line);
}

.sim-step__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--cost-text);
    font-family: var(--lower-font-family);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
}

.sim-step__title small {
    color: var(--cost-sub);
    font-size: 16px;
    font-weight: 400;
}

.sim-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cost-gold);
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.sim-opts {
    display: grid;
    gap: 10px;
}

.sim-opts--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sim-opts--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sim-opts--opt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sim-opt {
    display: block;
    position: relative;
    cursor: pointer;
}

.sim-opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.sim-opt__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 12px 8px;
    border: 1px solid var(--cost-line);
    background: #FFF;
    box-sizing: border-box;
    text-align: center;
    transition: border-color .15s, background .15s;
}

.sim-opt__name {
    display: block;
    color: var(--cost-text);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
}

.sim-opt__name small {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--cost-sub);
}

.sim-opt__price {
    display: block;
    color: var(--cost-price);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.sim-opts--5 .sim-opt__name {
    font-size: 16px;
}

.sim-opts--5 .sim-opt__price {
    font-size: 16px;
}

.sim-opt input:checked+.sim-opt__body {
    border-color: var(--cost-gold-light);
    border-width: 2px;
    background: var(--cost-pale);
    padding: 11px 7px;
}

.sim-opt input:focus-visible+.sim-opt__body {
    outline: 2px solid var(--cost-gold);
    outline-offset: 2px;
}

.sim-opt.is-disabled {
    cursor: not-allowed;
}

.sim-opt.is-disabled .sim-opt__body {
    opacity: .4;
    background: #F6F5F2;
}

.sim-opt.is-disabled .sim-opt__name,
.sim-opt.is-disabled .sim-opt__price {
    text-decoration: line-through;
}

/* チェックボックス型（追加処置・プレミアムインプラント） */
.sim-opt--check .sim-opt__body {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
    padding: 12px 14px;
}

.sim-opt--check .sim-opt__body::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--cost-line);
    background: #FFF;
    box-sizing: border-box;
}

.sim-opt--check input:checked+.sim-opt__body {
    padding: 11px 13px;
}

.sim-opt--check input:checked+.sim-opt__body::before {
    border-color: var(--cost-gold);
    background: var(--cost-gold);
    box-shadow: inset 0 0 0 3px #FFF;
}

.sim-opt--check .sim-opt__name {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.sim-opt--check .sim-opt__price {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sim-opt--prem {
    margin-top: 12px;
}

.sim-opt--prem.is-hidden {
    display: none;
}

.sim-note {
    margin: 12px 0 0;
    color: var(--cost-alert);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

.sim-note:empty {
    display: none;
}

/* 歯列図 */
.sim-jaw {
    margin: 0 0 12px;
    padding: 18px 20px 16px;
    border: 1px solid #D8CDB4;
    background: #FFF;
}

.sim-jaw__label {
    margin: 0 0 8px;
    color: var(--cost-sub);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-align: left;
}

.sim-jaw__label--lower {
    margin: 8px 0 0;
}

.sim-jaw__label span {
    margin-left: 4px;
    font-size: 16px;
    font-style: italic;
    color: #9c9183;
}

.sim-jaw__mid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
    margin: 6px 0;
    color: #9c9183;
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.sim-jaw__mid::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #E6DCC6;
}

.sim-jaw__mid span {
    position: relative;
    background: #FFF;
    padding: 0 8px;
}

/* 患者さんから見た左右 */
.sim-jaw__ends {
    display: flex;
    justify-content: space-between;
    margin: 0 0 4px;
    color: var(--cost-sub);
    font-family: var(--lower-font-family);
    font-size: 16px;
    line-height: 1;
}

/* 歯列（1枚絵＋歯ごとのボタン） */
.sim-arch-wrap {
    margin: 0 auto;
}

/* 下の前歯は上より細いので、同じ倍率のまま下あごだけ幅が狭くなる */
.sim-arch-wrap--lower {
    width: 88.357%;
}

.sim-nos {
    display: flex;
    margin: 0 0 3px;
    line-height: 1;
}

.sim-nos span {
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 16px;
    color: var(--cost-sub);
    font-variant-numeric: tabular-nums;
}

.sim-arch-wrap--lower .sim-nos {
    margin: 3px 0 0;
}

.sim-arch {
    position: relative;
    line-height: 0;
}

.sim-arch__base {
    display: block;
    width: 100%;
    height: auto;
}

.tooth {
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    line-height: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: background .15s;
}

.tooth:hover {
    background: rgba(194, 146, 67, .12);
}

/* 選択した歯だけ、同じ位置にインプラントの絵を出す */
.tooth__imp {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tooth__imp img {
    position: absolute;
    top: 0;
    height: auto;
    /* 共通CSSの img{max-width:100%} を打ち消す。
       この画像はボタン幅ではなく歯列全体の幅で置く必要があるため */
    max-width: none;
}

.tooth.on .tooth__imp {
    display: block;
}

.tooth:focus-visible {
    outline: 2px solid var(--cost-gold);
    outline-offset: -3px;
}

.sim-legend {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 14px 0 12px;
}

.sim-legend__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--cost-sub);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}

.sim-legend__mark {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #5f574f;
    border-radius: 50%;
}

.sim-legend__mark--nat {
    background: #FFFDF8;
}

.sim-legend__mark--imp {
    background: #D9A94A;
    border-color: #7A5D2C;
}

.sim-selbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* カード内（白地）の注記 */
.sim-caption {
    margin: 0 0 4px;
    color: var(--cost-sub);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
}

.sim-selbar__text {
    margin: 0;
    color: var(--cost-text);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.sim-reset {
    padding: 7px 18px;
    border: 1px solid var(--cost-gold);
    background: #FFF;
    color: var(--cost-gold);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.sim-reset.is-hidden {
    display: none;
}

/* 右：お見積もり */
.sim__result {
    position: sticky;
    top: 24px;
}

.sim__result-inner {
    background: var(--cost-card-bg);
    padding: 24px 22px 26px;
    box-sizing: border-box;
}

.sim__result-title {
    margin: 0 0 16px;
    padding: 9px 8px 10px;
    background: var(--cost-card-head);
    color: var(--cost-text);
    text-align: center;
    font-family: var(--lower-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.sim__lines {
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--cost-line);
}

.sim__line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    color: var(--cost-text);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.sim__line+.sim__line {
    margin-top: 8px;
}

.sim__line--sub {
    padding-top: 8px;
    border-top: 1px dashed var(--cost-line);
    font-weight: 500;
}

.sim__line--empty {
    color: var(--cost-sub);
    justify-content: center;
    text-align: center;
}

.sim__line-name {
    flex: 1;
    min-width: 0;
}

.sim__line-value {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sim__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    font-family: var(--lower-font-family);
}

.sim__total-row+.sim__total-row {
    margin-top: 6px;
}

.sim__total-label {
    color: var(--cost-text);
    font-size: 16px;
    font-weight: 500;
}

.sim__total-value {
    color: var(--cost-price);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

.sim__total-row--tax .sim__total-label,
.sim__total-value--tax {
    font-size: 16px;
    color: var(--cost-sub);
}

.sim__cta {
    margin-top: 20px;
}

.sim__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 14px 10px;
    background: var(--lower-h2title-yellow);
    color: #FFF;
    text-align: center;
    text-decoration: none;
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.sim__btn+.sim__btn {
    margin-top: 10px;
}

.sim__btn--tel {
    background: #FFF;
    border: 1px solid var(--cost-gold);
    color: var(--cost-gold);
    font-size: 16px;
}

.sim__btn--tel span {
    font-size: 20px;
    font-weight: 600;
}

.sim__note {
    margin: 14px 0 0;
    color: var(--cost-sub);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* -------------------------
   8. 費用の例（3カード）
------------------------- */
.cost-simulation__prices--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 見出し・画像・金額の位置を3枚で揃える */
.cost-simulation__prices--3 .cost-simulation__card {
    display: flex;
    flex-direction: column;
}

.cost-simulation__prices--3 .cost-simulation__head {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.4;
    box-sizing: border-box;
}

.cost-simulation__prices--3 .cost-simulation__body {
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.cost-simulation__prices--3 .cost-simulation__image--single,
.cost-simulation__prices--3 .cost-simulation__image--allon4 {
    flex: 0 0 auto;
    width: 190px;
}

.cost-simulation__prices--3 .cost-simulation__text {
    flex: 0 0 auto;
    width: 100%;
}

.cost-simulation__prices--3 .cost-simulation__line {
    text-align: center;
    white-space: nowrap;
}

.cost-simulation__prices--3 .cost-simulation__label,
.cost-simulation__prices--3 .cost-simulation__unit {
    font-size: 16px;
}

.cost-simulation__prices--3 .cost-simulation__value {
    font-size: 28px;
}

.cost-simulation__detail {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--cost-line);
    color: var(--cost-sub);
    font-family: var(--lower-font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}


.cost-caption--center {
    text-align: center;
}

/* =================================================================
   Tablet（768〜1100px）
================================================================= */
@media screen and (max-width: 1100px) and (min-width: 768px) {

    .cost-lead-text,
    .cost-caption,
    .cost-formula,
    .cost-options,
    .cost-opt--row,
    .cost-addon,
    .cost-matrix-wrap,
    .sim {
        max-width: 795px;
    }

    .cost-lead-text {
        font-size: 16px;
    }

    .cost-formula {
        gap: 8px;
    }

    .cost-formula__head {
        font-size: 14px;
    }

    .cost-formula__head span {
        font-size: 12px;
    }

    .cost-formula__img {
        height: 92px;
    }

    .cost-formula__price {
        font-size: 16px;
    }

    .cost-formula__price small {
        font-size: 12px;
    }

    .cost-formula__sub {
        font-size: 12px;
    }

    .cost-formula__op {
        font-size: 20px;
    }

    .cost-options--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cost-opt__head {
        font-size: 16px;
    }

    .cost-opt--small .cost-opt__head {
        font-size: 14px;
    }

    .sim__grid {
        grid-template-columns: 1fr;
    }

    .sim__panel {
        padding: 22px 20px 26px;
    }

    .sim__result {
        position: static;
    }

    .sim-opts--5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sim-opts--opt {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sim-jaw {
        padding: 14px 10px 12px;
    }

    .cost-simulation__prices--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =================================================================
   SP（〜767px）
================================================================= */
@media screen and (max-width: 767px) {

    .cost-eyebrow {
        font-size: 12px;
        margin-bottom: 8px;
    }

    #cost-intro .cost-intro__row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-top: 32px;
    }

    .cost-intro__image {
        flex: none;
        width: 100%;
    }

    .cost-intro__title {
        font-size: 21px;
        margin-bottom: 16px;
    }

    .cost-intro__body p {
        font-size: 15px;
        line-height: 1.85;
    }

    .cost-checklist {
        margin-top: 32px;
        padding: 24px 20px;
    }

    .cost-checklist__title {
        font-size: 17px;
    }

    .cost-checklist__list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cost-checklist__list li {
        padding-left: 28px;
        font-size: 15px;
    }

    .cost-checklist__list li::before {
        width: 17px;
        height: 17px;
    }

    #cost-jumpnav {
        padding: 0 4% 40px;
    }

    .cost-jumpnav__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .cost-jumpnav__list a {
        padding: 14px 12px;
        font-size: 13px;
    }

    .cost-lead-text {
        font-size: 15px;
        line-height: 1.75;
        text-align: left;
        padding: 0 4%;
        box-sizing: border-box;
    }

    .cost-lead-text br {
        display: none;
    }

    .cost-lead-text--sub {
        font-size: 14px;
    }

    .cost-tax-badge {
        margin-top: 16px;
        font-size: 13px;
        padding: 5px 14px;
    }

    .cost-caption {
        padding: 0 4%;
        box-sizing: border-box;
        font-size: 12px;
        margin-top: 18px;
    }

    .cost-when {
        font-size: 12px;
    }

    /* 1. しくみ：縦積み */
    .cost-formula {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 28px;
        padding: 0 4%;
        box-sizing: border-box;
    }

    .cost-formula__item {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        padding: 0 14px 14px;
    }

    .cost-formula__head {
        flex: 0 0 100%;
        margin: 0 -14px 12px;
        font-size: 15px;
    }

    .cost-formula__head span {
        display: inline;
        font-size: 12px;
    }

    .cost-formula__img {
        flex: 0 0 64px;
        height: 70px;
        margin: 0 14px 0 0;
    }

    .cost-formula__price {
        flex: 1;
        margin: 0;
        padding: 0;
        text-align: left;
        font-size: 18px;
    }

    .cost-formula__sub {
        flex: 0 0 100%;
        margin-top: 8px;
        padding: 0;
        text-align: left;
        font-size: 12px;
    }

    .cost-formula__op {
        align-self: center;
        font-size: 20px;
    }

    /* 2〜4. カード */
    .cost-options {
        gap: 12px;
        margin-top: 28px;
        padding: 0 4%;
        box-sizing: border-box;
    }

    .cost-options--3 {
        grid-template-columns: 1fr;
    }

    .cost-options--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cost-opt {
        padding-bottom: 16px;
    }

    .cost-opt__head {
        font-size: 16px;
        padding: 9px 6px 10px;
    }

    .cost-opt--small .cost-opt__head {
        font-size: 13px;
    }

    .cost-opt__head span {
        font-size: 11px;
    }

    .cost-opt__logo,
    .cost-opt__logo--empty {
        height: 28px;
    }

    .cost-opt__img {
        height: 86px;
    }

    .cost-opt--small .cost-opt__img {
        height: 60px;
    }

    .cost-opt__price {
        font-size: 22px;
    }

    .cost-opt--small .cost-opt__price {
        font-size: 18px;
    }

    .cost-opt__warranty {
        margin: 0 10px 10px;
        font-size: 13px;
    }

    .cost-opt__list {
        padding: 0 12px;
    }

    .cost-opt__list li {
        font-size: 13px;
    }

    .cost-opt__note {
        margin: 10px 10px 0;
        font-size: 11px;
    }

    /* STEP3：SPは2列なので画像・金額は縦積みに戻す */
    .cost-options--5 .cost-opt__visual {
        flex-direction: column;
        gap: 8px;
        padding: 0 10px;
    }

    .cost-options--5 .cost-opt__img {
        flex: 0 0 auto;
        height: 54px;
    }

    .cost-options--5 .cost-opt__meta {
        width: 100%;
    }

    .cost-options--5 .cost-opt__price {
        text-align: center;
        font-size: 18px;
    }

    .cost-options--5 .cost-opt__list li {
        font-size: 12px;
    }

    .cost-options--5 .cost-opt__note {
        margin: auto 10px 0;
        font-size: 11px;
    }

    /* STEP2 */
    .cost-opt--row {
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 28px;
        padding: 16px 16px 18px;
        width: calc(100% - 8%);
        margin-left: 4%;
        margin-right: 4%;
        box-sizing: border-box;
    }

    .cost-opt__head--row {
        flex: 0 0 100%;
        order: 1;
        margin: -16px -16px 0;
        text-align: center;
        font-size: 16px;
    }

    .cost-opt__img--row {
        order: 2;
        flex: 0 0 56px;
        height: 90px;
    }

    .cost-opt__rowbody {
        order: 3;
        flex: 1;
    }

    .cost-opt__price--row {
        order: 4;
        flex: 0 0 100%;
        text-align: right;
        font-size: 24px;
    }

    .cost-addon {
        flex-wrap: wrap;
        gap: 10px;
        margin: 14px 4% 0;
        padding: 14px 16px;
        width: calc(100% - 8%);
    }

    .cost-addon__title {
        font-size: 16px;
    }

    .cost-addon__text {
        font-size: 13px;
    }

    .cost-addon__price {
        flex: 0 0 100%;
        text-align: right;
        font-size: 22px;
    }

    /* 5. 早見表：横スクロール */
    .cost-matrix-hint {
        display: block;
        max-width: none;
        margin: 24px 4% 6px;
        color: rgba(255, 255, 255, .72);
        font-family: var(--lower-font-family);
        font-size: 12px;
        font-weight: 400;
        line-height: 1;
        text-align: right;
    }

    .cost-matrix-wrap {
        margin: 0 4%;
        padding-bottom: 6px;
    }

    .cost-matrix-wrap--sub {
        margin-top: 20px;
    }

    .cost-matrix {
        min-width: 560px;
    }

    .cost-matrix th,
    .cost-matrix td {
        padding: 10px 8px;
    }

    .cost-matrix thead th {
        font-size: 14px;
    }

    .cost-matrix tbody th {
        font-size: 13px;
    }

    .cost-matrix tbody td {
        font-size: 17px;
    }

    .cost-matrix__corner {
        font-size: 11px !important;
    }

    /* 6. シミュレーター */
    .sim {
        margin: 28px 4% 0;
    }

    .sim__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sim__panel {
        padding: 18px 14px 22px;
    }

    .sim-step+.sim-step {
        margin-top: 22px;
        padding-top: 20px;
    }

    .sim-step__title {
        font-size: 16px;
        gap: 8px;
    }

    .sim-step__num {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        font-size: 13px;
    }

    .sim-opts--3 {
        grid-template-columns: 1fr;
    }

    .sim-opts--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sim-opts--opt {
        grid-template-columns: 1fr;
    }

    .sim-opt__body {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 10px 12px;
    }

    .sim-opt input:checked+.sim-opt__body {
        padding: 9px 11px;
    }

    .sim-opts--5 .sim-opt__body {
        flex-direction: column;
        text-align: center;
    }

    .sim-opt__name small {
        display: inline-block;
        margin-left: 8px;
    }

    .sim-opts--5 .sim-opt__name small,
    .sim-opt--check .sim-opt__name small {
        display: block;
        margin-left: 0;
    }

    .sim-opt--check .sim-opt__body {
        gap: 10px;
        padding: 10px 12px;
    }

    .sim-jaw {
        padding: 12px 8px 10px;
    }

    .sim-nos span {
        font-size: 11px;
    }

    .sim-jaw__ends {
        font-size: 12px;
    }

    .sim-legend {
        gap: 6px 14px;
    }

    .sim-legend__item {
        font-size: 11px;
    }

    .sim-selbar {
        gap: 10px;
    }

    .sim-selbar__text {
        font-size: 14px;
    }

    .sim__result {
        position: static;
    }

    .sim__result-inner {
        padding: 18px 16px 20px;
    }

    .sim__result-title {
        font-size: 16px;
    }

    .sim__total-value {
        font-size: 24px;
    }

    .sim__btn {
        font-size: 15px;
    }

    .sim__btn--tel span {
        font-size: 19px;
    }

    /* 8. 費用の例 */
    .cost-simulation__prices--3 {
        grid-template-columns: 1fr;
    }

    .cost-simulation__detail {
        font-size: 12px;
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* =================================================================
   セクション見出し（TOPページ型：英字＋日本語の2段）
   下層共通の .lower-section-h2（ゴールドの帯）は使わない。
   TOPの #top-news の見出し（英字64px・頭文字だけゴールド＋日本語32px）に合わせている。
================================================================= */
.odc-sec-h2 {
    margin: 0 auto;
    text-align: center;
}

.odc-sec-h2__en {
    display: block;
    color: #FFF;
    font-family: var(--lower-font-family);
    font-size: 64px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 12.8px;
    white-space: nowrap;
}

/* 頭文字だけゴールド（TOPの .gold と同じ） */
.odc-sec-h2__en-lead {
    color: rgba(194, 146, 67, 0.70);
}

.odc-sec-h2__ja {
    display: block;
    margin-top: 10px;
    color: #FFF;
    font-family: var(--lower-font-family);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.6px;
}

/* 白・淡色背景のセクション用 */
.odc-sec-h2--light .odc-sec-h2__en,
.odc-sec-h2--light .odc-sec-h2__ja {
    color: #3C3837;
}

@media screen and (max-width: 1024px) {
    .odc-sec-h2__en {
        font-size: 48px;
        letter-spacing: 9.6px;
    }

    .odc-sec-h2__ja {
        margin-top: 8px;
        font-size: 28px;
        letter-spacing: 1.4px;
    }
}

@media screen and (max-width: 767px) {
    .odc-sec-h2__en {
        font-size: 28px;
        letter-spacing: 0.18em;
    }

    .odc-sec-h2__ja {
        margin-top: 6px;
        font-size: 22px;
        line-height: 1.6;
        letter-spacing: 1.2px;
    }
}
