@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=IBM+Plex+Sans+JP:wght@400;500;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* =========================================================
   Altegravity — コンポーネントのスタイル
   値はすべて tokens.css のカスタムプロパティから読む。
   コンポーネント固有の寸法（ボタンの高さなど）だけをここに書く。
   ========================================================= */

/* ---- ベース：ページの地と本文 ---- */
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* プレビュー用の並べ置き枠（サイトでは使わなくてよい） */
.ag-stage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-6); }
.ag-stage--column { flex-direction: column; align-items: stretch; }

/* インライン SVG アイコン共通 */
.ag-icon { display: block; flex: none; }

/* ---- Eyebrow（— 01 / LABEL）：SectionHeading と HeroScene が使う ---- */
.ag-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ag-eyebrow__rule { flex: none; width: 24px; height: 1px; background: var(--accent); }
.ag-eyebrow__index { color: var(--accent-ink); }
.ag-eyebrow__sep { color: var(--line-strong); }

/* =========================================================
   グリッチ — 映像が一瞬乱れるような、ノイズの走るブレ
   グリッチの拍（duration-glitch-gap、8 秒ごと）が、画面に見えている対象に glitch(el) で鳴らす。
   乱すのは英字の見出し・InfoTable の帯・EmptyState の数字だけ。3D・背景・HUD は乱さない。
   本体は数コマ横へ飛んで水色と白ににじみ、文字の複製（.ag-glitch__slice）が横の細い帯だけ左右へずれる。
   明るさは変えない（点滅にしない）
   ========================================================= */
.ag-glitching { animation: ag-glitch-host var(--duration-glitch) steps(1, end); }
@keyframes ag-glitch-host {
  0%   { transform: translate(-3px, 0) skewX(-6deg); text-shadow: -3px 0 var(--accent), 3px 0 color-mix(in srgb, var(--ink) 45%, transparent); }
  15%  { transform: translate(4px, 0); text-shadow: 3px 0 var(--accent), -2px 0 color-mix(in srgb, var(--ink) 35%, transparent); }
  30%  { transform: translate(-1px, 1px) skewX(3deg); text-shadow: -2px 0 var(--accent); }
  45%  { transform: translate(2px, 0); text-shadow: none; }
  60%  { transform: translate(-1px, 0); text-shadow: 1px 0 var(--accent); }
  75%, 100% { transform: none; text-shadow: none; }
}
.ag-glitch { position: absolute; inset: 0; pointer-events: none; }
/* 複製：帯の位置（--ag-g-t1 / b1 / t2 / b2）とずれ（--ag-g-x）は glitch() が毎回くじで決める */
.ag-glitch__slice {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  margin: 0;
  color: inherit;
  opacity: 0;
  animation: ag-glitch-slice var(--duration-glitch) steps(1, end) forwards;
}
.ag-glitch__slice--accent { color: var(--accent); }
@keyframes ag-glitch-slice {
  0%   { opacity: 1; transform: translateX(var(--ag-g-x)); clip-path: inset(var(--ag-g-t1) 0 var(--ag-g-b1) 0); }
  20%  { opacity: 1; transform: translateX(calc(var(--ag-g-x) * -0.6)); clip-path: inset(var(--ag-g-t2) 0 var(--ag-g-b2) 0); }
  40%  { opacity: 0; }
  55%  { opacity: 1; transform: translateX(calc(var(--ag-g-x) * 0.4)); clip-path: inset(var(--ag-g-t1) 0 var(--ag-g-b2) 0); }
  70%, 100% { opacity: 0; }
}

/* =========================================================
   Button — 左上と右下を斜めに切ったボタン
   切り欠きは clip-path で描く。枠線は「外形 − 内形」を evenodd で切り抜いたリング。
   フォーカスリングはボタン本体（切り抜かない）に box-shadow で出す。
   ========================================================= */
