/* Clínica Ichiban — Precisão Oriental em Odontologia
   Layout: editorial asymmetric grid on warm paper, charcoal "sumi" bands for contrast,
   Ichiban red reserved for the brand mark, calls to action and fine rules. */
:root {
  --paper: #fbfaf8;
  --paper-2: #f3f1ed;
  --paper-3: #e9e5df;
  --ink: #1f1c1c;
  --ink-2: #4a4545;
  --muted: #7b7471;
  --line: #e2ddd7;
  --line-2: #cfc8c1;
  --red: #c22f35;
  --red-ink: #a1242a;
  --night: #161414;
  --night-2: #211e1e;
  --night-line: #3a3434;
  --on-night: #f2eeea;
  --on-night-2: #b9b0aa;

  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", Georgia, "Times New Roman", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gutter: max(20px, min(4vw, 48px));
  --section: clamp(72px, 10vw, 136px);
  --radius: 6px;
  --radius-img: 16px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.75; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- type */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.005em; line-height: 1.25; }
.display { font-size: clamp(2.45rem, 4.8vw, 4.3rem); line-height: 1.06; letter-spacing: -0.015em; }
.h2 { font-size: clamp(1.95rem, 3.5vw, 3rem); line-height: 1.14; }
.h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); line-height: 1.3; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); line-height: 1.65; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font: 500 .76rem/1.2 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--red);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-night .eyebrow { color: #e58a8e; }
.prose { max-width: 66ch; }
.prose p { margin-bottom: 1.1em; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: .95em 1.55em; border: 1px solid transparent; border-radius: var(--radius);
  font: 500 .95rem/1.2 var(--font-sans); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-ink); border-color: var(--red-ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.on-night .btn-line { border-color: var(--on-night-2); color: var(--on-night); }
.on-night .btn-line:hover { background: var(--on-night); color: var(--night); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .55em; font-weight: 500; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .2s, gap .2s;
}
.link-arrow:hover { border-color: var(--red); gap: .8em; }
.link-arrow svg { width: 14px; height: 14px; }
.on-night .link-arrow { color: var(--on-night); border-color: var(--night-line); }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 248, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { width: 152px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 30px; }
.main-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--red); }
.header-cta { flex: none; }
.header-cta .btn { padding: .78em 1.2em; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.menu-btn span.bars { width: 22px; height: 10px; position: relative; display: inline-block; }
.menu-btn span.bars::before, .menu-btn span.bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); }
.menu-btn span.bars::before { top: 0; } .menu-btn span.bars::after { bottom: 0; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 0 var(--gutter) 32px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav .top { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.mobile-nav .top img { width: 140px; }
.mobile-nav .close { background: none; border: 0; color: var(--on-night); font-weight: 500; padding: 10px 0; cursor: pointer; }
.mobile-nav ul { list-style: none; margin-top: 24px; border-top: 1px solid var(--night-line); }
.mobile-nav li a { display: block; padding: 18px 0; border-bottom: 1px solid var(--night-line); font: 600 1.7rem/1.2 var(--font-display); color: var(--on-night); text-decoration: none; }
.mobile-nav .btn { margin-top: 28px; width: 100%; }
.mobile-nav .contact { margin-top: auto; padding-top: 28px; color: var(--on-night-2); font-size: .95rem; }

@media (max-width: 1040px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { min-height: 72px; }
  .brand img { width: 132px; }
}

/* ---------- sections */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.bg-2 { background: var(--paper-2); }
.on-night { background: var(--night); color: var(--on-night-2); }
.on-night h1, .on-night h2, .on-night h3 { color: var(--on-night); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin: 0; }
.section-head.stack { grid-template-columns: 1fr; max-width: 760px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- home hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .display { margin-bottom: 26px; }
.hero-copy .display em { font-style: normal; color: var(--red); }
.hero-copy .lead { margin-bottom: 34px; }
.hero-media { position: relative; padding-right: 44px; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2.15; object-fit: cover; }
.hero-media .vlabel {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
  writing-mode: vertical-rl; display: flex; align-items: center; justify-content: space-between;
  font: 500 .74rem/1 var(--font-sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.hero-media .vlabel b { font: 600 1.35rem/1 var(--font-display); letter-spacing: .15em; color: var(--red); }
.hero-media figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(44px, 5.5vw, 76px); }
.trust-item {
  display: flex; align-items: center; gap: 18px; padding: 22px 24px; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius-img); background: #fff;
  color: var(--muted); text-decoration: none; transition: transform .35s ease, box-shadow .35s ease;
}
a.trust-item:hover, .trust-item:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(31, 28, 28, .09); }
.trust .ti { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #fbeeee; color: var(--red); }
.trust .ti svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trust .tx { min-width: 0; }
.trust strong { display: block; font: 600 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--font-display); color: var(--ink); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.trust .tx > span { display: block; font-size: .92rem; line-height: 1.4; }
.trust-item.is-red { background: var(--red); border-color: var(--red); color: rgba(255, 255, 255, .86); }
.trust-item.is-red strong { color: #fff; }
.trust-item.is-red .ti { background: rgba(255, 255, 255, .16); color: #fff; }
.trust-item.is-red .ti svg { fill: rgba(255, 255, 255, .18); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { padding-right: 34px; }
  .hero-media .vlabel { width: 34px; }
  .trust { grid-template-columns: 1fr; }
  .trust { gap: 12px; }
}

/* ---------- pillars */
.pillars-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.statement { font: 600 clamp(1.7rem, 3vw, 2.5rem)/1.3 var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
.pillars { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pillars .jp { font: 600 1.55rem/1.2 var(--font-display); color: var(--red); }
.pillars .jp small { display: block; margin-top: 8px; font: 500 .72rem/1.3 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pillars h3 { font-size: 1.3rem; margin-bottom: 6px; }
.pillars p { margin: 0; }
@media (max-width: 860px) { .pillars-grid { grid-template-columns: 1fr; } .pillars li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- treatment cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.feature-card { text-decoration: none; display: flex; flex-direction: column; color: inherit; }
.feature-card .ph { overflow: hidden; background: var(--paper-3); }
.feature-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s ease; }
.feature-card:hover img { transform: scale(1.035); }
.feature-card .tag { margin-top: 22px; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.feature-card h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin: 8px 0 10px; }
.feature-card p { margin-bottom: 16px; }
.feature-card .link-arrow { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } .feature-card img { aspect-ratio: 4 / 3; } }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.t-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); transition: border-color .2s; min-width: 0; }
.t-card:hover { border-color: var(--ink); }
.t-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-3); }
.t-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.t-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.t-card p { font-size: .95rem; margin-bottom: 14px; }
.t-card .more { margin-top: auto; font-size: .9rem; font-weight: 500; color: var(--red); }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- needs navigator */
.needs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; border-top: 1px solid var(--line-2); }
.need { border-bottom: 1px solid var(--line-2); padding: 26px 0; display: flex; flex-direction: column; gap: 10px; }
.need h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.need p { margin: 0; font-size: .97rem; }
.chips { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; background: var(--paper); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 860px) { .needs { grid-template-columns: 1fr; } }

/* ---------- technology */
.tech-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--night-line); }
.tech { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.tech + .tech { padding-left: 24px; border-left: 1px solid var(--night-line); }
.tech img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; background: #fff; }
.tech h3 { font-size: 1.2rem; }
.tech p { margin: 0; font-size: .95rem; }
@media (max-width: 960px) {
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech:nth-child(3) { padding-left: 0; border-left: 0; }
  .tech { padding-bottom: 24px; border-bottom: 1px solid var(--night-line); }
}
@media (max-width: 560px) { .tech-grid { grid-template-columns: 1fr; } .tech + .tech { padding-left: 0; border-left: 0; } }

/* ---------- experience mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; background: var(--paper-3); min-width: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; font-size: .9rem; background: linear-gradient(to top, rgba(10,9,9,.72), rgba(10,9,9,0)); }
.mosaic figcaption b { display: block; font: 600 1.1rem/1.2 var(--font-display); }
.m1 { grid-column: span 7; grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
.m2, .m3 { grid-column: span 5; aspect-ratio: 16 / 10; }
.m4, .m5, .m6 { grid-column: span 4; aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; gap: 10px; }
  .m1 { grid-column: span 2; min-height: 0; aspect-ratio: 4 / 3; }
  .m2, .m3, .m4, .m5 { grid-column: span 1; aspect-ratio: 1; }
  .m6 { grid-column: span 2; aspect-ratio: 16 / 9; }
  .mosaic figcaption { padding: 28px 12px 10px; font-size: .8rem; }
  .mosaic figcaption span { display: none; }
}

/* ---------- team */
.lead-doctor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.lead-doctor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cro { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.team-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.team-strip a { display: block; text-decoration: none; min-width: 0; }
.team-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.92); transition: filter .3s; }
.team-strip a:hover img { filter: saturate(1.05); }
.team-strip span { display: block; margin-top: 8px; font-size: .78rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 860px) { .lead-doctor { grid-template-columns: 1fr; } .team-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.member { min-width: 0; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 20px; }
.member h3 { font-size: 1.35rem; margin-bottom: 4px; }
.member .area { color: var(--ink); font-weight: 500; margin: 0 0 4px; }
.member .cro { margin-bottom: 14px; display: block; }
.member p.bio { font-size: .97rem; margin: 0; }
.support-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.support-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 12px; }
.support-grid h3 { font-size: 1.1rem; }
.support-grid p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mini-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mini-member { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: inherit; }
.mini-member img { width: 76px; height: 95px; object-fit: cover; }
.mini-member b { display: block; font: 600 1.05rem/1.3 var(--font-display); color: var(--ink); }
.mini-member span { display: block; font-size: .86rem; line-height: 1.45; }

