/* ============================================================
   Kuromame-san — shared stylesheet
   1 file for every page. No framework, no build step.
   ============================================================ */

:root {
  --bg:        #faf8f4;
  --bg-alt:    #f2ede4;
  --ink:       #1f2421;
  --muted:     #6b6660;
  --line:      #ddd6ca;
  --primary:   #24384a;   /* 藍 */
  --accent:    #b5613a;   /* 柿 */
  --accent-text: #9a4f2e;   /* accent, darkened for AA contrast on small text */
  --accent-sf: #f6ece5;
  --white:     #ffffff;

  --serif-en: "Cormorant Garamond", "Noto Serif JP", Georgia, serif;
  --serif-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:     "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --gap:  clamp(3rem, 7vw, 6rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

body.lang-ja { font-family: var(--sans); }

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

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--serif-en); font-weight: 500; line-height: 1.3; letter-spacing: .005em; margin: 0 0 .6em; }
.lang-ja h1, .lang-ja h2, .lang-ja h3, .lang-ja h4 { font-family: var(--serif-jp); font-weight: 600; line-height: 1.5; }

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
section { padding-block: var(--gap); }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 1rem;
  font-weight: 600;
}
.lang-ja .eyebrow { letter-spacing: .16em; }

/* The concept line sits in the same slot as .eyebrow but is a sentence,
   not a label -- so no uppercase and far less tracking. */
.eyebrow.tagline {
  font-family: var(--serif-en);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.5;
  text-transform: none;
  margin-bottom: 1.1rem;
}
/* This rule (0,3,0) outranks both `.lang-ja .eyebrow` and `.eyebrow.tagline`,
   so it is the final word on letter-spacing here regardless of source order. */
.lang-ja .eyebrow.tagline {
  font-family: var(--serif-jp);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: .04em;
  line-height: 1.7;
}