.ag-btn {
  --ag-cut: var(--cut-sm);
  --ag-btn-fill: transparent;
  --ag-btn-edge: transparent;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  height: 44px;
  padding: 0 var(--space-6);
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}
.ag-btn__fill,
.ag-btn__edge {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: background-color var(--duration-fast) var(--ease-out);
}
/* 塗り：外形の多角形 */
.ag-btn__fill {
  background: var(--ag-btn-fill);
  clip-path: polygon(var(--ag-cut) 0, 100% 0, 100% calc(100% - var(--ag-cut)), calc(100% - var(--ag-cut)) 100%, 0 100%, 0 var(--ag-cut));
}
/* 枠線：外形と 1px 内側の形の差（evenodd） */
.ag-btn__edge {
  background: var(--ag-btn-edge);
  clip-path: polygon(evenodd,
    var(--ag-cut) 0, 100% 0, 100% calc(100% - var(--ag-cut)), calc(100% - var(--ag-cut)) 100%, 0 100%, 0 var(--ag-cut), var(--ag-cut) 0,
    calc(var(--ag-cut) + 0.5px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) calc(100% - var(--ag-cut) - 0.5px), calc(100% - var(--ag-cut) - 0.5px) calc(100% - 1px), 1px calc(100% - 1px), 1px calc(var(--ag-cut) + 0.5px), calc(var(--ag-cut) + 0.5px) 1px);
}
.ag-btn--sm { height: 36px; padding: 0 var(--space-4); font-size: 13px; gap: var(--space-2); }
.ag-btn--lg { --ag-cut: var(--cut-md); height: 56px; padding: 0 var(--space-8); font-size: 16px; }

/* primary：水色の塗り。文字は on-accent（白にしない） */
.ag-btn--primary { --ag-btn-fill: var(--accent); --ag-btn-edge: var(--accent); color: var(--on-accent); }
.ag-btn--primary:hover { --ag-btn-fill: var(--accent-hover); --ag-btn-edge: var(--accent-hover); }

/* secondary：切り欠きの枠線（line-strong は 3:1 以上）。地は透明なので 3D の上にも置ける */
.ag-btn--secondary { --ag-btn-edge: var(--line-strong); }
.ag-btn--secondary:hover { --ag-btn-edge: var(--accent-ink); --ag-btn-fill: var(--accent-soft); color: var(--accent-ink); }

/* ghost：文字だけ */
.ag-btn--ghost { padding-left: var(--space-2); padding-right: var(--space-2); color: var(--accent-ink); }
.ag-btn--ghost:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* 矢印はホバーで少しだけ前へ */
.ag-arrow { transition: transform var(--duration-base) var(--ease-out); }
.ag-btn:hover .ag-arrow { transform: translateX(3px); }

.ag-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.ag-btn:disabled,
.ag-btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }

/* =========================================================
   Tag — [ WEBGL ] の角括弧ラベル。boxed で 1px の枠
   ========================================================= */
.ag-tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}
.ag-tag::before { content: "["; color: var(--line-strong); }
.ag-tag::after { content: "]"; color: var(--line-strong); }
.ag-tag--accent,
.ag-tag--accent::before,
.ag-tag--accent::after { color: var(--accent-ink); }
.ag-tag--boxed { padding: 0 var(--space-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.ag-tag--boxed::before,
.ag-tag--boxed::after { content: none; }
.ag-tag--boxed.ag-tag--accent { border-color: var(--accent-ink); }

/* =========================================================
   SectionHeading — 英字の大見出し＋日本語サブ
   ========================================================= */
.ag-sh { display: flex; flex-direction: column; gap: var(--space-4); }
.ag-sh--center { align-items: center; text-align: center; }
.ag-sh__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 88px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
}
.ag-sh--sm .ag-sh__title { font-size: 56px; line-height: 56px; }
.ag-sh__sub { margin: 0; font-size: 20px; line-height: 32px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); }
.ag-sh__lead { max-width: var(--measure); margin: var(--space-2) 0 0; font-size: 18px; line-height: 32px; color: var(--ink-muted); }

/* =========================================================
   Card — 直角のカード。四隅に L 字の角の目印
   ========================================================= */
.ag-card {
  --ag-corner: var(--line-strong);
  --ag-corner-len: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-none);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}
/* 角の目印：2px × 長さ の線を四隅に 2 本ずつ（EmptyState も同じ目印を使う） */
.ag-card::after,
.ag-empty::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--ag-corner), var(--ag-corner)) left top / var(--ag-corner-len) 2px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) left top / 2px var(--ag-corner-len) no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) right top / var(--ag-corner-len) 2px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) right top / 2px var(--ag-corner-len) no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) left bottom / var(--ag-corner-len) 2px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) left bottom / 2px var(--ag-corner-len) no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) right bottom / var(--ag-corner-len) 2px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) right bottom / 2px var(--ag-corner-len) no-repeat;
  transition: background-size var(--duration-base) var(--ease-out);
}
a.ag-card:hover { --ag-corner: var(--accent); --ag-corner-len: 20px; border-color: var(--line-strong); box-shadow: var(--glow-accent); }
a.ag-card:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
a.ag-card:hover .ag-arrow { transform: translate(2px, -2px); }