/* ---------- testimonials */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: 48px; }
.g-badge { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.g-badge .stars { color: var(--red); letter-spacing: 3px; font-size: 1.05rem; }
.g-badge b { font: 600 1.5rem/1 var(--font-display); }
.g-badge small { display: block; font-size: .85rem; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.quote { margin: 0; padding: 32px 32px 8px 0; display: flex; flex-direction: column; min-width: 0; }
.quote + .quote { padding-left: 32px; border-left: 1px solid var(--line-2); }
.quote blockquote { margin: 0 0 22px; font: 500 1.17rem/1.6 var(--font-display); color: var(--ink); }
.quote blockquote::before { content: "“"; display: block; font: 600 3rem/0.6 var(--font-display); color: var(--red); margin-bottom: 14px; }
.quote figcaption { margin-top: auto; font-size: .9rem; }
.quote figcaption b { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .quotes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .quote { scroll-snap-align: start; padding-right: 24px; }
  .quote + .quote { padding-left: 24px; }
}
.single-quote { max-width: 860px; }
.single-quote blockquote { margin: 0 0 20px; font: 500 clamp(1.35rem, 2.4vw, 1.85rem)/1.5 var(--font-display); color: var(--ink); }
.single-quote blockquote::before { content: "“"; display: block; font: 600 3.6rem/.6 var(--font-display); color: var(--red); margin-bottom: 18px; }

/* ---------- journey (a real sequence: kanji numerals 一 二 三 四) */
.journey { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.journey li { border-top: 1px solid var(--night-line); padding-top: 24px; min-width: 0; }
.journey .k { display: block; font: 600 2.4rem/1 var(--font-display); color: #e58a8e; margin-bottom: 18px; }
.journey h3 { font-size: 1.25rem; margin-bottom: 8px; }
.journey p { margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .journey { grid-template-columns: 1fr; } }

/* ---------- blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.post-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; min-width: 0; }
.post-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-3); margin-bottom: 18px; }
.post-card time { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-size: 1.25rem; line-height: 1.35; margin: 8px 0; }
.post-card:hover h3 { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-card p { font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cta-band .h2 { margin-bottom: 18px; }
.contact-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--night-line); display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
.contact-list .k { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); padding-top: 3px; }
.contact-list .v { color: var(--on-night); }
.contact-list a { color: var(--on-night); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.bg-2 .contact-list, .page-light .contact-list { border-top-color: var(--line); }
.bg-2 .contact-list li, .page-light .contact-list li { border-bottom-color: var(--line); }
.page-light .contact-list .k { color: var(--muted); }
.page-light .contact-list .v, .page-light .contact-list a { color: var(--ink); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) */
.page-hero { padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 88px); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--line-2); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero h1 { margin-bottom: 22px; }
.page-hero .lead { margin-bottom: 32px; }
.page-hero figure { margin: 0; position: relative; }
.page-hero figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.page-hero figure::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--red); z-index: -1; opacity: .55; }
.page-hero .tight { max-width: 860px; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero figure::before { inset: 12px -10px -10px 12px; } }

/* ---------- treatment content blocks */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line-2); }
.checklist li { position: relative; padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 14px; height: 8px; border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red); transform: rotate(-45deg); }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }

