:root {
  --ivory: #f6f5ef;
  --green: #123c34;
  --lime: #daf279;
  --ink: #102823;
  --line: #bac1b9;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", Meiryo, sans-serif;
  --page-gutter: clamp(24px, 5.5vw, 80px);
}

body { background: var(--ivory); color: var(--ink); font: 16px/1.9 var(--sans); }
.site-header { position: relative; background: var(--ivory); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; }
.site-header .brand { color: var(--ink); }

.page, .legal-main, .content-wrap, .reading-wrap, .wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
.page, .legal-main { padding-block: 76px; }
.page > section, .page > article, .legal-card, .content-wrap > section { margin: 0 0 56px; }

.page h1, .legal-card h1, .page-intro h1, .page-hero h1 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(34px, 5vw, 54px)/1.38 var(--serif);
  letter-spacing: .02em;
}
.page h2, .legal-card h2, .section-head h2, .section-heading h2, .why-intro h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font: 500 clamp(28px, 3vw, 40px)/1.45 var(--serif);
}
.page h3, .legal-card h3, .ledger-body h3 { color: var(--ink); font: 500 23px/1.55 var(--serif); }
.page p, .legal-card p, .page li { line-height: 1.9; }
.page a:not(.button):not(.final-cta), .legal-card a { text-decoration: underline; text-underline-offset: 3px; }

/* All detail-page heroes share the quiet ivory surface used by the home page. */
.page-intro, .page-hero, .medical-page .hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 72px 0 56px;
  background: var(--ivory) !important;
  color: var(--ink) !important;
  border-bottom: 1px solid var(--line);
}
.page-intro::after, .page-hero::after { display: none; }
.page-intro .content-wrap, .page-hero > *, .medical-page .hero-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}
.page-hero { padding-inline: var(--page-gutter); }
.page-intro p, .page-hero p, .medical-page .hero p { max-width: 760px; color: var(--ink) !important; }
.page-hero > p { margin-left: 0; margin-right: 0; }
.page-hero .crumbs { padding: 0; }
.page-intro .breadcrumb, .page-hero .breadcrumb, .legal-main > .breadcrumb, .medical-page .hero .breadcrumb, .crumbs { margin-bottom: 22px; color: #52635d; font-size: 14px; }
.breadcrumb ol, .crumbs ol, .page-hero ol, .page-intro ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none !important;
}
.breadcrumb li, .crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before, .crumbs li + li::before { content: "/"; color: #52635d; }
.eyebrow, .page-hero .eyebrow, .section-head .eyebrow, .section-heading .eyebrow {
  margin: 0 0 14px;
  color: #50651c !important;
  font: 700 11px/1.4 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* CTAs must retain a filled control treatment wherever they appear. */
.button, .nav-cta, .final-cta, .mobile-sticky, .detail-link, .medical-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--lime) !important;
  color: var(--ink) !important;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
}
.button--dark, .header-cta { background: var(--green) !important; color: #fff !important; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.mobile-sticky { display: none; }
main a[href*="#contact"], main a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--lime) !important;
  color: var(--ink) !important;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
}

