/* ============================================================
   千里山スワデンタルクリニック
   Design tokens: Navy × Gold / Mincho / Luxury
   ============================================================ */
:root {
  --navy: #1C2A44;
  --navy-deep: #131E33;
  --navy-soft: #2B3C5C;
  --gold: #C0A062;
  --gold-light: #D9C08F;
  --gold-pale: #EFE6D2;
  --bg: #FBFAF7;
  --white: #FFFFFF;
  --ink: #1F2430;
  --muted: #6E6A61;
  --line: #E5E0D5;
  --serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Cormorant Garamond", Garamond, serif;
  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 2;
  letter-spacing: 0.06em;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(251, 250, 247, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(28, 42, 68, 0.06);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 46px; height: 46px; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text .en {
  font-family: var(--en); font-size: 10px; letter-spacing: 0.32em;
  color: var(--gold); text-transform: uppercase;
}
.brand-text .ja {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.12em; white-space: nowrap;
}

.global-nav ul { display: flex; gap: clamp(12px, 1.4vw, 26px); }
.global-nav a {
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.1em;
  color: var(--navy); position: relative; padding: 6px 0;
  white-space: nowrap;
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .35s;
}
.global-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.global-nav .nav-tel { display: none; }

.header-tel {
  display: flex; flex-direction: column; align-items: center;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 2px;
  transition: background .3s;
  line-height: 1.5;
  white-space: nowrap; flex: none;
}
.header-tel:hover { background: var(--navy-soft); }
.header-tel .num { font-family: var(--serif); font-size: 18px; letter-spacing: 0.05em; font-weight: 600; }
.header-tel .label { font-size: 10.5px; letter-spacing: 0.2em; color: var(--gold-light); }

/* Mobile nav toggle */
.nav-toggle {
  display: none; position: relative; width: 48px; height: 48px;
  background: none; border: none; cursor: pointer; z-index: 210;
}
.nav-toggle span {
  position: absolute; left: 12px; width: 24px; height: 1.5px;
  background: var(--navy); transition: all .35s;
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle span:nth-child(3) { top: 31px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 24px; transform: rotate(45deg); background: #fff; }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 24px; transform: rotate(-45deg); background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/entrance.jpg") center 35% / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(19, 30, 51, 0.72) 0%,
    rgba(19, 30, 51, 0.45) 45%,
    rgba(19, 30, 51, 0.12) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 140px 24px 80px;
  width: 100%;
  color: #fff;
}
.hero-lead-en {
  font-family: var(--en); font-size: 13px; letter-spacing: 0.5em;
  color: var(--gold-light); text-transform: uppercase; margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.75; letter-spacing: 0.14em;
  text-shadow: 0 2px 24px rgba(19, 30, 51, 0.4);
}
.hero-sub {
  margin-top: 30px; font-family: var(--serif);
  font-size: clamp(14px, 1.6vw, 17px); letter-spacing: 0.12em; line-height: 2.2;
  color: rgba(255, 255, 255, 0.92);
}
.hero-badges { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badges li {
  font-size: 12.5px; letter-spacing: 0.15em;
  border: 1px solid rgba(217, 192, 143, 0.65);
  color: var(--gold-pale);
  padding: 7px 18px; border-radius: 999px;
  backdrop-filter: blur(2px);
}
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--en); font-size: 10px; letter-spacing: 0.4em;
  color: rgba(255,255,255,.85); text-transform: uppercase;
  padding-bottom: 48px;
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 1px; height: 40px; background: linear-gradient(var(--gold-light), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Quick info bar ---------- */
.quick-bar { background: var(--navy); color: #fff; }
.quick-bar-inner {
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 40px; font-size: 13.5px; letter-spacing: 0.1em;
}
.quick-bar .tel { font-family: var(--serif); font-size: 20px; color: var(--gold-light); letter-spacing: 0.05em; }
.quick-bar .divider { color: rgba(255,255,255,.3); }

/* ---------- Sections common ---------- */
section { padding: 110px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head .en {
  display: block; font-family: var(--en); font-size: 13px;
  letter-spacing: 0.45em; color: var(--gold); text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 3vw, 32px); letter-spacing: 0.18em; color: var(--navy);
  line-height: 1.7;
}
.section-head .rule {
  width: 56px; height: 1px; background: var(--gold);
  margin: 26px auto 0;
}

/* ---------- Philosophy ---------- */
.philosophy { background: var(--bg); }
.philosophy-body {
  max-width: 720px; margin: 0 auto; text-align: left;
  font-family: var(--serif); font-size: 15px; line-height: 2.1;
  letter-spacing: 0.1em; color: var(--ink);
}
.philosophy-body p + p { margin-top: 1.6em; }

/* ---------- Specialty (自費2本柱) ---------- */
.specialty { background: var(--navy-deep); position: relative; }
.specialty .section-head h2, .specialty .section-head .en { color: #fff; }
.specialty .section-head .en { color: var(--gold-light); }
.specialty-note {
  text-align: left; color: rgba(255,255,255,.75);
  font-size: 13.5px; letter-spacing: 0.12em; max-width: 640px;
  margin: -34px auto 60px; line-height: 2.2;
}
.specialty-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.specialty-card {
  background: var(--white); border-radius: 2px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: transform .4s;
}
.specialty-card:hover { transform: translateY(-6px); }
.specialty-card .thumb { position: relative; aspect-ratio: 16 / 9.5; overflow: hidden; }
.specialty-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.specialty-card:hover .thumb img { transform: scale(1.05); }
.specialty-card .thumb .en-label {
  position: absolute; left: 20px; bottom: 14px;
  font-family: var(--en); font-size: 24px; letter-spacing: 0.14em; color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.specialty-card .body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.specialty-card h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.12em; margin-bottom: 14px;
}
.specialty-card h3 .accent { color: var(--gold); }
.specialty-card p { font-size: 13.5px; line-height: 2; color: var(--muted); flex: 1; }
.specialty-card .more {
  margin-top: 22px; align-self: flex-end;
  font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.2em; color: var(--navy);
  display: inline-flex; align-items: center; gap: 12px;
}
.specialty-card .more::after {
  content: ""; width: 36px; height: 1px; background: var(--gold);
  transition: width .3s;
}
.specialty-card .more:hover::after { width: 56px; }

/* ---------- Features (3つの特徴) ---------- */
.features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.feature {
  background: var(--white); border: 1px solid var(--line);
  padding: 44px 32px 40px; text-align: center; position: relative;
}
.feature::before {
  content: attr(data-num);
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 26px; color: var(--gold);
  background: var(--bg); padding: 0 16px; letter-spacing: 0.1em;
}
.feature h3 {
  font-family: var(--serif); font-size: 18.5px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.14em; margin-bottom: 20px; line-height: 1.8;
}
.feature p { font-size: 13.5px; line-height: 2.15; color: var(--muted); text-align: left; }

/* ---------- Doctor ---------- */
.doctor { background: var(--white); }
.doctor-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: center;
}
.doctor-photo { position: relative; }
.doctor-photo img { width: 100%; border-radius: 2px; }
.doctor-photo::after {
  content: ""; position: absolute; top: 18px; left: 18px;
  width: 100%; height: 100%;
  border: 1px solid var(--gold); border-radius: 2px; z-index: -1;
}
.doctor-body .en {
  font-family: var(--en); font-size: 13px; letter-spacing: 0.45em;
  color: var(--gold); text-transform: uppercase;
}
.doctor-body h2 {
  font-family: var(--serif); font-weight: 500; font-size: 28px;
  color: var(--navy); letter-spacing: 0.14em; margin: 14px 0 8px;
}
.doctor-body .position { font-size: 13px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 28px; }
.doctor-body p { font-size: 14.5px; line-height: 2.3; color: var(--ink); }
.doctor-highlight {
  margin: 26px 0; padding: 22px 26px;
  background: var(--bg); border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.1em; line-height: 2.2;
  color: var(--navy);
}
.doctor-body .more {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 12px;
  font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.2em; color: var(--navy);
}
.doctor-body .more::after { content: ""; width: 40px; height: 1px; background: var(--gold); transition: width .3s; }
.doctor-body .more:hover::after { width: 64px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid figure { overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-more { text-align: center; margin-top: 44px; }

.btn-outline {
  display: inline-block; padding: 15px 56px;
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.25em;
  color: var(--navy); border: 1px solid var(--navy);
  transition: all .35s; border-radius: 2px;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Info (診療時間・アクセス) ---------- */
.info { background: var(--white); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.info h3, .info-grid h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.2em; margin-bottom: 24px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); position: relative;
}
.info h3::after, .info-grid h3::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 48px; height: 1px; background: var(--gold);
}
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table th, .hours-table td {
  border: 1px solid var(--line); text-align: center; padding: 12px 6px;
  letter-spacing: 0.08em;
}
.hours-table thead th { background: var(--navy); color: #fff; font-weight: 500; font-size: 13px; }
.hours-table tbody th { background: var(--bg); font-weight: 500; white-space: nowrap; }
.hours-table .dot { color: var(--gold); font-size: 15px; }
.hours-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 2; }
.hours-note li { padding-left: 1.2em; text-indent: -1.2em; }

.access-list { font-size: 14.5px; line-height: 2.3; }
.access-list dt {
  font-family: var(--serif); color: var(--navy); font-weight: 600;
  letter-spacing: 0.15em; margin-top: 22px;
}
.access-list dt:first-child { margin-top: 0; }
.access-list dd { color: var(--ink); }
.access-list .tel-large {
  font-family: var(--serif); font-size: 27px; color: var(--navy); letter-spacing: 0.05em;
  font-weight: 500;
}
.access-list .tel-large a:hover { color: var(--gold); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(rgba(19,30,51,.88), rgba(19,30,51,.88)),
              url("../images/corridor.jpg") center / cover no-repeat;
  color: #fff; text-align: center;
}
.cta .en {
  font-family: var(--en); font-size: 13px; letter-spacing: 0.45em;
  color: var(--gold-light); text-transform: uppercase;
}
.cta h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.18em; margin: 18px 0 10px;
}
.cta p { font-size: 14px; letter-spacing: 0.12em; color: rgba(255,255,255,.85); }
.cta .tel {
  display: inline-block; margin-top: 34px;
  font-family: var(--serif); font-size: clamp(30px, 4.6vw, 40px); letter-spacing: 0.05em;
  font-weight: 500;
  color: #fff; line-height: 1.4;
}
.cta .tel:hover { color: var(--gold-light); }
.cta .note { margin-top: 6px; font-size: 12.5px; letter-spacing: 0.25em; color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.85); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px;
}
.footer-brand .ja {
  font-family: var(--serif); font-size: 20px; color: #fff; letter-spacing: 0.12em;
}
.footer-brand .en {
  font-family: var(--en); font-size: 10.5px; letter-spacing: 0.3em;
  color: var(--gold-light); text-transform: uppercase; display: block; margin-top: 6px;
}
.footer-brand address {
  font-style: normal; font-size: 13.5px; line-height: 2.2; margin-top: 24px;
  color: rgba(255,255,255,.75);
}
.footer-nav h4, .footer-hours h4 {
  font-family: var(--en); font-size: 12px; letter-spacing: 0.35em;
  color: var(--gold-light); text-transform: uppercase; margin-bottom: 20px;
}
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13.5px; letter-spacing: 0.12em; color: rgba(255,255,255,.8); transition: color .3s; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-hours p { font-size: 13px; line-height: 2.2; color: rgba(255,255,255,.75); }
.footer-bottom {
  margin-top: 56px; border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0; text-align: center;
}
.footer-bottom .links { font-size: 12px; margin-bottom: 8px; }
.footer-bottom .links a { color: rgba(255,255,255,.6); margin: 0 12px; }
.footer-bottom .links a:hover { color: var(--gold-light); }
.footer-bottom small {
  font-family: var(--en); font-size: 11px; letter-spacing: 0.2em;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   Sub pages
   ============================================================ */
/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 70%, var(--navy-soft) 100%);
  color: #fff;
  padding: calc(var(--header-h) + 72px) 0 56px;
}
.page-hero .en {
  display: block; font-family: var(--en); font-size: 12px;
  letter-spacing: 0.45em; color: var(--gold-light); text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.6vw, 36px); letter-spacing: 0.16em; line-height: 1.6;
}
.breadcrumb {
  margin-top: 26px; font-size: 12px; letter-spacing: 0.1em;
  color: rgba(255,255,255,.65);
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { margin: 0 10px; color: var(--gold); }

/* ---------- Sub page common ---------- */
.page-lead {
  max-width: 760px; margin: 0 auto; text-align: left;
  font-family: var(--serif); font-size: 15.5px; line-height: 2.3; letter-spacing: 0.1em;
}
.section-head.align-left { text-align: left; }
.section-head.align-left .rule { margin-left: 0; }
.bg-alt { background: var(--white); }

/* お悩みチェックリスト */
.check-list {
  max-width: 720px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px;
}
.check-list li {
  background: var(--white); border: 1px solid var(--line);
  padding: 16px 20px 16px 52px; position: relative;
  font-size: 14px; letter-spacing: 0.08em; border-radius: 2px;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 18px; font-family: var(--en);
}
.check-note { max-width: 720px; margin: 28px auto 0; text-align: left; font-size: 13.5px; color: var(--muted); }

/* 特徴 (下層) */
.point-list { display: grid; gap: 28px; max-width: 860px; margin: 0 auto; }
.point-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 32px 36px; position: relative;
}
.point-item .num {
  font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: 0.15em;
  display: block; margin-bottom: 10px;
}
.point-item h3 {
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.12em; margin-bottom: 12px; line-height: 1.7;
}
.point-item p { font-size: 14px; line-height: 2.1; color: var(--ink); }

/* 治療の流れ */
.flow-list { max-width: 800px; margin: 0 auto; counter-reset: flow; list-style: none; }
.flow-item {
  position: relative; padding: 0 0 40px 84px; counter-increment: flow;
}
.flow-item::before {
  content: counter(flow, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  width: 52px; height: 52px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 17px; color: var(--gold); letter-spacing: 0.05em;
  background: transparent;
}
.flow-item:not(:last-child)::after {
  content: ""; position: absolute; left: 26px; top: 56px; bottom: 8px;
  width: 1px; background: var(--line);
}
.flow-item h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  color: var(--navy); letter-spacing: 0.12em; margin-bottom: 8px; padding-top: 8px;
}
.flow-item p { font-size: 14px; line-height: 2.05; color: var(--ink); }

/* 費用・期間・リスク ボックス */
.cost-box {
  max-width: 860px; margin: 0 auto;
  border: 1px solid var(--gold); border-radius: 2px; background: var(--white);
}
.cost-box .cost-head {
  background: var(--navy); color: #fff; padding: 16px 28px;
  font-family: var(--serif); font-size: 16px; letter-spacing: 0.2em;
}
.cost-box dl { padding: 10px 28px 20px; }
.cost-box dt {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  letter-spacing: 0.15em; font-size: 14.5px;
  margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.cost-box dd { font-size: 13.5px; line-height: 2; color: var(--ink); padding-top: 8px; }
.cost-box dd ul { padding-left: 1.2em; }
.cost-box dd li { list-style: disc; }
.provisional-note {
  max-width: 860px; margin: 14px auto 0; font-size: 12px; color: var(--muted);
  letter-spacing: 0.08em;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 2px; margin-bottom: 18px; padding: 24px 30px; }
.faq-item dt {
  font-family: var(--serif); font-weight: 600; font-size: 15.5px; color: var(--navy);
  letter-spacing: 0.1em; padding-left: 36px; position: relative; line-height: 1.8;
}
.faq-item dt::before {
  content: "Q"; position: absolute; left: 0; top: 0;
  font-family: var(--en); font-size: 19px; color: var(--gold);
}
.faq-item dd {
  margin-top: 14px; padding: 14px 0 0 36px; position: relative;
  font-size: 14px; line-height: 2.05; color: var(--ink);
  border-top: 1px dashed var(--line);
}
.faq-item dd::before {
  content: "A"; position: absolute; left: 0; top: 12px;
  font-family: var(--en); font-size: 19px; color: var(--navy);
}

/* 汎用テーブル (比較表・料金表) */
.data-table-wrap { overflow-x: auto; max-width: 860px; margin: 0 auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; background: var(--white); }
.data-table th, .data-table td {
  border: 1px solid var(--line); padding: 14px 16px; letter-spacing: 0.06em;
  text-align: center; line-height: 1.8;
}
.data-table thead th { background: var(--navy); color: #fff; font-weight: 500; font-size: 13.5px; }
.data-table tbody th { background: var(--bg); font-family: var(--serif); font-weight: 600; color: var(--navy); white-space: nowrap; }
.data-table .price { font-family: var(--serif); color: var(--navy); font-weight: 600; white-space: nowrap; }
.scroll-hint { display: none; margin: 12px auto 0; max-width: 860px; font-size: 12px; color: var(--muted); text-align: right; }
.table-note { max-width: 860px; margin: 16px auto 0; font-size: 12.5px; color: var(--muted); line-height: 2; }
.table-note li { padding-left: 1.2em; text-indent: -1.2em; }

/* メニューカード (診療案内) */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.menu-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 30px 32px; display: block; transition: box-shadow .3s, transform .3s;
}
a.menu-card:hover { box-shadow: 0 12px 32px rgba(28,42,68,.1); transform: translateY(-3px); }
.menu-card .en {
  font-family: var(--en); font-size: 11px; letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase;
}
.menu-card h3 {
  font-family: var(--serif); font-size: 18.5px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.12em; margin: 8px 0 12px;
}
.menu-card p { font-size: 13.5px; line-height: 2; color: var(--muted); }
.menu-card .more-inline {
  display: inline-block; margin-top: 12px; font-family: var(--serif);
  font-size: 12.5px; letter-spacing: 0.18em; color: var(--navy);
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}

/* 経歴・概要テーブル */
.history-table { max-width: 760px; margin: 0 auto; width: 100%; border-collapse: collapse; font-size: 14.5px; }
.history-table th, .history-table td { border-bottom: 1px solid var(--line); padding: 16px 12px; text-align: left; line-height: 1.9; vertical-align: top; }
.history-table th {
  font-family: var(--serif); color: var(--navy); font-weight: 600;
  white-space: nowrap; width: 9em; letter-spacing: 0.08em;
}

/* ギャラリー(下層) */
.clinic-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.clinic-gallery figure { border-radius: 2px; overflow: hidden; }
.clinic-gallery .ph { aspect-ratio: 4 / 3; overflow: hidden; }
.clinic-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.clinic-gallery figure:hover img { transform: scale(1.05); }

/* 地図 */
.map-embed { max-width: 1000px; margin: 0 auto; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }

/* 注意書きボックス */
.notice-box {
  max-width: 860px; margin: 0 auto; background: var(--gold-pale);
  border-radius: 2px; padding: 24px 30px; font-size: 13.5px; line-height: 2.05; color: var(--ink);
}

@media (max-width: 768px) {
  .page-hero { padding: calc(var(--header-h) + 48px) 0 40px; }
  .check-list { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .clinic-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-item { padding-left: 66px; }
  .flow-item::before { width: 44px; height: 44px; font-size: 15px; }
  .flow-item:not(:last-child)::after { left: 22px; }
  .point-item { padding: 26px 24px; }
  .map-embed iframe { height: 320px; }
  .history-table th { width: 7em; }
}

/* ---------- Fade-in on scroll ---------- */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .global-nav { display: none; }
  .nav-toggle { display: block; }

  /* Mobile drawer */
  .global-nav.mobile-ready {
    display: flex; position: fixed; inset: 0; z-index: 200;
    background: var(--navy-deep);
    align-items: center; justify-content: center;
    overflow-y: auto;
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .global-nav.mobile-ready { opacity: 1; pointer-events: auto; }
  .global-nav.mobile-ready ul {
    flex-direction: column; text-align: center; gap: 26px;
    margin: auto; padding: 90px 24px 60px;
  }
  .global-nav.mobile-ready a { color: #fff; font-size: 17px; }
  .global-nav.mobile-ready .nav-tel { display: block; margin-top: 18px; }
  .global-nav.mobile-ready .nav-tel a {
    font-family: var(--serif); font-size: 24px; color: var(--gold-light);
    letter-spacing: 0.05em;
  }

  .header-tel { display: none; }
  .doctor-grid { grid-template-columns: 1fr; gap: 48px; }
  .doctor-photo { max-width: 300px; margin: 0 auto; }
  .specialty-grid { grid-template-columns: 1fr; gap: 28px; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }
  body { font-size: 14.5px; }
  section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
  .section-head h2 { font-size: 21px; letter-spacing: 0.12em; }
  .scroll-hint { display: block; }

  .brand-mark { width: 38px; height: 38px; }
  .brand-text .ja { font-size: 16px; }
  .brand-text .en { font-size: 8.5px; }

  .hero { min-height: 88vh; }
  .hero-inner { padding: 120px 24px 100px; }
  .hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .hero-badges li { font-size: 11px; padding: 6px 14px; }
  .hero-sub br { display: none; }

  .philosophy-body { text-align: left; }
  .specialty-note { text-align: left; }

  .specialty-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .info-grid { grid-template-columns: 1fr; gap: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .quick-bar-inner { gap: 6px 20px; font-size: 12.5px; }
}
