:root {
  --ink: #183d2f;
  --ink-soft: #3d5f50;
  --muted: #6f776f;
  --paper: #fbfaf5;
  --paper-deep: #f3efe5;
  --line: #d9d4c6;
  --leaf: #2f6e50;
  --leaf-pale: #e6eee5;
  --wood: #b69b78;
  --max: 1120px;
  --serif: Georgia, 'Times New Roman', 'Noto Serif SC', 'Noto Serif JP', serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans', 'Noto Sans CJK SC', 'Noto Sans CJK JP', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--leaf); }
::selection { background: var(--leaf-pale); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--ink);
  color: #fff;
  padding: .5rem .75rem;
  z-index: 20;
}
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217,212,198,.8);
  background: rgba(251,250,245,.92);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  letter-spacing: .02em;
}
.brand-text strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.brand-text span { font-size: .76rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: .45rem .7rem;
  font: inherit;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--ink); }
.nav-cta {
  border: 1px solid var(--ink);
  padding: .48rem .76rem;
}

main { min-height: 64vh; }
.section, .page-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.75rem 1.2rem;
}
.section-tight { padding-top: 3rem; padding-bottom: 3rem; }
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.7rem 1.2rem 2.35rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.kicker {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.55rem);
  letter-spacing: -.038em;
  max-width: 10.5em;
}
h2 {
  font-size: clamp(1.8rem, 3.7vw, 2.85rem);
  letter-spacing: -.035em;
  max-width: 11em;
}
h3 { font-size: clamp(1.22rem, 2.2vw, 1.72rem); letter-spacing: -.025em; }
h4 { font-size: 1.2rem; }
.lede {
  font-size: clamp(1.02rem, 1.45vw, 1.22rem);
  line-height: 1.55;
  max-width: 760px;
  color: var(--ink-soft);
}
.cn, .jp { color: var(--ink-soft); }
.cn { font-size: .97em; }
.jp { font-size: .97em; }
.small { font-size: .92rem; color: var(--muted); }
.muted { color: var(--muted); }

.hero-card {
  border-left: 1px solid var(--line);
  padding-left: 1.6rem;
  color: var(--ink-soft);
  max-width: 370px;
}
.hero-card .seal {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 2rem;
  border-radius: 50%;
}
.hero-image {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.35rem 5.5rem;
}
.hero-image figure { margin: 0; }
.hero-image img {
  width: 100%;
  border: 1px solid var(--line);
  object-fit: cover;
  max-height: 390px;
}
figcaption {
  margin-top: .8rem;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, .62fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.prose { max-width: 760px; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 1.25rem 0 0; padding-left: 1.1rem; }
.prose li { margin: .55rem 0; }

.panel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
  padding: clamp(1.35rem, 3vw, 2.25rem);
}
.panel-soft { background: var(--paper-deep); }
.panel h3, .panel h4 { margin-bottom: 1rem; }
.rule { border-top: 1px solid var(--line); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
  padding: 1.5rem;
  min-height: 100%;
}
.card .num {
  font-family: var(--serif);
  color: var(--wood);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 2rem;
}
.card p { margin-bottom: 0; }
.card p + p { margin-top: .85rem; }

.portrait-slot {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(230,238,229,.78), rgba(243,239,229,.42)),
    radial-gradient(circle at 24% 20%, rgba(47,110,80,.12), transparent 25%);
  display: flex;
  align-items: end;
  justify-content: start;
  padding: 1rem;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.physician-card h3 { margin-bottom: .35rem; }
.physician-card .role { color: var(--muted); font-size: .93rem; line-height: 1.55; margin-bottom: 1rem; }
.physician-card .actions { margin-top: 1.4rem; }

