/* ============================================================
   core.css — design tokens, reset, base typography, buttons
   Tokigane home v5. Palette / spacing per implementation brief.
   ============================================================ */

:root {
  /* labor-support navy */
  --navy: #2b4075;
  --navy-deep: #1d2d56;
  --navy-pale: #eef2fb;
  --navy-rgb: 43, 64, 117;
  --navy-deep-rgb: 29, 45, 86;
  /* ibis vermillion */
  --ibis: #df5f58;
  --ibis-deep: #b9413d;
  --ibis-pale: #fff1ef;
  /* common surfaces */
  --paper: #fff9f1;
  --neutral: #f8f7f2;
  --ink: #1e2528;
  --ink-soft: #56606a;
  --gold: #b9872f;
  --gold-rgb: 185, 135, 47;
  /* Meaning-bearing gold text. Keep --gold for decorative accents. */
  --gold-text: #87631f;
  --border: #dce1dd;
  --moss: #445d52;
  --white: #ffffff;
  --white-rgb: 255, 255, 255;

  /* --- shared design DNA (promoted from home v5 sections) ---
     Semantic aliases for values the home sections hard-code today.
     Lower pages (disability etc.) should reach for these so the site
     reads as one grammar. Home sections keep their literals for now. */
  --heading: #17315f;          /* serif section headings on light bands */
  --ink-strong: #12244a;       /* strong ink: footer / cta / external bands */
  --muted: #526272;            /* secondary body text in section bands */
  --surface-panel: rgba(255, 255, 255, 0.9); /* translucent white card face */
  --hairline: rgba(29, 45, 86, 0.13);        /* navy hairline on white panels */

  --shadow-soft: 0 16px 40px rgba(20, 40, 64, 0.08);
  --shadow-card: 0 10px 28px rgba(20, 40, 64, 0.06);
  --shadow-panel: 0 14px 34px rgba(29, 45, 86, 0.08); /* white panel lift used across sections */

  --radius-card: 8px;
  --radius-panel: 12px;
  --radius-soft: 16px;
  --radius-pill: 999px;

  --container: 1160px;
  --container-wide: 1280px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(72px, 8vw, 96px);
  --section-y-tight: clamp(56px, 7vw, 80px);

  /* readable line lengths shared by long-form lower-page copy */
  --measure-reading: 42em;
  --measure-reading-wide: 48em;

  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Shippori Mincho", serif;

  /* type scale — keep section headings below hero/final-cta tier.
     Matches STYLE_TOKENS_REFERENCE home v5 font guidance. */
  --fs-eyebrow: 0.8rem;
  --fs-section-title: clamp(1.9rem, 2.4vw, 2.35rem);          /* standard section h2 */
  --fs-section-title-strong: clamp(2rem, 3vw, 2.58rem);       /* stronger nodes (cta / voices) */
  --fs-lead: clamp(1rem, 1.1vw, 1.12rem);                     /* intro / lead paragraph */
  --fs-body: 1rem;
  --fs-note: 0.9rem;
  --fs-caption: 0.86rem;
  --fs-label: 0.95rem;
  --fs-button: 0.95rem;
  --fs-card-title: clamp(1.08rem, 1.6vw, 1.35rem);
  --hero-title-business: clamp(1.9rem, 3.2vw, 2.7rem);
  --hero-title-emotional: clamp(2.95rem, 4.15vw, 4.85rem);

  /* font-weight role tokens. Keep these small and semantic so lower pages
     can share one typography grammar without sharing component layout. */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;

  --fw-body: var(--fw-medium);
  --fw-note: var(--fw-medium);
  --fw-caption: var(--fw-medium);
  --fw-heading: var(--fw-bold);
  --fw-subheading: var(--fw-bold);
  --fw-label: var(--fw-bold);
  --fw-button: var(--fw-bold);
  --fw-emphasis: var(--fw-bold);
  --fw-price: var(--fw-heavy);

  /* line-height role tokens */
  --lh-solid: 1;
  --lh-tight: 1.2;
  --lh-button: 1.3;
  --lh-heading: 1.35;
  --lh-compact: 1.4;
  --lh-card: 1.5;
  --lh-note: 1.7;
  --lh-body: 1.75;
  --lh-lead: 1.9;
  --lh-lead-loose: 1.95;

  --header-h: 72px;
}

@media (max-width: 560px) {
  :root {
    --hero-title-business: clamp(1.66rem, 7.4vw, 1.95rem);
    --hero-title-emotional: clamp(2.25rem, 11vw, 3.18rem);
  }
}

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 16px;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 { line-height: var(--lh-compact); font-weight: var(--fw-heading); }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.04em;
  font-weight: var(--fw-label);
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }
.eyebrow--light::before { background: rgba(255, 255, 255, 0.6); }
.eyebrow--ibis { color: var(--ibis-deep); }
.eyebrow--ibis::before { display: none; }
.eyebrow__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--radius-pill);
  background: var(--ibis);
  color: var(--white);
}
.eyebrow__dot .tkg-icon { width: 16px; height: 16px; }

.tkg-icon { width: 20px; height: 20px; flex: none; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ============== BUTTONS ==============
   Shared button system for every page. Lower pages should use these
   rather than re-styling links: --primary (navy / labor-support主導線),
   --disability (ibis / 障害年金相談), --outline / --disability-outline,
   plus --sm / --block size modifiers. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-button);
  font-size: var(--fs-body);
  line-height: var(--lh-compact);
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  text-align: left;
}
.btn .tkg-icon { width: 19px; height: 19px; }
.btn__arrow { margin-left: auto; width: 18px; height: 18px; transition: transform 0.18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary { background: var(--navy); color: var(--white); box-shadow: 0 10px 24px rgba(43, 64, 117, 0.25); }
.btn--primary:hover { background: var(--navy-deep); transform: translateY(-2px); }

.btn--disability { background: var(--ibis); color: var(--white); box-shadow: 0 10px 24px rgba(223, 95, 88, 0.25); }
.btn--disability:hover { background: var(--ibis-deep); transform: translateY(-2px); }

.btn--disability-outline { background: var(--white); color: var(--ibis-deep); border-color: rgba(223, 95, 88, 0.4); }
.btn--disability-outline:hover { background: var(--ibis-pale); }

.btn--outline { background: var(--white); color: var(--navy-deep); border-color: var(--border); }
.btn--outline:hover { border-color: var(--navy); background: var(--navy-pale); }

.btn--sm { padding: 11px 20px; font-size: 0.92rem; }
.btn--block { width: 100%; }

[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
