@charset "UTF-8";
/* ============================================================
   IODトップ改修（2026-11）用。テストページ page-top-renewal.php だけが読み込む。
   すべて .top-renewal の中に書く（他のページに効かないように）。
   ============================================================ */

/* テスト表示の案内 */
.top-renewal .tr-guide {
    max-width: 80rem;
    margin: 0 auto 3rem;
    padding: 1.2rem 1.6rem;
    background: #fff4d6;
    border: 2px dashed #d39b00;
    color: #6b4e00;
    font-size: 1.5rem;
    line-height: 1.6;
    text-align: center;
}

/* ---------- 症例スライダー：お悩みの写真（::after）は動画の段だけに出す ---------- */
.top-renewal .worry:not(.tr-video) .container + .wrap:after { content: none; }

/* ---------- MVのすぐ下に白い隙間を出さない ---------- */
.top-renewal main.R_main_top { margin-top: 0 !important; }

/* ---------- 症例スライダー（MVのすぐ下の段） ---------- */
/* 「症例一覧へ」の下の白い隙間（110pxの外側の余白）を、グレーの背景の内側の余白にする */
.top-renewal main.R_main_top > section.worry:first-child { padding-bottom: 110px; }
.top-renewal main.R_main_top > section.worry:first-child .case-box__main { margin-bottom: 0; }
/* ページ送りの丸（ドット）を、カードとボタンのちょうど真ん中に置く（上下とも66px） */
.top-renewal main.R_main_top > section.worry:first-child .top-cards-dots { margin-top: 62px; }  /* スライダー下の4pxと合わせて66px */
.top-renewal main.R_main_top > section.worry:first-child .top-cards-btn { margin-top: 66px; }
.top-renewal main.R_main_top > section.worry:first-child .top-cards-btn .btn { margin-top: 0; }
/* PC：横に広い画面でカードが大きくなりすぎないよう、MVと同じ幅にして左右に余白を作る */
@media screen and (min-width: 769px) {
    .top-renewal main.R_main_top > section.worry:first-child .case-box__main {
        width: min(100%, calc((100vh - 8rem) * 1440 / 880));
        margin-left: auto;
        margin-right: auto;
    }
}

/* ---------- インタビュー動画の段：IODバナーと次の「入れ歯をお使いのあなた」の間を詰める（PCだけ。180px→60px） ---------- */
@media screen and (min-width: 769px) {
    .top-renewal .worry.tr-video .wrap { padding-bottom: 60px; }
}

