@charset "UTF-8";

/* =========================================================
   base.css — リセット / デザイントークン / 基本タイポグラフィ
   サイト全体の「色・余白・文字サイズ」はここだけで管理する
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  /* 色 */
  --c-text:        #111111;
  --c-text-muted:  #666666;
  --c-text-weak:   #999999;
  --c-bg:          #ffffff;
  --c-bg-subtle:   #f6f6f6;
  --c-line:        #e2e2e2;
  --c-line-strong: #111111;
  --c-accent:      #0064d2;
  --c-accent-dark: #004a9c;

  /* ヘッダー・フッター専用（黒地） */
  --c-header-bg:     #0d0d0d;
  --c-header-line:   rgba(255, 255, 255, 0.14);
  --c-footer-muted:  rgba(255, 255, 255, 0.62);
  --c-footer-weak:   rgba(255, 255, 255, 0.4);

  /* 余白（8pxグリッド） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;
  --sp-9: 128px;

  /* 文字サイズ */
  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.8125rem; /* 13px */
  --fs-base: 0.9375rem; /* 15px */
  --fs-md:   1.0625rem; /* 17px */
  --fs-lg:   1.375rem;  /* 22px */
  --fs-xl:   1.75rem;   /* 28px */
  --fs-2xl:  2.25rem;   /* 36px */
  --fs-3xl:  3rem;      /* 48px */

  /* レイアウト */
  --container:    1200px;
  --container-nr: 840px; /* 読み物用の狭いカラム */
  --header-h:     64px;

  /* その他 */
  --radius: 2px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  overflow-x: hidden; /* 端末幅を超える要素があっても横スクロール・余白を出さない保険 */
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.9;
  font-feature-settings: "palt" 1; /* 日本語の字間を詰める */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

/* キーボード操作時のみフォーカスリングを出す */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ---------- 汎用ユーティリティ ---------- */

/* 画面には出さないがスクリーンリーダーには読ませる */
.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.u-center { text-align: center; }
.u-muted  { color: var(--c-text-muted); }

/* 欧文の小見出し（Sony風の細いラベル） */
.u-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

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