@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --bg: #F6F3EC;
  --surface: #FFFFFF;
  --surface-2: #EFEAE0;
  --ink: #1E2530;
  --ink-muted: #5B6472;
  --accent: #2C4A6E;
  --accent-dark: #1D3450;
  --accent-soft: #E3EAF1;
  --flag: #B34632;
  --flag-soft: #F3E4DF;
  --line: #DDD5C6;
  --good: #3F7D5C;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.6em 1em; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

h1, h2, h3, h4 {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
  margin: 0 0 1rem;
  color: var(--ink);
}

img { max-width: 100%; display: block; }

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 1.5rem; flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.3; }
.brand-name { display: block; font-family: "Shippori Mincho", serif; font-weight: 700; font-size: 1.1rem; }
.brand-role { display: block; font-size: 0.72rem; color: var(--ink-muted); letter-spacing: 0.02em; }

.site-nav { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; font-size: 0.9rem; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 0.5em 1.1em;
  border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* hero */
.hero {
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 4rem 0 3.5rem;
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 780px) { .hero-inner { grid-template-columns: 1fr; } }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.14em; color: var(--accent); font-weight: 700; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.hero p.lede { color: var(--ink-muted); font-size: 1.05rem; max-width: 46ch; margin-bottom: 1.6rem; }
.hero-photo {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 12px 30px -14px rgba(30,37,48,0.35);
}
.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.75em 1.5em; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
}
.btn-primary { background: var(--flag); color: #fff; }
.btn-primary:hover { background: #9a3a29; color: #fff; }
.btn-outline { background: var(--surface); color: var(--accent); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); }

.quals-strip {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.6rem;
  font-size: 0.82rem; color: var(--ink-muted);
}
.quals-strip li { list-style: none; }
.quals-strip { padding: 0; margin-top: 1.6rem; }

/* sections */
section.block { padding: 3.4rem 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 2rem; }
.section-head h2 { font-size: 1.5rem; }
.section-head p { color: var(--ink-muted); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 820px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.card p { color: var(--ink-muted); font-size: 0.94rem; margin: 0; }
.card a.card-link { font-size: 0.88rem; font-weight: 600; margin-top: auto; }

/* qa */
.qa-list { display: flex; flex-direction: column; gap: 1rem; }
.qa {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.3rem 1.5rem;
}
.qa .q { font-weight: 700; margin-bottom: 0.5rem; display: flex; gap: 0.5em; }
.qa .q::before { content: "Q"; color: #fff; background: var(--accent); border-radius: 50%; width: 1.5em; height: 1.5em; display: inline-flex; align-items:center; justify-content:center; font-size: 0.85em; flex-shrink: 0; }
.qa .a { display: flex; gap: 0.5em; color: var(--ink-muted); margin: 0; }
.qa .a::before { content: "A"; color: #fff; background: var(--flag); border-radius: 50%; width: 1.5em; height: 1.5em; display: inline-flex; align-items:center; justify-content:center; font-size: 0.85em; flex-shrink: 0; }

/* condition list */
.cond-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.cond-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1.4rem;
}
.cond-list b { display: block; margin-bottom: 0.3rem; color: var(--ink); }
.cond-list span { color: var(--ink-muted); font-size: 0.94rem; }

/* steps */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: flow; display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr 1fr; } }
.flow li {
  counter-increment: flow; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.2rem 1rem; text-align: center; font-size: 0.9rem;
}
.flow li::before {
  content: counter(flow); display: block; margin: 0 auto 0.6rem; width: 2em; height: 2em; line-height: 2em;
  background: var(--accent); color: #fff; border-radius: 50%; font-family: "Shippori Mincho", serif; font-weight: 700;
}

/* pricing table */
.price-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.price { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
table.price th, table.price td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.price th { background: var(--surface-2); font-size: 0.8rem; color: var(--ink-muted); }
table.price tr:last-child td { border-bottom: none; }
table.price .price-val { white-space: nowrap; font-weight: 700; color: var(--accent-dark); }

/* lang grid for diagnosis forms */
.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
@media (max-width: 620px) { .lang-grid { grid-template-columns: 1fr; } }
.lang-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.9rem 1.1rem; text-decoration: none;
}
.lang-card .lang-tag { font-size: 0.72rem; color: var(--flag); font-weight: 700; letter-spacing: 0.04em; }
.lang-card .lang-label { color: var(--ink); font-size: 0.94rem; margin-top: 0.15rem; }
.lang-card:hover { border-color: var(--accent); }

.callout {
  background: var(--accent-soft); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.6rem;
}
.callout h3 { margin-bottom: 0.7rem; font-size: 1.05rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 0.8rem; }
.contact-card p { margin: 0 0 0.5rem; }

/* footer */
.site-footer { background: var(--accent-dark); color: #E9EEF3; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid a { color: #CFE0EF; }
.footer-name { font-family: "Shippori Mincho", serif; font-size: 1.1rem; margin: 0 0 0.2rem; }
.footer-role { color: #A9BDD1; font-size: 0.85rem; margin: 0 0 0.9rem; }
.footer-heading { font-weight: 700; font-size: 0.85rem; margin: 0 0 0.7rem; color: #fff; }
.quals { list-style: none; padding: 0; margin: 0; font-size: 0.8rem; color: #A9BDD1; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-grid p { margin: 0 0 0.4rem; font-size: 0.88rem; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.78rem; color: #A9BDD1; }

/* page hero (non-home) */
.page-hero { padding: 3rem 0 2.6rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin-bottom: 0.6rem; }
.page-hero p { color: var(--ink-muted); max-width: 58ch; margin: 0; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1rem; }

.breadcrumb { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-muted); }

/* bilingual JA / VI pairs */
.bi-vi { color: var(--ink-muted); font-size: 0.88em; margin-top: 0.2em; }
.lang-note {
  display: inline-block; background: var(--flag-soft); color: var(--flag);
  font-size: 0.74rem; font-weight: 700; padding: 0.2em 0.7em; border-radius: 999px; margin-bottom: 0.8rem;
}
.step-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 0.9rem; }
.step-list li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.2rem 1rem 3.2rem; position: relative;
}
.step-list li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem;
  width: 1.7em; height: 1.7em; line-height: 1.7em; text-align: center;
  background: var(--accent); color: #fff; border-radius: 50%; font-family: "Shippori Mincho", serif; font-weight: 700;
}
.notice {
  border-left: 3px solid var(--flag); background: var(--flag-soft); border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.2rem; font-size: 0.9rem; color: var(--ink); margin-top: 1.5rem;
}
