/* 浅葱会計法務事務所 — TableWeb 士業サンプル
   Reference: Refero Styles / Legora "Editorial law journal on warm cream".
   Layout, section order, palette and motion follow the reference;
   fonts, copy and imagery are replaced for a Japanese firm. */

:root {
  --color-parchment: #fefefc;
  --color-ink: #000000;
  --color-graphite: #0a0a0a;
  --color-smoke: #6b6b6b;
  --color-iron: #444444;
  --color-verdigris-wash: #ebf5ed;
  --color-slate-mist: #bdd4f0;
  --color-pewter-haze: #98a7aa;
  --color-stone: #cbcbca;

  /* Rhymes Display 300 → Noto Serif JP 300; Suisse Int'l → Noto Sans JP */
  --font-display: "Noto Serif JP", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;

  --text-caption: 11px;
  --text-heading-sm: 20px;
  --text-heading: 32px;
  --text-display: 88px;

  --page-max-width: 1200px;
  --section-gap: 80px;
  --card-padding: 24px;
  --element-gap: 10px;

  --radius-buttons: 2px;
  --radius-cards: 8px;
  --hairline: 1px solid var(--color-graphite);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--color-parchment);
  color: var(--color-graphite);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }

/* Japanese headings: break at phrase boundaries, keep lines balanced */
.display, .heading, .feature__title, .intro__text, .hero__sub, .closing__body {
  word-break: auto-phrase;
  text-wrap: balance;
}
.display span { display: inline-block; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7.4vw, var(--text-display));
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-feature-settings: "palt";
}
.heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3vw, var(--text-heading));
  line-height: 1.45;
  letter-spacing: 0;
  font-feature-settings: "palt";
}
.eyebrow {
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--color-smoke);
  margin-bottom: var(--element-gap);
}
.body { font-size: 16px; color: var(--color-smoke); }
.body + .body { margin-top: 16px; }

/* ---------- Buttons (2px micro radius) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-buttons);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--solid { background: var(--color-ink); color: var(--color-parchment); border-color: var(--color-ink); }
.btn--solid:hover { background: transparent; color: var(--color-graphite); border-color: var(--color-graphite); }
.hero .btn--solid:hover { color: var(--color-parchment); border-color: var(--color-parchment); }
.btn--ghost { background: transparent; color: var(--color-graphite); border-color: var(--color-graphite); }
.btn--ghost:hover { background: var(--color-graphite); color: var(--color-parchment); }
.btn--ghost-light { background: transparent; color: var(--color-parchment); border-color: var(--color-parchment); }
.btn--ghost-light:hover { background: var(--color-parchment); color: var(--color-graphite); }
.btn--small { padding: 6px 16px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-row--left { justify-content: flex-start; margin-top: 32px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: var(--color-parchment);
  color: var(--color-graphite);
  border-bottom: 1px solid rgba(10, 10, 10, .12);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.nav.is-top { background: var(--color-ink); color: var(--color-parchment); border-bottom-color: transparent; }
.nav__inner {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav__mark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.nav__mark-ja { font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: 0.04em; }
.nav__mark-en { font-size: 10px; letter-spacing: 0.08em; opacity: .65; }
.nav__links { display: flex; gap: 28px; font-size: 14px; }
.nav__links a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.nav__links a:hover { background-size: 100% 1px; }
.btn--nav { justify-self: end; background: var(--color-ink); color: var(--color-parchment); border-color: var(--color-ink); }
.btn--nav:hover { background: transparent; color: var(--color-graphite); border-color: var(--color-graphite); }
.nav.is-top .btn--nav { background: var(--color-verdigris-wash); color: var(--color-graphite); border-color: var(--color-verdigris-wash); }
.nav.is-top .btn--nav:hover { background: transparent; color: var(--color-parchment); border-color: var(--color-parchment); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  background: #0a0c0c;
  color: var(--color-parchment);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero__still { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__copy {
  position: relative;
  text-align: center;
  padding: 0 24px 12vh;
  max-width: 1000px;
}
.hero__title { color: var(--color-parchment); }
.hero__sub { margin: 20px auto 32px; font-size: 16px; line-height: 1.8; max-width: 34em; opacity: .9; }

/* ---------- Partner logo bar ---------- */
.logos { max-width: var(--page-max-width); margin: 0 auto; padding: 56px 24px 0; text-align: center; }
.logos__label { margin-bottom: 24px; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 48px; }
.logo { color: var(--color-graphite); opacity: .65; font-size: 18px; line-height: 1; white-space: nowrap; }
.logo--serif { font-family: var(--font-display); font-weight: 400; letter-spacing: .12em; }
.logo--caps { font-size: 14px; font-weight: 500; letter-spacing: .22em; }
.logo--sans { font-size: 16px; font-weight: 500; letter-spacing: .04em; }
.logo--italic { font-family: Georgia, serif; font-style: italic; font-size: 20px; }

/* ---------- Intro ---------- */
.intro { max-width: var(--page-max-width); margin: 0 auto; padding: var(--section-gap) 24px 0; text-align: center; }
.intro__text { max-width: 720px; margin: 0 auto; font-size: 20px; line-height: 2; text-align: left; }