/* メディア枠：画像がないときは無地の surface-2（点や格子の模様は敷かない。点の場は Backdrop の 1 枚だけ） */
.ag-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ag-card__media > img,
.ag-card__media > video,
.ag-card__media > canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-3); padding: var(--space-6); }
.ag-card__meta { margin: 0; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.ag-card__title { margin: 0; font-size: 18px; line-height: 28px; font-weight: 700; color: var(--ink); }
.ag-card__desc { margin: 0; font-size: 14px; line-height: 24px; color: var(--ink-muted); }
.ag-card__tags { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.ag-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  color: var(--accent-ink);
}

/* カードの並べ方：独立したカード（溝あり）と、線を共有するタイル（溝なし） */
.ag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.ag-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.ag-tiles > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 1023px) { .ag-grid, .ag-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .ag-grid, .ag-tiles { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   NewsList — 番号・日付・分類・見出しの行
   ========================================================= */
.ag-news { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ag-news__row {
  display: grid;
  grid-template-columns: 40px 104px 112px minmax(0, 1fr) 20px;
  grid-template-areas: "no date tag title arrow";
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out);
}
.ag-news__no { grid-area: no; font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.12em; color: var(--ink-muted); }
.ag-news__date { grid-area: date; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.ag-news__tag { grid-area: tag; justify-self: start; }
.ag-news__title { grid-area: title; font-size: 15px; line-height: 24px; font-weight: 500; transition: color var(--duration-fast) var(--ease-out); }
.ag-news__arrow { grid-area: arrow; color: var(--ink-muted); transition: transform var(--duration-base) var(--ease-out), color var(--duration-fast) var(--ease-out); }
a.ag-news__row:hover { background: var(--surface); }
a.ag-news__row:hover .ag-news__title,
a.ag-news__row:hover .ag-news__arrow { color: var(--accent-ink); }
a.ag-news__row:hover .ag-news__arrow { transform: translate(2px, -2px); }
a.ag-news__row:focus-visible { outline: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--accent-ink); }
@media (max-width: 767px) {
  .ag-news__row {
    grid-template-columns: auto auto minmax(0, 1fr) 20px;
    grid-template-areas: "no date tag arrow" "title title title arrow";
    gap: var(--space-2) var(--space-3);
    padding: var(--space-5) var(--space-2);
  }
}

/* =========================================================
   InfoTable — プロダクトの仕様書パネル
   左上と右下を cut-lg で切ったパネル。上端に英字ラベルの帯、下端に目盛り。
   地と枠線はボタンと同じ作り：::before が外形の塗り、::after が「外形 − 1px 内側の形」を
   evenodd で切り抜いたリング。中身は padding: 1px でリングの内側に収める。
   ========================================================= */
.ag-info {
  --ag-cut: var(--cut-lg);
  --ag-info-index: 64px;   /* 行番号の列（左の余白 space-8 ＋ 番号） */
  --ag-info-label: 200px;  /* 英字コード＋日本語ラベルの列 */
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 1px;
}
.ag-info::before,
.ag-info::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ag-info::before {
  background: var(--surface);
  clip-path: polygon(var(--ag-cut) 0, 100% 0, 100% calc(100% - var(--ag-cut)), calc(100% - var(--ag-cut)) 100%, 0 100%, 0 var(--ag-cut));
}
.ag-info::after {
  background: var(--line-strong);
  clip-path: polygon(evenodd,
    var(--ag-cut) 0, 100% 0, 100% calc(100% - var(--ag-cut)), calc(100% - var(--ag-cut)) 100%, 0 100%, 0 var(--ag-cut), var(--ag-cut) 0,
    calc(var(--ag-cut) + 0.5px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) calc(100% - var(--ag-cut) - 0.5px), calc(100% - var(--ag-cut) - 0.5px) calc(100% - 1px), 1px calc(100% - 1px), 1px calc(var(--ag-cut) + 0.5px), calc(var(--ag-cut) + 0.5px) 1px);
}

/* 上端の帯：■ [ SPEC ] ·········· UPDATED 2026.11.30 ／／／ */
.ag-info__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 48px;
  padding-left: var(--space-8);   /* 左上の切り欠き（24px）を避ける */
  border-bottom: 1px solid var(--line);
}
.ag-info__readout { display: inline-flex; flex: none; align-items: center; gap: var(--space-3); }
.ag-info__readout .ag-tag { color: var(--ink); }
/* 水色の小さな四角：計器の「点灯中」のしるし。パネル 1 枚に 1 つだけ */
.ag-info__mark { flex: none; width: 6px; height: 6px; background: var(--accent); }
/* 点線のリーダー：ラベルと更新日をつなぐ */
.ag-info__rule {
  flex: 1;
  min-width: var(--space-6);
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) 0 0 / 4px 1px repeat-x;
}
.ag-info__updated,
.ag-info__count {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}
/* 右上の斜線：危険表示のテープのような工業的な飾り（色は line-strong だけ。水色にしない） */
.ag-info__hatch {
  flex: none;
  align-self: stretch;
  width: 72px;
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(-45deg, var(--line-strong) 0 1px, transparent 1px 7px);
}