.lead { font-size: 1.12rem; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}
.brand {
  font-family: var(--serif-en);
  font-size: 1.15rem; letter-spacing: .04em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.lang-ja .brand { font-family: var(--serif-jp); }
.brand span { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  font-size: .86rem; letter-spacing: .04em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }

.lang-switch { display: flex; align-items: center; gap: .5rem; font-size: .78rem; }
.lang-switch a { color: var(--muted); text-decoration: none; letter-spacing: .06em; }
.lang-switch a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.lang-switch .sep { color: var(--line); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: .5rem; color: var(--ink);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; font-size: 1rem; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .lang-switch { padding-top: 1rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .88rem; letter-spacing: .06em;
  padding: .95em 2.1em;
  border-radius: 2px;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  border: 1px solid var(--primary);
  background: var(--primary); color: var(--white);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(420px, 70vh, 640px);
  display: flex; align-items: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
  background: linear-gradient(160deg, #eae3d6 0%, #d9cdba 45%, #c3b8a6 100%);
  overflow: hidden;
}
/* ---- hero photographs ----
   The gradient below each photo is the fallback while it loads, and shows
   through at the edges. ::after keeps the left side light enough to read. */
.hero-photo { background-size: cover; background-position: center 30%; }
.hero-photo.hero-professionals { background-image: url("/assets/img/hero-professionals-sm.webp"); }
.hero-photo.hero-family        { background-image: url("/assets/img/hero-family-sm.webp"); }
@media (min-width: 720px) {
  .hero-photo.hero-professionals { background-image: url("/assets/img/hero-professionals.webp"); }
  .hero-photo.hero-family        { background-image: url("/assets/img/hero-family.webp"); }
}
/* Photos need a stronger scrim than the plain gradient did.
   `.hero.hero-photo` (0,2,1) so this always beats `.hero::after` (0,1,1)
   regardless of source order. */
.hero.hero-photo::after {
  background: linear-gradient(90deg, rgba(250,248,244,.95) 0%, rgba(250,248,244,.86) 38%, rgba(250,248,244,.45) 68%, rgba(250,248,244,.15) 100%);
}
@media (max-width: 719px) {
  .hero.hero-photo::after {
    background: linear-gradient(180deg, rgba(250,248,244,.62) 0%, rgba(250,248,244,.80) 42%, rgba(250,248,244,.95) 72%, rgba(250,248,244,.99) 100%);
  }
  .hero-photo { background-position: center 22%; }
}

/* ---- video ----
   A facade: the poster is a button, and YouTube's iframe (and its ~500KB of
   script) is only fetched when somebody actually decides to watch. */
.video-block { margin-top: 2.5rem; }
.video-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #1b2530 center/cover no-repeat;
  border-radius: 2px; overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
button.video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0; cursor: pointer;
  background: transparent;
  display: grid; place-items: center;
  transition: background .2s ease;
}
button.video-play:hover, button.video-play:focus-visible { background: rgba(27,37,48,.22); }
button.video-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video-play .disc {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(250,248,244,.94);
  display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
  transition: transform .2s ease, background .2s ease;
}
button.video-play:hover .disc { transform: scale(1.07); background: #fff; }
.video-play .disc::after {
  content: ""; margin-left: 5px;
  border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--primary);
}
.video-caption { margin-top: .9rem; font-size: .86rem; color: var(--muted); line-height: 1.8; }
.video-note {
  margin-top: 1.2rem; padding: 1rem 1.2rem;
  background: var(--accent-sf); border: 1px solid #e6d2c4;
  font-size: .9rem; line-height: 1.8;
}
.video-note p { margin: 0; }

/* ---- inline photographs ---- */
figure.shot { margin: 2.5rem 0 0; }
figure.shot img {
  width: 100%; border-radius: 2px;
  background: var(--bg-alt);
}
figure.shot figcaption {
  margin-top: .7rem; font-size: .84rem; color: var(--muted); line-height: 1.7;
}
.shot-pair { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.5rem; }
.shot-pair figure.shot { margin: 0; }

.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250,248,244,.88) 0%, rgba(250,248,244,.55) 55%, rgba(250,248,244,.15) 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
/* The hero h1 is display-sized, so it needs a wider box than the body copy.
   `ch` is measured on the div's own 17px font, which is far too narrow here --
   and narrower still for CJK. Set both in px, then rein the paragraph back in
   separately so the reading measure stays comfortable. */
.hero-copy { max-width: 620px; }
.lang-ja .hero-copy { max-width: 720px; }
/* CJK has no spaces, so a line that overflows breaks mid-word. The h1 minimum
   has to be small enough that the longest <br>-delimited segment still fits on
   a phone; otherwise the intended break points are ignored. */
.lang-ja .hero h1 { font-size: clamp(1.6rem, 5.2vw, 3.6rem); }
.hero .lead { max-width: 46ch; }
.lang-ja .hero .lead { max-width: 620px; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { color: #4a463f; font-size: 1.15rem; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1.6rem, 3.2vw, 2.4rem);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; }
.card .btn-row { margin-top: auto; padding-top: 1.6rem; }

/* ---------- plan detail cards ---------- */
.plan-detail .plan-price { margin: 1.2rem 0 0; font-size: .82rem; color: var(--muted); }
.plan-detail .plan-price .price { display: inline; margin-right: .5rem; }
.plan-detail .plan-amb {
  margin: .9rem 0 0; font-size: .84rem; font-weight: 600; color: var(--accent-text);
}
.plan-h {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
  margin: 1.6rem 0 .5rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.lang-ja .plan-h { font-family: var(--sans); letter-spacing: .1em; text-transform: none; font-size: .8rem; }
ul.plan-list { margin: 0; padding-left: 1.15rem; color: var(--muted); font-size: .92rem; }
ul.plan-list li { margin-bottom: .4rem; }
#plandetail .cards { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------- plan table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 2rem; }
table.plans {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
  font-size: .94rem;
}
table.plans th, table.plans td {
  border: 1px solid var(--line);
  padding: .95rem 1rem;
  text-align: left;
  vertical-align: top;
}
table.plans thead th {
  background: var(--primary); color: var(--white);
  font-family: var(--serif-en); font-weight: 500; font-size: 1rem;
  letter-spacing: .04em;
}
.lang-ja table.plans thead th { font-family: var(--serif-jp); }
table.plans tbody th { background: var(--bg-alt); font-weight: 600; white-space: nowrap; font-family: var(--sans); font-size: .86rem; }
.price { font-family: var(--serif-en); font-size: 1.3rem; color: var(--accent); display: block; }
.price-was { font-size: .8rem; color: var(--muted); text-decoration: line-through; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .55rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.timeline .t-time { font-family: var(--serif-en); font-size: 1.05rem; color: var(--accent); display: block; letter-spacing: .04em; }
.timeline .t-body { color: var(--muted); font-size: .95rem; }

/* ---------- worry / answer pairs ---------- */
.pairs { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.pair {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.7rem;
}
.pair .worry { font-family: var(--serif-en); font-size: 1.12rem; color: var(--ink); margin-bottom: .5rem; font-style: italic; }
.lang-ja .pair .worry { font-family: var(--serif-jp); font-style: normal; font-weight: 600; }
.pair .answer { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- feature list ---------- */
.features { display: grid; gap: 1.8rem 2.2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 2.5rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 1.15rem 2rem 1.15rem 0;
  font-weight: 600; font-size: 1rem; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 1rem;
  font-size: 1.3rem; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "\2013"; }
.faq .faq-body { padding: 0 0 1.4rem; color: var(--muted); font-size: .96rem; }

/* ---------- notice box ---------- */
.notice {
  background: var(--accent-sf);
  border: 1px solid #e6d2c4;
  padding: 1.4rem 1.6rem;
  margin-top: 2.5rem;
  font-size: .94rem;
}
.notice h3 { font-size: 1rem; margin-bottom: .5em; }
.notice ul { margin: .6rem 0 0; padding-left: 1.2rem; }
.notice li { margin-bottom: .35rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.78); }
.cta-band .btn { background: var(--white); color: var(--primary); border-color: var(--white); }
.cta-band .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.cta-band .btn-row { justify-content: center; }

/* ---------- form ---------- */
.form { margin-top: 2.5rem; display: grid; gap: 1.3rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .84rem; letter-spacing: .04em; font-weight: 600; }
.field .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field-row { display: grid; gap: 1.3rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: #1b2530; color: rgba(255,255,255,.72);
  padding-block: 3.5rem 2.5rem; font-size: .9rem;
}
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: #e2a583; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: var(--white); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: .8rem; color: rgba(255,255,255,.5);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
}

/* ---------- misc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: .7rem 1.2rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Sticky header would cover an anchored section, so hold it clear. */
section[id] { scroll-margin-top: 84px; }

.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
