/* ==========================================================
   base.css — サイト全体のルール（色・文字・余白）
   ここで決めた値以外は使わない。変えるときはここだけ直す。
   ========================================================== */

:root {
  /* ---- 色 ---- */
  /* 基本：白と黒（黒はロゴの紺に寄せた「墨紺」） */
  --ink: #14112E;         /* 文字・暗い背景 */
  --white: #FFFFFF;
  --paper: #F5F5F2;       /* 薄い背景 */
  /* TSUNAGU の3色（ロゴから）：赤・青・黄で「つなぐ」 */
  --ts-red: #BF312F;
  --ts-blue: #3B328D;
  --ts-yellow: #ECE028;
  /* STAND OUT の赤（ロゴ・ユニフォーム） */
  --so-red: #E60012;
  /* 補助（上の色の透明度違い） */
  --line: rgb(20 17 46 / 0.12);
  --text-sub: rgb(20 17 46 / 0.64);
  --on-dark-line: rgb(255 255 255 / 0.18);
  --on-dark-sub: rgb(255 255 255 / 0.7);

  /* ---- 文字（見出し・本文・注釈の3段階 ＋ 特大） ---- */
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Barlow Condensed", "Noto Sans JP", sans-serif;   /* 英字・数字の飾り */
  --fs-display: clamp(2.75rem, 12.5vw, 7.25rem);  /* トップの大見出しだけ */
  --fs-heading: clamp(1.75rem, 6vw, 3rem);        /* 見出し */
  --fs-body: 1rem;                                /* 本文 16px */
  --fs-note: 0.8125rem;                           /* 注釈・ラベル 13px */
  --lh-tight: 1.3;
  --lh-body: 1.95;

  /* ---- 余白（8pxの倍数だけを使う） ---- */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 120px;
  --sp-7: 176px;
  --section: 104px;         /* セクションの上下余白（スマホ） */
  --gutter: 20px;           /* 画面の左右余白（スマホ） */
  --max: 1200px;            /* 中身の最大幅 */

  /* ---- その他 ---- */
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* ゆっくり止まる、上品な動き */
}

@media (min-width: 768px) {
  :root { --section: var(--sp-6); --gutter: 48px; --header-h: 80px; }
}
@media (min-width: 1280px) {
  :root { --section: var(--sp-7); --gutter: 64px; }
}

/* ---- リセット ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 1;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { line-height: var(--lh-tight); font-weight: 700; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ts-blue); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---- 共通の入れ物 ---- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
br.pc { display: none; }               /* パソコンだけで改行する */
@media (min-width: 768px) { br.pc { display: inline; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
