/* ============================================================
   Typography — 型階層（Type Scale）
   ほぼ全てのテキストを役割で受けるための網羅的な型システム。
   背骨は JabaracDesign の二層構造：
     ・記憶・蓄積の層＝明朝（serif）── display / headline / title / data
     ・操作・現在の層＝角ゴ（sans）── subhead / lead / body / supporting / caption / label
   サイズは等比ラダーを避け、上に大きく下に密へ不均等に刻む。
   役割ごとに行間・字間を変え、和文は palt で詰める。
   署名色は記号色のため本文・リンクには使わない（欄外註参照）。
   ============================================================ */

/* ── 層A：記憶・蓄積（明朝） ─────────────────────────── */

.ty-display {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-display); line-height: var(--leading-head);
  letter-spacing: .05em; font-feature-settings: "palt"; color: var(--ink);
}
.ty-headline {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-headline); line-height: var(--leading-head);
  letter-spacing: .04em; font-feature-settings: "palt"; color: var(--ink);
}
.ty-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-title); line-height: 1.55;
  letter-spacing: .03em; font-feature-settings: "palt"; color: var(--ink);
}
/* 数値は静かな主役。桁が動いても揺れない等幅（tnum） */
.ty-data {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-data); line-height: 1.2;
  letter-spacing: .01em; font-feature-settings: "tnum"; color: var(--ink);
}
.ty-data .unit { font-size: var(--text-body); color: var(--ash); margin-left: .15em; }

/* ── 層B：操作・現在（角ゴ） ─────────────────────────── */

.ty-subhead {
  font-family: var(--font-sans); font-weight: 700;
  font-size: var(--text-subhead); line-height: 1.6;
  letter-spacing: .02em; color: var(--ink);
}
/* リード：本文へ導く一段大きい無強調の段落 */
.ty-lead {
  font-family: var(--font-sans); font-weight: 400;
  font-size: var(--text-subhead); line-height: var(--leading-snug);
  color: var(--ash); text-align: justify;
}
.ty-body {
  font-family: var(--font-sans); font-weight: 400;
  font-size: var(--text-body); line-height: var(--leading-body);
  letter-spacing: .01em; color: var(--ink); text-align: justify;
}
/* サポーティングテキスト：本文を補う一段弱い説明 */
.ty-supporting {
  font-family: var(--font-sans); font-weight: 400;
  font-size: var(--text-sm); line-height: 1.8;
  color: var(--ash); text-align: justify;
}
.ty-caption {
  font-family: var(--font-sans); font-weight: 400;
  font-size: var(--text-xs); line-height: 1.7;
  letter-spacing: .04em; color: var(--ash);
}
/* ラベル／オーバーライン：UIの見出し札。情報を運ぶ字間 */
.ty-label {
  font-family: var(--font-sans); font-weight: 700;
  font-size: var(--text-xs); line-height: 1.5;
  letter-spacing: .14em; color: var(--ash);
}

/* ── インライン強調 ─────────────────────────────────── */

/* 弱いテキストの中で一語だけ地の色へ引き上げる */
.ty-strong { font-weight: 700; color: var(--ink); }
/* 数値だけ等幅に（本文の途中でも揺れない） */
.ty-num { font-feature-settings: "tnum"; }
/* リンク：署名色は記号色のため使わず、罫で示す */
.ty-link {
  color: inherit; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ash) 70%, transparent);
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast), color var(--dur-fast);
}
.ty-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ── ブロック ───────────────────────────────────────── */

/* 引用：欄外註と同じ所作で署名色の縦罫を一本 */
.ty-quote {
  font-family: var(--font-serif); font-weight: 400;
  font-size: var(--text-subhead); line-height: var(--leading-snug);
  color: var(--ink); border-left: 2px solid var(--brand);
  padding: 2px 0 2px 16px; font-feature-settings: "palt";
}
.ty-quote .by {
  display: block; margin-top: 8px;
  font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ash);
  letter-spacing: .04em;
}
.ty-quote .by::before { content: "── "; }

/* 箇条書き：マーカーは署名色を使わず、地に沈む罫の点 */
.ty-list {
  list-style: none;
  font-family: var(--font-sans); font-size: var(--text-body);
  line-height: var(--leading-body); color: var(--ink);
}
.ty-list li { position: relative; padding-left: 18px; }
.ty-list li + li { margin-top: 4px; }
.ty-list li::before {
  content: ""; position: absolute; left: 2px; top: .85em;
  width: 5px; height: 1.5px; background: var(--ash);
}

/* ── 色の微修飾（役割クラスの上に重ねる） ─────────────── */
.ty-ash   { color: var(--ash); }
.ty-ink   { color: var(--ink); }
.ty-serif { font-family: var(--font-serif); }
.ty-sans  { font-family: var(--font-sans); }