/* 行：番号｜英字コード＋日本語ラベル｜値。3 つの列は 1 行目のベースラインでそろえる */
.ag-info__list { margin: 0; }
.ag-info__row {
  display: grid;
  grid-template-columns: var(--ag-info-index) var(--ag-info-label) minmax(0, 1fr);
  align-items: baseline;
}
/* 行の区切りは短い破線（実線より「記入欄」らしく見える） */
.ag-info__row + .ag-info__row {
  background: linear-gradient(90deg, color-mix(in srgb, var(--line-strong) 60%, transparent) 0 2px, transparent 2px) left top / 6px 1px repeat-x;
}
.ag-info__index {
  padding: var(--space-5) 0 var(--space-5) var(--space-8);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
}
.ag-info__label { display: flex; align-items: baseline; gap: var(--space-3); margin: 0; padding: var(--space-5) var(--space-4) var(--space-5) 0; }
.ag-info__en {
  flex: none;
  width: 72px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ag-info__ja { font-size: 14px; line-height: 24px; font-weight: 700; color: var(--ink); }
.ag-info__value { margin: 0; padding: var(--space-5) var(--space-8) var(--space-5) 0; font-size: 16px; line-height: 28px; color: var(--ink); overflow-wrap: anywhere; }
.ag-info__value a { color: var(--accent-ink); text-underline-offset: 3px; }

/* 下端：目盛り（8px ごとに短く、40px ごとに長く）と項目数 */
.ag-info__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 40px;
  padding: 0 calc(var(--ag-cut) + var(--space-3)) 0 var(--space-8);   /* 右下の切り欠きを避ける */
  border-top: 1px solid var(--line);
}
.ag-info__ticks {
  flex: none;
  width: 161px;
  height: 8px;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 40px) left bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 8px) left bottom / 100% 4px no-repeat;
}

/* 768px 未満：番号の右にラベル、その下に値を置く 2 列 */
@media (max-width: 767px) {
  .ag-info { --ag-info-index: 56px; }
  .ag-info__row { grid-template-columns: var(--ag-info-index) minmax(0, 1fr); }
  .ag-info__index { grid-row: 1; padding: var(--space-4) 0 0 var(--space-8); }
  .ag-info__label { grid-column: 2; padding: var(--space-4) var(--space-5) 0 0; }
  .ag-info__value { grid-column: 2; padding: var(--space-1) var(--space-5) var(--space-4) 0; }
  .ag-info__head { gap: var(--space-3); }
  .ag-info__updated-label { display: none; }
  .ag-info__hatch { width: 32px; }
  .ag-info__ticks { width: 81px; }
}

/* =========================================================
   TextField
   ========================================================= */
.ag-field { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; max-width: 480px; }
.ag-field__label { display: flex; align-items: center; gap: var(--space-3); font-size: 14px; line-height: 24px; font-weight: 700; color: var(--ink); }
.ag-field__req { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; color: var(--accent-ink); }
.ag-field__control {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 var(--space-4);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}
textarea.ag-field__control { height: auto; min-height: 160px; padding: var(--space-3) var(--space-4); resize: vertical; }
.ag-field__control::placeholder { color: var(--ink-muted); }
.ag-field__control:hover { border-color: var(--ink-muted); }
.ag-field__control:focus { outline: 2px solid transparent; border-color: var(--accent-ink); box-shadow: var(--focus-ring); }
.ag-field__control[aria-invalid="true"] { border-color: var(--danger); }
.ag-field__hint { margin: 0; font-size: 12px; line-height: 20px; color: var(--ink-muted); }
.ag-field__error { display: flex; align-items: center; gap: var(--space-1); margin: 0; font-size: 12px; line-height: 20px; color: var(--danger); }

/* =========================================================
   Notice
   ========================================================= */
