/* 矯正の症例集(ortho-cases)
   数値は design-lab/専門サイト_設計ルール.md の「共通の数値」に合わせる。
   差し色は矯正サイトに寄せたローズ1色(予約ボタン・選択中の絞り込み)。 */
:root{
  --text:#1E2532; --sub:#5A6476; --line:#E3E8EF; --bg:#FFFFFF;
  --rose:#B5546F; --rose-dark:#8E3D55; --rose-tint:#FBF3F5; --rose-line:#EBCFD8;
  --photo-bg:#F3EEEF;
  --accent-hover:var(--rose-dark); --on-accent:#FFFFFF; --accent-shadow:142,61,85; --tint-rgb:251,243,245; --panel-line:var(--panel-line);
  --r-photo:12px; --r-btn:8px; --r-table:10px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:"Noto Sans JP",system-ui,sans-serif;font-size:17px;line-height:1.9}
img{max-width:100%;display:block}
a{color:var(--rose-dark)}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}
.pc-br{display:inline}.sp-br{display:none}
.ico{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.preview-band{margin:0;background:#4A3323;color:#fff;font-size:13px;line-height:1.6;padding:6px 18px;text-align:center}

/* ヘッダー */
.site-header{border-bottom:1px solid var(--line);background:#fff}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px}
.brand{text-decoration:none;color:var(--text);display:flex;flex-direction:column;line-height:1.3}
.brand-main{font-family:"Noto Serif JP",serif;font-weight:700;font-size:21px;letter-spacing:.02em}
.brand-sub{font-size:13px;color:var(--sub)}
.brand-sub .sp-hide{display:inline}
.header-cta{display:flex;gap:10px}

/* ボタン(3-2: 影+上端の光・触れると少し浮く) */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:var(--r-btn);
  font:inherit;font-size:15px;font-weight:700;text-decoration:none;cursor:pointer;border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease}
.btn-primary{background:var(--rose);color:var(--on-accent);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 4px 12px rgba(var(--accent-shadow),.25)}
.btn-primary:hover{background:var(--accent-hover);transform:translateY(-3px);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 8px 18px rgba(var(--accent-shadow),.3)}
.btn-ghost{background:#fff;color:var(--text);border-color:var(--line);box-shadow:0 2px 6px rgba(30,37,50,.06)}
.btn-ghost:hover{transform:translateY(-3px);box-shadow:0 6px 14px rgba(30,37,50,.1)}
.btn-outline{background:#fff;color:var(--rose-dark);border-color:var(--rose-line);min-width:240px}
.btn-outline:hover{background:var(--rose-tint);transform:translateY(-3px)}
.btn-lg{min-height:56px;font-size:16px;padding:0 26px}
.btn:focus-visible,.fbtn:focus-visible,.card a:focus-visible,.pg:focus-visible{outline:3px solid var(--rose);outline-offset:3px}

/* 初画面 */
.hero{background:var(--rose-tint);padding:64px 0 56px}
.eyebrow{margin:0 0 8px;font-size:14px;font-weight:700;color:var(--rose-dark);letter-spacing:.08em}
h1{font-family:"Noto Serif JP",serif;font-weight:700;font-size:40px;line-height:1.45;margin:0;text-wrap:balance}
.lead{max-width:44em;margin:20px 0 0;color:var(--text)}

/* 絞り込み */
.filter-sec{padding:40px 0 8px;border-bottom:1px solid var(--line)}
.fgroup{display:grid;grid-template-columns:9em 1fr;gap:12px;align-items:start;padding:12px 0}
.fgroup + .fgroup{border-top:1px dashed var(--line)}
.flabel{margin:0;font-weight:700;font-size:15px;line-height:44px}
.fbtns{display:flex;flex-wrap:wrap;gap:8px}
.fbtn{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--text);
  font:inherit;font-size:15px;cursor:pointer;transition:background-color .15s,border-color .15s}
.fbtn:hover{border-color:var(--rose-line);background:var(--rose-tint)}
.fbtn[aria-pressed="true"]{background:var(--rose);border-color:var(--rose);color:var(--on-accent);font-weight:700}
/* 小さく添える文字(年齢=治療の時期・治療方法=正式名) */
.fbtn.two{padding:6px 16px;line-height:1.35;text-align:left}
.fbtn small{display:block;font-size:12px;font-weight:400;color:var(--sub)}
.fbtn[aria-pressed="true"] small{color:var(--on-accent);opacity:.9}
/* 年齢(いちばん上の入り口)は大きく */
.fgroup-main .flabel{font-size:17px;line-height:56px}
.fgroup-main .fbtn{min-height:56px;font-size:17px;padding-left:20px;padding-right:20px}
.fnote{margin:4px 0 0;font-size:13px;color:var(--sub)}
.case-formal{margin:6px 0 0;font-size:14px;color:var(--sub)}
/* この症例で使った装置 */
.devbox{margin-top:48px}
.dev-lead{margin:0 0 12px;font-size:14px;color:var(--sub)}
.dev-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.dev-list li{position:relative;border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:#fff}
.dev-step{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--rose);color:var(--on-accent);font-size:14px;font-weight:700;margin-bottom:8px}
.dev-name{margin:0;font-weight:700;font-size:17px;line-height:1.5}
.dev-name small{display:block;font-weight:400;font-size:13px;color:var(--sub)}
.dev-note{margin:8px 0 0;font-size:15px;line-height:1.8}
.dev-rm{margin:8px 0 0;font-size:13px;color:var(--rose-dark)}
.result-line{margin:16px 0 24px;font-size:15px;color:var(--sub)}
.result-line #count{font-size:22px;font-weight:700;color:var(--text);font-variant-numeric:tabular-nums}
.reset{margin-left:12px;background:none;border:0;color:var(--rose-dark);text-decoration:underline;font:inherit;font-size:14px;cursor:pointer;min-height:44px}

/* カード一覧 */
.list-sec{padding:40px 0 96px}
.cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px 24px}
.card a{display:flex;flex-direction:column;height:100%;text-decoration:none;color:var(--text)}
.card-photo{display:block;aspect-ratio:4/3;border-radius:var(--r-photo);overflow:hidden;background:var(--photo-bg)}
.card-photo img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.card a:hover .card-photo img{transform:scale(1.03)}
.card-body{display:flex;flex-direction:column;gap:6px;padding:14px 2px 0}
.card-no{font-size:13px;color:var(--sub);font-variant-numeric:tabular-nums;letter-spacing:.04em}
.card-title{font-weight:700;font-size:17px;line-height:1.5}
.card a:hover .card-title{color:var(--rose-dark);text-decoration:underline;text-underline-offset:3px}
.card-chips,.case-chips{display:flex;flex-wrap:wrap;gap:6px}
.card-meta{font-size:14px;color:var(--sub);line-height:1.7}
.chip{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--rose-tint);color:var(--rose-dark);font-size:13px;font-weight:500;line-height:1.7}
.chip-wait{background:#F1F3F6;color:var(--sub)}
.more-wrap{display:flex;justify-content:center;margin-top:40px}
.empty{margin:24px 0;color:var(--sub)}
.note{font-size:14px;color:var(--sub);margin:32px 0 0}

/* 症例ページ */
.crumb{display:flex;gap:8px;font-size:14px;color:var(--sub);padding-top:20px;padding-bottom:4px}
.case-head{padding-top:24px;padding-bottom:8px}
.case-head h1{font-size:34px}
.case-chips{margin:14px 0 0}
.compare{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;margin-top:32px}
.compare figure{margin:0}
.compare img{width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--photo-bg);border-radius:var(--r-photo)}
.compare figcaption{margin-top:8px;font-weight:700;font-size:16px}
.compare-arrow{color:var(--rose);display:flex}
.compare-arrow .ico{width:32px;height:32px}
.h2s{font-family:"Noto Serif JP",serif;font-weight:700;font-size:24px;line-height:1.5;margin:0 0 20px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.stages{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:64px}
.stage-sec{margin-top:56px}
.stage-sec .cross{max-width:520px}
.cross{display:grid;grid-template-columns:repeat(3,1fr);grid-template-areas:". upper ." "right front left" ". lower .";gap:8px}
.ph{margin:0;position:relative}
.ph img{width:100%;aspect-ratio:4/3;object-fit:contain;background:var(--photo-bg);border-radius:8px}
.ph figcaption{font-size:12px;color:var(--sub);text-align:center;line-height:1.6;margin-top:2px}
.ph-upper{grid-area:upper}.ph-right{grid-area:right}.ph-front{grid-area:front}.ph-left{grid-area:left}.ph-lower{grid-area:lower}
.facts{margin-top:72px}
.facts-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--line);border-radius:var(--r-table);overflow:hidden}
.facts-table th,.facts-table td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line);font-size:16px;line-height:1.8}
.facts-table tr:last-child th,.facts-table tr:last-child td{border-bottom:0}
.facts-table th{width:11em;background:#F8F9FB;font-weight:700}
.wait{color:var(--sub);font-size:14px}
.risk,.notice{margin-top:24px;border:1px solid var(--text);border-radius:var(--r-table);padding:18px 22px}
.risk h3,.notice h3{margin:0 0 8px;font-size:18px}
.risk p{margin:0;font-size:16px}
.notice ul{margin:0;padding-left:1.2em;font-size:15px;line-height:1.85}
.pager{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;margin-top:56px;margin-bottom:80px;padding-top:24px;border-top:1px solid var(--line)}
.pg{display:inline-flex;align-items:center;gap:6px;min-height:48px;text-decoration:none;font-weight:700;font-size:15px}
.pager .pg:last-child{justify-self:end}
.pg-list{padding:0 18px;border:1px solid var(--line);border-radius:var(--r-btn);color:var(--text)}

/* 予約・フッター */
.cta-block{background:var(--rose-tint);padding:72px 0}
.cta-title{font-family:"Noto Serif JP",serif;font-size:28px;line-height:1.5;margin:0 0 12px}
.cta-block p{margin:0}
.cta-buttons{display:flex;flex-wrap:wrap;gap:14px;margin-top:28px}
.site-footer{background:#2B2F38;color:#D9DCE2;font-size:14px;line-height:1.8;padding:40px 0 48px}
.site-footer p{margin:0 0 4px}
.foot-name{font-weight:700;color:#fff;font-size:16px}
.foot-links{display:flex;flex-wrap:wrap;gap:18px;margin-top:10px!important}
.site-footer a{color:#fff}
.foot-copy{margin-top:16px!important;color:#9AA0AB}

@media (max-width:900px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .stages{grid-template-columns:1fr;gap:48px}
}
@media (max-width:640px){
  body{font-size:16px;line-height:1.85}
  .wrap{padding:0 18px}
  .pc-br{display:none}.sp-br{display:inline}
  .header-inner{min-height:60px}
  .brand-main{font-size:17px;white-space:nowrap}.brand-sub{font-size:11px;white-space:nowrap}
  .header-inner{gap:8px}
  .header-cta{gap:6px}
  .header-cta .btn{padding:0 10px;min-width:48px}
  .header-cta .btn-ghost span{display:none}
  .header-cta .btn-primary span{font-size:13px;white-space:nowrap}
  .header-cta .btn-primary .ico{display:none}
  .hero{padding:40px 0 36px}
  h1{font-size:27px}
  .case-head h1{font-size:25px}
  .fgroup{grid-template-columns:1fr;gap:4px}
  .flabel{line-height:1.6}
  .fbtn{font-size:14px;padding:0 13px}
  .cards{gap:22px 12px}
  .card-title{font-size:15px}
  .compare{gap:6px}
  .compare-arrow .ico{width:22px;height:22px}
  .h2s{font-size:21px}
  .cross{gap:5px}
  .ph figcaption{font-size:11px}
  .facts-table th,.facts-table td{display:block;width:auto;padding:10px 14px}
  .facts-table th{border-bottom:0;padding-bottom:2px;background:#fff;color:var(--sub);font-size:14px}
  .pager{grid-template-columns:1fr 1fr;}
  .pg-list{grid-column:1/-1;grid-row:2;justify-self:center}
  .cta-title{font-size:23px}
  .cta-buttons .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* 正面1枚だけの段階(2026-11-21) */
.single{max-width:62%;margin:0 auto}
.single .ph figcaption{font-size:13px}
@media (max-width:640px){.single{max-width:100%}}

/* 一覧の写真: 治療前⇔治療後を自動で切り替え(2026-11-21 発注者の動画指示) */
.ba{position:relative}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ba .ba-after{animation:ba-fade 7s ease-in-out infinite}
.ba-label{position:absolute;left:10px;top:10px;font-size:13px;font-weight:700;line-height:1;color:#fff}
.ba-label span{position:absolute;left:0;top:0;white-space:nowrap;padding:6px 10px;border-radius:999px;background:rgba(30,37,50,.72)}
.ba-label .l-after{background:var(--rose);color:var(--on-accent);animation:ba-fade 7s ease-in-out infinite}
.ba-label .l-before{animation:ba-fade-rev 7s ease-in-out infinite}
@keyframes ba-fade{0%,40%{opacity:0}50%,90%{opacity:1}100%{opacity:0}}
@keyframes ba-fade-rev{0%,40%{opacity:1}50%,90%{opacity:0}100%{opacity:1}}
.card a:hover .card-photo img{transform:none}
@media (prefers-reduced-motion:reduce){
  .ba .ba-after,.ba-label .l-after{animation:none;opacity:1}
  .ba-label .l-before{animation:none;opacity:0}
}
/* 年齢ごとの区切り */
.age-group + .age-group{margin-top:64px}
.age-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;font-family:"Noto Serif JP",serif;font-weight:700;font-size:26px;line-height:1.4;margin:0 0 24px;padding-bottom:12px;border-bottom:2px solid var(--rose-line)}
.age-head small{font-family:"Noto Sans JP",sans-serif;font-size:14px;font-weight:500;color:var(--rose-dark)}
.age-count{margin-left:auto;font-family:"Noto Sans JP",sans-serif;font-size:14px;font-weight:400;color:var(--sub)}
.age-group .more-wrap{margin-top:28px}
@media (max-width:640px){.age-head{font-size:22px}.age-group + .age-group{margin-top:48px}}

.more-wrap[hidden]{display:none}

/* 表紙のスライド: 治療前と治療後を横に並べて比べる(2026-11-21 理事長) */
.feature{padding:48px 0 8px}
.feature-head{font-family:"Noto Serif JP",serif;font-size:26px;line-height:1.4;margin:0 0 20px}
.fs-slide{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:28px;align-items:center}
.fs-pair{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}
.fs-pair figure{margin:0}
.fs-pair img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r-photo);background:var(--photo-bg);display:block}
.fs-pair figcaption{margin-top:8px;font-weight:700;font-size:15px}
.fs-pair figure:last-child figcaption{color:var(--rose-dark)}
.fs-arrow{color:var(--rose);display:flex}.fs-arrow .ico{width:28px;height:28px}
.fs-no{margin:0;font-size:13px;color:var(--sub);letter-spacing:.04em}
.fs-title{margin:2px 0 8px;font-weight:700;font-size:19px;line-height:1.5}
.fs-note{margin:0 0 10px;padding:8px 12px;background:var(--rose-tint);border-radius:8px;font-size:14px;line-height:1.7}
.fs-facts{margin:0 0 8px;font-size:14px;line-height:1.7}
.fs-facts div{display:grid;grid-template-columns:6.5em 1fr;gap:6px;padding:3px 0;border-bottom:1px solid var(--line)}
.fs-facts dt{color:var(--sub)}.fs-facts dd{margin:0}
.fs-risk{margin:0 0 14px;font-size:12.5px;line-height:1.7;color:var(--sub)}
.fs-risk b{color:var(--text)}
.fs-nav{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px}
.fs-prev,.fs-next{width:44px;height:44px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer}
.fs-dots{display:flex;gap:8px}
.fs-dot{width:10px;height:10px;border-radius:999px;border:0;background:#D5D9E0;padding:0;cursor:pointer}
.fs-dot[aria-current="true"]{background:var(--rose)}
/* 年齢へ移動するボタン(1列)+たたんだ絞り込み */
.filter-sec{display:none}
.jump-bar{padding:28px 0 4px;border-bottom:1px solid var(--line)}
.jump-label{margin:0 0 8px;font-weight:700;font-size:14px}
.jumps{display:flex;flex-wrap:wrap;gap:8px}
.jump{display:inline-flex;flex-direction:column;justify-content:center;min-height:48px;padding:4px 16px;border:1px solid var(--rose-line);border-radius:10px;background:#fff;color:var(--text);text-decoration:none;font-weight:700;font-size:15px;line-height:1.3}
.jump small{font-weight:400;font-size:11px;color:var(--rose-dark)}
.jump:hover{background:var(--rose-tint)}
.more-filter{margin-top:12px}
.more-filter summary{cursor:pointer;color:var(--rose-dark);font-size:14px;font-weight:700;min-height:44px;display:flex;align-items:center}
.more-filter .fgroup{padding:8px 0}
.age-group{scroll-margin-top:16px}
.result-line .fnote{margin-left:12px;font-size:13px;color:var(--sub)}
@media (max-width:900px){.fs-slide{grid-template-columns:1fr;gap:16px}}
@media (max-width:640px){
  .feature{padding-top:32px}.feature-head{font-size:21px}
  .fs-pair{gap:6px}.fs-arrow .ico{width:20px;height:20px}
  .jumps{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .jump{flex:none;padding:4px 12px;font-size:14px}
  .result-line .fnote{display:block;margin:4px 0 0}
}

.fs-pair img{height:auto}
/* 表紙のスライド: インビザラインを使った症例の未承認機器の説明(隠さない・2026-11-21) */
.fs-unapproved{margin:0 0 14px;padding:10px 12px;border:1px solid var(--text);border-radius:8px;font-size:12px;line-height:1.7}
.fs-unapproved b{display:block;margin-bottom:2px;font-size:13px}
.fs-unapproved ul{margin:0;padding-left:1.2em}


/* 表紙 v3(2026-11-21 動画14:05): 5枚の十字写真を大きく・治療前⇔治療後が自動で切り替わる */
.feature{padding:32px 0 8px}
.fs-slide{display:block}
.fs-photo{position:relative;display:block;max-width:760px;margin:0 auto;color:inherit;text-decoration:none}
.fs-cross{display:grid;grid-template-columns:repeat(3,1fr);grid-template-areas:". upper ." "right front left" ". lower .";gap:8px}
.fx{position:relative;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--photo-bg)}
.fx-none{background:transparent}
.fx img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.fx .fx-a{animation:ba-fade 9s ease-in-out infinite}
.fx-upper{grid-area:upper}.fx-right{grid-area:right}.fx-front{grid-area:front}.fx-left{grid-area:left}.fx-lower{grid-area:lower}
.fs-label{position:absolute;left:0;top:0;width:33.3%;height:calc((100% - 16px)/3);display:flex;align-items:center;justify-content:center;pointer-events:none}
.fs-label span{position:absolute;padding:10px 22px;border-radius:999px;font-size:22px;font-weight:700;color:#fff;white-space:nowrap;letter-spacing:.06em}
.fs-label .l-before{background:rgba(30,37,50,.78);animation:ba-fade-rev 9s ease-in-out infinite}
.fs-label .l-after{background:var(--rose);color:var(--on-accent);animation:ba-fade 9s ease-in-out infinite}
.fs-cap{max-width:760px;margin:12px auto 0}
.fs-line{margin:0;font-size:13px;line-height:1.7;color:var(--text)}
.fs-line b{margin-right:6px}
.fs-cap .fs-risk{margin:2px 0 8px;font-size:11.5px;line-height:1.6}
.fs-cap .fs-unapproved{margin:0 0 8px;padding:8px 10px;font-size:11.5px}
@media (max-width:640px){
  .fs-cross{gap:4px}
  .fs-label{height:calc((100% - 8px)/3)}
  .fs-label span{padding:6px 12px;font-size:14px}
  .fs-line{font-size:12px}
}
@media (prefers-reduced-motion:reduce){
  .fx .fx-a,.fs-label .l-after{animation:none;opacity:1}
  .fs-label .l-before{animation:none;opacity:0}
}

/* 大きな2つの探すボタン+半透明のパネル */
.hero{padding:44px 0 36px}
.finder{position:relative;z-index:5;padding:24px 0 8px}
.finder .wrap{position:relative}
.fd-btns{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fd-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:68px;padding:8px 16px;border-radius:14px;border:2px solid var(--rose);background:#fff;color:var(--rose-dark);font:inherit;font-size:20px;font-weight:700;cursor:pointer;box-shadow:0 4px 12px rgba(var(--accent-shadow),.12)}
.fd-btn:hover{background:var(--rose-tint)}
.fd-btn[aria-expanded="true"]{background:var(--rose);color:var(--on-accent)}
.fd-btn:focus-visible{outline:3px solid var(--rose);outline-offset:3px}
.fd-ar{flex:none;width:10px;height:10px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:translateY(-3px) rotate(45deg);transition:transform .25s}
.fd-btn[aria-expanded="true"] .fd-ar{transform:translateY(3px) rotate(225deg)}
.fd-panel{position:absolute;left:24px;right:24px;top:calc(68px + 10px);padding:16px 18px;border-radius:14px;border:1px solid var(--panel-line);
  background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);box-shadow:0 12px 32px rgba(30,37,50,.18);animation:fd-open .28s ease-out}
@keyframes fd-open{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}
.fd-note{margin:0 0 10px;font-size:13px;color:var(--sub)}
.fd-panel .jumps{display:flex;flex-wrap:wrap;gap:8px}
.fd-panel .jump{background:rgba(255,255,255,.9)}
.fd-panel .fgroup{grid-template-columns:1fr;gap:6px;padding:4px 0}
.fd-panel .fgroup + .fgroup{border-top:1px dashed var(--line);padding-top:12px;margin-top:8px}
.fd-panel .flabel{line-height:1.6;font-size:14px}
.fd-panel .fbtn:not([aria-pressed="true"]){background:rgba(255,255,255,.9)}
.finder .result-line{margin:14px 0 0}
@media (max-width:640px){
  .hero{padding:28px 0 24px}
  .fd-btns{gap:8px}
  .fd-btn{min-height:60px;font-size:16px;padding:6px 8px;gap:8px}
  .fd-panel{left:18px;right:18px;top:calc(60px + 8px);padding:12px;max-height:70vh;overflow-y:auto}
  .fd-panel .jumps{flex-wrap:wrap}
  .fd-panel .jump{flex:1 1 calc(50% - 8px)}
}
@media (prefers-reduced-motion:reduce){.fd-panel{animation:none}}
#active-name{color:var(--rose-dark);font-size:16px}

/* 2026-11-21 動画14:45: 切り替えを速く(4秒で1周)・ラベルに「大人の矯正」などを添える・途中経過などの十字が小さく縮んで見えるのを直す */
.fx .fx-a,.fs-label .l-after{animation-duration:4s}
.fs-label .l-before{animation-duration:4s}
.fs-label span{display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.25;padding:10px 20px;border-radius:16px}
.fs-label small{font-size:13px;font-weight:700;letter-spacing:0;opacity:.95;white-space:normal;max-width:12em}
@media (max-width:640px){
  .fs-label span{padding:6px 8px;border-radius:10px;font-size:14px}
  .fs-label small{font-size:10px;max-width:9em}
}
.stage-sec .cross{max-width:calc((100% - 40px) / 2)}
@media (max-width:900px){.stage-sec .cross{max-width:none}}
/* 写真の下の説明は医療広告のルール上はずせないので、目立たない小さな字に(枠なし) */
.fs-cap{margin-top:8px}
.fs-line{font-size:12px;color:var(--sub)}
.fs-line b{color:var(--text)}
.fs-cap .fs-risk{font-size:11px;margin:0 0 4px}
.fs-cap .fs-unapproved{border:0;padding:0;margin:0;font-size:11px;color:var(--sub)}
.fs-cap .fs-unapproved b{display:inline;font-size:11px;margin:0 4px 0 0;color:var(--text)}
.fs-cap .fs-unapproved ul{display:inline;padding:0}
.fs-cap .fs-unapproved li{display:inline}
.fs-cap .fs-unapproved li + li::before{content:" ／ "}
.fs-slide[hidden]{display:none}
/* 上あご・下あごの写真が無い症例(横3枚だけ)は1列で表示し、ラベルは写真の上に */
.fs-photo.row3{display:flex;flex-direction:column-reverse}
.fs-photo.row3 .fs-cross{grid-template-areas:"right front left"}
.fs-photo.row3 .fs-label{position:relative;width:auto;height:64px;margin-bottom:8px;justify-content:flex-start}
.fs-photo.row3 .fs-label span{left:0}
@media (max-width:640px){.fs-photo.row3 .fs-label{height:46px}}

/* 2026-11-21 動画15:05: 切り替えは前の速さ(9秒で1周)に戻す・写真だけ・ラベルの小さい字は1行 */
.fx .fx-a,.fs-label .l-after,.fs-label .l-before{animation-duration:9s}
.fs-label small{white-space:nowrap;max-width:none}
.fs-label span{white-space:nowrap}
.fs-nav{margin-top:16px}
@media (max-width:640px){
  /* スマホは左上の枠が狭いので、ラベルを写真の上に出す(1行に収める) */
  .fs-photo{display:flex;flex-direction:column-reverse}
  .fs-label{position:relative;width:auto;height:46px;margin-bottom:6px;justify-content:flex-start}
  .fs-label span{left:0;flex-direction:row;gap:6px;align-items:baseline;padding:8px 12px}
  .fs-label small{font-size:11px}
}

/* 2026-11-21 動画15:32「切り替わるときにカクッとなる」: 症例どうしを重ねてじわっと切り替える。
   各症例は 治療前(約4秒)→じわっと→治療後(約4秒) の1回だけ。治療前に戻らずに次の症例へ。 */
.fs-track{display:grid}
.fs-track > .fs-slide{grid-area:1/1}
.fs-track.multi > .fs-slide{opacity:0;visibility:hidden;transition:opacity .9s ease,visibility 0s linear .9s}
.fs-track.multi > .fs-slide.is-active{opacity:1;visibility:visible;transition:opacity .9s ease,visibility 0s}
.fs-track.multi .fx .fx-a,.fs-track.multi .fs-label .l-after{animation:none;opacity:0}
.fs-track.multi .fs-label .l-before{animation:none;opacity:1}
.fs-track.multi .fs-slide.is-active .fx .fx-a,.fs-track.multi .fs-slide.is-active .fs-label .l-after{animation:fs-ba 9s ease-in-out forwards}
.fs-track.multi .fs-slide.is-active .fs-label .l-before{animation:fs-ba-rev 9s ease-in-out forwards}
@keyframes fs-ba{0%,45%{opacity:0}55%,100%{opacity:1}}
@keyframes fs-ba-rev{0%,45%{opacity:1}55%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .fs-track.multi > .fs-slide{transition:none}
  .fs-track.multi .fs-slide .fx .fx-a,.fs-track.multi .fs-slide .fs-label .l-after{animation:none!important;opacity:1}
  .fs-track.multi .fs-slide .fs-label .l-before{animation:none!important;opacity:0}
}
/* 切り替えの途中で白っぽくならないよう、前の症例はそのまま下に残し、次の症例を上から重ねて浮かび上がらせる */
.fs-track.multi > .fs-slide{z-index:1;transition:opacity 0s linear .9s,visibility 0s linear .9s}
.fs-track.multi > .fs-slide.is-active{z-index:2;transition:opacity .9s ease,visibility 0s}

/* 2026-11-21 動画15:54 */
/* 切り替えるときに前の症例のラベル・写真のすき間が残らないよう、写真は枠いっぱいに同じ大きさでそろえる(切り取りのみ・色は変えない) */
.fs-cross .fx{background:#fff}
.fs-cross .fx img{object-fit:cover}
.fs-track.multi > .fs-slide .fs-label{transition:opacity .25s ease}
.fs-track.multi > .fs-slide:not(.is-active) .fs-label{opacity:0}

/* 表紙の上に3つの探すボタン(見出しの下)。押すと半透明のパネルに選択肢がそろって並ぶ */
.hero{padding:36px 0 28px}
.hero .finder{position:relative;z-index:6;padding:0;margin-top:22px}
.hero .finder .wrap{position:static}
.fd-btns{grid-template-columns:repeat(3,1fr);gap:10px}
.fd-btn{min-height:64px;font-size:18px;background:#fff}
.hero .fd-panel{left:0;right:0;top:calc(64px + 10px);padding:18px}
.fd-title{margin:0 0 12px;font-weight:700;font-size:16px;color:var(--rose-dark)}
.fd-title small{margin-left:10px;font-weight:400;font-size:12px;color:var(--sub)}
.fd-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.fd-tile{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:58px;padding:8px 14px;border:1px solid var(--rose-line);border-radius:12px;
  background:rgba(255,255,255,.92);color:var(--text);text-decoration:none;text-align:left;font:inherit;cursor:pointer;line-height:1.35}
.fd-tile b{font-size:15px}
.fd-tile small{font-size:12px;color:var(--rose-dark);font-weight:400}
.fd-tile:hover{background:var(--rose-tint)}
.fd-tile[aria-pressed="true"]{background:var(--rose);border-color:var(--rose);color:var(--on-accent)}
.fd-tile[aria-pressed="true"] small{color:#fff}
.hero .result-line{margin:12px 0 0}
.feature{padding-top:24px}
@media (max-width:640px){
  .hero{padding:24px 0 20px}
  .hero .finder{margin-top:16px}
  .fd-btns{gap:6px}
  .fd-btn{min-height:56px;font-size:13.5px;padding:6px 4px;gap:4px;flex-direction:column;border-radius:12px}
  .fd-btn .fd-ar{width:8px;height:8px;transform:rotate(45deg)}
  .fd-btn[aria-expanded="true"] .fd-ar{transform:rotate(225deg)}
  .hero .fd-panel{top:calc(56px + 8px);padding:14px}
  .fd-grid{grid-template-columns:1fr 1fr;gap:6px}
  .fd-tile{min-height:54px;padding:8px 10px}
  .fd-tile b{font-size:14px}
  .fd-tile small{font-size:11px}
}

/* ほかの症例集への入口(矯正⇔インプラント・2026-11-21) */
.other-cases{margin:18px 0 0}
.other-cases a{display:inline-flex;align-items:center;gap:4px;padding:8px 16px;border:1px solid var(--rose-line);border-radius:999px;background:#fff;color:var(--rose-dark);font-weight:700;font-size:15px;text-decoration:none}
.other-cases a:hover{background:var(--rose-tint)}
.other-cases .ico{width:18px;height:18px}

/* 矯正⇔インプラントの切り替えタブ(ヘッダーのすぐ下・2026-11-24 理事長「上のところで飛べるように」) */
.case-tabs{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.case-tabs .wrap{display:flex;gap:6px}
.case-tabs .tab{flex:1;max-width:240px;text-align:center;padding:12px 8px;font-weight:700;font-size:15px;text-decoration:none;color:var(--sub);border-bottom:3px solid transparent}
.case-tabs .tab.is-on{color:var(--rose);border-bottom-color:var(--rose)}
.case-tabs .tab:hover{color:var(--rose)}
@media (max-width:600px){.case-tabs .tab{font-size:14px;padding:10px 4px}}

/* 2026-11-25 理事長の動画: 見出しの帯に画像を入れる(矯正=ワイヤー矯正の口元 / インプラント=模型)。文字は半透明のパネルに載せて読みやすく */
.hero.hero-img{position:relative;overflow:visible;background:var(--rose-tint);padding:56px 0 30px}
.hero-img .hero-visual{position:absolute;inset:0;background-size:cover;background-position:72% 50%;background-repeat:no-repeat}
.hero-ortho .hero-visual{background-image:url(../img/hero-ortho.jpg)}
.hero-implant .hero-visual{background-image:url(../img/hero-implant.jpg)}
.hero-img .hero-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(var(--tint-rgb),.82) 0%,rgba(var(--tint-rgb),.45) 45%,rgba(var(--tint-rgb),0) 75%)}
.hero-img .wrap{position:relative}
.hero-copy{display:inline-block;max-width:600px;padding:20px 26px 22px;border-radius:16px;background:rgba(255,255,255,.84);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 24px rgba(30,37,50,.12)}
.hero-copy .eyebrow{margin-top:0}
.hero-copy h1{margin-bottom:0}
.hero-copy .lead{margin:12px 0 0;font-size:14px;line-height:1.8}
.hero-img .finder{margin-top:26px}
.hero-implant{padding-bottom:56px}
@media (max-width:640px){
  .hero.hero-img{padding:132px 0 20px}
  .hero-img .hero-visual{inset:0 0 auto 0;height:190px;background-position:60% 50%}
  .hero-img .hero-visual::after{background:linear-gradient(180deg,rgba(var(--tint-rgb),0) 45%,rgba(var(--tint-rgb),1) 100%)}
  .hero-copy{display:block;max-width:none;padding:14px 16px 16px;border-radius:14px}
  .hero-img .finder{margin-top:14px}
  .hero-implant{padding-bottom:24px}
}
/* 画像を上に大きく見せ、見出しのパネルは画像の下側に少し重ねる(画像が文字で隠れすぎないように) */
.hero.hero-img{padding:176px 0 30px}
.hero-img .hero-visual{inset:0 0 auto 0;height:300px;background-position:70% 50%}
.hero-img .hero-visual::after{background:linear-gradient(180deg,rgba(var(--tint-rgb),0) 55%,rgba(var(--tint-rgb),1) 100%)}
.hero-copy{max-width:620px}
.hero-copy h1{font-size:clamp(21px,3.4vw,30px);line-height:1.5}
@media (max-width:640px){
  .hero.hero-img{padding:126px 0 20px}
  .hero-img .hero-visual{height:190px;background-position:62% 50%}
}
.hero-implant .hero-visual{background-position:70% 30%}
/* 2026-11-25 見出しの画像を当院サイトの雰囲気に(矯正=マウスピースを付ける女性 / インプラント=院内のカウンセリング風景) */
.hero-ortho .hero-visual{background-position:100% 30%}
.hero-implant .hero-visual{background-position:60% 35%}
.index-notice{margin-top:20px;font-size:13px}
.index-notice h3{font-size:14px}
@media (max-width:640px){
  .hero-ortho .hero-visual{background-position:88% 30%}
  .hero-implant .hero-visual{background-position:75% 35%}
}
.nb{display:inline-block}
@media (max-width:640px){.fd-title small{display:block;margin:2px 0 0}}
/* 2026-11-25 インプラントの見出し画像=笑顔のシニアご夫婦(ストック・スタッフ写真はやめる)。お顔が見出しのパネルに隠れないよう、画像の帯を高くする */
@media (min-width:641px){
  .hero.hero-implant{padding-top:318px}
  .hero-implant .hero-visual{height:350px;background-position:center 10%}
}
@media (min-width:900px){
  .hero-implant .hero-visual{background-image:linear-gradient(90deg,var(--rose-tint) 0,rgba(var(--tint-rgb),0) 260px),url(../img/hero-implant.jpg);background-size:900px 450px,900px 450px;background-position:right top,right -6px;background-repeat:no-repeat}
}
@media (max-width:640px){
  .hero-implant .hero-visual{background-position:60% 20%}
}
@media (max-width:640px){.hero.hero-implant{padding-top:158px}.hero-implant .hero-visual{height:215px;background-position:60% 8%}}
/* 2026-11-25 理事長「胸元以下がかなりぼけている。ぼかしは最小限にして、胸から上をできるだけ映す」→ 画像の帯を高くし、下端のぼかしを下の方だけに */
@media (min-width:641px){
  .hero.hero-implant{padding-top:376px}
  .hero-implant .hero-visual{height:404px}
  .hero-implant .hero-visual::after{background:none}
}
@media (max-width:640px){
  .hero.hero-implant{padding-top:196px}
  .hero-implant .hero-visual{height:250px}
  .hero-implant .hero-visual::after{background:none}
}

/* 2026-11-25 認定・資格(インビザライン プラチナプロバイダーの盾・認定医)。理事長「載せたい」 */
.hero-badge{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin:0 0 10px;padding:6px 14px;border-radius:999px;background:var(--rose);color:var(--on-accent);font-weight:700;font-size:14px;line-height:1.4}
.hero-badge small{font-weight:400;font-size:12px;opacity:.95}
.cred{padding:36px 0 8px}
.cred-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:28px;align-items:center;padding-top:26px;padding-bottom:26px;border:1px solid var(--rose-line);border-radius:16px;background:#fff;box-shadow:0 6px 18px rgba(30,37,50,.06)}
.cred .wrap.cred-in{max-width:1032px;padding-left:28px;padding-right:28px}
.cred-solo{grid-template-columns:1fr}
.cred-img{width:100%;height:auto;border-radius:10px;display:block}
.cred-kicker{margin:0 0 4px;font-size:13px;font-weight:700;color:var(--rose-dark);letter-spacing:.06em}
.cred-txt h2{margin:0 0 10px;font-family:"Noto Serif JP",serif;font-size:24px;line-height:1.45}
.cred-txt p{margin:0 0 12px;font-size:15px;line-height:1.9}
.cred-list{margin:0;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.cred-list dt{width:100%;font-weight:700;font-size:15px;margin-bottom:2px}
.cred-list dd{margin:0;padding:4px 12px;border-radius:999px;background:var(--rose-tint);border:1px solid var(--rose-line);font-size:13.5px}
@media (max-width:900px){.cred .wrap.cred-in{margin-left:18px;margin-right:18px}}
@media (max-width:640px){
  .hero-badge{font-size:12.5px;padding:5px 12px;margin-bottom:8px}
  .cred{padding-top:24px}
  .cred-in{grid-template-columns:1fr;gap:16px;padding-top:18px;padding-bottom:20px}
  .cred .wrap.cred-in{padding-left:16px;padding-right:16px}
  .cred-txt h2{font-size:20px}
  .cred-txt p{font-size:14px}
}

/* 2026-11-25 インプラント: 探すボタン(本数・お悩み・治療方法)と「お悩み別の治療方法」 */
.hero-implant{padding-bottom:30px}
#cards{scroll-margin-top:16px}
.opt-guide{padding:56px 0 24px;background:var(--rose-tint);margin-top:48px}
.og-head{font-family:"Noto Serif JP",serif;font-size:26px;line-height:1.4;margin:0 0 8px}
.og-lead{margin:0 0 22px;font-size:15px;line-height:1.9;color:var(--sub)}
.og-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.og-item{background:#fff;border:1px solid var(--rose-line);border-radius:14px;padding:18px 20px 20px;scroll-margin-top:20px;display:flex;flex-direction:column}
.og-item:target{box-shadow:0 0 0 3px var(--rose)}
.og-worry{margin:0;font-weight:700;font-size:16px;color:var(--rose-dark);line-height:1.5}
.og-arrow{margin:2px 0;color:var(--rose-line);font-size:12px;line-height:1}
.og-item h3{margin:0 0 8px;font-size:17px;line-height:1.5}
.og-desc{margin:0 0 12px;font-size:14.5px;line-height:1.85}
.og-link{margin-top:auto;align-self:flex-start;min-height:44px;padding:0 16px;border-radius:999px;border:1px solid var(--rose);background:#fff;color:var(--rose-dark);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.og-link:hover{background:var(--rose-tint)}
@media (max-width:640px){.opt-guide{padding-top:36px;margin-top:32px}.og-head{font-size:21px}.og-list{grid-template-columns:1fr}}
.og-a{display:inline-flex;align-items:center;text-decoration:none}

/* ===== 矯正ページの色(2026-11-26 理事長指示: 焦げ茶を基本に。地のグラデーション・淡い部分は薄茶。
   〈それまで〉2026-11-25 ベビーイエロー #FFF0A6+金の縁取り #D4A63C。控え=_private\変更前バックアップ_2026-11-26) =====
   build.py が <body class="ortho"> を付ける。ここで変数を上書きするだけ(各部品の指定は共通のまま)。 */
body.ortho{
  --rose:#5C3A21;          /* 焦げ茶: ボタン・選択中のラベル・丸印 */
  --rose-dark:#4A2E1A;     /* 文字用の濃い茶 */
  --rose-tint:#F6F0E8;     /* 薄茶(淡いベージュ): 初画面・予約ブロック・チップの地 */
  --rose-line:#D9C4AE;     /* 枠線は薄茶 */
  --line:#E9DDD0;          /* 細い区切り線も茶寄りに */
  --photo-bg:#F3EBE2;
  --accent-hover:#7A4F2E;  /* ボタンに触れたとき(少し明るい茶) */
  --on-accent:#FFFFFF;     /* 焦げ茶の上の文字は白 */
  --accent-edge:#5C3A21;   /* 縁取りも焦げ茶 */
  --text-accent:#5C3A21;   /* 小見出し・チップの文字 */
  --accent-shadow:92,58,33;
  --tint-rgb:246,240,232;
  --panel-line:rgba(217,196,174,.9);
}
body.ortho .preview-band{background:#3E2715}
body.implant .preview-band{background:#141F3D}
/* 理事長「項目の文字が見にくい」→ ベビーイエローの部品に濃いめの金色の縁取りを付け、文字を濃く */
body.ortho .btn-primary,body.implant .btn-primary{border-color:var(--accent-edge);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 4px 12px rgba(var(--accent-shadow),.25)}
body.ortho .btn-primary:hover{border-color:#3E2715}
body.implant .btn-primary:hover{border-color:#172345}
body.ortho .fbtn[aria-pressed="true"],body.ortho .fd-tile[aria-pressed="true"],body.implant .fbtn[aria-pressed="true"],body.implant .fd-tile[aria-pressed="true"]{border-color:var(--accent-edge)}
body.ortho .fd-btn,body.implant .fd-btn{border-color:var(--accent-edge);color:var(--text)}
body.ortho .fd-btn[aria-expanded="true"]{border-color:#3E2715}
body.implant .fd-btn[aria-expanded="true"]{border-color:#172345}
body.ortho .fd-tile,body.implant .fd-tile{border-color:var(--accent-edge)}
body.ortho .fd-tile small,body.implant .fd-tile small{color:var(--text-accent)}
body.ortho .hero-badge,body.ortho .ba-label .l-after,body.ortho .fs-label .l-after,body.implant .hero-badge,body.implant .ba-label .l-after,body.implant .fs-label .l-after{box-shadow:inset 0 0 0 1.5px var(--accent-edge)}
body.ortho .chip,body.implant .chip{box-shadow:inset 0 0 0 1px var(--rose-line);color:var(--text-accent)}
body.ortho .jump,body.ortho .other-cases a,body.ortho .btn-outline,body.implant .jump,body.implant .other-cases a,body.implant .btn-outline{border-color:var(--accent-edge)}
body.ortho .eyebrow,body.ortho .cred-kicker,body.ortho #active-name,body.implant .eyebrow,body.implant .cred-kicker,body.implant #active-name{color:var(--text-accent)}
/* 上部のタブ(矯正歯科の症例/インプラントの症例): 選択中は白地+金の縁取り+濃い文字(ボタンと同じ見た目) */
body.ortho .case-tabs .tab,body.implant .case-tabs .tab{color:var(--sub)}
body.ortho .case-tabs .tab,body.implant .case-tabs .tab{margin:8px 0;border:1px solid transparent;border-radius:10px;border-bottom:1px solid transparent}
body.ortho .case-tabs .tab.is-on,body.implant .case-tabs .tab.is-on{color:var(--text);background:#fff;border-color:var(--accent-edge);box-shadow:0 2px 6px rgba(var(--accent-shadow),.18)}
body.ortho .case-tabs .tab:hover,body.implant .case-tabs .tab:hover{color:var(--text);background:var(--rose-tint);border-color:var(--rose-line)}
/* ===== インプラントページの色(2026-11-26 理事長指示: 濃い紺を基本に。地・グラデーションは淡い紺寄りのグレー。
   〈それまで〉2026-11-25 薄い水色 #CFEBFA+青の縁取り #4A90C2。控え=_private\変更前バックアップ_2026-11-26) =====
   build_implant.py が <body class="implant"> を付ける。 */
body.implant{
  --rose:#1F2F5A;          /* 濃い紺: ボタン・選択中のラベル・丸印 */
  --rose-dark:#172345;     /* 文字用のさらに濃い紺 */
  --rose-tint:#E4F3FC;     /* きれいな水色: 初画面・予約ブロック・チップの地(2026-11-28 理事長指示) */
  --rose-line:#A9D8F2;     /* 枠線は水色 */
  --line:#CDE7F6;          /* 細い区切り線も水色に */
  --photo-bg:#EAF4FB;
  --accent-hover:#2C4078;  /* ボタンに触れたとき(少し明るい紺) */
  --on-accent:#FFFFFF;     /* 紺の上の文字は白 */
  --accent-edge:#1F2F5A;   /* 縁取りも濃い紺 */
  --text-accent:#1F2F5A;   /* 小見出し・チップの文字 */
  --accent-shadow:31,47,90;
  --tint-rgb:228,243,252;
  --panel-line:rgba(169,216,242,.9);
}
/* 2026-11-25 理事長「ぼかしをもっと減らして」→ 左端の白いかすみも狭く・薄く */
@media (min-width:900px){
  .hero-implant .hero-visual{background-image:linear-gradient(90deg,rgba(var(--tint-rgb),.55) 0,rgba(var(--tint-rgb),0) 120px),url(../img/hero-implant.jpg)}
}

/* ===== 2026-11-26 理事長(動画): ①上部のタブは四角い枠をやめて、元の「下線」の形に戻す ②スクロールしてもタブは付いてこない
   ③代わりに、電話・WEB予約のある上の帯(site-header)が付いてくる。色(矯正=焦げ茶・インプラント=濃い紺)は変えていない ===== */
.site-header{position:sticky;top:0;z-index:30}
.case-tabs{position:static}
html{scroll-padding-top:88px}
@media (max-width:640px){html{scroll-padding-top:74px}}
body.ortho .case-tabs .tab,body.implant .case-tabs .tab{margin:0;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;box-shadow:none;color:var(--sub)}
body.ortho .case-tabs .tab:hover,body.implant .case-tabs .tab:hover{color:var(--text);background:none;border-color:transparent;border-bottom-color:var(--rose-line)}
body.ortho .case-tabs .tab.is-on,body.implant .case-tabs .tab.is-on,body.ortho .case-tabs .tab.is-on:hover,body.implant .case-tabs .tab.is-on:hover{color:var(--text);background:none;border-color:transparent;border-bottom-color:var(--accent-edge);box-shadow:none}

/* ===== 2026-11-26 理事長: 上部のタブの文言を「矯正の症例」に。タブごとに色を固定(矯正=黄色・インプラント=水色)。
   どちらのページでも同じ色。選択中は濃いめの地+縁取り+濃い文字、選択していない方は淡い地。 ===== */
body .case-tabs .tab.tab-ortho,body .case-tabs .tab.tab-implant{margin:8px 0;border:1px solid transparent;border-radius:10px;background:none;box-shadow:none;color:var(--sub);font-weight:700}
body .case-tabs .tab.tab-ortho{background:#F6F0E8;border-color:#D9C4AE;color:#5C3A21}
body .case-tabs .tab.tab-implant{background:#EEF1F7;border-color:#C9D2E4;color:#1F2F5A}
body .case-tabs .tab.tab-ortho:hover{background:#EFE4D7;border-color:#5C3A21;color:#1E2532}
body .case-tabs .tab.tab-implant:hover{background:#E3E8F2;border-color:#1F2F5A;color:#1E2532}
body .case-tabs .tab.tab-ortho.is-on,body .case-tabs .tab.tab-ortho.is-on:hover{background:#5C3A21;border-color:#5C3A21;color:#fff;box-shadow:0 2px 6px rgba(92,58,33,.25)}
body .case-tabs .tab.tab-implant.is-on,body .case-tabs .tab.tab-implant.is-on:hover{background:#1F2F5A;border-color:#1F2F5A;color:#fff;box-shadow:0 2px 6px rgba(31,47,90,.25)}

/* ===== 2026-11-26 理事長「もう少しスタイリッシュに」→ 提案案: 中央に置いた「切替スイッチ」風(丸いくぼみの中に2つの丸いタブ)。
   選択中は自分の色(矯正=焦げ茶・インプラント=濃い紺)でふんわり塗り、色の小さな丸印を文字の前に。文字は見出しと同じ明朝体。
   採用されなければこのブロックを消すだけで、ひとつ前の形に戻る。 ===== */
body .case-tabs{background:#fff;border-bottom:1px solid var(--line);padding:14px 0 16px}
body .case-tabs .wrap{display:flex;justify-content:center;gap:0;max-width:none;padding:0 16px}
body .case-tabs .tab.tab-ortho,body .case-tabs .tab.tab-implant{
  flex:0 1 auto;max-width:none;margin:0;padding:10px 28px 10px 24px;border:1px solid transparent;border-radius:999px;
  background:transparent;box-shadow:none;color:var(--sub);font-family:"Noto Serif JP",serif;font-weight:700;font-size:15.5px;letter-spacing:.04em;line-height:1.4;
  display:inline-flex;align-items:center;gap:10px;transition:background .18s,color .18s,box-shadow .18s}
body .case-tabs .tab.tab-ortho::before,body .case-tabs .tab.tab-implant::before{content:"";width:9px;height:9px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
body .case-tabs .tab.tab-ortho::before{background:#8B5E3C}
body .case-tabs .tab.tab-implant::before{background:#4A5F9A}
/* 2つのタブを包む丸いくぼみ */
body .case-tabs .seg{display:inline-flex;gap:4px;padding:4px;border-radius:999px;background:#F2F4F7;box-shadow:inset 0 1px 2px rgba(20,30,50,.06)}
/* 選択していない方: 文字は落ち着いた灰色、触れると薄く自分の色 */
body .case-tabs .tab.tab-ortho:hover{background:#F3EAE0;border-color:transparent;color:#5C3A21}
body .case-tabs .tab.tab-implant:hover{background:#E8ECF5;border-color:transparent;color:#1F2F5A}
/* 選択中: 自分の色でふんわり塗り、白い縁と浅い影で浮かせる */
body .case-tabs .tab.tab-ortho.is-on,body .case-tabs .tab.tab-ortho.is-on:hover{background:linear-gradient(180deg,#F3E9DD 0%,#D9C2A8 100%);border-color:#fff;color:#3E2715;box-shadow:0 1px 2px rgba(92,58,33,.12),0 4px 12px rgba(140,100,60,.22)}
body .case-tabs .tab.tab-implant.is-on,body .case-tabs .tab.tab-implant.is-on:hover{background:linear-gradient(180deg,#E9EDF6 0%,#C5CEE3 100%);border-color:#fff;color:#172345;box-shadow:0 1px 2px rgba(31,47,90,.12),0 4px 12px rgba(60,80,140,.22)}
@media (max-width:600px){
  body .case-tabs{padding:10px 0 12px}
  body .case-tabs .tab.tab-ortho,body .case-tabs .tab.tab-implant{padding:9px 10px;font-size:13.5px;letter-spacing:.01em;gap:7px;white-space:nowrap}
  body .case-tabs .seg{width:100%;max-width:420px}
  body .case-tabs .seg .tab{flex:1;justify-content:center}
}
/* 2026-11-28 理事長「全体的なタブ(年齢で探す などの絞り込み)の枠を目立たせて」(上部の切替スイッチは元のまま)
   → 大きなタブは太めの枠+薄い色の地+影、絞り込みの小さなタブ・選択肢も枠をページの色でくっきり */
body.ortho .fd-btn,body.implant .fd-btn{border-width:3px;background:linear-gradient(180deg,#fff 0%,var(--rose-tint) 100%);box-shadow:inset 0 1px 0 #fff,0 3px 0 rgba(var(--accent-shadow),.35),0 6px 14px rgba(var(--accent-shadow),.2)}
body.ortho .fd-btn:hover,body.implant .fd-btn:hover{background:var(--rose-tint);transform:translateY(-1px)}
body.ortho .fd-btn[aria-expanded="true"],body.implant .fd-btn[aria-expanded="true"]{background:var(--rose);box-shadow:inset 0 2px 4px rgba(0,0,0,.2)}
body.ortho .fd-tile,body.implant .fd-tile{border-width:2px;box-shadow:0 2px 4px rgba(var(--accent-shadow),.12)}
body.ortho .fbtn,body.implant .fbtn{border:1.5px solid var(--rose-line)}
body.ortho .fbtn:hover,body.implant .fbtn:hover{border-color:var(--accent-edge)}
body.ortho .fbtn[aria-pressed="true"],body.implant .fbtn[aria-pressed="true"]{border-width:1.5px}
body.ortho .jump,body.implant .jump{border-width:2px}
body.ortho .fd-panel,body.implant .fd-panel{border:2px solid var(--accent-edge)}
/* 2026-11-28 理事長「インプラントの薄い色は紺でなく水色に。インプラントの症例のタブも」
   → 紺はボタン・文字に残し、絞り込みタブ・選択肢・パネル・小さなタブ・上部の切替スイッチの枠と地を澄んだ水色に */
body.implant{--frame:#3FA7E0;--frame-shadow:63,167,224;--rose-tint:#DFF2FC;--rose-line:#9CD6F3;--line:#C9E6F6;--tint-rgb:223,242,252;--panel-line:rgba(156,214,243,.9)}
body.implant .fd-btn{border-color:var(--frame);background:linear-gradient(180deg,#fff 0%,#DFF2FC 100%);box-shadow:inset 0 1px 0 #fff,0 3px 0 rgba(var(--frame-shadow),.45),0 6px 14px rgba(var(--frame-shadow),.22)}
body.implant .fd-btn:hover{background:#DFF2FC}
body.implant .fd-btn[aria-expanded="true"]{border-color:var(--frame);background:linear-gradient(180deg,#BFE4F7 0%,#9CD6F3 100%);color:#172345;box-shadow:inset 0 2px 4px rgba(31,47,90,.15)}
body.implant .fd-panel{border-color:var(--frame)}
body.implant .fd-tile{border-color:var(--frame);box-shadow:0 2px 4px rgba(var(--frame-shadow),.14)}
body.implant .fd-tile[aria-pressed="true"]{border-color:var(--frame)}
body.implant .fbtn{border-color:var(--rose-line)}
body.implant .fbtn:hover{border-color:var(--frame)}
body.implant .fbtn[aria-pressed="true"]{border-color:var(--frame)}
body.implant .jump{border-color:var(--frame)}
body.implant .fd-btn:focus-visible{outline-color:var(--frame)}
/* 上部の「インプラントの症例」: 丸印・触れたとき・選択中を水色に */
body .case-tabs .tab.tab-implant::before{background:#3FA7E0}
body .case-tabs .tab.tab-implant:hover{background:#E4F3FC;color:#1F2F5A}
body .case-tabs .tab.tab-implant.is-on,body .case-tabs .tab.tab-implant.is-on:hover{background:linear-gradient(180deg,#EAF6FD 0%,#B5E0F6 100%);border-color:#fff;color:#172345;box-shadow:0 1px 2px rgba(63,167,224,.18),0 4px 12px rgba(63,167,224,.3)}
/* 2026-11-28 理事長「本数で探す・お悩みで探すのタブにマウスを持っていったとき、インプラントは紺、矯正は焦茶に」
   → 触れたとき・開いているときは濃い色で塗り、文字は白 */
body.ortho .fd-btn:hover,body.implant .fd-btn:hover{background:var(--rose);border-color:var(--rose);color:var(--on-accent);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 3px 0 rgba(var(--accent-shadow),.45),0 6px 14px rgba(var(--accent-shadow),.25)}
body.ortho .fd-btn[aria-expanded="true"],body.implant .fd-btn[aria-expanded="true"],body.ortho .fd-btn[aria-expanded="true"]:hover,body.implant .fd-btn[aria-expanded="true"]:hover{background:var(--rose-dark);border-color:var(--rose-dark);color:var(--on-accent);box-shadow:inset 0 2px 4px rgba(0,0,0,.25)}
/* 2026-11-28 理事長「矯正の 年齢で探す・お悩みで探す のところはベージュに」
   → 絞り込みタブの地をベージュ(上は明るく下は少し濃く)、枠は焦茶のまま。触れたとき・開いたときの焦茶は変えない */
body.ortho .fd-btn{background:linear-gradient(180deg,#F5EBDD 0%,#E6D3BC 100%);color:#3E2715;border-color:#5C3A21;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 3px 0 rgba(92,58,33,.4),0 6px 14px rgba(92,58,33,.2)}
/* 2026-11-28 理事長「フォントを全体的にすべて明朝体に揃えて」
   → 本文・ボタン・タブ・ラベル・小さな注記まで Noto Serif JP(明朝)に統一。太さは元のまま */
body,button,input,select,textarea,.age-head small,.age-count{font-family:"Noto Serif JP","Yu Mincho","YuMincho","Hiragino Mincho ProN",serif}
/* 2026-11-28 理事長「インプラントの 本数で探す・お悩みで探す のタブは、初めの状態の囲いを水色でなく紺に」
   → 枠線と下の段差の影を紺に。地の水色グラデーション・触れたときの紺・開いたときの紺は変えない */
body.implant .fd-btn{border-color:#1F2F5A;box-shadow:inset 0 1px 0 #fff,0 3px 0 rgba(31,47,90,.45),0 6px 14px rgba(31,47,90,.2)}
/* 2026-11-28 理事長「矯正の 年齢で探す・お悩みで探す の初めのベージュをもう少し薄く」
   → 上はほぼ白、下はごく薄いベージュに(前: #F5EBDD→#E6D3BC) */
body.ortho .fd-btn{background:linear-gradient(180deg,#FDFAF6 0%,#F1E6D7 100%)}
