/*
 * OISO ORTHODONTIC — refined-20261025.css
 * HTML contract: This stylesheet styles the shared class/id contract supplied for all
 * /oiso/ pages. It intentionally does not require DOM restructuring or hide content.
 * Palette: Navy #0d1f3c / Gold #b8974a / White. Font files are loaded by the parent HTML.
 */

:root {
  --navy: #0d1f3c;
  --navy-deep: #08152a;
  --navy-soft: #1a3156;
  --gold: #b8974a;
  --gold-dark: #8b6d2d;
  --gold-pale: #f3ecde;
  --white: #ffffff;
  --ink: #1a2940;
  --text: #2f3b4d;
  --muted: #617084;
  --line: #d9dee5;
  --line-strong: #bdc6d2;
  --soft: #f7f5f1;
  --soft-blue: #f2f5f8;
  --green: #1d5b50;
  --danger: #8f3f3a;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow-subtle: 0 8px 24px rgba(13, 31, 60, 0.07);
  --container: 1120px;
  --reading: 780px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.025em;
  text-rendering: optimizeLegibility;
}

body.is-menu-open {
  overflow: hidden;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  width: auto;
  height: auto;
}

a {
  color: var(--navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-dark);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

/* Accessibility */
.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-subtle);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100%, var(--reading));
  margin-inline: auto;
}

/* Shared header and navigation */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(184, 151, 74, 0.28);
  background: rgba(255, 255, 255, 0.98);
  color: var(--navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 48px), 1280px);
  min-height: var(--header-height);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  flex: 0 1 auto;
  flex-direction: column;
  justify-content: center;
  color: var(--navy);
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand-ja {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.brand-en {
  margin-top: 3px;
  color: var(--gold-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.65vw, 28px);
  margin-left: auto;
  font-size: 0.86rem;
  line-height: 1.4;
}

.desktop-nav a {
  position: relative;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-cta {
  display: none;
  flex: 0 0 auto;
}

.header-cta .button {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.82rem;
}

.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
}

.menu-toggle:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.menu-toggle > span,
.menu-toggle::before,
.menu-toggle::after {
  grid-area: 1 / 1;
  width: 19px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle::before {
  transform: translateY(-6px);
}

.menu-toggle::after {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] > span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 990;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 28px 24px calc(120px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.mobile-menu[hidden] {
  display: none;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, 560px);
  margin: 0 auto 24px;
  border-top: 1px solid var(--line);
}

.menu-grid a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.menu-grid a::after {
  margin-left: auto;
  color: var(--gold-dark);
  content: "›";
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

.mobile-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(100%, 560px);
  margin-inline: auto;
}

.mobile-cta .button {
  flex: 1 1 210px;
}

/* Buttons and common text */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--navy-soft);
  color: var(--white);
  transform: translateY(-1px);
}

.button--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy-deep);
}

.button--gold:hover {
  border-color: #c6a762;
  background: #c6a762;
  color: var(--navy-deep);
}

.button--navy {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.button--line {
  border-color: #2c7465;
  background: #eef8f4;
  color: #164d42;
}

.button--line:hover {
  border-color: #1d5b50;
  background: #dcefe8;
  color: #123e35;
}

.button--outline {
  border-color: var(--navy);
  background: transparent;
  color: var(--navy);
}

.button--outline:hover {
  background: var(--navy);
  color: var(--white);
}

.button--white {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy);
}

.button--white:hover {
  border-color: var(--gold-pale);
  background: var(--gold-pale);
  color: var(--navy);
}

.button--small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.button-row,
.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.text-link,
.card-link,
.related-link {
  color: var(--navy);
  font-weight: 500;
}

.text-link:hover,
.card-link:hover,
.related-link:hover {
  color: var(--gold-dark);
}

.eyebrow,
.page-kicker {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  text-transform: uppercase;
}

.lead,
.section-lead {
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.9;
}

.micro {
  font-size: 0.82rem;
  line-height: 1.75;
}

.muted {
  color: var(--muted);
}

