/* 2026-11-13: new MV with the established lower-page design preserved.
   Limit lower-page changes to gothic headings and consistent care labels.
   Local A/B/C URLs exist only for the client's static MV comparisons. */
body.home {
  --heading-font:'Onaga Zen Kaku Gothic New',var(--sans);
  --serif:var(--heading-font);
}
/* Keep the surrounding header and reservation UI consistent in local comparisons. */
body.home.onaga-design-a {
  --brand-main:#9b8666;
  --brand-action:#856c4e;
  --brand-dark:#534c42;
  --brand-secondary:#786b5a;
  --brand-soft:#daccb8;
  --brand-pale:#f3ede3;
  --brand-surface:#faf7f1;
  --heading-primary:#534c42;
  --heading-secondary:#6f614e;
  --line:#e2d9cc;
  --sand:#ded3c4;
}
body.home.onaga-design-b {
  --brand-main:#94b84a;
  --brand-action:#607a34;
  --brand-dark:#405a35;
  --brand-secondary:#65764b;
  --brand-soft:#d1e3ac;
  --brand-pale:#eef5df;
  --brand-surface:#f8faf2;
  --brand-paper:#fafbf6;
  --heading-primary:#405a35;
  --heading-secondary:#5e7241;
  --line:#dce5cd;
  --sand:#dce7c8;
}
body:is(.onaga-design-a,.onaga-design-b) .header-phone { color:var(--brand-action); }
body:is(.onaga-design-a,.onaga-design-b) .side-actions a { box-shadow:inset 0 0 0 1px var(--brand-soft),0 6px 20px rgb(60 65 45 / 10%); }
.clinic-hero {
  --hero-accent:#2d8066;
  --hero-ink:#285247;
  --hero-pale:#ebf3ef;
  --hero-warm:#f7f4ee;
  --hero-line:#c4d8ce;
  --hero-font:var(--heading-font);
  --body-copy:#454e49;
  background:#fff;
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.onaga-design-a .clinic-hero {
  --hero-accent:#856c4e;
  --hero-ink:#534c42;
  --hero-pale:#f3ede3;
  --hero-warm:#faf7f1;
  --hero-line:#d9cbb8;
  --hero-font:'Onaga Noto Sans Review',var(--sans);
}
.onaga-design-b .clinic-hero {
  --hero-accent:#597b3e;
  --hero-ink:#405a35;
  --hero-pale:#eef4e2;
  --hero-warm:#edf5d6;
  --hero-line:#cbd9b4;
  --hero-font:'Onaga Rounded Review',var(--sans);
}
.clinic-hero__inner {
  width:min(1248px,calc(100% - 240px));
  margin:auto;
  padding:48px 0 36px;
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
  grid-template-areas:'copy media' 'actions media' 'care care';
  column-gap:72px;
}
.clinic-hero__copy { grid-area:copy; min-width:0; padding-top:8px; }
.clinic-hero__eyebrow {
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 24px;
  font:500 13px/1.8 var(--sans);
  letter-spacing:.08em;
  color:var(--hero-ink);
}
.clinic-hero__eyebrow::before { content:''; width:24px; height:2px; background:var(--hero-accent); }
.home .clinic-hero h1 {
  margin:0;
  color:var(--hero-ink);
  font:500 clamp(34px,3.7vw,52px)/1.5 var(--hero-font);
  letter-spacing:.015em;
  text-shadow:none;
  font-synthesis:none;
}
.clinic-hero__opening { display:block; margin-bottom:10px; font-size:.56em; line-height:1.6; letter-spacing:.025em; }
.clinic-hero__message { display:block; }
.clinic-hero__message > span { display:block; white-space:nowrap; }
.clinic-hero__support {
  max-width:28em;
  margin:24px 0 0;
  color:var(--body-copy);
  font:400 16px/1.95 var(--sans);
  text-wrap:pretty;
}
.clinic-hero__support .intro-phrase { display:inline-block; max-width:100%; }
.clinic-hero__media { grid-area:media; position:relative; min-width:0; margin-top:30px; align-self:start; }
.clinic-hero__media::before { content:''; position:absolute; z-index:-1; inset:-24px -12px 48px 60px; background:var(--hero-warm); }
.clinic-hero__stage { position:relative; isolation:isolate; aspect-ratio:1.62; overflow:hidden; border-radius:6px; background:var(--hero-pale); }
.clinic-hero .hero-slide-photo { object-position:50% 48%; transform-origin:50% 48%; }
.clinic-hero .hero-slide-2 .hero-slide-photo { object-position:55% 50%; }
.clinic-hero[data-hero-ready=true] .hero-slide.is-active .hero-slide-photo,
.clinic-hero[data-hero-ready=true] .hero-slide.is-leaving .hero-slide-photo { animation:hero-drift 8.2s linear both; }
.clinic-hero[data-paused=true] .hero-slide-photo { animation-play-state:paused!important; }
.clinic-hero__photo-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:48px; }
.clinic-hero__caption { display:flex; gap:12px; margin:0; color:#59655e; font:400 13px/1.5 var(--sans); }
.clinic-hero__photo-label { color:#707870; }
.clinic-hero__controls { display:flex; align-items:center; gap:8px; }
.clinic-hero__count { color:var(--hero-ink); font:400 12px/1 var(--sans); font-variant-numeric:tabular-nums; }
.clinic-hero__count > span:last-child { color:#737b75; }
.clinic-hero__selectors { display:flex; }
.clinic-hero__selectors button { display:flex; align-items:center; justify-content:center; width:32px; min-height:44px; padding:5px; background:none; border:0; }
.clinic-hero__selectors button span { width:100%; height:2px; background:#a3b7aa; }
.clinic-hero__selectors button[aria-pressed=true] span { height:3px; background:var(--hero-accent); }
.clinic-hero__play { display:flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; background:none; color:var(--hero-ink); border:0; }
.clinic-hero[data-paused=true] .hero-play-icon { width:0; height:0; margin-left:3px; border:6px solid transparent; border-left:9px solid currentColor; border-right:0; }
.clinic-hero__actions { grid-area:actions; display:flex; flex-wrap:wrap; align-items:center; gap:16px 24px; margin-top:28px; }
.clinic-hero__visit { display:inline-flex; align-items:center; justify-content:space-between; gap:30px; min-height:52px; padding:10px 18px 10px 24px; background:var(--hero-accent); color:#fff; border:1px solid var(--hero-accent); border-radius:5px; font:500 15px/1.6 var(--sans); text-decoration:none; }
.clinic-hero__visit .circle-arrow { background:none; border:0; width:20px; height:20px; }
.clinic-hero__visit .icon { filter:brightness(0) invert(1); opacity:1; }
.onaga-design-b .clinic-hero__visit,
.onaga-design-b .side-actions .side-booking,
.onaga-design-b .mobile-actions button { background:#d9eaa1; border-color:#d9eaa1; color:#405a35; }
.onaga-design-b .clinic-hero__visit .icon,
.onaga-design-b .side-actions .side-booking .icon,
.onaga-design-b .mobile-actions button .icon { filter:brightness(0); opacity:.72; }
.clinic-hero__hours { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--hero-ink); font:500 13px/1.5 var(--sans); }
.clinic-hero__hours > .icon { width:16px; height:16px; filter:brightness(0); opacity:.6; }
.clinic-hero__hours .circle-arrow { display:none; }
.clinic-hero__care { grid-area:care; display:grid; grid-template-columns:210px 1fr; gap:32px; margin-top:28px; padding-top:24px; border-top:1px solid var(--hero-line); }
.clinic-hero__care-heading p { margin:0 0 3px; font:500 13px/1.5 var(--sans); color:var(--hero-ink); }
.clinic-hero__care-heading a { display:inline-flex; align-items:center; gap:18px; min-height:32px; color:#626a63; font:400 13px/1.6 var(--sans); }
.clinic-hero__care-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.clinic-hero__care-links a { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; padding:0 8px 0 22px; border-left:1px solid var(--hero-line); color:var(--hero-ink); font:500 22px/1.5 var(--hero-font); }
.clinic-hero__care-links .circle-arrow { width:26px; height:26px; background:none; border:0; }
.clinic-hero__care-links .icon { filter:brightness(0); opacity:.65; }
.clinic-hero a:focus-visible,
.clinic-hero button:focus-visible { outline:2px solid var(--hero-accent); outline-offset:4px; }
@media(hover:hover) {
  .clinic-hero a:hover { color:var(--hero-ink); text-decoration:underline; text-underline-offset:5px; }
  .clinic-hero .clinic-hero__visit:hover { background:var(--hero-ink); color:#fff; }
  .onaga-design-b .clinic-hero .clinic-hero__visit:hover { background:#cbdc91; color:#405a35; }
  .clinic-hero__selectors button:hover span { background:var(--hero-accent); }
}

/* Keep the existing backgrounds, photography, panels and section spacing.
   Only the requested heading family and the care labels are aligned below MV. */
.home .menu-caption { font-family:var(--sans); font-size:10px; }
.home main h2,
.home main h3,
.home .visit-section h2 { font-family:var(--heading-font); font-weight:500; }
.home .care-pillar .care-pillar-label,
.home .care-pillar:nth-child(-n+2) .care-pillar-label {
  color:var(--brand-secondary);
  font-weight:400;
  font-size:14px;
}

@media(min-width:768px) and (max-width:1100px) {
  .clinic-hero__inner { width:calc(100% - 80px); column-gap:36px; padding-top:40px; }
  .home .clinic-hero h1 { font-size:clamp(27px,3.6vw,38px); letter-spacing:0; }
  .clinic-hero__eyebrow { margin-bottom:20px; font-size:12px; }
  .clinic-hero__support { font-size:15px; margin-top:18px; }
  .clinic-hero__media { margin-top:42px; }
  .clinic-hero__photo-label { display:none; }
  .clinic-hero__caption { font-size:11px; }
  .clinic-hero__actions { margin-top:20px; gap:10px 20px; }
  .clinic-hero__visit { min-height:48px; font-size:14px; }
  .clinic-hero__care { margin-top:28px; grid-template-columns:168px 1fr; gap:16px; }
  .clinic-hero__care-links { gap:14px; }
  .clinic-hero__care-links a { font-size:19px; padding-left:14px; }

}
@media(max-width:767px) {
  .clinic-hero__inner { width:calc(100% - 44px); padding:24px 0 24px; display:flex; flex-direction:column; }
  .clinic-hero__copy { padding-top:0; }
  .clinic-hero__eyebrow { font-size:11px; letter-spacing:.04em; gap:10px; margin-bottom:14px; }
  .clinic-hero__eyebrow::before { width:20px; }
  .home .clinic-hero h1 { font-size:clamp(27px,8vw,35px); line-height:1.5; letter-spacing:.025em; }
  .clinic-hero__opening { font-size:.58em; margin-bottom:7px; }
  .clinic-hero__support { max-width:26em; margin-top:12px; font-size:14px; line-height:1.9; }
  .clinic-hero__media { margin:16px 0 0; width:100%; }
  .clinic-hero__media::before { inset:0 0 44px; }
  .clinic-hero__stage { aspect-ratio:2.05; border-radius:4px; }
  .clinic-hero__photo-footer { min-height:44px; }
  .clinic-hero__caption { font-size:12px; gap:10px; }
  .clinic-hero__controls { gap:4px; }
  .clinic-hero__count { font-size:11px; }
  .clinic-hero__selectors button { width:28px; }
  .clinic-hero__actions { margin-top:8px; gap:14px; flex-wrap:nowrap; }
  .clinic-hero__visit { flex:1; min-height:48px; gap:8px; padding:8px 12px; font-size:13px; }
  .clinic-hero__hours { font-size:12px; gap:5px; }
  .clinic-hero__hours > .icon { width:14px; height:14px; }
  .clinic-hero__care { display:block; margin-top:16px; padding-top:16px; }
  .clinic-hero__care-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
  .clinic-hero__care-heading p { font-size:12px; margin:0; }
  .clinic-hero__care-heading a { font-size:12px; gap:10px; }
  .clinic-hero__care-links { gap:0; margin-top:10px; }
  .clinic-hero__care-links a { padding:0 8px; min-height:44px; gap:5px; font-size:16px; justify-content:center; }
  .clinic-hero__care-links a:first-child { border-left:0; padding-left:0; }
  .clinic-hero__care-links a:last-child { padding-right:0; }
  .clinic-hero__care-links .circle-arrow { width:14px; height:18px; }
  .clinic-hero__care-links .icon { width:12px; height:12px; }

}
@media(max-width:374px) {
  .clinic-hero__inner { width:calc(100% - 36px); }
  .home .clinic-hero h1 { font-size:26px; letter-spacing:0; }
  .clinic-hero__support { font-size:13px; }
  .clinic-hero__photo-label { display:none; }
  .clinic-hero__actions { gap:10px; }
  .clinic-hero__visit { padding-inline:10px; font-size:12px; }
  .clinic-hero__hours { font-size:12px; }
  .clinic-hero__hours > .icon { display:none; }
  .clinic-hero__care-links a { font-size:14px; }
}

/* Pattern 2: the palette is shared with interior pages in sitewide-design.css. */
.home:not([class*="onaga-design-"]) .clinic-hero {
  --hero-accent:var(--brand-action);
  --hero-ink:var(--brand-dark);
  --hero-pale:var(--brand-pale);
  --hero-warm:var(--brand-pale);
  --hero-line:var(--line);
  background:var(--brand-paper);
}
.home:not([class*="onaga-design-"]) .clinic-hero h1 { font-weight:700; line-height:1.24; }
.home:not([class*="onaga-design-"]) .clinic-hero__opening { margin-bottom:.32em; font-size:.54em; font-weight:500; }
.home:not([class*="onaga-design-"]) .clinic-hero__eyebrow::before { background:var(--brand-main); }
.home:not([class*="onaga-design-"]) .clinic-hero__media { z-index:0; }
.home:not([class*="onaga-design-"]) .clinic-hero__media::before {
  inset:-20px min(-16px,calc((100vw - 100%) / -2)) -30px 28%;
  border-radius:22px 0 0 100px;
  background:var(--hero-warm);
}
.home:not([class*="onaga-design-"]) .clinic-hero__stage {
  aspect-ratio:3 / 2;
  border-radius:0;
  box-shadow:0 6px 18px rgb(54 79 44 / 10%);
}
.home:not([class*="onaga-design-"]) .clinic-hero .hero-slide .hero-slide-photo {
  object-fit:contain;
  object-position:center;
  transform:none;
  animation:none;
}
.home .home-features .feature-reasons li:nth-child(2) > .reason-photo {
  height:auto;
  aspect-ratio:3 / 2;
}
.home .home-features .feature-reasons li:nth-child(2) > .reason-photo img {
  object-fit:contain;
  object-position:center;
}
@media(min-width:768px) {
  .home .home-features .feature-reasons li:nth-child(2) > .reason-body {
    grid-column:1 / 6;
  }
}
.home:not([class*="onaga-design-"]) .clinic-hero__caption,
.home:not([class*="onaga-design-"]) .clinic-hero__photo-label,
.home:not([class*="onaga-design-"]) .clinic-hero__count > span:last-child,
.home:not([class*="onaga-design-"]) .clinic-hero__care-heading a { color:var(--muted); }
.home:not([class*="onaga-design-"]) .clinic-hero__selectors button span { background:var(--brand-soft); }
.home:not([class*="onaga-design-"]) .clinic-hero__selectors button[aria-pressed=true] span { background:var(--brand-action); }
.home:not([class*="onaga-design-"]) .clinic-hero__hours { text-decoration:underline; text-decoration-color:var(--brand-soft); text-underline-offset:5px; }
.home-care-shortcuts {
  --hero-ink:var(--brand-dark);
  --hero-line:var(--line);
  --hero-font:var(--heading-font);
  padding-block:18px 42px;
}
.home-care-shortcuts .clinic-hero__care { margin:0; border:0; }
.home:not([class*="onaga-design-"]) .home-news { background:var(--brand-paper); }
.home:not([class*="onaga-design-"]) .header-phone { color:var(--brand-dark); }
.home:not([class*="onaga-design-"]) .side-actions a { box-shadow:inset 0 0 0 1px var(--sand),0 6px 20px rgb(54 79 44 / 9%); }
.home:not([class*="onaga-design-"]) ::selection { background:var(--brand-pale); color:var(--brand-dark); }

.home:not([class*="onaga-design-"]) .home-features {
  --feature-sage:#78933f;
  background:linear-gradient(110deg,var(--brand-surface),var(--brand-pale) 70%,var(--brand-surface));
}
.home:not([class*="onaga-design-"]) .home-features .features-heading-numbered .section-kicker { margin-left:0; }
.home:not([class*="onaga-design-"]) .home-features .features-heading > .features-intro { border-color:var(--sand); }
.home:not([class*="onaga-design-"]) .home-features .features-title-number {
  position:static;
  transform:none;
  font:500 clamp(78px,8vw,124px)/1 var(--heading-font);
  letter-spacing:-.04em;
  color:var(--feature-sage);
}
.home:not([class*="onaga-design-"]) .home-features .features-title-art {
  grid-template-columns:max-content minmax(0,1fr);
  gap:0 clamp(16px,2vw,32px);
  min-height:0;
}
.home:not([class*="onaga-design-"]) .home-features .features-heading h2,
.home:not([class*="onaga-design-"]) .home-features .feature-reasons h3 { font-family:var(--heading-font); }
.home:not([class*="onaga-design-"]) .home-features .reason-number,
.home:not([class*="onaga-design-"]) .home-features .feature-reasons li:nth-child(2) .reason-number {
  font-family:var(--heading-font);
  color:var(--brand-secondary);
}
.home:not([class*="onaga-design-"]) .care-pillar .text-link,
.home:not([class*="onaga-design-"]) .home-examinations .exam-copy .text-link,
.home:not([class*="onaga-design-"]) .home-directory .tab-buttons button:not([aria-selected=true]),
.home:not([class*="onaga-design-"]) .home-directory .directory-list a { border-color:var(--sand); }
.home:not([class*="onaga-design-"]) .home-directory .directory-list a:hover,
.home:not([class*="onaga-design-"]) .home-directory .directory-list a:focus-visible,
.home:not([class*="onaga-design-"]) .home-directory .tab-buttons button:not([aria-selected=true]):hover { border-color:var(--brand-action); }
.home:not([class*="onaga-design-"]) .home-features .reason-link:hover,
.home:not([class*="onaga-design-"]) .home-features .feature-reasons li:nth-child(2) .reason-link:hover { color:var(--brand-dark); }

@media(min-width:768px) {
  .home:not([class*="onaga-design-"]) .clinic-hero__inner {
    grid-template-columns:minmax(0,.84fr) minmax(0,1fr);
    column-gap:clamp(28px,3.3vw,52px);
  }
  .home:not([class*="onaga-design-"]) .clinic-hero__media {
    align-self:center;
    margin-top:0;
  }
}
@media(min-width:1101px) {
  .home:not([class*="onaga-design-"]) .clinic-hero__inner {
    grid-template-areas:"copy media" "actions media";
    padding-block:64px;
  }
}

@media(max-width:767px) {
  .home:not([class*="onaga-design-"]) .clinic-hero__media {
    align-self:center;
    width:calc(100% + 24px);
  }
  .home:not([class*="onaga-design-"]) .clinic-hero__photo-footer { padding-inline:8px; }
  .home:not([class*="onaga-design-"]) .clinic-hero__media::before {
    inset:-10px -24px 6px 43%;
    border-radius:60px 0 0;
  }
  .home .home-features .feature-reasons li:nth-child(2) > .reason-body { margin-top:0; }
  .home-care-shortcuts { padding-block:6px 24px; }
  .home:not([class*="onaga-design-"]) .home-features .features-title-number { font-size:clamp(70px,18vw,96px); }
  .home:not([class*="onaga-design-"]) .home-features .features-title-art { column-gap:14px; }
}

/* TOP care heading and symptom categories. */
.home .care-heading-break { display:none; }
.home .home-directory .symptom-group > .directory-group-title {
  padding:.5em .8em;
  border:0;
  border-inline-start:3px solid var(--brand-soft);
  background:var(--brand-surface);
  color:var(--brand-dark);
  font-weight:700;
}
@media (max-width:767px) {
  .home .care-heading-break { display:inline; }
}

/* Crop the supplied canvas to its printed frame. Coordinates are original pixels. */
.home .home-slt-banner {
  --canvas-width:1200;
  --frame-left:18;
  --frame-top:169;
  --frame-width:1164;
  --frame-height:300;
  --frame-radius:14;
  position:relative;
  display:block;
  max-width:1054px;
  margin:clamp(24px,3.5vw,52px) auto 0;
  aspect-ratio:var(--frame-width) / var(--frame-height);
  border-radius:calc(100% * var(--frame-radius) / var(--frame-width)) / calc(100% * var(--frame-radius) / var(--frame-height));
  overflow:hidden;
}
.home .home-slt-banner picture { display:block; }
.home .home-slt-banner img {
  position:absolute;
  display:block;
  top:calc(-100% * var(--frame-top) / var(--frame-height));
  left:calc(-100% * var(--frame-left) / var(--frame-width));
  width:calc(100% * var(--canvas-width) / var(--frame-width));
  max-width:none;
  height:auto;
}
.home .home-slt-banner:focus-visible { outline:3px solid var(--brand-dark); outline-offset:3px; }
@media (max-width:767px) {
  .home .home-slt-banner {
    --canvas-width:1200;
    --frame-left:129;
    --frame-top:25;
    --frame-width:941;
    --frame-height:852;
    --frame-radius:40;
    max-width:500px;
  }
}
