/* ===========================================================
   Riam Dental Clinic — Implant Site
   Shared stylesheet
   =========================================================== */

:root {
  color-scheme: light only;
  --paper: #FBFAF7;
  --paper-2: #EEF1F5;
  --navy: #21456B;
  --navy-deep: #173655;
  --teal: #3E7CA8;
  --teal-soft: #E1EAF2;
  --gold: #C2A35A;
  --gold-soft: #F1E9D5;
  --line: #E0E2E8;
  --ink: #2C2C2C;
  --ink-soft: #5A5A5A;
  --white: #FFFFFF;
  --line-green: #06C755;

  --serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  --maxw: 1140px;
  --radius: 4px;
  --shadow: 0 10px 40px rgba(27, 58, 75, 0.08);
  --shadow-lg: 0 20px 60px rgba(27, 58, 75, 0.14);
}

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

html { scroll-behavior: smooth; color-scheme: light only; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-color: #FBFAF7;
  forced-color-adjust: none;
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.4; color: var(--navy); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  display: inline-block;
}

.section { padding: 96px 0; }
.section--tint { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--paper); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 14px 0 18px; }
.section-head p { color: var(--ink-soft); }
.section--navy .section-head p { color: rgba(255, 255, 255, 0.92); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.04em; cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(200,165,96,.4); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(27,58,75,.3); }
.btn--ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper); }
.section--navy .btn--ghost { color: var(--paper); border-color: rgba(251,250,247,.6); }
.section--navy .btn--ghost:hover { background: var(--paper); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand .mark { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; }
.brand .mark span { color: var(--teal); }
.brand .sub { font-size: 0.66rem; letter-spacing: .18em; color: var(--ink-soft); }
.brand-tag { display: inline-block; border: 1px solid var(--navy); color: var(--navy); font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; letter-spacing: .08em; margin-left: 4px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--teal); transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: inline-flex; gap: 12px; align-items: center; }
.nav-tel { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.nav-tel small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: .12em; color: var(--ink-soft); font-weight: 500; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--navy); transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--teal) 140%); color: var(--paper); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: url("images/oj01.jpg") center/cover no-repeat;
  opacity: 0.22;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle at 80% 20%, rgba(200,165,96,.18), transparent 45%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 90px; }
