/* ───────────────────────────────────────────────────────────
   れいわ税理士法人 採用サイト — design tokens & base
   Modern / sophisticated · gold + charcoal palette · Noto Serif JP
   ─────────────────────────────────────────────────────────── */

:root {
  /* Brand = antique gold emblem + warm charcoal wordmark. */
  --charcoal:      oklch(0.27 0.012 72);    /* warm charcoal — primary ink/brand */
  --charcoal-deep: oklch(0.205 0.012 70);   /* darkest — footer / CTA ground */
  --gold:          oklch(0.54 0.115 76);    /* antique gold — primary accent, deepened from the logo's sampled tone for AA contrast on small text */
  --gold-soft:     color-mix(in oklab, var(--gold), white 20%); /* lighter gold — hover */
  --gold-deep:     oklch(0.66 0.108 76);    /* deeper honey — secondary accent */
  --sage:          oklch(0.945 0.022 86);   /* warm sand surface tint */
  --sage-deep:     oklch(0.885 0.030 84);   /* borders on sand */
  --mist:          oklch(0.975 0.012 88);   /* faint warm surface */

  /* Warm neutrals (ivory paper, charcoal ink) */
  --paper:         oklch(0.987 0.006 90);   /* page background — ivory */
  --ink:           oklch(0.285 0.010 70);   /* body text — warm charcoal */
  --ink-soft:      oklch(0.47 0.012 72);    /* secondary text */
  --ink-faint:     oklch(0.62 0.012 74);    /* captions */
  --line:          oklch(0.905 0.010 84);   /* warm hairlines */

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --r-lg: 20px;
  --r-xl: 28px;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(54,42,18,0.05), 0 2px 8px rgba(54,42,18,0.04);
  --shadow-md: 0 6px 24px rgba(54,42,18,0.09), 0 2px 6px rgba(54,42,18,0.05);
  --shadow-lg: 0 24px 60px rgba(54,42,18,0.15), 0 6px 16px rgba(54,42,18,0.07);
}

/* Flat hex fallback for browsers without oklch()/color-mix() support (pre-2023 engines).
   Redeclaring a custom property a second time does NOT reliably fall back like a normal
   property does — custom-property values aren't syntax-checked at declare time, so the
   oklch() version would just win regardless of support. @supports actually gates it. */
@supports not (color: oklch(0 0 0)) {
  :root {
    --charcoal: #2a2620;
    --charcoal-deep: #1b1611;
    --gold: #946400;
    --gold-soft: #a98247;
    --gold-deep: #b8883e;
    --sage: #f3ecdd;
    --sage-deep: #e3d8c3;
    --mist: #faf7ee;
    --paper: #fcfbf6;
    --ink: #2d2925;
    --ink-soft: #5f5a54;
    --ink-faint: #8b857e;
    --line: #e3dfd8;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  text-wrap: balance;
}

a { color: inherit; text-decoration: none; }

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

/* ── layout helpers ── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 130px); position: relative; }

/* ── eyebrow / section label ── */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: none;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.section-head { margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  margin-top: 18px;
  line-height: 1.35;
}
.section-head .lead {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: none;
  word-break: keep-all;
}
@media (max-width: 600px) {
  .section-head .lead { word-break: normal; }
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .4s var(--ease), background .3s var(--ease),
              color .3s var(--ease), box-shadow .4s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--charcoal);
  color: #fff;
  box-shadow: 0 10px 26px rgba(54,42,18,0.22);
}
.btn-primary:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(54,42,18,0.3); }
.btn-ghost {
  background: oklch(0.987 0.006 90 / 0.5);
  backdrop-filter: blur(6px);
  color: var(--charcoal);
  border-color: var(--sage-deep);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); background: var(--mist); }

/* ── reveal-on-scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