.detail-section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.detail-section.light { background: var(--ivory); color: var(--ink); }
.detail-section.light.muted, .medical-page .section.alt, .medical-page .why { background: #eff1e8; }
.detail-section.dark, .medical-page .process { background: var(--green); color: #fff; }
.detail-section.dark h2, .detail-section.dark h3, .medical-page .process h2, .medical-page .process h3 { color: #fff; }
.detail-section.dark .eyebrow, .medical-page .process .eyebrow { color: var(--lime) !important; }
.section-heading { max-width: 760px; margin-bottom: 42px; }

.ledger-list, .faq-list { border-top: 1px solid var(--line); }
.ledger-item {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: 34px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-index { min-width: 0; color: #5b701e; font: 400 34px/1 var(--serif); }
.ledger-index small { display: block; overflow-wrap: normal; color: inherit; font: 700 15px/1.35 var(--sans); letter-spacing: .04em; }
.ledger-body { min-width: 0; }
.ledger-item > .ledger-body:only-child { grid-column: 1 / -1; }
.ledger-body h3 { margin: 0 0 9px; }
.ledger-body p { margin: 0; }

.legal-card, .evidence-item, .service-card, .diagnosis-output, .key-point, .case-card, .profile-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.evidence-list { display: grid; gap: 20px; }
.evidence-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.evidence-item h3 { margin: 8px 0; }
.evidence-type, .medical-page .service-no, .medical-page .step-num { color: #5b701e; }
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.info-table th, .info-table td { padding: 16px 18px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.info-table th { width: 30%; background: #eff1e8; font-weight: 700; }

/* Insight worksheets retain the home page's ruled, left-aligned service-list language. */
.article-meta { margin: 12px 0 0; color: #52635d; font-size: 14px; }
.key-point { margin: 0 0 40px; padding: 24px 28px; border-left: 4px solid #789033; background: #eff1e8; }
.key-point strong { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.key-point p { margin: 0; }
.decision-list { counter-reset: decision; display: grid; gap: 20px; margin: 32px 0 48px; }
.decision {
  counter-increment: decision;
  position: relative;
  padding: 30px 30px 30px 92px;
  border: 1px solid var(--line);
  background: #fff;
}
.decision::before {
  content: counter(decision);
  position: absolute;
  top: 30px;
  left: 28px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #789033;
  border-radius: 50%;
  color: #50651c;
  font: 500 22px/1 var(--serif);
}
.decision h2 {
  margin: 0 0 10px;
  font: 500 clamp(20px, 2vw, 24px)/1.55 var(--serif);
  letter-spacing: .01em;
}
.decision p:last-child { margin-bottom: 0; }
.decision-point { margin: 16px 0; padding: 14px 16px; border-left: 2px solid #789033; background: #eff1e8; color: var(--ink); font-weight: 700; }
.worksheet-wrap { margin: 28px 0 44px; overflow-x: auto; border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.worksheet { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.worksheet th, .worksheet td { padding: 16px 18px; border: 1px solid var(--line); color: var(--ink); line-height: 1.8; text-align: left; vertical-align: top; }
.worksheet th { background: #eff1e8; font-weight: 700; }
.worksheet td:first-child { font-weight: 700; white-space: nowrap; }
.worksheet td:last-child { min-width: 160px; }
.worksheet a { color: var(--green); font-weight: 700; text-decoration: underline; text-decoration-color: #789033; text-underline-offset: 3px; }

/* Detail-page components retained from the previous pages, translated into lp-v4. */
.ph { display: inline-block; }
.meta { margin-top: 28px; color: #52635d; font-size: 13px; text-align: right; }
.message-body p { margin: 0 0 20px; line-height: 2.1; }
.message-body strong { color: var(--ink); }
.signature { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); text-align: right; }
.signature .role { color: #50651c; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.signature .name { margin-top: 6px; color: var(--ink); font: 500 22px/1.5 var(--serif); }
.signature .name-en { color: #52635d; font-size: 13px; }
.cta-block { margin-top: 24px; padding: clamp(36px, 5vw, 56px); background: var(--green); color: #fff; text-align: center; }
.cta-block h2, .cta-block h3 { margin: 0 0 12px; color: #fff; font: 500 clamp(25px, 3vw, 34px)/1.5 var(--serif); }
.cta-block p { margin: 0 0 24px; color: #e0ebe7; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 24px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none !important; }
.page-lead { max-width: 44em; margin: 20px 0 0; color: var(--ink); font-size: 16px; line-height: 1.9; }
.detail-section.dark .page-lead { color: #e0ebe7; }
.summary { max-width: 42em; margin: 13px 0 0; color: #52635d; }
.deliverables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 26px 0 0; border-top: 1px solid var(--line); }
.deliverables > div { min-width: 0; padding: 20px 24px 0 0; }
.deliverables > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.deliverables dt, .price-label { color: #50651c; font-size: 13px; font-weight: 700; }
.deliverables dd { margin: 6px 0 0; color: #52635d; line-height: 1.85; }
.service-with-price { display: grid; grid-template-columns: 1fr; row-gap: 14px; align-items: start; }
.service-with-price .deliverables, .service-with-price .detail-link { grid-column: 1 / -1; }
.inline-price { margin: 3px 0 0; color: var(--ink); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline-price strong { font-size: 25px; }
.process-list { display: grid; margin: 36px 0 0; padding: 0; border-top: 1px solid #6c837e; border-left: 1px solid #6c837e; background: var(--green); list-style: none; }
.process-list.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-list.four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process-list li { min-width: 0; padding: 24px 20px; border-right: 1px solid #6c837e; border-bottom: 1px solid #6c837e; }
.process-list span { color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.process-list h3 { margin: 14px 0 0; color: #fff; font: 500 18px/1.6 var(--serif); }
.process-list p { margin: 8px 0 0; color: #e0ebe7; font-size: 15px; }
.evidence-note { margin: 26px 0 0; padding: 18px 20px; border-left: 3px solid #789033; background: #eff1e8; color: var(--ink); font-weight: 700; }
.split-section { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; }
.split-section .section-heading { margin-bottom: 0; }
.price-sheet { padding: 32px 0 32px 34px; border-left: 3px solid #789033; }
.price-value { margin: 9px 0 0; color: var(--ink); font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-value strong { font-size: clamp(38px, 5vw, 54px); letter-spacing: -.035em; }
.price-sheet > p:last-child { max-width: 38em; margin: 15px 0 0; color: #52635d; }
.cases-link { margin-top: 26px; }
.closing-cta { padding: 76px 0; background: var(--green); color: #fff; }
.closing-cta h2 { color: #fff; }
.closing-cta p:not(.eyebrow) { max-width: 42em; margin: 18px 0 28px; color: #e0ebe7; }

/* Medical content page. */
.medical-page .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); border-top: 1px solid var(--line); }
.medical-page .hero-copy { padding: 56px 48px 56px 0; }
.medical-page .hero-scope { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: #50651c; font: 500 16px/1.5 var(--serif); }
.medical-page .hero-scope i, .medical-page .service-line { display: block; width: 28px; height: 1px; background: #789033; }
.medical-page .hero-visual { position: relative; min-height: 390px; overflow: hidden; }
.medical-page .hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.medical-page .hero-index { position: absolute; bottom: 20px; left: 20px; padding: 6px 8px; background: var(--green); color: #fff; font-size: 11px; letter-spacing: .14em; }
.medical-page .service-line { margin-top: 24px; }
.medical-page .why-intro { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.medical-page .why-grid { margin-top: 40px; }
.medical-page .why-item { min-height: 220px; padding: 28px; border: 1px solid var(--line); background: #fff; }
.medical-page .why-item span { color: #50651c; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.medical-page .why-item h3 { margin: 20px 0 12px; }
.medical-page .why-item p { margin: 0; color: #52635d; }
.medical-page .physician { background: var(--green); color: #fff; }
.medical-page .physician-inner { display: grid; grid-template-columns: minmax(240px, .5fr) minmax(0, 1fr); }
.medical-page .physician-symbol { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 44px; border-right: 1px solid #6c837e; }
.medical-page .physician-photo { display: block; width: min(100%, 250px); aspect-ratio: 3 / 4; object-fit: cover; }
.medical-page .physician-caption { color: #dbe8e4; font-size: 11px; letter-spacing: .15em; }
.medical-page .physician-copy { padding: 60px 8%; }
.medical-page .physician-copy .eyebrow { color: var(--lime) !important; }
.medical-page .physician-copy h2 { margin: 16px 0; color: #fff; }
.medical-page .physician-copy h2 small { margin-right: 14px; color: var(--lime); font-size: 15px; }
.medical-page .credentials { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; padding: 17px 0; border-top: 1px solid #6c837e; border-bottom: 1px solid #6c837e; color: #e0ebe7; font-size: 13px; }
.medical-page .physician-copy p { color: #e0ebe7; }
.medical-page .profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; padding: 0; border-top: 1px solid #6c837e; border-left: 1px solid #6c837e; }
.medical-page .profile-item { margin: 0; padding: 17px 18px; border-right: 1px solid #6c837e; border-bottom: 1px solid #6c837e; }
.medical-page .profile-item dt { margin: 0 0 7px; color: var(--lime); font-size: 11px; font-weight: 700; }
.medical-page .profile-item dd { margin: 0; color: #fff; font-size: 13px; }
.medical-page .caution { margin-top: 22px !important; padding-left: 15px; border-left: 2px solid var(--lime); font-size: 13px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 20px 0; border: 0; background: transparent; color: var(--ink); font: 700 16px/1.7 var(--sans); text-align: left; }
.faq-q::after { content: "+"; font: 400 26px/1 var(--serif); }
.faq-q[aria-expanded=true]::after { content: "−"; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s; }
.faq-a > div { overflow: hidden; }
.faq-q[aria-expanded=true] + .faq-a { grid-template-rows: 1fr; }
.faq-a p { margin: 0; padding: 0 32px 20px 0; }

/* Keep the medical FAQ on the same native-details treatment as the home page. */
.medical-page .faq details { border-bottom: 1px solid var(--line); }
.medical-page .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 0;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
}
.medical-page .faq summary::-webkit-details-marker { display: none; }
.medical-page .faq summary::marker { content: ""; }
.medical-page .faq summary::after { content: "＋"; margin-left: 18px; font-size: 22px; }
.medical-page .faq details[open] summary::after { content: "−"; }
.medical-page .faq details p { margin: 0; padding: 0 36px 20px 0; color: #52645e; }

.medical-page .hero { display: block; }
.medical-page .hero-copy { max-width: 770px; }
.medical-page .hero h1 { margin: 0; color: var(--ink); font: 500 clamp(35px, 5vw, 56px)/1.4 var(--serif); }
.medical-page .hero h1 strong { display: inline-block; }
.medical-page .section, .medical-page .faq, .medical-page .contact { padding: 72px 0; }
.medical-page .services-grid, .medical-page .process-grid, .medical-page .why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.medical-page .service, .medical-page .step, .medical-page .why-card, .medical-page .profile { padding: 26px; background: #fff; border: 1px solid var(--line); }
.medical-page .process .step { background: transparent; border-color: #6c837e; }
.medical-page .process .step-num { color: var(--lime); }
.medical-page .contact { background: var(--green); }
.medical-page .contact-card { padding-block: 0; padding-inline: var(--page-gutter); background: transparent; color: #fff; }
.medical-page .contact-copy { display: grid; justify-items: start; gap: 24px; }
.medical-page .contact-card h2 { margin: 0; color: #fff; }
.medical-page .footer { display: none; }

.site-footer { display: block; margin-top: 0; padding: 0 !important; background: var(--ivory); color: var(--ink); }
.site-footer > .footer-grid { display: grid; grid-template-columns: 1.3fr 1.5fr .8fr 1.3fr; gap: 32px; width: min(calc(100% - 48px), 1440px); margin: auto; padding-top: 48px; }
.site-footer > .footer-grid { width: 100%; max-width: 1440px; padding-inline: var(--page-gutter); }
.site-footer .footer-links { display: grid; gap: 10px; }
.site-footer .footer-copy { width: 100%; max-width: 1440px; margin: 28px auto 0; padding: 24px var(--page-gutter) 32px; border-top: 1px solid var(--line); font-size: 12px; }
.footer-grid a { text-decoration: none; }
.scroll-progress, .nav-wrap, .site-nav, .footer:not(.site-footer), .header:not(.site-header), .site-grid::before { display: none; }
.reveal { opacity: 1 !important; transform: none !important; }

@media (max-width: 800px) {
  .site-header { height: 78px; }
  .site-header nav { display: none; }
  .header-cta { display: inline-flex; }
  .page, .legal-main, .content-wrap, .reading-wrap, .wrap { width: 100%; padding-inline: 24px; }
  .page, .legal-main { padding-block: 48px; }
  .page-intro, .medical-page .hero { padding: 54px 0 40px; }
  .page-hero { padding: 54px 24px 40px; }
  .page h1, .legal-card h1, .page-intro h1, .page-hero h1, .medical-page .hero h1 { font-size: 34px; }
  .page h2, .legal-card h2, .section-head h2, .section-heading h2, .why-intro h2 { font-size: 28px; }
  .detail-section { padding: 52px 0; }
  .ledger-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .evidence-list.three, .medical-page .services-grid, .medical-page .process-grid, .medical-page .why-grid { grid-template-columns: 1fr; }
  .info-table th, .info-table td { display: block; width: 100%; border-inline: 0; }
  .info-table tr { display: block; border-bottom: 1px solid var(--line); }
  .info-table tr:last-child { border-bottom: 0; }
  .info-table th { border-bottom: 1px solid var(--line); }
  .key-point { padding: 20px; }
  .decision { padding: 76px 20px 24px; }
  .decision::before { top: 20px; left: 20px; }
  .decision h2 { font-size: 21px; }
  .worksheet-wrap { margin-bottom: 32px; }
  .deliverables, .medical-page .why-intro, .medical-page .physician-inner { grid-template-columns: 1fr; }
  .deliverables > div { padding: 17px 0; }
  .deliverables > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .service-with-price { grid-template-columns: 1fr; row-gap: 14px; }
  .service-with-price .deliverables, .service-with-price .detail-link { grid-column: auto; }
  .inline-price { margin: 0; white-space: normal; }
  .process-list.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-list.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-section { grid-template-columns: 1fr; gap: 30px; }
  .medical-page .hero-inner { grid-template-columns: 1fr; border-top: 0; }
  .medical-page .hero-copy { padding: 0 0 36px; }
  .medical-page .hero-visual { min-height: 300px; }
  .medical-page .physician-symbol { min-height: 390px; border-right: 0; border-bottom: 1px solid #6c837e; }
  .medical-page .profile-grid { grid-template-columns: 1fr; }
  .site-footer > .footer-grid { grid-template-columns: 1fr; width: 100%; padding: 36px 24px 0; }
  .site-footer .footer-copy { width: 100%; padding-inline: 24px; }
  .medical-page .section, .medical-page .faq, .medical-page .contact { padding: 48px 0; }
  .mobile-sticky { display: inline-flex; position: fixed; z-index: 4; right: 16px; bottom: 16px; box-shadow: 0 8px 24px rgb(16 40 35 / 25%); }
}

@media (max-width: 430px) { .header-cta { display: none; } }

@media (max-width: 560px) {
  .process-list.five, .process-list.four, .process-list.three { grid-template-columns: 1fr; }
  .process-list li { padding: 22px 20px; }
  .worksheet-wrap { overflow: visible; border: 0; background: transparent; }
  .worksheet { display: block; width: 100%; min-width: 0; }
  .worksheet thead { display: none; }
  .worksheet tbody { display: grid; gap: 16px; }
  .worksheet tr { display: block; border: 1px solid var(--line); background: #fff; }
  .worksheet td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .worksheet td:last-child { min-width: 0; border-bottom: 0; }
  .worksheet td:first-child { white-space: normal; }
  .worksheet td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #50651c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
  }
  .price-sheet { padding: 26px 0 0; border-top: 3px solid #789033; border-left: 0; }
  .closing-cta { padding: 56px 0; }
}
