/* ==========================================================
   Base: reset, typography, layout primitives
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.9;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong,
b {
  font-weight: 500;
}

em {
  font-style: normal;
}

small {
  font-size: var(--fs-small);
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* headings */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.4;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.45;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.5;
  letter-spacing: 0;
}

h4 {
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: 0;
}

p {
  text-wrap: pretty;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* utilities */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--page-x) * 2);
  margin-inline: auto;
  padding-inline: var(--page-x);
}

.measure {
  max-width: var(--measure);
}

main {
  display: block;
}

/* sections */
.section {
  padding-block: var(--section-y);
}

.section--paper {
  background: var(--paper);
}

.section--mist {
  background: var(--mist);
}

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}

.section--ink h2,
.section--ink h3 {
  color: #fff;
}

.section--deep {
  background: var(--ink-deep);
  color: var(--on-ink);
}

.section-head {
  margin-bottom: var(--sp-7);
}

.section-head .lead {
  margin-top: var(--sp-5);
  max-width: 760px;
}

.section-head--center {
  text-align: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

/* eyebrow (英字ラベル) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-2);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

.section--ink .eyebrow,
.section--deep .eyebrow {
  color: var(--on-ink-2);
}

.section-head--center .eyebrow {
  justify-content: center;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.9;
  color: var(--text);
}

.section--ink .lead {
  color: var(--on-ink);
}

.text-2 {
  color: var(--text-2);
}

.small {
  font-size: var(--fs-small);
  line-height: 1.7;
}

/* reveal (scroll-in) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
