/* ==========================================================================
   トップページ別案(フォント違い)。2026-10-03 ローカル試作用。
   functions.php の muratsu_is_top_font_shippori() が true のページ(_muratsu_font_variant = shippori)
   にだけ読み込む。front-page.css・search-index.css の後に読み込み、フォントだけを差し替える。
   - Noto Serif JP        ：見出し・本文・名前など日本語の目立つ部分(ページ全体の既定)
   - Cormorant Garamond   ：番号(01など)・小さな英字(AI CONSULTATION など)・実績の大きな数字
   - Zen Kaku Gothic New  ：「治療実績」などの小さなラベル・補足の文字
   Cormorant Garamond は日本語の文字を持たないため、後ろに Noto Serif JP を並べて
   「13,000本以上」の「本以上」のような日本語部分は自動で明朝になるようにしている。
   2026-10-13 明朝をしっぽり明朝から Noto Serif JP に統一(ファイル名・body の class は元のまま)。
   ========================================================================== */

:root {
  /* 書体の中身は base.css の --font-*(2026-10-13 一本化) */
  --tf-font-mincho: var(--font-serif);
  --tf-font-latin: var(--font-latin);
  --tf-font-label: var(--font-sans);
}

/* ===== 既定の書体(明朝)：ページ全体・ヘッダー・スマホメニュー・フッターとも base.css の指定のまま(2026-10-13 同じ指定の重なりを削除) ===== */

/* ===== Cormorant Garamond：小さな英字・番号 ===== */
body.top-font-shippori .sec-eyebrow,
body.top-font-shippori .sidx-eyebrow {
  font-family: var(--tf-font-latin);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none; /* 元のトップは大文字表示。別案はHTMLどおり小文字まじり(Features & Achievements など) */
}
body.top-font-shippori .sidx-selected {
  font-family: var(--tf-font-latin);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}