.block { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; }
.block-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 80px); }
.block-grid > h2 { position: sticky; top: 110px; align-self: start; }
@media (max-width: 860px) { .block-grid { grid-template-columns: 1fr; } .block-grid > h2 { position: static; } }

.bullets { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.bullets li { position: relative; padding-left: 22px; color: var(--ink); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: var(--red); }
@media (max-width: 600px) { .bullets { grid-template-columns: 1fr; } }

.steps { list-style: none; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, cjk-ideographic); font: 600 1.7rem/1.1 var(--font-display); color: var(--red); }
.steps h3 { font-size: 1.2rem; margin-bottom: 4px; }
.steps p { margin: 0; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-2); }
.compare > div { padding: 26px 28px; min-width: 0; }
.compare > div + div { border-left: 1px solid var(--line-2); background: var(--paper-2); }
.compare h3 { font-size: 1.2rem; margin-bottom: 14px; }
.compare > div:first-child h3 { color: var(--red); }
.compare ul { list-style: none; display: grid; gap: 10px; }
.compare li { padding-left: 22px; position: relative; }
.compare li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1px; background: currentColor; opacity: .6; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line-2); } }

.mini-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.mini-cards > div { padding: 22px 28px 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.mini-cards > div:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.mini-cards h3 { font-size: 1.15rem; margin-bottom: 6px; }
.mini-cards p { margin: 0; font-size: .97rem; }
@media (max-width: 640px) { .mini-cards { grid-template-columns: 1fr; } .mini-cards > div:nth-child(even) { padding-left: 0; border-left: 0; } }

.cases { display: grid; gap: 16px; }
.case { border: 1px solid var(--line-2); }
.case > h3 { padding: 18px 24px; font-size: 1.25rem; border-bottom: 1px solid var(--line-2); background: var(--paper-2); }
.case .compare { border: 0; }

.figure-block { margin: 0; }
.figure-block img { width: 100%; max-width: 640px; }
.figure-block figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); max-width: 640px; }

