/* ═══════════════════════════════════════════
   Base Typography & Layout
   ═══════════════════════════════════════════ */

/* ── Accessibility: Skip Link ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 99999;
  padding: 12px 24px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ── Accessibility: Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.section--white :focus-visible,
.section--white a:focus-visible,
.section--white button:focus-visible {
  outline-color: var(--black);
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.header__nav-link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  opacity: 1;
}

.menu-overlay a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-page);
  width: 100%;
}

.section {
  padding: var(--space-3xl) var(--space-page);
}

.section--white {
  background: var(--white);
  color: var(--black);
}

.section--dark {
  background: var(--gray-950);
}

/* ── Typography Classes ── */
.t-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.t-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.t-heading-1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-5xl);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.t-heading-2 {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.t-heading-3 {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.6;
}

.t-heading-4 {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.6;
}

.t-label {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.t-label--light {
  color: var(--gray-400);
}

.t-body {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: var(--text-base);
  line-height: 2;
}

.t-body-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: var(--text-sm);
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.t-caption {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

.t-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-4xl);
  letter-spacing: -0.02em;
  line-height: 1;
}

.t-large-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--gray-800);
}

/* ── Utility ── */
.max-w-narrow { max-width: 560px; }
.max-w-medium { max-width: 700px; }
.max-w-wide   { max-width: 900px; }
.text-center  { text-align: center; }
.text-muted   { opacity: 0.7; }
.text-subtle  { opacity: 0.4; }

.color-gray-300 { color: var(--gray-300); }
.color-gray-400 { color: var(--gray-400); }
.color-gray-500 { color: var(--gray-500); }
.color-gray-600 { color: var(--gray-600); }

/* ── Dividers ── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--gray-800);
  border: none;
}

.divider--light {
  background: var(--gray-200);
}

.divider--subtle {
  background: var(--gray-900);
}

/* ── Grid Systems ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* ── Image Placeholders ── */
.img-placeholder {
  background: var(--gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 2px;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%, rgba(255,255,255,0.01) 100%);
  pointer-events: none;
}

.img-placeholder--light {
  background: var(--gray-100);
}

.img-placeholder__label {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  color: var(--gray-700);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-noise);
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Flex utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ── Margin utilities ── */
.mb-2xs { margin-bottom: 8px; }
.mb-xs  { margin-bottom: var(--space-xs); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }
.mb-1rem { margin-bottom: 16px; }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

/* ── Text transform ── */
.uppercase { text-transform: uppercase; }

/* ── Image cover utilities ── */
.img-cover {
  width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.img-cover--400 { height: 400px; }
.img-cover--360 { height: 360px; }
.img-cover--320 { height: 320px; }
.img-cover--460 { height: 460px; }
.img-cover--top { object-position: top; }

/* ── Grid align ── */
.grid-align-start { align-items: start; }

/* ── Border helpers ── */
.divider-section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
}

/* ── Card variants ── */
.card-dark {
  padding: var(--space-xl);
  background: var(--gray-900);
  border-radius: 4px;
}
.card-dark-centered {
  text-align: center;
  padding: var(--space-lg);
  background: var(--gray-900);
  border-radius: 4px;
}

/* ── Max-width constraints ── */
.max-w-700 { max-width: 700px; }

/* ── Text utilities ── */
.link-underline {
  text-decoration: underline;
  color: var(--gray-300);
}
.color-gray-600 { color: var(--gray-600); }

/* ── Margin extras ── */
.my-2xl { margin: var(--space-2xl) 0; }
.mb-6  { margin-bottom: 6px; }
.mb-12 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 4px; }

/* ── Section label (Vision/Mission/Value) ── */
.section-label {
  margin-bottom: var(--space-md);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--gray-300);
}
.section-label--sm {
  margin-bottom: var(--space-sm);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--gray-300);
}

/* ── Arrow separator ── */
.arrow-sep {
  color: var(--gray-600);
  font-size: 18px;
}