/* ---------- Instagram・YouTubeショート ---------- */
.top-renewal .tr-sns {
    padding: 9rem 0 10rem;
    background: #f4f1ea;
}
.top-renewal .tr-sns h2 { margin-bottom: 4rem; }
.top-renewal .tr-sns__row {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}
.top-renewal .tr-sns__col {
    flex: 1 1 0;
    background: #fff;
    border-radius: 1rem;
    padding: 3rem 3rem 3.5rem;
    text-align: center;
}
.top-renewal .tr-sns__tit {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: .05em;
}
.top-renewal .tr-sns__icon {
    width: 2.8rem;
    height: 2.8rem;
    margin-right: .4em;
    vertical-align: -.55rem;
}
.top-renewal .tr-sns__col--insta .tr-sns__icon { color: #d6249f; }
.top-renewal .tr-sns__col--yt .tr-sns__icon { color: #ff0000; }
.top-renewal .tr-sns__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
    margin-bottom: 3rem;
}
.top-renewal .tr-sns__grid--yt { grid-template-columns: repeat(3, 1fr); }  /* 6本をInstagramと同じ3列×2段に */
.top-renewal .tr-sns__grid li a {
    display: block;
    overflow: hidden;
    border-radius: .4rem;
    transition: opacity .2s;
}
.top-renewal .tr-sns__grid li a:hover { opacity: .8; }
.top-renewal .tr-sns__grid img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.top-renewal .tr-sns__grid--yt img { aspect-ratio: 9 / 16; }
.top-renewal .tr-sns .btn_new { margin: auto auto 0; }  /* 左右の箱でボタンの高さをそろえる（箱を縦の並びにして、ボタンを下に寄せる） */
.top-renewal .tr-sns__col { display: flex; flex-direction: column; }
/* PC：Instagram（3:4の画像）とYouTube（縦長）で画像の段の高さがそろうよう、Instagramの箱を広くして画像を大きく見せる（11/24） */
@media screen and (min-width: 769px) {
    .top-renewal .tr-sns__col--insta { flex: 4 1 0; }
    .top-renewal .tr-sns__col--yt { flex: 3 1 0; }
}
/* YouTube：サムネの上に再生マーク。クリックでショートを画面中央にポップアップ再生 */
.top-renewal .tr-sns__grid--yt li a { position: relative; }
.top-renewal .tr-yt-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4.4rem;
    height: 3.1rem;
    margin: -1.55rem 0 0 -2.2rem;
    border-radius: .8rem;
    background: rgba(255, 0, 0, .9);
    pointer-events: none;
}
.top-renewal .tr-yt-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -.7rem 0 0 -.45rem;
    border-style: solid;
    border-width: .7rem 0 .7rem 1.2rem;
    border-color: transparent transparent transparent #fff;
}
.tr-yt-lock, .tr-yt-lock body { overflow: hidden; }
.top-renewal .tr-yt-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.top-renewal .tr-yt-modal[hidden] { display: none; }
.top-renewal .tr-yt-modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); cursor: pointer; }
.top-renewal .tr-yt-modal__box { position: relative; height: min(85vh, 80rem); aspect-ratio: 9 / 16; max-width: 90vw; }
.top-renewal .tr-yt-modal__frame, .top-renewal .tr-yt-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: 1rem; background: #000; }
.top-renewal .tr-yt-modal__close {
    position: absolute;
    top: -4.4rem;
    right: 0;
    width: 4rem;
    height: 4rem;
    border: 0;
    background: none;
    color: #fff;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
}

/* ---------- 料金プラン（3プラン・上下合計） ---------- */
.top-renewal .tr-plan .tr-plan-note {
    color: #fff;
    text-align: center;
    font-size: 1.6rem;
    margin: -3rem 0 2rem;
}
.top-renewal .tr-plan table + h3 { margin-top: 5rem; }
.top-renewal .tr-plan table td { line-height: 1.8; }
.top-renewal .tr-plan .tr-item { display: inline-block; white-space: nowrap; }
.top-renewal .tr-plan tr:not(.tr-plan-sum) td:first-of-type { text-align: left; }
.top-renewal .tr-plan .tr-item:not(:last-child)::after { content: "／"; margin: 0 .6em; }
.top-renewal .tr-plan table td .bold strong { font-size: 3.2rem; }
.top-renewal .tr-plan .tr-plan-sum th,
.top-renewal .tr-plan .tr-plan-sum td {
    background: #aa8841;
    color: #fff;
}
.top-renewal .tr-plan .tr-plan-sum td {
    width: auto;
    text-align: right;
    padding-right: 3rem;
}
.top-renewal .tr-plan .tr-plan-sum td small {
    font-size: 1.4rem;
    font-weight: 400;
    margin-left: .5em;
}

/* ---------- お悩み：女性のイラストをやめ、最後に「名医による噛み合わせ治療」の文を中央に置く ---------- */
.top-renewal .worry:not(.tr-video) .wrap:after,
.top-renewal .worry:not(.tr-video) .wrap:before { content: none !important; }
.top-renewal .worry:not(.tr-video) .wrap { padding-bottom: 9rem; }
.top-renewal .tr-worry-foot { margin: 5rem auto 0; text-align: center; }
.top-renewal .tr-worry-foot__txt {
    margin: 0;
    font-size: 1.8rem;
    line-height: 2;
    letter-spacing: .05em;
    color: #333;
}
.top-renewal .tr-worry-foot__lead {
    display: table;
    margin: 0 auto 1.6rem;
    padding: 0 2rem 1.6rem;
    border-bottom: 2px solid #aa8841;
    font-size: 2.8rem;
    line-height: 1.5;
    font-weight: 700;
}
.top-renewal .tr-worry-foot__lead strong { color: #aa8841; }

/* ---------- 「諦めないでください！」の吹き出し：上の段にかぶせず、下の白い段の中に置く ---------- */
.top-renewal.lp .choice .balloon { margin-top: 0 !important; }
.top-renewal .choice.wrap.large { padding-top: 8rem; }
/* 吹き出しの下に「普通にご飯が噛める」の写真。吹き出しの矢印（下の中央）が写真から出ている形にする（11/24） */
/* 矢印の先は吹き出しの中央より右（矢印の画像の幅の半分）にあるので、写真も右に寄せて、矢印の先が写真の真上に来るようにする（11/24 先生の指示「右に寄せる」） */
.top-renewal .tr-choice-photo { width: 30rem; margin: -5rem auto 0; position: relative; z-index: 0; left: 11.6rem; }
.top-renewal .tr-choice-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.6rem;
    box-shadow: 0 .6rem 2rem rgba(0, 0, 0, .12);
}