body.top-font-shippori .sidx-num {
  font-family: var(--tf-font-latin);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
body.top-font-shippori .sidx-bignum {
  font-family: var(--tf-font-latin);
  font-weight: 500;
  font-variant-numeric: lining-nums;
}
/* 実績の数字(13,000・15)も「博多駅 徒歩4分」と同じ明朝(2026-10-03 ユーザー指示で Cormorant Garamond から戻した) */
body.top-font-shippori .feat-card-value {
  font-family: var(--tf-font-mincho);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
body.top-font-shippori .feat-card-value:not(.feat-card-value--sm):not(.feat-card-value--md) {
  font-size: min(48px, 20cqi);
}

/* ===== Zen Kaku Gothic New：小さなラベル・補足 ===== */
body.top-font-shippori .feat-card-label,
body.top-font-shippori .feat-desc,
body.top-font-shippori .feat-lab-label,
body.top-font-shippori .sidx-group-label,
body.top-font-shippori .brand-story-photo figcaption span,
body.top-font-shippori .yt-main-thumb-label { /* フッターの .tf-footer-hours-note は base.css(2026-10-13 まとめ) */
  font-family: var(--tf-font-label);
}
/* ゴシックの太さ500は使わない(2026-10-15。読み込む太さを減らすため): 補足の文は400、ラベルは700 */
body.top-font-shippori .feat-desc { font-weight: 400; }
body.top-font-shippori .feat-lab-label,
body.top-font-shippori .sidx-group-label,
body.top-font-shippori .brand-story-photo figcaption span,
body.top-font-shippori .yt-main-thumb-label { font-weight: 700; }

/* ===== 背景：パララックス背景(parallax-bg.css)を見せるため、セクションごとの背景色と波のつなぎを消す(2026-10-03) =====
   写真(FV・特徴実績・WEB予約)と、写真の端をなじませるグラデーション(.resv-fade / .fv-fade)はそのまま(特徴実績の .feat-fade は下で写真を透明にする方式に置き換え)。 */
body.top-font-shippori section.feat-section,
body.top-font-shippori section.ai-widget-section,
body.top-font-shippori section.sidx-section,
body.top-font-shippori section.sidx-section.sidx-section--top,
body.top-font-shippori section.brand-story-section,
body.top-font-shippori section.more-info-section,
body.top-font-shippori section.results,
body.top-font-shippori section.resv-section {
  background: none;
}
body.top-font-shippori .fv-wave,
body.top-font-shippori .feat-wave-bottom,
body.top-font-shippori .ai-widget-wave-bottom,
body.top-font-shippori .brand-story-wave-bottom,
body.top-font-shippori .more-info-wave-top,
body.top-font-shippori .resv-wave-top,
body.top-font-shippori .resv-wave-bottom {
  display: none;
}

/* ===== 特徴・実績：後ろの写真2枚の端(2026-10-03) ===== */
/* 写真の端は、色を重ねてなじませる(.feat-fade)代わりに写真そのものを透明にしていく(後ろのパララックス背景が透ける)。
   なじませる範囲は元の .feat-fade-1/2 と同じ(端から18%で半分、34%で不透明)。スマホ幅は写真が全幅のため従来どおり。 */
@media (min-width: 768px) {
  body.top-font-shippori .feat-fade { display: none; }
  body.top-font-shippori .feat-photo-1 {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 18%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.5) 18%, #000 34%);
  }
  body.top-font-shippori .feat-photo-2 {
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,.5) 18%, #000 34%);
    mask-image: linear-gradient(270deg, transparent 0%, rgba(0,0,0,.5) 18%, #000 34%);
  }
}

/* 「歯は臓器である」の理事長写真の角丸・WEB予約の白文字は、本案にも適用したため front-page.css に移した(2026-10-03)。 */

/* ===== FV：写真の高さを伸ばす(2026-10-03) =====
   写真の枠を下へ12vh延ばす(FV全体の高さ100vhは変えず、はみ出た分はFVの枠で切れる)。
   波形の切り抜きは枠に比例するので、写真の下端の波も約10vh下がる。 */
@media (min-width: 768px) {
  body.top-font-shippori .fv-photo { bottom: -12vh; }
}
/* スマホ幅は文字の位置を写真の顔の位置から計算しているため変えていない。 */

/* ===== 知りたいことから探す：右の詳細パネルに枠線と影(2026-10-03 ユーザー指示「案3」) =====
   パネルの淡い水色がパララックス背景と同じ色味で境目が見えないため、色はそのままで細い線と影で区切る。
   幅900px以下はパネルが無くなり科目ごとに開く中身(.sidx-pane)が同じ色になるので、そちらに付ける。 */
@media (min-width: 900px) {
  body.top-font-shippori .sidx-panel {
    border: 1px solid #C9E2E2;
    box-shadow: 0 10px 30px rgba(18,60,66,.08), 0 2px 6px rgba(18,60,66,.04);
  }
}
@media (max-width: 899px) {
  body.top-font-shippori .sidx-pane {
    border: 1px solid #C9E2E2;
    box-shadow: 0 6px 18px rgba(18,60,66,.08);
  }
}

/* ===== FV：キャッチコピー「歯は、臓器だった。」を折り返さない(2026-10-03 ユーザー指示) =====
   PC幅は文字の欄(.fv-text-inner)が最大560pxで、64pxの9文字(576px)だと最後の「。」が次の行に落ちていた。
   スマホ幅は文字の大きさを横幅の9.6%→9%にして、375px幅でも余白の内側に収める。 */
body.top-font-shippori .fv-heading { white-space: nowrap; }
body.top-font-shippori .fv-text-inner { max-width: 600px; }
@media (max-width: 767px) {
  body.top-font-shippori .fv-box { --fv-h1-fs: min(38px, 9vw); }
}

/* ===== 「歯は臓器である」：理事長写真の後ろにずらして置いた面を白ベースに(2026-10-03 ユーザー指示) =====
   元は水色のグラデーション(front-page.css)。白の半透明・枠線なし(ユーザー指示)。 */
body.top-font-shippori .brand-story-photo::before {
  background: rgba(255,255,255,.6);
}

/* ===== 知りたいことから探す：セクション全体(画面の横幅いっぱい)に少し透ける白の背景(2026-10-03 ユーザー指示) =====
   上の「背景：パララックス背景を見せる」で background: none にしたものを、白の半透明で上書きする(後ろの背景がうっすら透ける)。 */
body.top-font-shippori section.sidx-section,
body.top-font-shippori section.sidx-section.sidx-section--top {
  background: rgba(255,255,255,.75);
}

/* ===== 特徴・実績：4枚のカードを高級感のある見た目に(2026-10-03 ユーザー指示「見本画像のような高級感・色は今のまま」) =====
   見本の要素(内側の細い枠線・ラベル横の小さな英字・大きな明朝の数字・右下の薄い筆記体の英字・深い影)を、
   今の白×青緑の配色のまま取り入れる。アイコンは見本に無いため非表示。HTMLは変えず、英字はCSSで足している。 */
body.top-font-shippori .feat-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 34px 18px 30px;
  border: 1px solid #C9E2E2;
  border-radius: 2px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F7FBFB 55%, #EAF4F4 100%);
  box-shadow: 0 18px 40px rgba(18,60,66,.10), 0 2px 6px rgba(18,60,66,.05);
  transition: transform .4s ease, box-shadow .4s ease;
}
body.top-font-shippori .feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px rgba(18,60,66,.14), 0 3px 8px rgba(18,60,66,.06);
}
/* 内側の細い枠線(見本の額縁のような二重線) */
body.top-font-shippori .feat-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(13,137,156,.22);
  pointer-events: none;
  z-index: -1;
}
/* 右下の薄い筆記体の英字 */
body.top-font-shippori .feat-card::after {
  position: absolute;
  right: 10px;
  bottom: -14px;
  font-family: var(--font-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 64px;
  line-height: 1;
  letter-spacing: .01em;
  color: rgba(13,137,156,.07);
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}
body.top-font-shippori .feat-card:nth-child(1)::after { content: 'Results'; }
body.top-font-shippori .feat-card:nth-child(2)::after { content: 'Clinic'; }
body.top-font-shippori .feat-card:nth-child(3)::after { content: 'Access'; }
body.top-font-shippori .feat-card:nth-child(4)::after { content: 'Precision'; }
body.top-font-shippori .feat-card-icon { display: none; }
/* ラベル：「治療実績 RESULTS」のように小さな英字を横に添える */
body.top-font-shippori .feat-card-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--tf-heading);
  margin-bottom: 18px;
}
body.top-font-shippori .feat-card-label::after {
  display: inline-block;
  margin-left: .9em;
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--tf-teal);
  white-space: nowrap;
}
body.top-font-shippori .feat-card:nth-child(1) .feat-card-label::after { content: 'RESULTS'; }
body.top-font-shippori .feat-card:nth-child(2) .feat-card-label::after { content: 'CLINIC'; }
body.top-font-shippori .feat-card:nth-child(3) .feat-card-label::after { content: 'ACCESS'; }
body.top-font-shippori .feat-card:nth-child(4) .feat-card-label::after { content: 'PRECISION'; display: block; margin: 4px 0 0; }
/* 数字・値：文字の種類・大きさは元のまま(2026-10-03 ユーザー指示で戻した)。数字の下に短い細線を引いて説明文と区切る */
body.top-font-shippori .feat-card-value {
  color: var(--tf-heading);
  margin-bottom: 14px;
  padding-bottom: 14px;
  position: relative;
}
body.top-font-shippori .feat-card-value::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: var(--tf-teal);
  opacity: .5;
  transform: translateX(-50%);
}
body.top-font-shippori .feat-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--tf-body);
}
@media (max-width: 767px) {
  body.top-font-shippori .feat-card { padding: 28px 12px 22px; }
  body.top-font-shippori .feat-card::after { font-size: 44px; bottom: -10px; }
  body.top-font-shippori .feat-card-label::after { display: block; margin: 4px 0 0; }
}

/* ===== 単色のボタンの立体感 → button-depth.css にまとめた(2026-10-13。トップ・別案ページ・その他のページの3か所にあったため) ===== */

/* ===== 特徴・実績カード：英字(RESULTS など)はどの幅でも日本語のラベルの下の行に(2026-10-13 ユーザー指示) =====
   横に並べていたため、幅1100〜1440pxで「インプラント治療実績 RESULTS」の英字がカードの右端で切れていた。
   日本語のラベルも、HTMLの <wbr> の位置(「インプラント／治療実績」「診療・治療への／取り組み」)でだけ折り返す
   (以前は折り返さない指定で、スマホの2列・タブレットの4列でカードの枠からはみ出して切れていた)。 */
body.top-font-shippori .feat-card-label { white-space: normal; word-break: keep-all; }
body.top-font-shippori .feat-card-label::after { display: block; margin: 4px 0 0; }