.ag-notice {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  max-width: 560px;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ag-notice__icon { margin-top: 4px; color: var(--accent-ink); }
.ag-notice--success { border-color: var(--success); }
.ag-notice--success .ag-notice__icon { color: var(--success); }
.ag-notice--danger { border-color: var(--danger); }
.ag-notice--danger .ag-notice__icon { color: var(--danger); }
.ag-notice__title { margin: 0; font-size: 14px; line-height: 24px; font-weight: 700; color: var(--ink); }
.ag-notice__body { margin: 0; font-size: 14px; line-height: 24px; color: var(--ink-muted); }

/* =========================================================
   EmptyState — 「まだない」「見つからない」を伝える空の状態
   ========================================================= */
.ag-empty {
  --ag-corner: var(--line-strong);
  --ag-corner-len: 12px;
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 320px;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  /* 空いている枠であることを破線で示す（模様は敷かない。後ろの Backdrop が透けて見える） */
  border: 1px dashed var(--line);
}
.ag-empty__readout { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
/* 件数・コードは大きく、ただし静かに（line-strong は大きな文字で 3:1 以上） */
.ag-empty__code {
  font-family: var(--font-display);
  font-size: 96px;
  line-height: 88px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--line-strong);
}
.ag-empty__title { margin: 0; font-size: 20px; line-height: 32px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink); }
.ag-empty__body { max-width: 480px; margin: 0; font-size: 14px; line-height: 24px; color: var(--ink-muted); }
.ag-empty__action { margin-top: var(--space-3); }
/* ページ全体（404 など） */
.ag-empty--lg { min-height: 480px; padding: var(--space-16) var(--space-6); }
.ag-empty--lg .ag-empty__code { font-size: 128px; line-height: 112px; }
.ag-empty--lg .ag-empty__body { font-size: 16px; line-height: 28px; }

@media (max-width: 767px) {
  .ag-empty { padding: var(--space-8) var(--space-5); }
  .ag-empty__code { font-size: 56px; line-height: 52px; }
  .ag-empty--lg .ag-empty__code { font-size: 64px; line-height: 60px; }
}

/* =========================================================
   SiteHeader — ワードマーク／斜線区切りのナビ／CTA
   ========================================================= */
.ag-header {
  position: relative;
  z-index: var(--z-header);
  box-sizing: border-box;
  height: var(--header-height);
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  /* 幅の切り替えはヘッダー自身の幅で判定する（見本の中で狭いヘッダーを並べても、スマホの形になる） */
  container: ag-header / inline-size;
}
.ag-header--fixed { position: fixed; top: 0; left: 0; right: 0; }
.ag-header__inner { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-8); height: 100%; padding: 0 var(--space-6); }
/* ナビ（<nav>）を右へ寄せる。CTA があればナビのさらに右に並ぶ */
.ag-header__inner > nav { margin-left: auto; }
/* ワードマーク：ロゴ未支給のため名前を書体で組む */
.ag-wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
}
.ag-wordmark:focus-visible,
.ag-nav a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.ag-nav { display: flex; align-items: center; margin: 0 0 0 auto; padding: 0; list-style: none; }
/* 項目の間の斜線 */
.ag-nav li + li::before { content: "/"; padding: 0 var(--space-3); font-family: var(--font-display); font-size: 15px; color: var(--line-strong); }
.ag-nav li { display: flex; align-items: center; }
.ag-nav a {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.ag-nav a:hover { color: var(--ink); }
.ag-nav a[aria-current="page"] { color: var(--accent-ink); }
.ag-header__menu { display: none; }
.ag-header__panel { display: none; }
.ag-header__status,
.ag-header__edge { display: none; }

/* --- 1024px 未満（サイドレールが出ない幅）：ヘッダーに HUD を出す --- */
@container ag-header (max-width: 1023px) {
  /* 読み値：ワードマークの右に縦線で区切って、2 行の等幅（01 / 03 と セクション名） */
  .ag-header__status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    height: 28px;
    padding-left: var(--space-4);
    border-left: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink-muted);
  }
  .ag-header__count b { font-weight: 500; color: var(--accent-ink); }
  /* 下端：目盛りとスクロール量（下の 1px の線に重ねる） */
  .ag-header__edge { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 7px; pointer-events: none; }
  /* 目盛り：右の 4 割に、6px ごとの短い目盛りと 30px ごとの長い目盛り。左の端はぼかして消す */
  .ag-header__ticks {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 44%;
    height: 6px;
    background:
      repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 30px) left bottom / 100% 6px no-repeat,
      repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 6px) left bottom / 100% 3px no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
            mask-image: linear-gradient(90deg, transparent, #000 60%);
  }
  /* スクロール量：下端の線の上に水色の 2px。左から伸びる（実際のスクロール量） */
  .ag-header__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(var(--ag-progress, 0));
    transform-origin: left center;
  }
}