/* ---------- FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; font: 600 1.15rem/1.4 var(--font-display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-sans); color: var(--red); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; max-width: 70ch; }
.faq details > div p { margin: 0; }

/* ---------- forms */
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(194,47,53,.14); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.options label { margin: 0; position: relative; }
.field .options input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.options span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .92rem; cursor: pointer; background: #fff; color: var(--ink); }
.options input:checked + span { border-color: var(--red); color: var(--red); background: #fdf3f3; }
.options input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.form-panel { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.error { color: var(--red-ink); font-size: .9rem; margin: 0; }

/* ---------- blog article */
.article { padding-block: clamp(36px, 5vw, 72px) var(--section); }
.article header { max-width: 820px; margin-bottom: 40px; }
.article header time { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.article h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.12; margin: 14px 0 0; }
.article .cover { margin: 0 0 48px; max-width: 980px; }
.article .cover img { width: 100%; max-height: 480px; object-fit: cover; }
.article-body { max-width: 70ch; font-size: 1.08rem; }
.article-body h2 { font-size: 1.75rem; margin: 2em 0 .6em; }
.article-body h3 { font-size: 1.35rem; margin: 1.8em 0 .5em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .4em; }
.article-body blockquote { margin: 1.6em 0; padding-left: 24px; border-left: 2px solid var(--red); font: 500 1.2rem/1.6 var(--font-display); color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-aside { margin-top: 56px; padding: 28px 32px; background: var(--paper-2); border-left: 2px solid var(--red); max-width: 70ch; }
.article-aside h2 { font-size: 1.4rem; margin-bottom: 8px; }

/* ---------- footer */
.site-footer { background: var(--night); color: var(--on-night-2); padding-block: clamp(64px, 8vw, 104px) 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--night-line); }
.footer-grid img { width: 170px; margin-bottom: 22px; }
.footer-grid h2 { font: 500 .76rem/1.2 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-night); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--on-night-2); text-decoration: none; }
.footer-grid a:hover { color: var(--on-night); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding-top: 24px; font-size: .84rem; }
.footer-bottom a { color: var(--on-night-2); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-grid > div:first-child { grid-column: auto; } }