.button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 42px;
  text-decoration: none;
  font-size: .92rem;
}
.button {
  border: 1px solid var(--ink);
  padding: .68rem 1rem;
  background: var(--ink);
  color: var(--paper);
}
.button:hover { background: var(--leaf); color: #fff; }
.button.secondary {
  background: transparent;
  color: var(--ink);
}
.button.secondary:hover { background: var(--leaf-pale); color: var(--ink); }
.text-button { border-bottom: 1px solid currentColor; }

.details-list { display: grid; gap: .8rem; }
details {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.32);
  padding: 1rem 1.1rem;
}
summary {
  cursor: pointer;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
}
details[open] summary { margin-bottom: .8rem; }
details p { margin: 0 0 1rem; }
details p:last-child { margin-bottom: 0; }

.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.6rem 0 0;
}
.meta-pill {
  border: 1px solid var(--line);
  padding: .35rem .65rem;
  font-size: .82rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,.4);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.2rem;
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
}
.footer h2, .footer h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.footer p { margin: 0 0 .5rem; }
.footer a { color: var(--ink); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 1.2rem 1.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--muted);
  font-size: .82rem;
}

.notice {
  border-left: 3px solid var(--leaf);
  background: var(--leaf-pale);
  padding: 1rem 1.2rem;
}
.price-note {
  border: 1px dashed var(--line);
  padding: 1.3rem;
  background: rgba(255,255,255,.25);
}
.archive-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}
.archive-item:last-child { border-bottom: 1px solid var(--line); }