/* General sections and grids */
.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--soft {
  background: var(--soft);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy .section-heading,
.section--navy .section-lead,
.section--navy .lead,
.section--navy .card-title {
  color: var(--white);
}

.section--navy .muted,
.section--navy .micro {
  color: #d5dce8;
}

.section-heading {
  max-width: 780px;
  margin: 0 0 20px;
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(1.65rem, 3vw, 2.42rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.5;
}

.section-heading + .section-lead,
.section-heading + .lead {
  margin-top: -5px;
}

.grid-2,
.grid-3,
.treatment-grid,
.symptom-grid,
.area-grid,
.related-grid,
.doctor-grid,
.fee-grid {
  display: grid;
  gap: 18px;
}

.grid-2,
.treatment-grid,
.doctor-grid,
.fee-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.symptom-grid,
.area-grid,
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.treatment-card,
.symptom-card,
.area-card,
.fee-card,
.related-link {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card,
.treatment-card,
.symptom-card,
.area-card,
.fee-card {
  padding: clamp(20px, 2.5vw, 28px);
}

.card-number {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.card-title,
.treatment-card h3,
.symptom-card h3,
.area-card h3,
.fee-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.55;
}

.card-body {
  margin: 0;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  text-decoration: none;
}

.card-link::after,
.related-link::after {
  margin-left: 0.45em;
  content: "→";
}

.treatment-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.treatment-card > :not(.treatment-visual) {
  margin-right: clamp(20px, 2.5vw, 28px);
  margin-left: clamp(20px, 2.5vw, 28px);
}

.treatment-card > .card-title,
.treatment-card > h3 {
  margin-top: clamp(20px, 2.5vw, 28px);
}

.treatment-card > .card-link {
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.treatment-visual {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft-blue);
}

.treatment-visual figcaption {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.treatment-image {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 14px;
}

.treatment-image img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.symptom-card,
.area-card {
  color: var(--text);
}

/* Home page */
.home-hero {
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  min-height: min(720px, calc(100svh - var(--header-height)));
  padding-block: clamp(50px, 7vw, 94px);
}

.hero-copy {
  max-width: 590px;
}

.hero-title {
  margin: 0;
  color: var(--white);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(2rem, 4.7vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.38;
}

.hero-copy .eyebrow,
.hero-copy .lead,
.hero-copy .section-lead {
  color: #e3e8f0;
}

.hero-copy .eyebrow {
  color: #dbc28b;
}

.hero-portrait {
  min-width: 0;
  margin: 0;
}

.hero-portrait img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.hero-info {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: #e3e8f0;
  font-size: 0.92rem;
}

.hero-caption {
  margin: 10px 0 0;
  color: #d5dce8;
  font-size: 0.78rem;
  line-height: 1.65;
}

.hero-region {
  margin-top: 18px;
  color: #d5dce8;
  font-size: 0.86rem;
}

.notice-strip {
  padding-block: 14px;
  border-block: 1px solid rgba(184, 151, 74, 0.4);
  background: #10264a;
  color: var(--white);
}

.notice-strip a {
  color: var(--white);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-inline: 1px solid var(--line);
  background: var(--white);
}

.trust-item {
  padding: 20px clamp(12px, 2.5vw, 34px);
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

/* Page hero and breadcrumb */
.page-hero {
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--navy);
  color: var(--white);
}

.page-hero .container {
  display: grid;
  gap: 12px;
}

.page-kicker {
  color: #ddc68f;
}

.page-title {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.page-subtitle {
  max-width: 760px;
  margin: 4px 0 0;
  color: #dce4ef;
  font-size: 1rem;
}

.page-hero .page-actions {
  margin-top: 10px;
}

.breadcrumb {
  margin: 0 0 8px;
  color: #d5dce8;
  font-size: 0.78rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em 0.65em;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 0.65em;
  color: #b7c4d6;
  content: "/";
}

.breadcrumb a {
  color: var(--white);
}

.page-meta {
  margin: 8px 0 0;
  color: #d5dce8;
  font-size: 0.78rem;
}

/* Reading pages */
.read-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 84px);
}

.article {
  min-width: 0;
}

.article-section {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.article-section + .article-section {
  margin-top: clamp(44px, 6vw, 76px);
  padding-top: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.article-section h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.52;
}

.article-section h3 {
  margin: 34px 0 13px;
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(1.17rem, 2vw, 1.38rem);
  font-weight: 500;
  line-height: 1.58;
}

.article-section p,
.article-section li {
  max-width: var(--reading);
}

.article-section p {
  margin: 0 0 1.35em;
}

.article-section ul,
.article-section ol {
  padding-left: 1.35em;
  margin: 1.15em 0 1.55em;
}

.article-section li + li {
  margin-top: 0.5em;
}

.page-sidebar {
  min-width: 0;
}

.sidebar-panel {
  padding: 20px;
  border-top: 2px solid var(--gold);
  background: var(--soft);
}

.sidebar-panel + .sidebar-panel {
  margin-top: 18px;
}

.sidebar-panel h2,
.sidebar-panel h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.toc ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.toc li + li {
  border-top: 1px solid var(--line);
}

.toc a {
  display: block;
  padding-block: 10px;
  color: var(--navy);
  font-size: 0.86rem;
  line-height: 1.6;
  text-decoration: none;
}

.toc a:hover {
  color: var(--gold-dark);
}

.answer-box,
.info-box,
.warning-box,
.risk-panel,
.cost-example {
  max-width: var(--reading);
  margin: 24px 0;
  padding: clamp(18px, 3vw, 26px);
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
}

.info-box {
  border-left-color: var(--navy);
  background: var(--soft-blue);
}

.warning-box,
.risk-panel {
  border-left-color: var(--danger);
  background: #fbf4f2;
}

.answer-box > :last-child,
.info-box > :last-child,
.warning-box > :last-child,
.risk-panel > :last-child,
.cost-example > :last-child {
  margin-bottom: 0;
}

.steps {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.step-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1rem;
  line-height: 1;
}

.fee-card {
  border-top: 2px solid var(--gold);
}

.fee-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.fee-value {
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(1.36rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.45;
}

.fee-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.table-wrap {
  max-width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
}

.fee-table,
.clinic-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.fee-table th,
.fee-table td,
.clinic-table th,
.clinic-table td {
  padding: 13px 15px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.fee-table th,
.clinic-table th {
  background: var(--soft-blue);
  color: var(--navy);
  font-weight: 500;
}

.definition-list {
  max-width: var(--reading);
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.definition-list > div,
.definition-list dt,
.definition-list dd {
  min-width: 0;
}

.definition-list > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.definition-list dt {
  color: var(--navy);
  font-weight: 500;
}

.definition-list dd {
  margin: 0;
}

.related-grid {
  margin-top: 28px;
}

.related-link {
  display: block;
  padding: 18px;
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.65;
  text-decoration: none;
}

.related-link:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.sources {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

/* FAQ: native details stays functional without JavaScript */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 17px 4px;
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  font-weight: 500;
  line-height: 1.65;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  flex: 0 0 auto;
  color: var(--gold-dark);
  content: "Q";
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.28rem;
}

.faq-question::after {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform 140ms ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-answer {
  padding: 0 4px 22px 2.15rem;
}

.faq-answer > :first-child {
  margin-top: 0;
}

#faqSearch {
  width: min(100%, 540px);
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

#faqSearch::placeholder {
  color: var(--muted);
  opacity: 1;
}

#faqCount {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

#faqEmpty {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--text);
}

/* Consultation, doctor and booking content */
.consult-box {
  max-width: var(--reading);
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  background: var(--white);
}

.consult-fee {
  margin: 18px 0;
  color: var(--navy);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.consult-options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.consult-option {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
}

.appointment-help {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.consultation-stage,
.timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: var(--reading);
  margin: 28px 0;
}

.consultation-stage > *,
.timeline > * {
  position: relative;
  padding: 0 0 24px 28px;
}

.consultation-stage > *::before,
.timeline > *::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold-dark);
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.consultation-stage > *::after,
.timeline > *::after {
  position: absolute;
  top: calc(0.55em + 14px);
  bottom: -2px;
  left: 5px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.consultation-stage > *:last-child,
.timeline > *:last-child {
  padding-bottom: 0;
}

.consultation-stage > *:last-child::after,
.timeline > *:last-child::after {
  display: none;
}

.doctor-portrait {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--soft-blue);
}

.doctor-portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.doctor-copy {
  min-width: 0;
}

/* Footer and mobile booking */
.site-footer {
  padding-top: clamp(44px, 6vw, 72px);
  background: var(--navy-deep);
  color: #d9e0eb;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: #dfc88f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.45fr) repeat(2, minmax(150px, 1fr));
  gap: 32px;
  padding-bottom: 38px;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #b9c5d5;
  font-size: 0.76rem;
}

.mobile-booking {
  display: none;
}

.booking-note {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
}

@media (min-width: 1100px) {
  .desktop-nav,
  .header-cta {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1099px) {
  .header-inner {
    width: min(calc(100% - 40px), 1120px);
  }
}

@media (max-width: 899px) {
  .hero-wrap,
  .read-layout {
    grid-template-columns: 1fr;
  }

  .hero-wrap {
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-portrait {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .page-sidebar {
    display: contents;
  }

  .toc {
    position: static;
    order: -1;
  }

  .sidebar-panel {
    max-width: var(--reading);
  }

  .grid-3,
  .symptom-grid,
  .area-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  html {
    scroll-padding-top: calc(var(--header-height) + 16px);
  }

  body {
    font-size: 15px;
    line-height: 1.9;
    padding-bottom: calc(71px + env(safe-area-inset-bottom));
  }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .header-inner {
    width: calc(100% - 40px);
    min-height: var(--header-height);
  }

  .brand-ja {
    font-size: 0.87rem;
  }

  .brand-en {
    font-size: 0.64rem;
  }

  .mobile-menu {
    padding-right: 20px;
    padding-left: 20px;
  }

  .button,
  .button--small {
    min-height: 48px;
  }

  .button-row,
  .hero-actions,
  .page-actions {
    align-items: stretch;
  }

  .button-row .button,
  .hero-actions .button,
  .page-actions .button {
    flex: 1 1 100%;
  }

  .section {
    padding-block: 52px;
  }

  .section-heading {
    font-size: 1.55rem;
  }

  .grid-2,
  .grid-3,
  .treatment-grid,
  .symptom-grid,
  .area-grid,
  .related-grid,
  .doctor-grid,
  .fee-grid {
    grid-template-columns: 1fr;
  }

  .hero-wrap {
    gap: 30px;
    padding-block: 48px 54px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    border-inline: 0;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .page-hero {
    padding-block: 40px 48px;
  }

  .page-title {
    font-size: 1.88rem;
  }

  .read-layout {
    gap: 32px;
    padding-block: 46px 58px;
  }

  .article-section + .article-section {
    margin-top: 46px;
    padding-top: 46px;
  }

  .article-section h2 {
    font-size: 1.45rem;
  }

  .definition-list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .faq-answer {
    padding-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mobile-booking {
    position: fixed;
    z-index: 950;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 0.9fr 0.9fr 1.25fr;
    gap: 1px;
    padding: 1px 1px calc(1px + env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 -4px 18px rgba(13, 31, 60, 0.14);
  }

  .mobile-booking a {
    display: grid;
    min-height: 62px;
    padding: 7px 4px;
    place-items: center;
    background: var(--navy);
    color: var(--white);
    font-size: 0.73rem;
    font-weight: 500;
    line-height: 1.32;
    text-align: center;
    text-decoration: none;
  }

  .mobile-booking a:nth-child(2) {
    background: #eaf5ef;
    color: #164d42;
  }

  .mobile-booking a:last-child {
    background: var(--gold);
    color: var(--navy-deep);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final display adjustments for real portrait and compact fee tables. */
.hero-portrait img{width:auto;max-width:100%;max-height:550px;margin-inline:auto}
.hero-portrait{max-width:430px;margin-inline:auto}
.doctor-portrait{max-width:400px;align-self:start}
.section .narrow .article-section+.article-section{margin-top:44px;padding-top:44px}
.hero-portrait .hero-caption{text-align:center}
.consult-box h2{color:var(--navy);font-family:"Noto Serif JP",serif;font-size:clamp(1.4rem,2.6vw,1.8rem);font-weight:500;line-height:1.6}
.steps h3{margin:0 0 8px;color:var(--navy);font-size:1.08rem;font-weight:500}
.fee-table{min-width:0}
.sources h2{font-size:1.1rem;font-weight:500;color:var(--navy)}
@media(max-width:899px){.read-layout{display:flex;flex-direction:column}.page-sidebar{display:block;order:-1;width:100%}.page-sidebar .sidebar-panel:not(.toc){display:none}.toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.toc a{font-size:.8rem}.hero-portrait img{max-height:380px}}
@media(max-width:640px){.hero-portrait img{max-height:320px}.hero-portrait{width:100%}.hero-caption{max-width:320px;margin-inline:auto}.hero-wrap{padding-block:40px}.fee-table th,.fee-table td{padding:10px 8px;font-size:.8rem;overflow-wrap:anywhere}.fee-value{font-size:1.3rem}.toc ol{grid-template-columns:1fr}.trust-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.trust-item{padding:14px 7px;font-size:.72rem}.trust-item+.trust-item{border-left:1px solid var(--line);border-top:0}}

.hero-title{font-size:clamp(2rem,3.2vw,46px);line-height:1.5}
.toc-fold>summary{color:var(--navy);font-family:"Noto Serif JP",serif;font-weight:500;padding:4px 0 12px;line-height:1.7}
.toc-fold:not([open])>summary{padding-bottom:0}
.page-hero .micro{color:#dce4ef;margin:0}
@media(min-width:900px){.toc-fold>summary{cursor:pointer}}

.page-title{font-size:clamp(1.85rem,3vw,42px);text-wrap:balance}
.consult-box h2{ text-wrap:balance }
