/* =========================================================
   猫橋ねこ | Illustration Portfolio  v3.2
   電脳夜行の画廊 — 黒×ローズレッド、明朝×等幅、作品が主役
   設計：docs/03_screen_design.md（トークン・部品）／docs/04_detailed_design.md
   ========================================================= */

:root {
  --paper: #0c0a0b;
  --paper-deep: #171316;
  --surface: #1e1a1c;
  --ink: #f3ece9;
  --ink-soft: #b8aba8;
  --ink-faint: #958885;
  --accent: #c9184a;
  --accent-text: #f0476f;
  --accent-deep: #8f0f36;
  --line: #2c2527;
  --line-strong: #726668;
  --danger: #ff6b81;
  --scrim: rgba(12, 10, 11, .85);

  --font-display: 'Shippori Mincho B1', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1120px;
  --wrap-wide: 1440px;
  --pad: 56px;
  --header-h: 72px;
  --gap: 8px;
  --cols: 4;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --glow: 0 0 6px rgba(201, 24, 74, .6), 0 0 22px rgba(201, 24, 74, .35);
  --cut: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
@media (max-width: 959px) { :root { --pad: 28px; --cols: 3; --header-h: 60px; } }
@media (max-width: 599px) { :root { --pad: 16px; --cols: 2; --gap: 6px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* 日本語は文節で折り返す（NF-13）。対応していないブラウザは通常の折り返し */
  word-break: auto-phrase; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; }
/* 屋号の手詰め（NF-13）。Shippori Mincho B1（Google Fonts）は仮名詰め palt に対応していないため、
   「こ」の左の空きを詰める（ね-こ の間 .33em → 約 .13em。猫-橋 .09em・橋-ね .14em にそろえる） */
.kn { margin-left: -.2em; }
/* 短い文は <wbr> の位置だけで折り返す（auto-phrase に対応していないブラウザ向け） */
.phrase { word-break: keep-all; overflow-wrap: anywhere; }
@supports (word-break: auto-phrase) { .phrase { word-break: auto-phrase; overflow-wrap: break-word; } }
/* F-16：auto-phrase に対応していないブラウザで、JS が文節の区切りに <wbr> を入れた文（06 P-22） */
.js-phrase .phrased { word-break: keep-all; overflow-wrap: break-word; }
.js-phrase .ph { white-space: nowrap; }
.ext { font-family: var(--font-mono); font-weight: 400; margin-left: 4px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
section[id], .credits, .err-static, .form-errors { scroll-margin-top: calc(var(--header-h) + 16px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- 質感（背景要素の上にだけ描く。作品には重ねない：03 3.3） ---------- */
.texture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(to bottom, rgba(243,236,233,.035) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.page-texture { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.hud { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.hud--accent { color: var(--accent-text); text-shadow: 0 0 6px rgba(240, 71, 111, .45); }

/* ---------- 受付状況で文言を切り替える（F-12） ---------- */
.when-open, .when-busy, .when-closed { display: none; }
/* 値が入るまで（JS無効・読み込み失敗を含む）受付状況は出さない（F-12） */
body:not([data-commission]) .comm-status, body:not([data-commission]) .contact__note { display: none; }
[data-commission="open"] .when-open,
[data-commission="busy"] .when-busy,
[data-commission="closed"] .when-closed { display: revert; }

/* ---------- ボタン（03 4.3） ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; clip-path: var(--cut);
  font-family: var(--font-body); font-weight: 700; font-size: 14px; letter-spacing: .06em; line-height: 1.3; text-align: center;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn--consult { background: var(--accent); color: var(--ink); }
.btn--consult:hover { box-shadow: var(--glow); }
.btn--consult:active { background: var(--accent-deep); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #fff; box-shadow: 0 0 18px rgba(243,236,233,.25); }
.btn--secondary { clip-path: none; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1px var(--accent), var(--glow); }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }
.btn--small { min-height: 44px; padding: 0 14px; font-size: 13px; }
.btn .arr { font-family: var(--font-mono); }
.btn[disabled], fieldset[disabled] .btn { opacity: .7; cursor: progress; }

.lbl-sp { display: none; }
@media (max-width: 599px) { .lbl-pc { display: none; } .lbl-sp { display: inline; } }

/* ---------- 受付状況バッジ ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; padding: 6px 14px 6px 12px; box-shadow: inset 0 0 0 1px rgba(201,24,74,.6); border-radius: 999px; background: rgba(12,10,11,.5); }
.status::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 8px var(--accent-text); animation: pulse 2.4s ease-in-out infinite; }
[data-commission="busy"] .status::before { background: var(--ink-soft); box-shadow: none; animation: none; }
[data-commission="closed"] .status { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-soft); }
[data-commission="closed"] .status::before { background: var(--ink-faint); box-shadow: none; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- ヘッダー ---------- */
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(12, 10, 11, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__in { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--pad); height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; min-height: 44px; }
.brand__icon { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1.5px var(--accent), 0 0 10px rgba(201,24,74,.45); }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
.nav { display: flex; gap: 26px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; }
.nav a { color: var(--ink-soft); padding: 12px 0; position: relative; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--accent); box-shadow: var(--glow); }
.sns { display: flex; align-items: center; gap: 4px; margin-right: -10px; }
.sns__txt { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); transition: color .2s; }
.sns__txt:hover { color: var(--ink); }
.sns__x { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-soft); transition: color .2s; }
.sns__x span { width: 28px; height: 28px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 50%; transition: box-shadow .2s; }
.sns__x:hover { color: var(--ink); }
.sns__x:hover span { box-shadow: inset 0 0 0 1px var(--accent), var(--glow); }
.sns svg { width: 13px; height: 13px; }
.header .btn { min-height: 44px; padding: 0 18px; font-size: 13px; }
.header .btn[aria-current="page"] { background: transparent; box-shadow: inset 0 0 0 1px var(--accent); clip-path: none; }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 6px; padding: 0 10px; }
.burger__bar { display: block; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu { position: fixed; left: 0; right: 0; top: var(--header-h); z-index: 39; background: var(--paper); border-bottom: 1px solid var(--line-strong); padding: 8px var(--pad) 24px; }
.menu nav a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 15px; letter-spacing: .12em; }
.menu .btn { width: 100%; margin-top: 18px; }
.menu__sns { display: flex; gap: 8px; margin-top: 12px; }
.menu .btn[aria-current="page"] { background: transparent; box-shadow: inset 0 0 0 1px var(--accent); clip-path: none; }
.menu__sns a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.menu-backdrop { position: fixed; inset: var(--header-h) 0 0 0; z-index: 38; background: rgba(12,10,11,.6); }
@media (max-width: 959px) {
  /* SP・TB：右上は「お問い合わせ」・X・≡。pixiv・Skeb はメニューの中（RQ-24） */
  .header .nav, .sns__txt { display: none; }
  .sns { margin-right: 0; }
  .burger { display: flex; margin-right: -8px; }
  .header__in { gap: 6px; }
  .header .btn { padding: 0 12px; }
}
@media (max-width: 599px) {
  .brand { gap: 8px; }
  .brand__name { font-size: 16px; }
  .header .btn { padding: 0 10px; font-size: 12px; letter-spacing: .02em; }
}
@media (max-width: 359px) {
  .brand__name { font-size: 15px; letter-spacing: 0; }
  .header .btn { padding: 0 8px; }
  .header__cta .ext { display: none; }
}
@media (min-width: 960px) { .menu, .menu-backdrop { display: none !important; } }

/* ---------- 表示アニメーション（html.js のときだけ：F-03） ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); animation: reveal .9s var(--ease) forwards; }
.js .reveal--2 { animation-delay: .12s; }
.js .reveal--3 { animation-delay: .24s; }
.js .reveal--4 { animation-delay: .36s; }
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: 640px; height: min(calc(100svh - var(--header-h)), 960px); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(48px) saturate(1.3) brightness(.5); transform: scale(1.15); transition: opacity .8s var(--ease); }
.hero__bg img.is-out { opacity: 0; }
.hero__fade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, var(--paper) 0%, transparent 16%); pointer-events: none; }
.hero__in { position: relative; z-index: 3; height: 100%; max-width: var(--wrap-wide); margin: 0 auto; padding: 48px var(--pad); display: grid; grid-template-columns: minmax(360px, 1fr) auto; gap: 56px; align-items: center; }
/* 暗幕は文字の列に結び付ける：列の右端まで85%、そこから120pxで0（03 4.5） */
.hero__text { position: relative; }
.hero__text::before { content: ""; position: absolute; z-index: -1; top: -100vh; bottom: -100vh; left: -100vw; right: -120px; background: linear-gradient(90deg, var(--scrim) calc(100% - 120px), rgba(12,10,11,0)); }
.hero__eyebrow { margin-bottom: 18px; }
.hero__eyebrow::before { content: "// "; opacity: .7; }
/* 「猫橋ねこ」＋「のイラスト」は1つの文なので横の間は空けない（03 5.2 No.4） */
.hero h1 { --h1: clamp(56px, 7.6vw, 112px); font-size: var(--h1); line-height: 1; letter-spacing: .02em; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 0; }
/* 「こ」の字形の右の空きが大きいので、「のイラスト」を大きい文字の .18em 分詰める（06 R3-14） */
.hero h1 small { font-size: clamp(20px, 2vw, 28px); color: var(--ink-soft); }
/* 詰めは「猫橋ねこ」側の負の右マージンで行う（「のイラスト」が折り返しても左にはみ出さない。06 R6-08） */
.hero h1 .glitch { margin-right: calc(var(--h1) * -.18); }
.glitch { position: relative; display: inline-block; text-shadow: -2px 0 rgba(55,230,255,.35), 2px 0 rgba(255,43,214,.35); }
/* 色ずれの重ねは「猫橋ね」と手詰めした「こ」のそれぞれに付ける（本文の文字は増やさない） */
.glitch .kn { position: relative; display: inline-block; }
/* 重ねの文字は読み上げに入れない（`/ ""`。対応していないブラウザは1つ目の指定を使う。06 R6-02） */
.glitch::before, .glitch::after, .glitch .kn::before, .glitch .kn::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; white-space: nowrap; }
.glitch::before, .glitch .kn::before { color: #37e6ff; animation: glitchA 7s infinite linear; }
.glitch::after, .glitch .kn::after { color: #ff2bd6; animation: glitchB 7s infinite linear; }
@keyframes glitchA { 0%, 92%, 100% { opacity: 0; clip-path: inset(0 0 60% 0); transform: none; } 93% { opacity: .8; clip-path: inset(4% 0 50% 0); transform: translate(-4px, -2px); } 94% { opacity: .8; clip-path: inset(30% 0 20% 0); transform: translate(3px, 1px); } 95% { opacity: .8; clip-path: inset(55% 0 2% 0); transform: translate(-2px, 0); } 96% { opacity: 0; } }
@keyframes glitchB { 0%, 90%, 100% { opacity: 0; clip-path: inset(60% 0 0 0); transform: none; } 91% { opacity: .8; clip-path: inset(50% 0 4% 0); transform: translate(4px, 2px); } 92% { opacity: .8; clip-path: inset(20% 0 35% 0); transform: translate(-3px, -1px); } 93% { opacity: .8; clip-path: inset(2% 0 60% 0); transform: translate(2px, 0); } 94% { opacity: 0; } }
.hero__lead { margin-top: 26px; max-width: 30em; color: var(--ink-soft); font-size: 17px; }
.hero__meta { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.pickup { position: relative; margin: 0; }
.pickup__frame { --pick-h: max(440px, calc(min(calc(100svh - var(--header-h)), 960px) - 192px)); position: relative; display: block; height: var(--pick-h); aspect-ratio: var(--ratio, 1272 / 1800); max-width: 56vw; }
/* PC：横長の作品は、縦長（A判）の枠と同じ幅で横幅に合わせる（左の文字の列の幅を変えない。06 R6-08）。
   SP・TB は枠の大きさを変えずに収める（切り替わるたびに下の文章が上下に動かないように） */
@media (min-width: 960px) { .pickup__frame.is-landscape { height: auto; width: min(56vw, calc(var(--pick-h) * .7067)); } }
.pickup__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pickup__frame img.is-wipe { animation: wipe .7s steps(14) forwards; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.pickup__frame.is-shift { animation: rgbshift .2s steps(2) 1; }
@keyframes rgbshift { 50% { filter: drop-shadow(2px 0 0 rgba(55,230,255,.7)) drop-shadow(-2px 0 0 rgba(255,43,214,.7)); } }
.corners::before, .corners::after, .corners > i::before, .corners > i::after {
  content: ""; position: absolute; z-index: 2; width: 18px; height: 18px; border-color: var(--accent); border-style: solid; filter: drop-shadow(0 0 4px rgba(201,24,74,.8)); pointer-events: none;
}
.corners::before { left: -10px; top: -10px; border-width: 1.5px 0 0 1.5px; }
.corners::after { right: -10px; top: -10px; border-width: 1.5px 1.5px 0 0; }
.corners > i::before { left: -10px; bottom: -10px; border-width: 0 0 1.5px 1.5px; }
.corners > i::after { right: -10px; bottom: -10px; border-width: 0 1.5px 1.5px 0; }
/* 帯は画像の幅にそろえ、作品名は帯の下の行に2行まで出す（切れるとどの仕事か読めないため。06 R3-09・R4-01） */
.pickup__bar { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; background: var(--scrim); padding-left: 14px; width: 0; min-width: 100%; }
.pickup__title { order: 9; flex-basis: 100%; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; padding: 0 14px 8px 0; }
.pickup__bar .btn--icon { margin-left: auto; font-size: 12px; }
.pickup__progress { height: 2px; background: var(--scrim); }
.pickup__progress i { display: block; height: 2px; width: 100%; background: var(--accent); box-shadow: var(--glow); transform-origin: left; transform: scaleX(0); }
.pickup__progress.is-running i { animation: progress var(--interval, 7s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }
.pickup a.pickup__open { position: absolute; inset: 0; z-index: 3; }

@media (max-width: 959px) {
  .hero { height: auto; min-height: 0; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 14px; padding-bottom: 32px; }
  .hero__in > *, .hero__text > * { min-width: 0; }
  .hero__text { display: contents; }
  .hero__text::before { display: none; }
  .hero__fade { background: linear-gradient(to top, var(--paper) 0%, transparent 10%); }
  /* SP・TB：文字の各要素の背後にだけ横幅いっぱいの暗幕の帯（03 4.5） */
  .hero__eyebrow, .hero h1, .hero__lead, .hero__cta { background: var(--scrim); box-shadow: 0 0 0 100vmax var(--scrim); clip-path: inset(-10px -100vmax); }
  .hero__eyebrow { order: 1; margin-bottom: 8px; padding-top: 6px; }
  .hero h1 { order: 2; --h1: 40px; gap: 6px 0; }
  .pickup { order: 3; margin: 22px auto 0; width: 100%; }
  .pickup__bar { margin-top: 10px; }
  /* 枠の高さはピックアップの行に持たせ、横長の枠は絵の大きさにして行の中央に置く（四隅の括弧が絵を囲む。06 R8-01） */
  .pickup { --pf-h: min(37svh, 360px); display: grid; grid-template-rows: var(--pf-h) auto auto; }
  .pickup__frame { height: var(--pf-h); min-height: 0; margin: 0; max-width: 100%; align-self: center; justify-self: center; }
  .pickup__frame.is-landscape { height: auto; width: min(100%, calc(var(--pf-h) * var(--ar, 1.7778))); }
  .hero__lead { order: 4; font-size: 14px; line-height: 1.7; margin-top: 8px; }
  .hero__meta { display: none; }
  .hero__cta { order: 6; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
  .hero__cta .btn { padding: 0 10px; }
}
@media (min-width: 600px) and (max-width: 959px) { .pickup { --pf-h: min(56svh, 560px); } }
/* 縦に積む幅では作品名の欄を2行分とる（1行の作品と2行の作品で、下の文章が上下に動かないように。06 R6-08） */
@media (max-width: 959px) { .pickup__title { min-height: calc(3em + 8px); } }
@media (max-width: 599px) { .pickup__title { font-size: 12px; } }

/* ---------- セクション共通 ---------- */
.section { position: relative; padding: 120px 0; }
.section__in { position: relative; z-index: 2; max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--pad); }
.section__in--narrow { max-width: var(--wrap); }
.shead { margin-bottom: 44px; }
.shead__num { font-family: var(--font-mono); font-size: 13px; letter-spacing: .3em; color: var(--accent-text); text-shadow: 0 0 6px rgba(240,71,111,.45); }
.shead__title { font-size: clamp(26px, 3vw, 38px); margin: 6px 0 12px; line-height: 1.4; }
.shead__desc { color: var(--ink-soft); font-size: 15px; max-width: 40em; }
.shead__desc a, .text-link { text-decoration: underline; text-underline-offset: 3px; }
.shead__desc a:hover, .text-link:hover { color: var(--accent-text); }
@media (max-width: 599px) {
  .section { padding: 72px 0; }
  .shead { margin-bottom: 26px; }
}

/* ---------- Works ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -12px 0 26px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 13px; color: var(--ink-soft); transition: color .2s, box-shadow .2s; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 -2px 0 var(--accent), 0 6px 18px -10px rgba(201,24,74,.8); }
.chip[aria-pressed="true"] b { color: var(--accent-text); }
@media (max-width: 599px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--pad)); padding-right: 40px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
}

.gallery { container-type: inline-size; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; }
.gallery__msg { grid-column: 1 / -1; color: var(--ink-soft); font-size: 15px; }
html:not(.js) .skel { display: none; }
.gallery__msg a { text-decoration: underline; text-underline-offset: 3px; }
.tile { display: block; position: relative; min-width: 0; }
.tile__frame { display: block; position: relative; aspect-ratio: 1 / 1.414; overflow: hidden; background: var(--surface); transition: box-shadow .2s var(--ease); }
.tile--landscape { grid-column: span 2; }
.tile--landscape .tile__frame { aspect-ratio: auto; height: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.414); }
.tile__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; opacity: 0; transition: opacity .5s var(--ease), filter .2s var(--ease); }
.tile__frame img.is-loaded { opacity: 1; }
.tile__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(243,236,233,.05) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; pointer-events: none; }
.tile__frame.is-loaded::after { display: none; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tile__mv { position: absolute; left: 8px; top: 8px; z-index: 1; background: rgba(12,10,11,.78); color: var(--ink); padding: 3px 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; box-shadow: inset 0 0 0 1px var(--accent); }
.tile__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; margin-top: 10px; font-size: 13px; color: var(--ink-soft); overflow: hidden; line-height: 1.5; transition: color .2s; }
.tile__hud { display: block; margin-top: 2px; }
.tile:hover .tile__frame, .tile:focus-visible .tile__frame { box-shadow: 0 0 0 1px var(--accent), var(--glow); }
.tile:hover img.is-loaded, .tile:focus-visible img.is-loaded { filter: drop-shadow(2px 0 0 rgba(55,230,255,.55)) drop-shadow(-2px 0 0 rgba(255,43,214,.55)); }
.tile:hover .tile__title, .tile:focus-visible .tile__title { color: var(--ink); }
.tile:focus-visible { outline-offset: 4px; }
.js .tile { opacity: 0; transform: translateY(14px); }
.js .tile.is-visible { animation: reveal .7s var(--ease) forwards; }
@media (max-width: 599px) {
  .gallery { row-gap: 18px; }
  .tile__title { font-size: 12px; margin-top: 6px; }
  .tile__hud { font-size: 10px; letter-spacing: .12em; }
}

/* ---------- 制作協力（F-15） ---------- */
.credits { margin-top: 88px; padding-top: 36px; border-top: 1px solid var(--line); }
.credits__title { font-size: clamp(22px, 2.4vw, 30px); margin: 6px 0 8px; }
.credits__desc { color: var(--ink-soft); font-size: 15px; max-width: 40em; }
.credits__list { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
.credit__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.credit__media img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s var(--ease); }
.credit__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.credit__play { position: absolute; inset: 0; width: 100%; cursor: pointer; }
/* ▶ は左下に置き、作品の顔などに重ねない（押せる範囲はサムネイル全体） */
.credit__play { z-index: 2; }
.credit__play::before { content: ""; position: absolute; left: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%; background: rgba(12,10,11,.78); box-shadow: inset 0 0 0 1px var(--accent), var(--glow); }
.credit__play::after { content: ""; position: absolute; left: 31px; bottom: 28px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); }
.credit__play:hover + img, .credit__play:focus-visible + img { filter: drop-shadow(2px 0 0 rgba(55,230,255,.55)) drop-shadow(-2px 0 0 rgba(255,43,214,.55)); }
.credit__play:focus-visible { outline-offset: -3px; }
.credit__src { position: absolute; left: 8px; top: 8px; z-index: 1; background: rgba(12,10,11,.78); padding: 3px 7px; pointer-events: none; }
.credit__role { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-text); line-height: 1.6; }
.credit__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.5; margin-top: 2px; }
.credit__meta { display: block; margin-top: 4px; text-transform: none; }
@media (max-width: 959px) { .credits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .credits { margin-top: 64px; }
  .credits__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------- Commission ---------- */
.commission { overflow: hidden; }
.drift { position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
.drift.is-ready { opacity: .08; }
.drift__row { display: flex; gap: 14px; width: max-content; animation: driftL 120s linear infinite; }
.drift__row:nth-child(2) { animation-name: driftR; }
.drift img { height: 300px; width: auto; filter: grayscale(1) contrast(1.15); }
.drift::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; }
.drift.is-paused .drift__row { animation-play-state: paused; }
@keyframes driftL { to { transform: translateX(-50%); } }
@keyframes driftR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.comm-status { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin: -20px 0 30px; }
.comm-status p:not(.status) { font-size: 13px; color: var(--ink-soft); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc { position: relative; display: flex; flex-direction: column; padding: 22px 24px 18px; background: rgba(30,26,28,.9); clip-path: var(--cut); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .25s var(--ease); }
.svc > p { position: relative; z-index: 1; }
/* 作品は上に向かって透明にし、文字の下には濃く出さない。枠の線（inset の影）を隠さないよう1px内側に置く */
.svc__art { position: absolute; left: 1px; right: 1px; bottom: 1px; width: calc(100% - 2px); height: 64%; object-fit: cover; opacity: .42; -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 100%); mask-image: linear-gradient(to top, #000 15%, transparent 100%); transition: opacity .3s var(--ease); pointer-events: none; }
.svc:hover .svc__art, .svc:focus-visible .svc__art { opacity: .7; }
@media (max-width: 959px) { .svc__art { height: 50%; } }
.svc__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.4; }
.svc__desc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; word-break: auto-phrase; }
.svc__go { margin-top: auto; padding-top: 30px; display: flex; justify-content: flex-end; }
.svc__go .hud--accent { font-size: 16px; padding: 2px 6px; background: rgba(12,10,11,.78); transition: transform .25s var(--ease); }
.svc:hover, .svc:focus-visible { box-shadow: inset 0 0 0 1px var(--accent), var(--glow); }
.svc:hover .svc__go .hud--accent, .svc:focus-visible .svc__go .hud--accent { transform: translateX(4px); }
.flow { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); }
.flow li { position: relative; padding: 18px 20px 20px; border-top: 1px solid var(--line-strong); }
.flow li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--accent); box-shadow: var(--glow); transform: rotate(45deg); }
.flow b { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: .25em; color: var(--accent-text); }
.flow span { font-size: 14px; }
.fee { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; background: rgba(30,26,28,.9); clip-path: var(--cut); }
.fee p { color: var(--ink-soft); font-size: 14px; }
@media (max-width: 599px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .svc { padding: 16px 14px; }
  .svc__name { font-size: 16px; }
  .svc__desc { font-size: 11.5px; overflow-wrap: anywhere; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .fee { flex-direction: column; align-items: stretch; }
}

/* ---------- About ---------- */
.about { background: var(--paper-deep); }
.about__grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: center; }
.about__photo { position: relative; width: 240px; aspect-ratio: 1; margin: 0; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about__photo::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(201,24,74,.7); box-shadow: var(--glow); }
.about__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.about__text { margin-top: 14px; color: var(--ink-soft); max-width: 36em; }
.about__dj { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.about__dj dt { margin-right: 4px; }
.about__dj dd { margin: 0; font-size: 13px; color: var(--ink-soft); padding: 2px 12px; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 999px; }
@media (max-width: 799px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { width: 180px; margin: 0 auto; }
}

/* ---------- Contact ---------- */
.contact__intro { margin: 0 0 30px; display: grid; gap: 6px; }
.contact__dm { color: var(--ink-soft); font-size: 15px; }
.contact__note { margin: -8px 0 26px; }
[data-commission="open"] .contact__note { display: none; }
.contact__note p { font-size: 14px; color: var(--ink-soft); padding: 12px 16px; box-shadow: inset 2px 0 0 var(--accent); background: rgba(30,26,28,.7); }
.form { max-width: 720px; }
.form__fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 26px; }
.form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.field { display: grid; gap: 8px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.field__label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.req, .opt { font-size: 11px; padding: 0 6px; border-radius: 3px; line-height: 1.7; }
.req { color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.opt { color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line-strong); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-strong); border-radius: 0;
  padding: 10px 2px; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field textarea { min-height: 180px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent), 0 8px 18px -12px rgba(201,24,74,.9); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field__error { color: var(--danger); font-size: 13px; }
.field__error::before { content: "⚠ "; }
.field__count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); text-align: right; letter-spacing: .1em; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices legend { padding: 0; margin-bottom: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 14px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; cursor: pointer; transition: box-shadow .2s, color .2s; }
.choice span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-soft); flex-shrink: 0; }
.choice input:checked + span { box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + span::before { box-shadow: inset 0 0 0 1.5px var(--accent-text), inset 0 0 0 4px var(--paper); background: var(--accent-text); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.choices[aria-invalid="true"] .choice span { box-shadow: inset 0 0 0 1px var(--danger); }
.refchip { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 6px; box-shadow: inset 0 0 0 1px var(--accent); background: rgba(201,24,74,.08); max-width: 100%; }
.refchip img { width: 34px; height: 48px; object-fit: cover; flex-shrink: 0; }
.refchip span { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refchip button { width: 44px; height: 44px; flex-shrink: 0; font-size: 20px; color: var(--ink-soft); }
.refchip button:hover { color: var(--ink); }
.form__privacy { font-size: 13px; color: var(--ink-soft); }
.form__submit { justify-self: start; min-width: 220px; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(243,236,233,.35); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-errors, .err-static { padding: 14px 18px; background: rgba(255,107,129,.08); box-shadow: inset 0 0 0 1px rgba(255,107,129,.55); font-size: 14px; }
.form-errors { color: var(--ink); margin-bottom: 26px; }
.form-errors b { color: var(--danger); }
.form-errors ul { margin-top: 6px; padding-left: 1.2em; list-style: disc; }
.form-errors a { color: var(--danger); text-decoration: underline; }
.form-errors:focus { outline: none; }
.err-static { display: none; color: var(--ink); margin-bottom: 26px; }
.err-static:target { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 599px) {
  .form__row2 { grid-template-columns: 1fr; }
  .choices { flex-direction: column; }
  .choice span { width: 100%; }
  .form__submit { width: 100%; justify-self: stretch; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 36px; }
.footer__in { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 var(--pad); display: grid; gap: 10px; }
.footer__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }
.footer__nav a:hover { color: var(--ink); }
.footer__nav a[aria-current] { color: var(--ink); }
.footer__note { font-size: 13px; color: var(--ink-faint); }
.footer__note a { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .1em; }

/* ---------- 作品ビューア（OVL-01） ---------- */
.viewer { position: fixed; inset: 0; z-index: 90; background: var(--paper); }
.viewer__bg { position: absolute; inset: 0; overflow: hidden; }
.viewer__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) brightness(.3) saturate(1.2); transform: scale(1.2); }
.viewer__bg::before { content: ""; position: absolute; inset: 0; background: rgba(12,10,11,.7); z-index: 1; }
.viewer__in { position: relative; z-index: 3; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: 64px minmax(0, 1fr); }
.viewer__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 0 24px; }
.viewer__url { text-transform: none; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__close { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 24px; line-height: 1; transition: box-shadow .2s; flex-shrink: 0; }
.viewer__close:hover { box-shadow: inset 0 0 0 1px var(--accent), var(--glow); }
.viewer__stage { grid-column: 1; grid-row: 2; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; padding: 12px 96px 40px; min-height: 0; touch-action: pan-y pinch-zoom; }
/* 枠は「列の幅」と「画面の高さ×縦横比」の小さいほう（横長でも右のパネルにはみ出さない） */
.viewer__img { position: relative; width: min(100%, calc((100svh - 136px) * var(--r, .7067))); aspect-ratio: var(--ratio, 1272 / 1800); }
.viewer__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* MV のプレーヤー（F-07）。16:9 で、列の幅と画面の高さに収める */
.viewer__video { position: relative; width: min(100%, calc((100svh - 136px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.viewer__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-strong); background: rgba(12,10,11,.55); font-family: var(--font-mono); font-size: 22px; transition: box-shadow .2s; }
.viewer__nav:hover { box-shadow: inset 0 0 0 1px var(--accent), var(--glow); }
.viewer__nav--prev { left: 24px; } .viewer__nav--next { right: 24px; }
.viewer__panel { grid-column: 2; grid-row: 2; background: rgba(30,26,28,.9); padding: 30px 30px 32px; display: flex; flex-direction: column; box-shadow: inset 1px 0 0 var(--line); overflow-y: auto; }
.viewer__panel h2 { font-size: 24px; line-height: 1.45; margin: 12px 0 20px; }
.viewer dl { display: grid; grid-template-columns: 70px 1fr; gap: 8px 0; margin: 0 0 22px; font-size: 14px; }
.viewer dt { color: var(--ink-faint); font-size: 13px; }
.viewer__date { font-size: 14px; color: var(--ink); }
.viewer dd { margin: 0; }
.viewer .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.viewer .tags span { font-size: 12px; padding: 1px 10px; box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 999px; color: var(--ink-soft); }
.viewer__actions { display: grid; gap: 10px; margin-top: auto; }
/* 再生・元の投稿のボタンは1つずつ1行分の幅（文言を折り返さない。06 R3-14） */
.viewer__share { display: flex; flex-wrap: wrap; gap: 10px; }
.viewer__share > * { flex: 1 1 100%; }
.viewer__actions .btn--consult { margin-top: 14px; }
.catlabel { display: inline-block; font-size: 12px; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line-strong); padding: 2px 12px; border-radius: 999px; }
.swipe-hint { display: none; text-align: center; margin-top: 10px; }
@media (max-width: 959px) {
  .viewer__in { grid-template-columns: minmax(0, 1fr); grid-template-rows: 60px auto auto 1fr; align-content: start; overflow-y: auto; overscroll-behavior: contain; }
  .viewer__stage { grid-column: 1; grid-row: auto; padding: 0 16px; min-height: auto; }
  /* 画像は画面の高さにも収め、作品名が最初の画面に入るようにする（タブレット縦・スマホ横。06 R6-01） */
  .viewer__img { width: min(100%, calc((100svh - 220px) * var(--r, .7067))); }
  .viewer__video { width: min(100%, calc((100svh - 220px) * 16 / 9)); }
  .viewer__nav { display: none; }
  .swipe-hint { display: block; }
  .viewer__panel { grid-column: 1; grid-row: auto; padding: 22px 18px 32px; background: rgba(30,26,28,.82); box-shadow: none; overflow: visible; }
  .viewer__panel h2 { font-size: 20px; margin: 10px 0 12px; }
  .viewer__url { display: none; }
}

@media (max-width: 959px) and (orientation: landscape) {
  .viewer__img { width: min(100%, calc((100svh - 76px) * var(--r, .7067))); }
  .viewer__video { width: min(100%, calc((100svh - 76px) * 16 / 9)); }
}

/* ---------- サブページ（送信完了・ポリシー・404） ---------- */
.page { position: relative; min-height: calc(100vh - var(--header-h) - 180px); padding: 96px 0; }
.page__in { max-width: 840px; margin: 0 auto; padding: 0 var(--pad); }
.page h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.4; margin: 10px 0 20px; }
.page__lead { color: var(--ink-soft); }
.page__box { margin-top: 24px; padding: 18px 22px; background: rgba(30,26,28,.9); box-shadow: inset 2px 0 0 var(--accent); color: var(--ink-soft); font-size: 14px; }
.page__box li { padding-left: 1em; text-indent: -1em; }
.page__box li::before { content: "・"; }
.page__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.policy h2 { font-size: 22px; margin: 44px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.policy p, .policy li { color: var(--ink-soft); font-size: 15px; }
.policy section p + p { margin-top: 12px; }
.policy dl { display: grid; grid-template-columns: 9em 1fr; gap: 8px 16px; margin: 12px 0 0; font-size: 15px; }
.policy dt { color: var(--ink-faint); }
.policy dd { margin: 0; color: var(--ink-soft); }
.toc { margin-top: 24px; padding: 18px 22px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.toc a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 599px) {
  .page { padding: 64px 0; }
  .policy dl { grid-template-columns: 1fr; gap: 2px; }
  .policy dd { margin-bottom: 10px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition-duration: .01s !important; }
  .glitch::before, .glitch::after, .glitch .kn::before, .glitch .kn::after { display: none; }
  .status::before { animation: none; }
  .drift__row { animation: none !important; }
  .tile__frame::after { display: none; }
}
