/* =========================================================
   スポーツ用マウスピース専門サイト(2026-11-15 作り直し)
   数値と禁止事項の正 = design-lab/専門サイト_設計ルール.md
   ・グラデーションは主色1系統のごく淡いものだけ(初画面・セクション背景のみ)
   ・ボタンは単色・影なし・矢印なし/絵文字なし/端の色帯なし/説明文はすべて左揃え
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --text: #1E2532;
  --sub: #5A6476;
  --line: #E3E8EF;
  --main: #1D4E9E;      /* 主色=装置の青。予約ボタン(差し色)にも使う */
  --main-dark: #173F80;
  --tint: #F3F6FB;      /* 淡い面 */
  --head: #13233F;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.9; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--main); outline-offset: 2px; }
.preview-label { background: #FFF7E0; color: #6B5310; font-size: 13px; padding: 6px 24px; }
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nb { display: inline-block; }

/* ---------- ボタン(単色・影なし・矢印なし・動詞) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 8px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .2s; }
.btn--main { background: var(--main); color: #fff; }
.btn--main:hover { background: var(--main-dark); }
.btn--line { border: 1px solid var(--line); color: var(--head); background: #fff; }
.btn--line:hover { border-color: var(--head); }

/* ---------- ヘッダー ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--head); text-decoration: none; }
.brand img { width: 44px; }
.brand strong { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.brand small { display: block; font-size: 12px; color: var(--sub); }
.header__right { display: flex; align-items: center; gap: 20px; }
.header__tel { display: flex; align-items: center; gap: 8px; color: var(--head); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.header .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.subnav { border-top: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 11px 0; color: var(--text); text-decoration: none; font-size: 14.5px; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--main); border-bottom-color: var(--main); }
.subnav a.is-target { color: var(--main); font-weight: 700; }
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .header__tel { display: none; }
  .brand strong { font-size: 16px; }
  .header .btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .subnav ul { gap: 20px; }
}

/* ---------- 初画面(主役=装置の写真+院内の成型作業) ---------- */
.hero { background: linear-gradient(180deg, var(--tint) 0%, #FFFFFF 100%); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero__label { font-size: 14px; font-weight: 700; color: var(--main); letter-spacing: .04em; }
.hero h1 { margin-top: 12px; font-family: var(--serif); font-size: 40px; line-height: 1.45; color: var(--head); }
.hero__lead { margin-top: 20px; max-width: 30em; }
.facts { margin-top: 28px; display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 14px 28px 14px 0; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts span { display: block; font-size: 13px; color: var(--sub); }
.facts b { font-size: 22px; color: var(--head); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.facts small { font-size: 13px; font-weight: 700; margin-left: 2px; }
.hero__note { margin-top: 10px; font-size: 13px; color: var(--sub); }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { display: grid; gap: 14px; }
.hero__main { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hero__main img { width: 100%; }
.hero__sub { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; }
.hero__sub img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__sub p { font-size: 14px; color: var(--sub); line-height: 1.7; }
.audience { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.audience a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; text-decoration: none; color: var(--head); }
.audience a:hover { border-color: var(--main); }
.audience b { display: block; font-size: 16px; }
.audience span { display: block; font-size: 13px; color: var(--sub); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; padding-bottom: 48px; }
  .hero h1 { font-size: 27px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:first-child { grid-column: 1 / -1; padding-right: 0; border-bottom: 1px solid var(--line); }
  .facts div + div { padding-left: 0; border-left: none; }
  .facts div:nth-child(3) { padding-left: 16px; border-left: 1px solid var(--line); }
  .audience { grid-template-columns: 1fr; }
  .hero__sub { grid-template-columns: 120px 1fr; }
}

/* ---------- セクション共通(左揃え) ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section h2 { font-family: var(--serif); font-size: 30px; line-height: 1.5; color: var(--head); }
.section h2 + p, .section .lead { margin-top: 16px; max-width: 40em; color: var(--text); }
.section .body { margin-top: 32px; }
.section h3 { font-size: 20px; color: var(--head); line-height: 1.6; }
.section p + p { margin-top: 16px; }
.note { font-size: 14px; color: var(--sub); }
@media (max-width: 760px) { .section { padding: 64px 0; } .section h2 { font-size: 23px; } .section h3 { font-size: 18px; } body { font-size: 16px; line-height: 1.85; } }

/* 文章+写真の2列(カードにしない) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split--rev > :first-child { order: 2; }
.split figure img { border-radius: 12px; border: 1px solid var(--line); }
.split figcaption { margin-top: 8px; font-size: 13px; color: var(--sub); }
.points { margin-top: 24px; display: grid; gap: 24px; }
.points h3 { margin-bottom: 4px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split--rev > :first-child { order: 0; } }

/* 比較(当院/市販品)=表 */
.table { margin-top: 32px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.table th, .table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child th, .table tr:last-child td { border-bottom: none; }
.table thead th { background: var(--tint); color: var(--head); font-size: 14px; }
.table tbody th { color: var(--head); white-space: nowrap; font-weight: 700; }
.table-scroll { overflow-x: auto; }
@media (max-width: 600px) { .table th, .table td { padding: 12px 12px; font-size: 14.5px; } .table tbody th { white-space: normal; } }

/* 対象別(お子さま/成人)=カードはここだけ */
.targets { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.target { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; scroll-margin-top: 120px; }
.target h3 { font-family: var(--serif); font-size: 22px; }
.target ul { margin-top: 14px; padding-left: 1.2em; display: grid; gap: 8px; }
.target .note { margin-top: 14px; }
@media (max-width: 900px) { .targets { grid-template-columns: 1fr; } .target { padding: 22px; } }

/* 料金=カード(比べる意味があるので可) */
.price { margin-top: 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.price-list { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: none; }
.price-row span { font-weight: 700; color: var(--head); }
.price-row b { font-size: 24px; color: var(--head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-row small { font-size: 13px; color: var(--sub); margin-left: 4px; }
.price aside ul { padding-left: 1.2em; display: grid; gap: 8px; font-size: 15.5px; }
.price aside .btn { margin-top: 24px; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; } .price-row { padding: 14px 16px; } .price-row b { font-size: 21px; } }

/* 治療の流れ(番号はここだけ・小さく) */
.flow { margin-top: 32px; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.flow img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.flow h3 { margin-top: 16px; }
.flow h3 small { font-size: 14px; color: var(--main); margin-right: 8px; font-weight: 700; }
.flow .when { display: block; font-size: 14px; color: var(--sub); margin-top: 2px; }
.flow p { margin-top: 8px; font-size: 15.5px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; gap: 28px; } }

/* リスク(折りたたまない・左揃えの箇条書き) */
.risks { margin-top: 32px; padding-left: 1.3em; display: grid; gap: 10px; }
.risk-end { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 700; color: var(--head); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 22px; font-weight: 400; color: var(--main); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 22px; font-size: 16px; }

/* 院長・技工士 */
.team { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.team img { border-radius: 12px; border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.team h3 { margin-top: 16px; font-family: var(--serif); font-size: 22px; }
.team h3 small { font-family: var(--sans); font-size: 14px; color: var(--sub); margin-right: 8px; }
.team p { margin-top: 8px; font-size: 16px; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; gap: 32px; } }

/* 医院案内 */
.clinic { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.clinic dl > div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.clinic dl > div:first-child { border-top: 1px solid var(--line); }
.clinic dt { font-weight: 700; color: var(--head); }
.clinic dd a { font-weight: 700; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photos img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border: 1px solid var(--line); }
@media (max-width: 900px) { .clinic { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .clinic dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* 予約の帯(単色の濃い面・差し色のボタン1つ) */
.cta { background: var(--head); color: #fff; padding: 72px 0; }
.cta h2 { font-family: var(--serif); font-size: 28px; line-height: 1.5; }
.cta p { margin-top: 12px; color: #D5DCE8; max-width: 40em; }
.cta__row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.cta .btn--main { background: #fff; color: var(--head); }
.cta .btn--main:hover { background: #E8EEF8; }
.cta__tel { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 24px; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 760px) { .cta { padding: 56px 0; } .cta h2 { font-size: 22px; } }

/* 関連サイト(文字リンクの一覧・色帯なし) */
.related { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.related a { display: block; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--head); }
.related a small { display: block; font-size: 12.5px; color: var(--sub); }
.related a b { font-size: 15px; }
.related a:hover b { color: var(--main); }
@media (max-width: 900px) { .related { grid-template-columns: 1fr 1fr; column-gap: 16px; } }

/* フッター・スマホ固定バー */
.footer { border-top: 1px solid var(--line); padding: 36px 0 28px; font-size: 14px; color: var(--sub); }
.footer strong { color: var(--head); font-family: var(--serif); font-size: 17px; }
.footer__links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 18px; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bar .btn { flex: 1 1 auto; min-height: 50px; }
  .mobile-bar .btn--line { flex: 0 0 38%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ヘッダーの予約ボタンは枠線(差し色は1画面1か所=初画面の予約ボタン) */
.btn--outline { border: 1px solid var(--main); color: var(--main); background: #fff; }
.btn--outline:hover { background: var(--tint); }
/* 院長写真は顔が切れないよう上寄せ */
.team img[src*=director] { object-position: center 20%; }

/* タップできる高さ 48px(設計ルール) */
.header .btn { min-height: 48px; }
