/* ==========================================================================
   Toru Matsumoto Website — base styles
   Figma: Toru Matsumoto Website v1.0 (0820) / node 2:2 "Home"
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&family=Special+Elite&family=Inria+Serif&family=Inder&display=swap");

:root {
  /* colors */
  --color-bg: #f5f3ef;
  --color-fg: #000000;
  --color-fg-muted: rgba(0, 0, 0, 0.6);
  --color-fg-faint: rgba(0, 0, 0, 0.5);
  --color-footer-bg: #151515;
  --color-footer-fg: #ffffff;
  --color-border: #000000;

  /* type */
  --font-sans: "Inter", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-serif: "Source Serif 4", "Noto Serif JP", serif;
  --font-typewriter: "Special Elite", monospace;
  --font-mono: "IBM Plex Mono", monospace;
  --font-serif-alt: "Inria Serif", serif;
  --font-nav: "Inder", sans-serif;

  /* layout */
  --page-max-width: 1440px;
  --gutter: 62px;
  /* ラベル列(154px)+gap(24px)で、本文はページ左端から240pxに始まる(Figma準拠) */
  --label-col-width: 154px;

  --divider-color: #000000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.4s ease;
}

a:hover {
  opacity: 0.6;
}

/* OS側で視差効果を減らす設定にしている環境ではフェードを止める */
@media (prefers-reduced-motion: reduce) {
  a {
    transition: none;
  }
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

.container {
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.divider {
  border: none;
  border-top: 1px solid var(--divider-color);
  margin: 0;
}

/* page label ("ABOUT" 等、下層ページ最上部のラベル) -------------------- */
/* ページごとのFigma実測差(サイズ・字間・上余白)は各ページCSSで上書きする */
.page-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 3px;
  color: rgba(0, 0, 0, 0.7);
  padding-top: 24px;
}

/* section label ("01 ABOUT" style) ---------------------------------- */
.section-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: var(--color-fg-faint);
  line-height: 1.6;
}

/* section grid: label column + content column ------------------------ */
.section-grid {
  display: grid;
  grid-template-columns: var(--label-col-width) 1fr;
  gap: 24px;
}

/* セクション共通(全ページで使用) --------------------------------- */
.section {
  padding-block: clamp(40px, 6vw, 76px);
}

.section-heading {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.375;
  letter-spacing: -0.05em;
  margin-top: 0;
  margin-bottom: 20px;
}

.section-heading--lg {
  /* Figma: 44px / line-height 55px */
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.section-lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.03em;
  max-width: 38em;
  margin-bottom: 24px;
}

.link-arrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
}

/* Figmaの意図的な改行。狭い画面では自然な折り返しに戻す */
.br-lg {
  display: inline;
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .br-lg {
    display: none;
  }
}