@media (max-width: 850px) {
  .nav-toggle { display: inline-flex; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: .98rem; }
  .brand-text span { font-size: .7rem; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    padding: .9rem 1.1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .hero { padding-top: 3.6rem; }
  .hero-grid, .split, .grid-2, .grid-3, .footer-inner { grid-template-columns: 1fr; }
  .hero-card { border-left: 0; border-top: 1px solid var(--line); padding: 1.25rem 0 0; max-width: none; }
  .section, .page-section { padding: 3.6rem 1rem; }
  .hero-image { padding: 0 1rem 3.4rem; }
  .hero-image img { max-height: 280px; }
  .archive-item { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.72; }
  .header-inner { padding: .8rem .9rem; }
  h1 { font-size: clamp(2.05rem, 10vw, 2.8rem); letter-spacing: -.03em; }
  h2 { font-size: clamp(1.55rem, 7vw, 2.05rem); }
  h3 { font-size: 1.18rem; }
  .lede { font-size: 1rem; line-height: 1.62; }
  .kicker { margin-bottom: .9rem; }
  .inline-meta { gap: .45rem; }
  .meta-pill { font-size: .78rem; }
  .button, .text-button { width: 100%; justify-content: center; }
  p .button + .button, p .button + .button.secondary { margin-top: .6rem; }
  summary { font-size: .98rem; }
  .footer-inner { padding: 2rem 1rem; }
  .footer-bottom { padding: .8rem 1rem 1.4rem; }
  .fee-list div { display: block; }
  .fee-list strong { display: block; margin-top: .15rem; }
}

@media print {
  .site-header, .footer, .button, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
  .section, .page-section, .hero { padding: 1rem 0; }
}


/* v2 uploaded clinic assets */
.portrait-img {
  width: min(78%, 300px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 0 auto 1.35rem;
  background: var(--paper-deep);
}
.portrait-ng { object-position: 50% 42%; }
.portrait-lim { object-position: 50% 40%; }
.asset-frame {
  margin: 1.4rem 0 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.45);
  padding: .65rem;
}
.asset-frame img {
  width: 100%;
  border: 1px solid rgba(217,212,198,.65);
}
.fee-image img { max-height: 820px; object-fit: contain; background: #fff; }
.transport-image img { max-height: 760px; object-fit: contain; background: #fff; }
.fee-list { margin-bottom: 1.2rem; }
.fee-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.fee-list div:first-child { padding-top: 0; }
.fee-list div:last-of-type { margin-bottom: 1rem; }
.fee-list strong {
  white-space: nowrap;
  font-family: var(--serif);
  font-weight: 500;
}
.location-card .cn { margin-top: .85rem; }
.transport-notes p { margin: 0 0 1rem; }
.transport-notes p:last-child { margin-bottom: 0; }


.transport-collapse { margin-top: 1rem; }
.transport-collapse summary { font-size: .95rem; }
.compact-note { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .9rem; }
@media (max-width: 640px) {
  p > .button + .button, p > .button + .button.secondary, p > .button.secondary + .button { margin-top: .6rem; }
}

/* subtle institutional graphic detail */
.hero-card {
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 120px;
  height: 120px;
  background: url("../assets/logo-web.jpg") center / contain no-repeat;
  opacity: .045;
  pointer-events: none;
}
@media (max-width: 640px) {
  .hero { padding-top: 3rem; padding-bottom: 2rem; }
  h1 { font-size: clamp(1.95rem, 9vw, 2.55rem); }
  .hero-image img { max-height: 220px; }
  .hero-card::after { width: 92px; height: 92px; }
}

/* v7 final polish */
.page-japanese h1,
.page-japanese h2,
.page-japanese h3 {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.24;
}
.page-japanese h1 { max-width: 13em; }
.page-japanese h2 { max-width: 13em; }
@media (max-width: 640px) {
  .nav-cta { width: 100%; }
  .page-japanese h1 { font-size: clamp(1.9rem, 8.5vw, 2.45rem); }
}

/* v8 final polish: quieter physician portraits and Japanese page visual continuity */
.jp-visual-strip {
  max-width: var(--max);
  margin: -1rem auto 3.5rem;
  padding: 0 1.2rem;
}
.jp-visual-strip figure { margin: 0; }
.jp-visual-strip img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.jp-contact-card {
  position: relative;
  overflow: hidden;
}
.jp-contact-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 120px;
  height: 120px;
  background: url("../assets/logo-web.jpg") center / contain no-repeat;
  opacity: .04;
  pointer-events: none;
}
@media (max-width: 850px) {
  .portrait-img { width: min(72vw, 280px); }
  .jp-visual-strip { margin: -1rem auto 3rem; padding: 0 1rem; }
  .jp-visual-strip img { max-height: 180px; }
}
@media (max-width: 640px) {
  .portrait-img { width: min(74vw, 250px); }
  .jp-visual-strip { margin: -.75rem auto 2.6rem; }
  .jp-visual-strip img { max-height: 150px; }
  .jp-contact-card::after { width: 90px; height: 90px; }
}

.card h3 .cn { font-size: .82em; letter-spacing: 0; }

.prose .small { line-height: 1.65; }

/* v10 Japanese readability / line-break polish */
.page-japanese .jp,
.page-japanese h1,
.page-japanese h2,
.page-japanese h3 {
  line-break: strict;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: pretty;
}
@supports (word-break: auto-phrase) {
  .page-japanese .jp,
  .page-japanese h1,
  .page-japanese h2,
  .page-japanese h3 {
    word-break: auto-phrase;
  }
}

/* v10 revised Japanese layout polish: reduce orphaned endings and improve reading measure */
.jp-nowrap,
.jp-keep { white-space: nowrap; }
.page-japanese .split {
  grid-template-columns: minmax(150px, .42fr) minmax(0, 1.18fr);
  gap: clamp(1.35rem, 4.2vw, 4.4rem);
}
.page-japanese .prose { max-width: 860px; }
.page-japanese .jp { line-height: 1.82; }
@media (max-width: 850px) {
  .page-japanese .split { grid-template-columns: 1fr; }
  .page-japanese .prose { max-width: none; }
}
@media (max-width: 640px) {
  .page-japanese .section { padding-left: .95rem; padding-right: .95rem; }
  .page-japanese .jp { font-size: .95em; line-height: 1.8; }
  .page-japanese h1, .page-japanese h2, .page-japanese h3 { line-height: 1.3; }
}