/* ---------- floating WhatsApp + cookie notice */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: .92rem;
  box-shadow: 0 8px 24px rgba(20,16,16,.22); transition: background-color .2s;
}
.wa-float:hover { background: #000; }
.wa-float svg { width: 22px; height: 22px; color: #3ccf6a; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

.cookie {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  max-width: 420px; background: var(--paper); border: 1px solid var(--line-2); padding: 20px 22px; font-size: .9rem;
  box-shadow: 0 12px 32px rgba(20,16,16,.14);
}
.cookie p { margin: 0 0 14px; }
.cookie .btn { padding: .65em 1.1em; font-size: .88rem; }
@media (max-width: 520px) { .cookie { right: 16px; max-width: none; bottom: 84px; } }

/* ---------- utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gallery figure { margin: 0; min-width: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.gallery figcaption { margin-top: 10px; font-size: .92rem; }
.gallery figcaption b { display: block; font: 600 1.08rem/1.3 var(--font-display); color: var(--ink); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.notice { padding: 18px 22px; border-left: 2px solid var(--red); background: var(--paper-2); font-size: .95rem; }
.az { columns: 3 220px; column-gap: 40px; list-style: none; }
.az li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }
.az a { text-decoration: none; color: var(--ink); font-weight: 500; }
.az a:hover { color: var(--red); }
.need-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 72px); padding-block: 48px; border-top: 1px solid var(--line-2); scroll-margin-top: 100px; }
.need-section h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.need-section .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .need-section { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .need-section .card-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .hero-media .vlabel span { display: none; } .hero-media .vlabel { justify-content: flex-start; } }


/* ---------- rounded photography */
.hero-media img, .page-hero figure img, .feature-card .ph, .lead-doctor img, .team-strip img, .member img,
.support-grid img, .gallery img, .split img, .post-card img, .article .cover img, .figure-block img,
.mosaic figure, .single-quote + * img { border-radius: var(--radius-img); }
.feature-card .ph { overflow: hidden; }
.page-hero figure::before { border-radius: calc(var(--radius-img) + 2px); }
.t-card { border-radius: var(--radius-img); overflow: hidden; }
.mini-member { border-radius: 12px; }
.mini-member img { border-radius: 8px; }
.compare, .case, .form-panel, .article-aside, .notice { border-radius: 12px; }
.compare, .case { overflow: hidden; }
.case .compare { border-radius: 0; }
.cookie { border-radius: 12px; }
.field input, .field select, .field textarea { border-radius: 8px; }

/* ---------- motion
   Hero enters on load; sections reveal as they scroll into view (site.js adds .reveal / .in);
   cards and photos respond on hover. Everything is switched off for reduced-motion users. */
@keyframes ichi-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes ichi-unveil { from { clip-path: inset(0 0 0 100% round var(--radius-img)); } to { clip-path: inset(0 0 0 0 round var(--radius-img)); } }
@keyframes ichi-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes ichi-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page-hero .crumbs, .page-hero .eyebrow, .page-hero h1, .page-hero .lead, .page-hero .btn-row, .page-hero .chips,
  .article header { animation: ichi-rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero-copy > :nth-child(2), .page-hero h1 { animation-delay: .1s; }
  .hero-copy > :nth-child(3), .page-hero .lead { animation-delay: .22s; }
  .hero-copy > :nth-child(4), .page-hero .btn-row, .page-hero .chips { animation-delay: .34s; }
  .hero-media, .page-hero figure { position: relative; }
  .hero-media img, .page-hero figure img { animation: ichi-unveil 1.3s cubic-bezier(.7, 0, .2, 1) .15s backwards; }
  .hero-media { overflow: visible; }
  .hero-media .vlabel b { animation: ichi-drop .9s ease .9s backwards; }
  .trust-item { animation: ichi-rise .8s cubic-bezier(.2, .7, .2, 1) backwards; }
  .trust-item:nth-child(1) { animation-delay: .45s; }
  .trust-item:nth-child(2) { animation-delay: .55s; }
  .trust-item:nth-child(3) { animation-delay: .65s; }
  .page-hero figure::before { animation: ichi-rise 1s ease .7s backwards; }

  html .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  html .reveal.in { opacity: 1; transform: none; }

  .t-card, .post-card, .feature-card, .tech, .mini-member, .need { transition: transform .4s ease, box-shadow .4s ease, border-color .2s; }
  .t-card:hover, .mini-member:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(31, 28, 28, .1); }
  .post-card:hover, .feature-card:hover { transform: translateY(-4px); }
  .post-card img, .t-card img, .gallery img, .mosaic img, .team-strip img, .member img { transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .3s; }
  .post-card:hover img, .t-card:hover img, .gallery figure:hover img, .mosaic figure:hover img { transform: scale(1.05); }
  .gallery figure, .post-card { overflow: visible; }
  .gallery figure > img, .post-card > img { clip-path: inset(0 round var(--radius-img)); }
  .team-strip a { overflow: hidden; border-radius: var(--radius-img); }
  .team-strip a:hover img { transform: translateY(-6px) scale(1.03); }
  .tech:hover img { transform: rotate(-6deg) scale(1.08); }
  .tech img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .btn svg, .link-arrow svg { transition: transform .3s ease; }
  .btn:hover svg, .link-arrow:hover svg { transform: translateX(4px); }
  .chip { transition: border-color .2s, color .2s, transform .25s ease; }
  .chip:hover { transform: translateY(-2px); }
  .wa-float { animation: ichi-rise .7s ease 1.4s backwards; }
  .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(60, 207, 106, .45); animation: ichi-pulse 2.8s ease-out 2.2s 3; pointer-events: none; }
}
@keyframes ichi-pulse { 0% { box-shadow: 0 0 0 0 rgba(60, 207, 106, .45); } 100% { box-shadow: 0 0 0 16px rgba(60, 207, 106, 0); } }

/* ---------------- review v3: byline, cookie preferences link, article chips */
.byline { margin-top: 14px; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.linklike { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--on-night-2); cursor: pointer; text-align: left; }
.linklike:hover, .linklike:focus-visible { color: var(--on-night); text-decoration: underline; }
.chip-art { border-style: dashed; color: var(--muted); }
.chip-art:hover { color: var(--red); }

/* ---------------- team of 8: rows stay balanced, a short last row is centered */
.team-strip { display: flex; flex-wrap: wrap; gap: 14px; }
.team-strip a { flex: 0 0 calc((100% - (var(--n, 6) - 1) * 14px) / var(--n, 6)); }
@media (max-width: 860px) {
  .team-strip { justify-content: center; }
  .team-strip a { flex-basis: calc((100% - 28px) / 3); }
}
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 32px; }
.team-grid .member { flex: 0 0 calc((100% - 96px) / 4); }
@media (max-width: 1100px) { .team-grid .member { flex-basis: calc((100% - 64px) / 3); } }
@media (max-width: 960px) { .team-grid .member { flex-basis: calc((100% - 32px) / 2); } }
@media (max-width: 560px) { .team-grid .member { flex-basis: 100%; } }
