:root {
  --ink: #172026;
  --muted: #5d6870;
  --green: #507843;
  --green-dark: #31562c;
  --green-soft: #e9f0e4;
  --lime: #d8ee9b;
  --paper: #fbfcf8;
  --white: #fff;
  --line: #dce4dc;
  --shadow: 0 18px 45px rgba(36, 62, 35, .10);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--green); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid #f0b84b; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 26px;
  min-height: 76px;
  padding: 10px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(23,32,38,.08);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 172px; height: auto; }
.desktop-nav { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.desktop-nav a { color: #3e4a51; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.desktop-nav a[aria-current="page"] { color: var(--green-dark); }
.header-cta, .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}
.button:hover, .header-cta:hover { background: var(--green-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--green-dark); }
.button.secondary:hover { background: var(--green-soft); }
.menu-toggle { display: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-weight: 800; }
.mobile-menu { display: none; }

.hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #5f8656;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37,84,43,.86) 0%, rgba(71,118,61,.70) 48%, rgba(208,224,190,.40) 100%), url('./hero-cells.png') center/cover;
}
.hero-inner { position: relative; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 92px 0 116px; }
.eyebrow { margin: 0 0 10px; color: var(--green); font-size: 13px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); font-size: 17px; letter-spacing: .01em; text-transform: none; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(38px, 6vw, 70px); line-height: 1.16; letter-spacing: -.045em; }
.hero-slogan { margin: 15px 0 0; font-size: clamp(21px, 2vw, 29px); font-weight: 850; }
.hero-lead { max-width: 750px; margin: 20px 0 0; font-size: 18px; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .button.secondary { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.12); color: #fff; }
.hero-actions .button.secondary:hover { background: rgba(255,255,255,.22); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; margin: 46px 0 0; padding: 0; }
.hero-facts > div { padding: 18px; border: 1px solid rgba(255,255,255,.32); border-radius: 12px; background: rgba(255,255,255,.10); }
.hero-facts dt { font-size: 23px; font-weight: 900; }
.hero-facts dd { margin: 2px 0 0; font-size: 13px; }

.home-entry { position: relative; z-index: 2; width: min(1050px, calc(100% - 48px)); margin: -55px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.entry-card { display: block; padding: 26px; border-left: 4px solid var(--green); border-radius: 12px; background: #fff; box-shadow: var(--shadow); text-decoration: none; }
.entry-card small { color: var(--green); font-weight: 900; letter-spacing: .05em; }
.entry-card strong { display: block; margin-top: 6px; color: var(--ink); font-size: 22px; }
.entry-card span { color: var(--muted); }

.section { padding: 92px 24px; }
.section.tint { background: #f0f5ed; }
.section.dark { background: #1e3023; color: #fff; }
.container { width: min(var(--max), 100%); margin: 0 auto; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2, .page-hero h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; letter-spacing: -.035em; }
.section-heading > p:last-child { margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.dark .section-heading > p:last-child { color: #d9e4d6; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card, .service-card { position: relative; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 10px 26px rgba(36,62,35,.06); }
a.card, a.service-card { color: inherit; text-decoration: none; }
a.card:hover, a.service-card:hover { border-color: #a8bf9f; transform: translateY(-2px); }
.card-number { display: block; margin-bottom: 25px; color: var(--green); font-size: 14px; font-weight: 900; }
.card h3, .service-card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.45; }
.card p, .service-card p { margin: 0; color: var(--muted); }
.text-link { display: inline-block; margin-top: 18px; font-weight: 850; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.split.reverse .media { order: -1; }
.split .media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.answer { margin: 12px 0 22px; padding: 18px 20px; border-left: 4px solid var(--green); background: var(--green-soft); font-weight: 700; }
.notice { padding: 22px 24px; border: 1px solid #d8d9c7; border-radius: 14px; background: #fffee9; }
.notice strong { display: block; margin-bottom: 4px; }
.check-list, .link-list { padding-left: 1.25em; }
.check-list li, .link-list li { margin: 8px 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tag-list li { padding: 5px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: 13px; font-weight: 800; }

.page-hero { padding: 64px 24px 52px; background: linear-gradient(140deg, #e9f2e4, #f9fbf6 65%); }
.page-hero .container { max-width: var(--max); }
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #99a19e; }
.page-hero .lede { max-width: 780px; margin: 18px 0 0; color: #435149; font-size: 18px; font-weight: 650; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 58px; align-items: start; }
.article { max-width: 800px; }
.article section { scroll-margin-top: 98px; margin-bottom: 58px; }
.article h2 { margin: 0 0 14px; font-size: 30px; line-height: 1.4; letter-spacing: -.02em; }
.article h3 { margin: 30px 0 8px; font-size: 21px; line-height: 1.5; }
.article p { margin: 0 0 15px; }
.article table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; }
.article th, .article td { padding: 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article th { background: var(--green-soft); }
.article dl { margin: 0; }
.article dt { margin-top: 18px; font-weight: 900; }
.article dd { margin: 4px 0 0; color: var(--muted); }
.policy-list { margin: 24px 0 0; padding-left: 1.6em; }
.policy-list > li { margin-bottom: 24px; padding-left: .35em; }
.policy-list li::marker { color: var(--green-dark); font-weight: 900; }
.policy-list li p { margin: 10px 0 0; }
.policy-list ol { margin-top: 12px; padding-left: 1.6em; }
.policy-list ol li { margin: 8px 0; }
.privacy-notes { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.privacy-notes p:last-child { margin-bottom: 0; }
.form-note { color: var(--muted); }
.required-mark,
.field em,
.consent-box em {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  background: #a64232;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.65;
  vertical-align: .1em;
}
.reservation-form { display: grid; gap: 28px; margin-top: 28px; }
.reservation-form fieldset { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.reservation-form legend { padding: 0 8px; color: var(--green-dark); font-size: 21px; font-weight: 900; }
.reservation-form fieldset > p { margin: 0 0 18px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 7px; font-weight: 800; }
.field.full { grid-column: 1 / -1; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #b8c5ba;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--green); outline: 3px solid rgba(80,120,67,.18); }
.consent-box { padding: 20px 22px; border-radius: 12px; background: var(--green-soft); }
.consent-box label { display: flex; gap: 10px; align-items: flex-start; font-weight: 750; }
.consent-box input { width: 20px; height: 20px; margin-top: 4px; flex: 0 0 auto; accent-color: var(--green); }
.form-submit { width: 100%; min-height: 58px; border: 0; cursor: pointer; font-size: 17px; }
.toc { position: sticky; top: 104px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.toc strong { display: block; margin-bottom: 8px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--green-dark); }

.flow-list { counter-reset: steps; display: grid; gap: 16px; }
.flow-step { counter-increment: steps; display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.flow-step::before { content: counter(steps, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 900; }
.flow-step h3 { margin: 0 0 6px; }
.flow-step p { margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-item h2, .faq-item h3 { margin: 0 0 9px; font-size: 20px; line-height: 1.55; }
.faq-item h2::before, .faq-item h3::before { content: "Q. "; color: var(--green); }
.faq-item p { margin: 0; color: #3f4d46; }

.article address,
.contact-details {
  font-family: inherit;
  font-style: normal;
}
.access-location { align-items: center; }
.access-location .media img { max-width: 320px; margin-left: auto; }

.doctor-card { overflow: hidden; padding: 0; }
.doctor-card img,
.doctor-card .doctor-placeholder {
  width: 148px;
  height: 184px;
  margin: 24px auto 0;
  border-radius: 13px;
  object-fit: cover;
  object-position: center 22%;
  box-shadow: 0 10px 24px rgba(36,62,35,.12);
}
.doctor-card .doctor-copy { padding: 20px 24px 26px; text-align: center; }
.doctor-card .role { margin: 0; color: var(--green); font-size: 13px; font-weight: 900; }
.doctor-placeholder { display: grid; place-items: center; aspect-ratio: 4/3; background: linear-gradient(145deg, #dbe7d6, #f5f8f2); color: var(--green-dark); font-size: 44px; font-weight: 900; }
.profile-lead { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
.profile-lead img { width: 100%; border-radius: 18px; }
.profile-lead .doctor-placeholder { border-radius: 18px; }

.review-box { margin-top: 54px; padding: 24px; border-top: 3px solid var(--green); background: #f4f7f2; }
.review-box p { margin: 4px 0; }
.related { margin-top: 54px; }
.related h2 { font-size: 25px; }
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-links a { display: block; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; text-decoration: none; }

.contact-band { padding: 62px 24px; background: #375d31; color: #fff; }
.contact-band .container { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.contact-band h2 { margin: 0; font-size: clamp(27px, 3vw, 39px); }
.contact-band p { margin: 8px 0 0; color: #e2ecdf; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-band .button { border-color: #fff; background: #fff; color: var(--green-dark); }
.contact-band .button.secondary { background: transparent; color: #fff; }

.site-footer { padding: 58px 24px 30px; background: #172019; color: #dfe7dd; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 58px; width: min(var(--max), 100%); margin: 0 auto; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
}
.site-footer .footer-brand img { width: 180px; filter: none; }
.site-footer address { margin-top: 18px; font-style: normal; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; }
.footer-nav a { color: #dfe7dd; text-decoration: none; }
.footer-note { width: min(var(--max), 100%); margin: 35px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: #aebcae; font-size: 12px; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .mobile-menu { position: fixed; inset: 76px 0 auto; max-height: calc(100vh - 76px); overflow: auto; padding: 18px 24px 28px; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-menu.is-open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 18px; }
  .mobile-menu a { padding: 10px 3px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 800; text-decoration: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-header { min-height: 68px; padding: 9px 16px; gap: 10px; }
  .brand img { width: 132px; }
  .header-cta { min-height: 42px; padding: 8px 11px; font-size: 13px; }
  .menu-toggle { padding: 8px 10px; font-size: 13px; }
  .mobile-menu { top: 68px; max-height: calc(100vh - 68px); grid-template-columns: 1fr !important; }
  .hero { min-height: 680px; }
  .hero-inner { width: min(100% - 36px, var(--max)); padding: 72px 0 95px; }
  .hero h1 { font-size: 39px; }
  .hero-lead { font-size: 16px; }
  .hero-facts { grid-template-columns: 1fr; gap: 8px; margin-top: 34px; }
  .hero-facts > div { padding: 12px 15px; }
  .hero-facts dt { font-size: 19px; }
  .home-entry { grid-template-columns: 1fr; margin-top: -45px; }
  .section { padding: 68px 18px; }
  .card-grid, .card-grid.three { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse .media { order: 0; }
  .access-location .media img { max-width: 300px; margin-left: 0; }
  .page-hero { padding: 42px 18px 38px; }
  .page-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .article h2 { font-size: 26px; }
  .article table { display: block; overflow-x: auto; white-space: nowrap; }
  .profile-lead { grid-template-columns: 1fr; }
  .profile-lead img, .profile-lead .doctor-placeholder { max-width: 180px; }
  .related-links { grid-template-columns: 1fr; }
  .contact-band .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .reservation-form fieldset { padding: 21px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