/* --- 768px 未満：ナビを MENU にたたむ --- */
@container ag-header (max-width: 767px) {
  .ag-header__inner { padding: 0 var(--space-5); gap: var(--space-3); }
  .ag-wordmark { font-size: 18px; letter-spacing: 0.14em; }
  /* 狭い画面ではナビの <nav> ごと隠す（空の <nav> に margin-left:auto が残ると MENU が中央に寄るため） */
  .ag-header__inner > nav,
  .ag-header__cta { display: none; }
  /* MENU：切り欠きの枠（secondary の sm）に、線のアイコンと等幅の文字 */
  .ag-header__menu {
    display: inline-flex;
    margin-left: auto;
    padding: 0 var(--space-3);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-ink);
  }
  .ag-header__menu-label { display: inline-flex; align-items: center; gap: var(--space-2); }
  /* メニューを開いたときだけ、ヘッダーの下に番号付きの縦並びのリンクを出す */
  .ag-header.is-open .ag-header__panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    padding: var(--space-2) var(--space-5) var(--space-6);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .ag-header__panel .ag-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .ag-header__panel .ag-nav li { border-bottom: 1px dashed color-mix(in srgb, var(--line-strong) 60%, transparent); }
  .ag-header__panel .ag-nav li + li::before { content: none; }
  .ag-header__panel .ag-nav a { display: flex; align-items: baseline; width: 100%; padding: var(--space-4) 0; font-size: 24px; line-height: 32px; }
  .ag-header__no { margin-right: var(--space-4); font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; color: var(--accent-ink); }
}

/* --- とても狭いヘッダー（360px 未満）では読み値を隠して、ワードマークと MENU だけにする --- */
@container ag-header (max-width: 359px) {
  .ag-header__status { display: none; }
}

/* =========================================================
   SiteFooter — ワードマーク／ナビ／© 表記と規約類へのリンク
   ========================================================= */
.ag-footer { position: relative; z-index: var(--z-content); background: var(--bg); border-top: 1px solid var(--line); color: var(--ink); }
.ag-footer__inner { box-sizing: border-box; max-width: var(--container-max); margin: 0 auto; padding: var(--space-16) var(--space-6) var(--space-8); }
/* 上段：左にワードマークと一文、右にナビ（ヘッダーと同じ斜線区切り） */
.ag-footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-8); padding-bottom: var(--space-12); }
.ag-footer__tagline { margin: var(--space-3) 0 0; max-width: 360px; font-size: 14px; line-height: 24px; color: var(--ink-muted); }
.ag-footer .ag-nav { margin: 0; flex-wrap: wrap; }
/* 下段：1px の線の下に © 表記（等幅）と規約類のリンク */
.ag-footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3) var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.ag-footer__copy { font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.ag-footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); margin: 0; padding: 0; list-style: none; }
/* 12px の文字でも押しやすいよう、上下の余白で高さ 24px を確保する */
.ag-footer__legal a { display: inline-block; padding: 2px 0; font-size: 12px; line-height: 20px; color: var(--ink-muted); text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
.ag-footer__legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ag-footer__legal a:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

@media (max-width: 767px) {
  .ag-footer__inner { padding: var(--space-12) var(--space-5) var(--space-8); }
  .ag-footer__top { flex-direction: column; gap: var(--space-6); padding-bottom: var(--space-8); }
  .ag-footer__bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* =========================================================
   PageFrame — 左右のサイドレール（1024px 以上）
   ========================================================= */
.ag-frame { position: relative; }
.ag-frame__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: var(--z-rail);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: var(--rail-width);
  padding: var(--space-6) 0;
  pointer-events: none;
}
.ag-frame--fixed .ag-frame__rail { position: fixed; top: var(--header-height); }
.ag-frame__rail--left { left: 0; border-right: 1px solid var(--line); }
.ag-frame__rail--right { right: 0; border-left: 1px solid var(--line); }
.ag-frame__text {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-muted);
}
/* 左のレールは下から上へ読む */
.ag-frame__rail--left .ag-frame__text { transform: rotate(180deg); }
.ag-frame__index { color: var(--accent-ink); }
.ag-frame__progress { position: relative; width: 1px; height: 96px; background: var(--line); }
.ag-frame__progress > i {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(var(--ag-progress, 0));
  transition: transform var(--duration-base) var(--ease-out);
}
.ag-frame__body { padding: 0 var(--rail-width); }
@media (max-width: 1023px) {
  .ag-frame:not(.ag-frame--always) .ag-frame__rail { display: none; }
  .ag-frame:not(.ag-frame--always) .ag-frame__body { padding: 0; }
}