/* ---------- Feature grid ---------- */
.features, .split { max-width: var(--page-max-width); margin: 0 auto; padding: var(--section-gap) 24px 0; }
.section-head { margin-bottom: 32px; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature__title { font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 1.4; margin-top: 20px; font-feature-settings: "palt"; }
.feature__body { font-size: 14px; color: var(--color-smoke); margin-top: 8px; line-height: 1.85; }

/* Pastel panels: no border, no shadow; the mock UI bleeds to the edge */
.panel { position: relative; border-radius: var(--radius-cards); overflow: hidden; aspect-ratio: 4 / 5; }
.panel--sage { background: var(--color-verdigris-wash); }
.panel--slate { background: var(--color-slate-mist); }
.panel--stone { background: var(--color-stone); }
.panel--wide { aspect-ratio: 6 / 5; }

.ui {
  position: absolute;
  background: var(--color-parchment);
  border: 1px solid rgba(10, 10, 10, .9);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-graphite);
}
.ui--bleed { top: 14%; left: 12%; right: -1px; bottom: -1px; border-radius: 6px 0 0 0; padding: 0 20px 18px; }
.ui__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 0; margin-bottom: 8px;
  border-bottom: 1px solid rgba(10, 10, 10, .14);
  font-weight: 500;
}
.ui__meta { font-weight: 400; font-size: 11px; color: var(--color-smoke); white-space: nowrap; }
.ui__foot { position: absolute; left: 20px; right: 16px; bottom: 16px; font-size: 11px; color: var(--color-smoke); }

.check li, .steps li {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid rgba(10, 10, 10, .08);
}
.check em, .steps em { font-style: normal; font-size: 11px; color: var(--color-smoke); white-space: nowrap; }
.check li::before {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: 4px;
  border: 1px solid var(--color-graphite); border-radius: 2px;
}
.check li.is-done::before { background: var(--color-graphite); box-shadow: inset 0 0 0 2px var(--color-parchment); }
.check li span { flex: 1; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; }
.steps li span { flex: 1; }
.steps li::before { content: counter(step); flex: none; width: 18px; font-size: 11px; color: var(--color-smoke); }
.steps li.is-done span { color: var(--color-smoke); text-decoration: line-through; text-decoration-thickness: 1px; }
.steps li.is-now { background: var(--color-verdigris-wash); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }

.slots__month { font-size: 11px; color: var(--color-smoke); margin-bottom: 4px; }
.slots li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(10, 10, 10, .08); }
.slots li span { flex: 1; }
.slots em { font-style: normal; font-size: 12px; padding: 2px 8px; border: 1px solid var(--color-graphite); border-radius: 2px; }
.slots em.is-taken { border-color: transparent; color: var(--color-pewter-haze); text-decoration: line-through; }

/* ---------- Two-column feature (55 / 45) ---------- */
.split { display: grid; grid-template-columns: 55fr 45fr; gap: 64px; align-items: center; }
.split__text .heading { margin-bottom: 20px; }
.ui--report { top: 12%; left: 9%; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 20px; }
.figures dt { font-size: 11px; color: var(--color-smoke); }
.figures dd { font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.figures span { font-size: 11px; color: var(--color-smoke); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 30%; padding-bottom: 36px; }
.bars i { flex: 1; height: var(--h); background: var(--color-pewter-haze); border-radius: 1px; }
.bars i.is-now { background: var(--color-graphite); }

/* ---------- Closing statement ---------- */
.closing { padding: calc(var(--section-gap) * 1.6) 24px var(--section-gap); text-align: center; }
.closing__body { margin: 24px auto 32px; max-width: 34em; color: var(--color-smoke); }

/* ---------- Footer ---------- */
.footer { border-top: var(--hairline); }
.footer__inner {
  max-width: var(--page-max-width); margin: 0 auto; padding: 40px 24px 120px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer__mark { font-family: var(--font-display); font-size: 18px; letter-spacing: .04em; }
.footer__note { font-size: 12px; color: var(--color-smoke); margin-top: 8px; max-width: 30em; }
.footer__info { font-size: 13px; display: grid; gap: 4px; }
.footer__info div { display: flex; gap: 16px; }
.footer__info dt { color: var(--color-smoke); width: 5em; }

/* ---------- Bottom-right notice card (cookie-banner position) ---------- */
.notice {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  max-width: 320px; padding: 16px;
  background: var(--color-parchment);
  border: var(--hairline); border-radius: var(--radius-cards);
  font-size: 13px; line-height: 1.7; color: var(--color-smoke);
  display: flex; gap: 12px; align-items: flex-end;
}
.notice[hidden] { display: none; }

/* ---------- Responsive ---------- */
/* PC only: raise the hero copy a little and widen the intro measure */
@media (min-width: 901px) {
  .hero__copy { padding-bottom: 24vh; }
  .intro__text { max-width: 960px; }
}
@media (max-width: 900px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .features__grid { grid-template-columns: 1fr; gap: 48px; }
  .panel { aspect-ratio: 5 / 4; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .nav__inner { padding: 0 16px; gap: 12px; }
  .nav__mark-ja { font-size: 15px; }
  .nav__mark-en { display: none; }
  .btn--nav { padding: 8px 14px; font-size: 13px; }
  .hero__copy { padding: 0 16px 10vh; }
  .hero__sub { font-size: 15px; }
  .logos, .intro, .features, .split, .closing { padding-left: 16px; padding-right: 16px; }
  .logos__row { gap: 14px 28px; }
  .logo { font-size: 15px; }
  .intro__text { font-size: 17px; }
  .panel, .panel--wide { aspect-ratio: 4 / 5; }
  .ui--bleed { left: 8%; padding: 0 16px 16px; }
  .figures dd { font-size: 18px; }
  .notice { left: 16px; right: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