.hero-copy .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.32; margin: 20px 0 24px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 1.05rem; color: rgba(255,255,255,.95); margin-bottom: 36px; max-width: 36ch; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-card {
  background: rgba(251,250,247,.07); border: 1px solid rgba(251,250,247,.18);
  border-radius: 8px; padding: 34px; backdrop-filter: blur(6px);
}
.hero-card h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 22px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hero-stat .num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); font-weight: 700; line-height: 1; }
.hero-stat .lbl { font-size: 0.78rem; color: rgba(255,255,255,.9); margin-top: 8px; }
.hero-note { font-size: 0.7rem; color: rgba(255,255,255,.72); margin-top: 22px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px; padding: 26px 24px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 500; color: var(--navy); }
.trust-item .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: 34px 30px; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .num-badge { font-family: var(--serif); font-size: 0.85rem; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.card h3 { font-size: 1.2rem; margin: 12px 0 14px; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card .ic-lg { width: 56px; height: 56px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }

/* ---------- Comparison table ---------- */
.compare { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); min-width: 620px; }
.compare th, .compare td { padding: 20px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--paper); font-family: var(--serif); font-weight: 600; font-size: 1rem; text-align: center; }
.compare thead th.feature { text-align: left; background: var(--navy-deep); }
.compare th.highlight { background: var(--teal); position: relative; }
.compare tbody th { font-family: var(--sans); font-weight: 700; color: var(--navy); width: 22%; }
.compare td { text-align: center; color: var(--ink-soft); }
.compare td.col-implant { background: var(--teal-soft); color: var(--ink); font-weight: 500; }
.compare .mark-o { color: var(--teal); font-weight: 700; font-size: 1.1rem; }
.compare .mark-x { color: #B05A4F; font-weight: 700; }
.compare .mark-t { color: var(--gold); font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--teal), var(--gold)); }
.tl-step { position: relative; padding: 0 0 44px 78px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 8px; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--teal); color: var(--teal);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; z-index: 1;
}
.tl-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tl-step .when { font-size: 0.75rem; color: var(--gold); font-weight: 700; letter-spacing: .08em; }
.tl-step p { font-size: 0.92rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Price ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px 30px; text-align: center; position: relative; }
.price-card.featured { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.price-card.featured::before { content: "おすすめ"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-deep); font-size: 0.72rem; font-weight: 700; padding: 4px 18px; border-radius: 20px; letter-spacing: .08em; }
.price-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.price-card .price { font-family: var(--serif); font-size: 2.3rem; color: var(--navy); font-weight: 700; margin: 14px 0 4px; }
.price-card .price small { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.price-card .unit { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 18px; }
.price-card ul { list-style: none; text-align: left; font-size: 0.88rem; color: var(--ink-soft); }
.price-card ul li { padding: 8px 0 8px 26px; position: relative; border-top: 1px solid var(--line); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.faq-q { padding: 22px 26px; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; font-weight: 700; color: var(--navy); font-size: 0.98rem; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .qmark { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }
.faq-q .plus { margin-left: auto; color: var(--teal); transition: transform .3s; font-size: 1.3rem; flex-shrink: 0; }
details[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 26px 24px 60px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Doctor ---------- */
.doctor-card { display: grid; grid-template-columns: 220px 1fr; gap: 32px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 36px; box-shadow: var(--shadow); align-items: center; }
.doctor-photo { width: 100%; aspect-ratio: 1; border-radius: 8px; background: linear-gradient(150deg, var(--teal-soft), var(--gold-soft)); display: grid; place-items: center; font-family: var(--serif); font-size: 3rem; color: var(--teal); font-weight: 700; }
.doctor-info .role { font-size: 0.78rem; letter-spacing: .14em; color: var(--teal); font-weight: 700; }
.doctor-info h3 { font-size: 1.6rem; margin: 6px 0 4px; }
.doctor-info .yomi { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 16px; }
.doctor-info p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }
.doctor-info .creds { list-style: none; font-size: 0.82rem; color: var(--ink-soft); }
.doctor-info .creds li { padding: 4px 0 4px 18px; position: relative; }
.doctor-info .creds li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Compact doctor cards (staff) ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.doc-mini { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 120px 1fr; }
.doc-mini .doc-mini-photo { background: linear-gradient(160deg, var(--teal-soft), var(--gold-soft)); display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; color: var(--teal); font-weight: 700; }
.doc-mini .doc-mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-mini .doc-mini-body { padding: 18px 20px; }
.doc-mini .doc-mini-body .role { font-size: 0.72rem; letter-spacing: .1em; color: var(--teal); font-weight: 700; }
.doc-mini .doc-mini-body h3 { font-size: 1.2rem; margin: 4px 0 2px; }
.doc-mini .doc-mini-body .yomi { font-size: 0.74rem; color: var(--ink-soft); margin-bottom: 10px; }
.doc-mini .doc-mini-body ul { list-style: none; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.7; }
.doc-mini .doc-mini-body ul li { padding-left: 14px; position: relative; }
.doc-mini .doc-mini-body ul li::before { content: "・"; position: absolute; left: 0; color: var(--gold); }

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: 1fr; }
  .doc-mini { grid-template-columns: 100px 1fr; }
}

/* ---------- Clinic / access ---------- */
.clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.clinic-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.clinic-map { height: 200px; background: linear-gradient(135deg, var(--teal-soft), var(--paper-2)); display: grid; place-items: center; color: var(--teal); font-family: var(--serif); font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.clinic-body { padding: 28px 30px; }
.clinic-body h3 { font-size: 1.3rem; margin-bottom: 4px; }
.clinic-body .area { font-size: 0.78rem; color: var(--teal); font-weight: 700; letter-spacing: .1em; margin-bottom: 16px; }
.clinic-body dl { display: grid; grid-template-columns: 92px 1fr; gap: 8px 14px; font-size: 0.88rem; }
.clinic-body dt { color: var(--navy); font-weight: 700; }
.clinic-body dd { color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 130%); color: var(--paper); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.95); margin-bottom: 32px; max-width: 50ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.86); padding: 64px 0 28px; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .mark { font-family: var(--serif); font-size: 1.4rem; color: var(--paper); }
.footer-brand .mark span { color: var(--gold); }
.footer-brand p { margin-top: 14px; max-width: 34ch; line-height: 1.8; }
.footer-col h4 { color: var(--paper); font-family: var(--sans); font-size: 0.82rem; letter-spacing: .12em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.76rem; color: rgba(255,255,255,.8); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: linear-gradient(150deg, var(--navy-deep), var(--navy)); color: var(--paper); padding: 70px 0; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 14px 0 12px; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 54ch; margin: 0 auto; }
.page-hero.has-bg { position: relative; background: var(--navy-deep); overflow: hidden; }
.page-hero.has-bg .ph-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero.has-bg .ph-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.page-hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(23,54,85,.82), rgba(33,69,107,.72)); z-index: 1; }
.page-hero.has-bg .wrap { position: relative; z-index: 2; }
.crumbs { font-size: 0.76rem; color: rgba(255,255,255,.78); }
.crumbs a:hover { color: var(--gold); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--gold-soft); }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; color: var(--teal); }
.prose p { margin-bottom: 16px; color: var(--ink); }
.prose ul { margin: 0 0 18px 22px; color: var(--ink-soft); }
.prose ul li { margin-bottom: 8px; }
.callout { background: var(--teal-soft); border-left: 4px solid var(--teal); border-radius: 4px; padding: 20px 24px; margin: 24px 0; font-size: 0.92rem; }
.callout strong { color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-tel { display: none; }
  .burger { display: flex; }
  .nav-links.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3, .price-grid { grid-template-columns: 1fr; }
  .grid-2, .clinic-grid { grid-template-columns: 1fr; }
  .doctor-card { grid-template-columns: 1fr; text-align: center; }
  .doctor-photo { max-width: 180px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Fixed bottom CTA bar (mobile-first, like the LP) ---------- */
.cta-fixed {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--navy-deep);
  box-shadow: 0 -4px 20px rgba(20,48,75,.3);
}
.cta-fixed a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 9px 3px; color: var(--white); font-weight: 700; font-size: 0.78rem;
  border-left: 1px solid rgba(255,255,255,.16); text-align: center; line-height: 1.2;
}
.cta-fixed a:first-child { border-left: none; }
.cta-fixed a .cta-ic { font-size: 1.0rem; line-height: 1; }
.cta-fixed a .cta-sub { font-size: 0.56rem; font-weight: 500; opacity: .9; }
.cta-fixed a.is-line { background: var(--line-green); color: #fff; }
.cta-fixed a.is-web { background: var(--gold); color: var(--navy-deep); }
.cta-fixed a:hover { filter: brightness(1.06); }
.cta-tel-group { display: flex; flex-direction: column; }
body { padding-bottom: 62px; }

/* ---------- Hero circular strength badges ---------- */
.hero-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hero-badge {
  width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; padding: 10px;
  font-family: var(--serif); font-weight: 700; line-height: 1.45; font-size: 0.84rem;
  color: var(--white); box-shadow: 0 8px 24px rgba(20,48,75,.25);
}
.hero-badge b { color: var(--gold); font-size: 1.05em; }
.hero-badge.b1 { background: #5B8DB8; }
.hero-badge.b2 { background: var(--navy); }
.hero-badge.b3 { background: #7FB0C9; }

/* ---------- Monthly price ribbon ---------- */
.month-price {
  max-width: 560px; margin: 36px auto 0; background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px 22px;
  position: relative; text-align: center; box-shadow: var(--shadow);
}
.month-price .ribbon {
  display: inline-block; background: var(--teal); color: var(--white);
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem;
  padding: 6px 30px; position: relative; margin-bottom: 14px;
}
.month-price .ribbon::before, .month-price .ribbon::after {
  content: ""; position: absolute; top: 0; border: 16px solid var(--teal); border-top-width: 17px; border-bottom-width: 17px;
}
.month-price .ribbon::before { left: -16px; border-left-color: transparent; }
.month-price .ribbon::after { right: -16px; border-right-color: transparent; }
.month-price .amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.month-price .amount .label { background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 0.95rem; padding: 6px 12px; border-radius: 6px; }
.month-price .amount .num { font-family: var(--serif); font-weight: 700; color: var(--teal); font-size: 2.8rem; line-height: 1; }
.month-price .amount .num small { font-size: 0.9rem; color: var(--ink-soft); }
.month-price .note { font-size: 0.72rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.6; }

@media (min-width: 901px) {
  .cta-fixed { grid-template-columns: repeat(3, minmax(140px, 220px)); justify-content: center; }
}

/* ---------- Worries (checklist) ---------- */
.worries { max-width: 720px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 40px 44px; box-shadow: var(--shadow); }
.worries ul { list-style: none; }
.worries li { position: relative; padding: 16px 0 16px 46px; font-size: 1.02rem; font-weight: 500; color: var(--navy); border-bottom: 1px dashed var(--line); }
.worries li:last-child { border-bottom: none; }
.worries li::before { content: "✓"; position: absolute; left: 8px; top: 14px; width: 26px; height: 26px; background: var(--teal); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; }
.worries .lead-after { text-align: center; margin-top: 26px; font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- Reasons (deep) ---------- */
.reason { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.reason:last-child { border-bottom: none; }
.reason .rn { font-family: var(--serif); font-size: 0.78rem; font-weight: 700; color: var(--white); background: var(--navy); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; line-height: 1.2; text-align: center; }
.reason .rn small { display: block; font-size: 0.6rem; letter-spacing: .1em; color: var(--gold); }
.reason h3 { font-size: 1.25rem; margin-bottom: 10px; }
.reason p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Voices ---------- */
.voice-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 30px; box-shadow: var(--shadow); }
.voice-card .quote { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); margin-bottom: 14px; line-height: 1.6; }
.voice-card p { font-size: 0.9rem; color: var(--ink-soft); }
.voice-card .who { margin-top: 16px; font-size: 0.82rem; color: var(--teal); font-weight: 700; }

/* ---------- Case before/after ---------- */
.case-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.case-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.case-imgs .ph { aspect-ratio: 4/3; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; color: var(--ink-soft); position: relative; }
.case-imgs .ph.before { background: var(--paper-2); }
.case-imgs .ph.after { background: var(--teal-soft); color: var(--teal); }
.case-imgs .ph span { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; letter-spacing: .1em; background: rgba(20,48,75,.8); color: #fff; padding: 3px 10px; border-radius: 3px; }
.case-card .case-body { padding: 20px 24px; }
.case-card .case-body h4 { font-size: 1.02rem; color: var(--navy); margin-bottom: 6px; }
.case-card .case-body p { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- Maker / authority ---------- */
.maker { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.maker .maker-visual { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 40px; text-align: center; box-shadow: var(--shadow); }
.maker .maker-visual .big { font-family: var(--serif); font-size: 3.2rem; color: var(--teal); font-weight: 700; line-height: 1; }
.maker .maker-visual .cap { font-size: 0.84rem; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Column / blog list ---------- */
.col-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.col-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.col-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.col-card .col-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--teal-soft), var(--gold-soft)); display: grid; place-items: center; color: var(--teal); font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.col-card .col-body { padding: 18px 20px; }
.col-card .col-cat { font-size: 0.68rem; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.col-card h3 { font-size: 1.0rem; margin: 8px 0; line-height: 1.5; }
.col-card p { font-size: 0.84rem; color: var(--ink-soft); }
.col-links { columns: 2; column-gap: 40px; max-width: 900px; margin: 0 auto; }
.col-links a { display: block; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); font-size: 0.9rem; position: relative; break-inside: avoid; }
.col-links a::before { content: "▶"; position: absolute; left: 0; color: var(--teal); font-size: 0.7rem; top: 15px; }
.col-links a:hover { color: var(--teal); }

@media (max-width: 900px) {
  .maker, .col-list { grid-template-columns: 1fr; }
  .col-links { columns: 1; }
}

/* ===========================================================
   Scroll & entrance animations (alba-style)
   =========================================================== */
/* Base reveal state */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* Directional variants */
.reveal.from-left { transform: translateX(-44px); }
.reveal.from-right { transform: translateX(44px); }
.reveal.from-left.in, .reveal.from-right.in { transform: none; }
.reveal.zoom { transform: scale(.9); }
.reveal.zoom.in { transform: scale(1); }
/* Staggered children: add .stagger to a parent, children animate in sequence */
.stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .05s; }
.stagger.in > *:nth-child(2) { transition-delay: .15s; }
.stagger.in > *:nth-child(3) { transition-delay: .25s; }
.stagger.in > *:nth-child(4) { transition-delay: .35s; }
.stagger.in > *:nth-child(5) { transition-delay: .45s; }
.stagger.in > *:nth-child(6) { transition-delay: .55s; }
/* Circular badges pop in */
.hero-badge { opacity: 0; transform: scale(.6) translateY(10px); transition: opacity .6s ease, transform .6s cubic-bezier(.18,.9,.32,1.4); }
.hero-badges.in .hero-badge { opacity: 1; transform: none; }
.hero-badges.in .hero-badge.b1 { transition-delay: .1s; }
.hero-badges.in .hero-badge.b2 { transition-delay: .28s; }
.hero-badges.in .hero-badge.b3 { transition-delay: .46s; }
/* Hero copy timed entrance */
.hero-copy .eyebrow, .hero-copy h1, .hero-copy .lead, .hero-copy .hero-actions { opacity: 0; transform: translateY(24px); animation: heroIn .9s forwards cubic-bezier(.2,.7,.2,1); }
.hero-copy .eyebrow { animation-delay: .15s; }
.hero-copy h1 { animation-delay: .35s; }
.hero-copy .lead { animation-delay: .6s; }
.hero-copy .hero-actions { animation-delay: .85s; }
.month-price { opacity: 0; transform: translateY(24px); animation: heroIn .9s .7s forwards cubic-bezier(.2,.7,.2,1); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
/* Count-up number styling helper */
.countup { font-variant-numeric: tabular-nums; }
/* Timeline dot pulse when revealed */
.tl-step.in .tl-dot { animation: dotPop .5s ease; }
@keyframes dotPop { 0% { transform: scale(.5); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
/* Soft floating accent on hero (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: floatGlow 9s ease-in-out infinite alternate; }
  @keyframes floatGlow { from { transform: translate(0,0); } to { transform: translate(-18px, 14px); } }
}
/* Respect reduced motion: disable all entrance animation */
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > *, .hero-badge, .hero-copy .eyebrow, .hero-copy h1, .hero-copy .lead, .hero-copy .hero-actions, .month-price { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Equipment / technique numbered blocks ---------- */
.eq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.eq-item { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px 30px; box-shadow: var(--shadow); }
.eq-item .eq-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 700; margin-bottom: 14px; }
.eq-item h3 { font-size: 1.12rem; margin-bottom: 8px; }
.eq-item p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Case detail table ---------- */
.case-detail { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.case-detail .case-imgs .ph { aspect-ratio: 4/3; }
.case-detail .ct { padding: 18px 22px; }
.case-detail .ct h4 { font-size: 1.0rem; color: var(--navy); margin-bottom: 10px; }
.case-detail table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.case-detail th, .case-detail td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.case-detail th { color: var(--teal); font-weight: 700; white-space: nowrap; width: 34%; }
.case-detail td { color: var(--ink-soft); }
.case-risk { font-size: 0.74rem; color: var(--ink-soft); margin-top: 10px; line-height: 1.6; }

@media (max-width: 900px) {
  .maker, .col-list { grid-template-columns: 1fr; }
  .col-links { columns: 1; }
  .eq-grid { grid-template-columns: 1fr; }
}

/* ---------- Photo utilities ---------- */
.photo-band { width: 100%; height: 320px; object-fit: cover; display: block; }
.fig { overflow: hidden; border-radius: 10px; box-shadow: var(--shadow); }
.fig img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform .5s ease; }
.fig:hover img { transform: scale(1.05); }
/* Timeline step image */
.tl-step .tl-photo { margin-top: 14px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); max-width: 360px; }
.tl-step .tl-photo img { width: 100%; height: 180px; object-fit: cover; display: block; }
/* Reason row image */
.reason-img { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.reason-img:last-child { border-bottom: none; }
.reason-row { padding: 22px 0; border-bottom: 1px solid var(--line); }
.reason-row:last-child { border-bottom: none; }
.reason-row h3 { font-size: 1.2rem; margin-bottom: 8px; }
.reason-row h3 .rn-txt { display: inline-block; font-family: var(--serif); font-size: 0.7rem; color: var(--gold); margin-right: 8px; letter-spacing: .1em; }
.reason-row p { font-size: 0.92rem; color: var(--ink-soft); }
.reason-img .rimg { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.reason-img .rimg img { width: 100%; height: 150px; object-fit: cover; display: block; }
.reason-img h3 { font-size: 1.2rem; margin-bottom: 8px; }
.reason-img h3 .rn-txt { display: inline-block; font-family: var(--serif); font-size: 0.7rem; color: var(--gold); margin-right: 8px; letter-spacing: .1em; }
.reason-img p { font-size: 0.92rem; color: var(--ink-soft); }
/* Equipment card with photo */
.eq-item.has-photo { padding: 0; overflow: hidden; }
.eq-item.has-photo .eq-photo { height: 190px; overflow: hidden; }
.eq-item.has-photo .eq-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.eq-item.has-photo:hover .eq-photo img { transform: scale(1.05); }
.eq-item.has-photo .eq-text { padding: 22px 26px; }
.eq-item.has-photo .eq-no { margin-top: -42px; position: relative; z-index: 2; border: 3px solid var(--white); }
/* Clinic card photo */
.clinic-photo { height: 200px; overflow: hidden; border-bottom: 1px solid var(--line); }
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Intro split with image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split .split-img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split .split-img img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .reason-img { grid-template-columns: 1fr; }
  .reason-img .rimg img { height: 200px; }
  .split { grid-template-columns: 1fr; }
}

/* ---------- Transparent portrait (doctor) ---------- */
.portrait { background: linear-gradient(160deg, var(--teal-soft), var(--gold-soft)); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.doctor-photo.portrait { padding: 0; }
.doctor-photo.portrait img { object-fit: contain; align-self: flex-end; }

/* ---------- Associate doctors (compact) ---------- */
.assoc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.assoc-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 28px 30px; box-shadow: var(--shadow); }
.assoc-card .assoc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.assoc-card .assoc-avatar { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(150deg, var(--teal-soft), var(--gold-soft)); display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--teal); flex-shrink: 0; }
.assoc-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.assoc-card .yomi { font-size: 0.74rem; color: var(--ink-soft); }
.assoc-card .assoc-sec { font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; color: var(--teal); margin: 12px 0 6px; }
.assoc-card .assoc-list { list-style: none; font-size: 0.84rem; color: var(--ink-soft); }
.assoc-card .assoc-list li { padding: 3px 0 3px 16px; position: relative; line-height: 1.6; }
.assoc-card .assoc-list li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

@media (max-width: 900px) {
  .assoc-grid { grid-template-columns: 1fr; }
}

/* ---------- Maker banners ---------- */
.maker-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.maker-banners img { width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow); background: var(--white); }
.maker-award { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; margin-top: 28px; background: var(--paper-2); border-radius: 12px; padding: 24px; }
.maker-award .award-img { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.maker-award .award-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.maker-award p { font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .maker-banners, .maker-award { grid-template-columns: 1fr; }
}

/* ---------- Access: map & official banner ---------- */
.clinic-map { margin-top: 4px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.clinic-map img { width: 100%; height: auto; display: block; }
.official-banner { display: block; margin-top: 14px; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.official-banner img { width: 100%; height: auto; display: block; }
.official-banner:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(23,54,85,.18); }