/* =========================================================
   Backdrop — レイヤー 1：ページ全体に固定した点の場
   z-backdrop（-1）なので、地を塗っていない本文の後ろに透けて見える。
   contained を付けると、親の枠の中だけに敷く（プレビュー・部分使い用。親に position と isolation が要る）
   ========================================================= */
.ag-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-backdrop);
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ag-backdrop--contained { position: absolute; }

/* =========================================================
   HeroScene — 作品を切り替えて見せるヒーロー（Scene → Type → HUD → Content）
   飾りのレイヤーはすべて inset: 0 で重ね、ポインターを受けない。
   section には data-theme="dark" が付き、中のトークンは常にダークの値になる
   ========================================================= */
.ag-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}
.ag-hero__layer { position: absolute; inset: 0; pointer-events: none; }
.ag-hero__layer--scene { z-index: var(--z-scene); }
.ag-hero__layer--type { z-index: var(--z-type); }
.ag-hero__layer--hud { z-index: var(--z-hud); }

/* --- Scene：ステージ（3D）と作品のキービジュアルを重ね、選ばれたものだけを見せる --- */
.ag-hero__canvas,
.ag-hero__media {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.ag-hero__canvas { display: block; width: 100%; height: 100%; }
.ag-hero__canvas.is-active,
.ag-hero__media.is-active { opacity: 1; }
.ag-hero__media > img,
.ag-hero__media > video,
.ag-hero__media > canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
/* キービジュアルは表示中にごくゆっくり寄っていく（スライド 1 枚ぶんの時間で 4%） */
.ag-hero__media.is-active > * { animation: ag-hero-push 9s linear both; }
@keyframes ag-hero-push { from { transform: scale(1); } to { transform: scale(1.04); } }
/* 文字の可読性を守るスクリム（このシステムで唯一のグラデーション） */
.ag-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 38%, transparent 64%),
    linear-gradient(0deg, var(--bg) 0%, transparent 46%);
}

/* --- Type：巨大な英字のアウトライン。線は line-strong を薄く、塗らない --- */
.ag-hero__type {
  position: absolute;
  top: 10%;
  left: 0;
  display: flex;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 280px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  opacity: 0.3;
  animation: ag-type-drift var(--duration-drift) linear infinite;
}
.ag-hero__type > span { padding-right: 0.4em; }
@keyframes ag-type-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- HUD --- */
.ag-hero__frame {
  --ag-corner: var(--line-strong);
  position: absolute;
  inset: var(--space-6);
  background:
    linear-gradient(var(--ag-corner), var(--ag-corner)) left top / 24px 2px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) left top / 2px 24px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) right top / 24px 2px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) right top / 2px 24px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) left bottom / 24px 2px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) left bottom / 2px 24px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) right bottom / 24px 2px no-repeat,
    linear-gradient(var(--ag-corner), var(--ag-corner)) right bottom / 2px 24px no-repeat;
}
/* 右上：スライド番号（01 / 03）と時計 */
.ag-hero__status {
  position: absolute;
  top: var(--space-6);
  right: var(--space-12);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.ag-hero__count { margin-right: var(--space-4); }
.ag-hero__count b { font-weight: 500; color: var(--accent-ink); }
.ag-hero__clock { color: var(--ink); }
/* 右端の中ほど：SCROLL と、線の上を下へ落ちていく短い水色の線（ループ） */
.ag-hero__scroll {
  position: absolute;
  right: var(--space-6);
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ag-hero__scroll > span { writing-mode: vertical-rl; }
.ag-hero__scroll > i { position: relative; display: block; width: 1px; height: 56px; overflow: hidden; background: var(--line); }
.ag-hero__scroll > i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 16px;
  background: var(--accent);
  animation: ag-scroll-drop 2400ms var(--ease-in-out) infinite;
}
@keyframes ag-scroll-drop { from { transform: translateY(-16px); } to { transform: translateY(56px); } }

/* --- Content --- */
.ag-hero__content {
  position: relative;
  z-index: var(--z-content);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  width: 100%;
  padding: var(--space-16) var(--space-12) var(--space-16);
}
/* スライドが替わるたびに、下から現れ直す */
.ag-hero__copy { display: flex; flex-direction: column; gap: var(--space-6); animation: ag-hero-in var(--duration-slow) var(--ease-out) both; }
@keyframes ag-hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ag-hero__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.ag-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 128px;
  line-height: 112px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  /* 折り返すときは各行の長さをそろえる（「CRAFT THE NEW / GRAVITY」ではなく「CRAFT THE / NEW GRAVITY」になる） */
  text-wrap: balance;
}
/* 作品名は日本語のこともあるので、和文でも組める大きさ・書体にする */
.ag-hero__title--work { max-width: 14em; font-family: var(--font-sans); font-size: 56px; line-height: 68px; letter-spacing: 0.02em; text-transform: none; }
.ag-hero__lead { max-width: 32em; margin: 0; font-size: 18px; line-height: 32px; color: var(--ink-muted); }
.ag-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); }
.ag-hero__tags { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-left: var(--space-4); }