/* ---------- 患者様の声：人のシルエットのアイコン → 口元の写真（全体が見えるよう、角を丸めた四角） ---------- */
.top-renewal .tr-voice-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.2rem;
    border: 4px solid #aa8841;
    box-sizing: border-box;
}

/* ---------- MV ここから（build_mv_css.py が作る。手で直さない） ---------- */
/* 今のMV（背景画像・高さ130vh）の指定を打ち消す */
.top-renewal div.mv.mv_top.tr-mv {
    height: auto !important;
    min-height: 0;
    /* PC：MV＋金色のメニューバー（MVの下端に8rem重なる）が、最初の画面の高さにちょうど収まるようにする。
       横に広い画面では、デザインを高さに合わせて縮めて中央に置き、左右は背景の色で埋める。 */
    /* --p：大きさの変わらないサイトのロゴに白帯が重ならないよう、デザインが1440より小さいときだけMVを少し下げる量 */
    --p: max(0px, calc(68px - 68 * min(100vw / 1440, (100vh - 8rem) / 880)));
    padding: var(--p) 0 8rem;
    overflow: hidden;
    /* 左の余白は白、右の余白はデザインの右端と同じベージュ（中央はデザインの画像で隠れる） */
    background: linear-gradient(to right, #ffffff 50%, #f6efe3 50%) !important;
    opacity: 1;
}
.top-renewal .tr-mv__stage {
    position: relative;
    container-type: inline-size;
    width: min(100%, calc((100vh - 8rem - var(--p)) * 1440 / 880));
    margin: 0 auto;
    --u: calc(100cqw / 1440);
}
/* 「専門クリニック」の白帯は、左の余白にも画面の左端まで伸ばす */
.top-renewal .tr-mv__stage::before {
    content: "";
    position: absolute;
    right: calc(100% - 1px);
    width: 50vw;
    top: calc(68 * var(--u));
    height: calc(52.3 * var(--u));
    background: #fff;
}
.top-renewal .tr-mv__bg { display: block; width: 100%; height: auto; }
.top-renewal .tr-mv__catch, .top-renewal .tr-mv__price { margin: 0; font-weight: inherit; }
.top-renewal .tr-mv__t {
    position: absolute;
    margin: 0;
    padding: 0;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    font-feature-settings: normal;
    -webkit-font-smoothing: antialiased;
}
.top-renewal .tr-mv__t--senmon { color: #9e7522; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--lead { color: #2a2a2a; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--shikkari { color: #2a2a2a; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--kameru { color: #9e7522; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--sentaku { color: #2a2a2a; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--obi1 { color: #ffffff; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--obi2 { color: #ffffff; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--set { color: #ffffff; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--price { color: #9e7522; font-weight: 700; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--yen { color: #000000; font-weight: 600; font-family: "Noto Serif JP", serif; }
.top-renewal .tr-mv__t--note { color: #8a8a8a; font-weight: 400; font-family: "Noto Sans JP", sans-serif; }
.top-renewal .tr-mv__t--senmon { left: calc(19 * var(--u)); top: calc(76.7 * var(--u)); font-size: calc(34.48 * var(--u)); letter-spacing: calc(0.35 * var(--u)); }
.top-renewal .tr-mv__t--lead { left: calc(51 * var(--u)); top: calc(168 * var(--u)); font-size: calc(35.39 * var(--u)); }
.top-renewal .tr-mv__t--shikkari { left: calc(73 * var(--u)); top: calc(246 * var(--u)); font-size: calc(133.4 * var(--u)); }
.top-renewal .tr-mv__t--kameru { left: calc(99.4 * var(--u)); top: calc(419 * var(--u)); font-size: calc(134.8 * var(--u)); }
.top-renewal .tr-mv__t--sentaku { left: calc(29 * var(--u)); top: calc(600 * var(--u)); font-size: calc(35.28 * var(--u)); }
.top-renewal .tr-mv__t--obi1 { left: calc(55.61 * var(--u)); top: calc(682.53 * var(--u)); font-size: calc(49.65 * var(--u)); }
.top-renewal .tr-mv__t--obi2 { left: calc(88.66 * var(--u)); top: calc(768.71 * var(--u)); font-size: calc(42.88 * var(--u)); }
.top-renewal .tr-mv__t--set { left: calc(756 * var(--u)); top: calc(662.64 * var(--u)); font-size: calc(43.6 * var(--u)); }
.top-renewal .tr-mv__t--price { left: calc(737 * var(--u)); top: calc(716 * var(--u)); font-size: calc(88 * var(--u)); }
.top-renewal .tr-mv__t--yen { left: calc(890.8 * var(--u)); top: calc(756.2 * var(--u)); font-size: calc(43.2 * var(--u)); }
.top-renewal .tr-mv__t--note { left: calc(740 * var(--u)); top: calc(814 * var(--u)); font-size: calc(14 * var(--u)); }
@media screen and (max-width: 768px) {
    .top-renewal div.mv.mv_top.tr-mv { padding: max(0px, calc(66px - 76 * 100vw / 390)) 0 0; background: #fffbf6 !important; }
    .top-renewal .tr-mv__stage { width: 100%; --u: calc(100cqw / 390); }
    .top-renewal .tr-mv__stage::before { content: none; }
    .top-renewal .tr-mv__t--senmon { left: calc(28 * var(--u)); top: calc(82.97 * var(--u)); font-size: calc(15.28 * var(--u)); letter-spacing: calc(0.1 * var(--u)); }
    .top-renewal .tr-mv__t--lead { left: calc(19 * var(--u)); top: calc(125.98 * var(--u)); font-size: calc(20.08 * var(--u)); }
    .top-renewal .tr-mv__t--shikkari { left: calc(14 * var(--u)); top: calc(153 * var(--u)); font-size: calc(60 * var(--u)); }
    .top-renewal .tr-mv__t--kameru { left: calc(24 * var(--u)); top: calc(219 * var(--u)); font-size: calc(60 * var(--u)); }
    .top-renewal .tr-mv__t--sentaku { left: calc(28 * var(--u)); top: calc(530 * var(--u)); font-size: calc(17.48 * var(--u)); }
    .top-renewal .tr-mv__t--obi1 { left: calc(34.9 * var(--u)); top: calc(580.48 * var(--u)); font-size: calc(26.65 * var(--u)); }
    .top-renewal .tr-mv__t--obi2 { left: calc(64.7 * var(--u)); top: calc(630.8 * var(--u)); font-size: calc(22 * var(--u)); }
    .top-renewal .tr-mv__t--set { left: calc(22 * var(--u)); top: calc(717.32 * var(--u)); font-size: calc(21.8 * var(--u)); }
    .top-renewal .tr-mv__t--price { left: calc(14 * var(--u)); top: calc(751 * var(--u)); font-size: calc(70 * var(--u)); }
    .top-renewal .tr-mv__t--yen { left: calc(138 * var(--u)); top: calc(792 * var(--u)); font-size: calc(21 * var(--u)); }
    .top-renewal .tr-mv__t--note { left: calc(21 * var(--u)); top: calc(820.5 * var(--u)); font-size: calc(12 * var(--u)); }
}
/* ---------- MV ここまで ---------- */

/* ============================================================
   スマホ
   ============================================================ */
@media screen and (max-width: 768px) {
    .top-renewal .tr-guide { font-size: 1.3rem; margin: 0 1.5rem 2rem; }

    /* 症例スライダー：ボタンの下にも余白を入れ、ドットはカードとボタンの真ん中（上下とも37px） */
    .top-renewal main.R_main_top > section.worry:first-child { padding-bottom: 50px; }
    .top-renewal main.R_main_top > section.worry:first-child .top-cards-dots { margin-top: 33px; }
    .top-renewal main.R_main_top > section.worry:first-child .top-cards-btn { margin-top: 37px; }

    .top-renewal .tr-sns { padding: 5rem 0 6rem; }
    .top-renewal .tr-sns h2 { margin-bottom: 2.5rem; }
    .top-renewal .tr-sns__row { display: block; }
    .top-renewal .tr-sns__col { padding: 2.5rem 1.5rem 3rem; }
    .top-renewal .tr-sns__col + .tr-sns__col { margin-top: 2rem; }
    .top-renewal .tr-sns__tit { font-size: 2rem; margin-bottom: 1.5rem; }
    .top-renewal .tr-sns__grid { margin-bottom: 2rem; }
    .top-renewal .tr-sns__grid--yt { grid-template-columns: repeat(3, 1fr); }
    .top-renewal .tr-yt-modal__box { height: auto; width: 86vw; max-height: 80vh; }
    .top-renewal .tr-yt-play { width: 3.4rem; height: 2.4rem; margin: -1.2rem 0 0 -1.7rem; }

    .top-renewal .tr-plan .tr-plan-note { margin: -1.5rem 0 1.5rem; font-size: 1.4rem; }
    .top-renewal .tr-plan table + h3 { margin-top: 3.5rem; }
    .top-renewal .tr-plan table td { font-size: 1.5rem; line-height: 1.7; }
    .top-renewal .tr-plan table td .bold strong { font-size: 2.8rem; }
    .top-renewal .tr-plan .tr-plan-sum td { text-align: center; padding-right: 1.1rem; }

    /* お悩みの段：スマホは文を上、写真をその下の中央に */
    .top-renewal .worry:not(.tr-video) .wrap { padding-bottom: 5rem; }
    .top-renewal .tr-worry-foot { margin-top: 3rem; padding: 0 1.5rem; }
    .top-renewal .tr-worry-foot__txt { font-size: 1.4rem; line-height: 1.9; letter-spacing: 0; }
    .top-renewal .tr-worry-foot__lead { font-size: 2rem; margin-bottom: 1.2rem; padding: 0 1rem 1.2rem; }
    .top-renewal .tr-choice-photo { width: 24rem; margin-top: -2rem; left: 4.8rem; }  /* 右端を吹き出しの右端にそろえる。矢印の先は写真の右寄りに来る */
    .top-renewal .choice.wrap.large { padding-top: 5rem; }

    /* スマホ：写真を画面の3分の2ほどに大きくする（左右に互い違いはそのまま） */
    .top-renewal.lp .tr-voice-img { width: 66.7%; }
    .top-renewal .tr-voice-img img { border-width: 3px; border-radius: 1rem; }
    /* 見出しの下の▼と1枚目の写真の間、写真と下の吹き出しの矢印の間をあける */
    .top-renewal.lp .voice_list { margin-top: 3rem; }
    .top-renewal.lp .tr-voice-img { margin-top: 0; margin-bottom: 1.8rem; }
    .top-renewal .tr-plan .tr-item { display: block; white-space: normal; }
    .top-renewal .tr-plan .tr-item:not(:last-child)::after { content: none; }
    .top-renewal .tr-plan td br { display: none; }
}

/* ---------- 11/25 先生の指摘（パソコン）：①「普通にご飯が噛める」の写真を大きく・下の余白を詰める ②患者様の声の写真を大きく・左右の余白を詰めて幅を広げる ---------- */
@media screen and (min-width: 769px) {
    .top-renewal .tr-choice-photo { width: 40rem; }
    .top-renewal .choice.wrap.large { margin-bottom: 0; }
    .top-renewal section.voice .wrap.midium { width: 1100px; max-width: calc(100% - 4rem); }
    .top-renewal.lp .voice_img { width: 36%; }
    .top-renewal.lp .voice_wrap { width: 60%; }
}

/* ---------- 11/26 先生の指摘（スマホ）：「普通にご飯が噛める」の写真の下の余白を詰める（パソコンと同じ） ---------- */
@media screen and (max-width: 768px) {
    .top-renewal .choice.wrap.large { margin-bottom: 0; }
}