/* タイトル切り替え：番号・名前・進捗バーのタブ ＋ 前へ・一時停止・次へ */
.ag-hero__select { display: flex; align-items: flex-end; gap: var(--space-8); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.ag-hero__tabs { display: grid; flex: 1; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: var(--space-4); min-width: 0; }
.ag-hero__tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px var(--space-3);
  min-width: 0;
  padding: 0 0 var(--space-1);
  border: 0;
  background: none;
  text-align: left;
  color: var(--ink-muted);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}
.ag-hero__tab:hover, .ag-hero__tab.is-active { color: var(--ink); }
.ag-hero__tab:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.ag-hero__tab-no { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; }
.ag-hero__tab.is-active .ag-hero__tab-no { color: var(--accent-ink); }
.ag-hero__tab-label { overflow: hidden; font-size: 13px; line-height: 20px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.ag-hero__bar { position: relative; grid-column: 1 / -1; height: 2px; margin-top: var(--space-2); overflow: hidden; background: var(--line); }
.ag-hero__bar > i { position: absolute; inset: 0; display: block; background: var(--accent); transform-origin: left; animation: ag-hero-bar 7000ms linear both; }
@keyframes ag-hero-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* ポインターを重ねている間・中にフォーカスがある間・一時停止中は、進捗を止める */
.ag-hero:hover .ag-hero__bar > i,
.ag-hero:focus-within .ag-hero__bar > i,
.ag-hero.is-paused .ag-hero__bar > i { animation-play-state: paused; }
.ag-hero__controls { display: flex; flex: none; gap: var(--space-2); }
.ag-hero__ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.ag-hero__ctrl:hover { border-color: var(--accent); color: var(--accent-ink); }
.ag-hero__ctrl:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* =========================================================
   768px 未満：大見出しを縮める
   ========================================================= */
@media (max-width: 767px) {
  .ag-sh__title { font-size: 56px; line-height: 52px; }
  .ag-sh--sm .ag-sh__title { font-size: 40px; line-height: 40px; }
  .ag-hero__title { font-size: 64px; line-height: 60px; }
  .ag-hero__content { padding: var(--space-12) var(--space-5); }
  .ag-hero__content { gap: var(--space-8); padding-bottom: var(--space-12); }
  .ag-hero__title--work { font-size: 32px; line-height: 44px; }
  .ag-hero__tags { margin-left: 0; }
  .ag-hero__status > span:not(.ag-hero__count), .ag-hero__scroll { display: none; }
  .ag-hero__status { right: var(--space-6); }
  .ag-hero__tab-label { display: none; }
  .ag-hero__select { gap: var(--space-4); }
  .ag-hero__frame { inset: var(--space-3); }
  .ag-hero__type { top: 8%; font-size: 160px; }
  .ag-hero__scrim { background: linear-gradient(0deg, var(--bg) 32%, transparent 72%); }
}

/* 動きを減らす設定では、移動を止める */
@media (prefers-reduced-motion: reduce) {
  .ag-btn, .ag-card, .ag-card::after, .ag-arrow, .ag-field__control, .ag-nav a, .ag-news__row, .ag-news__arrow, .ag-frame__progress > i { transition: none; }
  .ag-btn:hover .ag-arrow, a.ag-card:hover .ag-arrow, a.ag-news__row:hover .ag-news__arrow { transform: none; }
  .ag-hero__type,
  .ag-hero__scroll > i::after,
  .ag-hero__media.is-active > *,
  .ag-hero__copy { animation: none; }
  /* 進捗バーは動かさない（自動の切り替えもしない。切り替えはタブとボタンで） */
  .ag-hero__bar > i { animation: none; transform: scaleX(1); }
  .ag-hero__canvas, .ag-hero__media { transition: none; }
  .ag-glitching,
  .ag-glitch__slice { animation: none !important; }
}
