/* gari8 のスタイル。フレームワーク・外部フォントなし */

@view-transition { navigation: auto; }

:root {
  --bg: #070708;
  --bg-2: #0e0e10;
  --bg-3: #16161a;
  --fg: #f4f2f3;
  --muted: #9a979c;
  --dim: #5d5a60;
  --line: rgb(255 255 255 / .09);
  --line-2: rgb(255 255 255 / .18);
  --glow: 255 158 214; /* アイコンのネオンの淡いピンク */
  --app: #ffffff;
  --app-rgb: 255 255 255;
  --r: 18px;
  --ease: cubic-bezier(.2, .9, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sans: "Avenir Next", "Montserrat", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.8 var(--sans);
  letter-spacing: .02em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgb(var(--glow) / .35); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 0 6px rgb(var(--glow) / .25); }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: #000; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ── 背景の効果 ─────────────────────────────────────────────── */
.fx-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
.fx-spot {
  /* カーソルを追う光: 位置は JS が transform で動かす（描き直しも再計算も起きない） */
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 1040px; height: 1040px; margin: -520px 0 0 -520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--glow) / .09), transparent);
  transform: translate(50vw, -20vh); will-change: transform;
}
.fx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--glow)), #fff);
  box-shadow: 0 0 12px rgb(var(--glow));
  transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .fx-progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* ── 上部のバー ────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
  background: rgb(7 7 8 / .94);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .12em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2), 0 0 18px rgb(var(--glow) / .25); transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }

.lang {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--line-2);
  font: 700 12px/1 var(--mono); letter-spacing: .12em;
}
.lang::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: #fff; box-shadow: 0 0 16px rgb(var(--glow) / .6);
  transition: transform .45s var(--spring);
}
.lang[data-on="en"]::before { transform: translateX(100%); }
.lang a { position: relative; z-index: 1; padding: 8px 14px; text-decoration: none; color: var(--muted); text-align: center; transition: color .3s; }
.lang a[aria-current] { color: #000; }
.lang a:not([aria-current]):hover { color: #fff; }

/* ── ボタン ────────────────────────────────────────────────────── */
.btn {
  --bx: 0px; --by: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  font-weight: 700; text-decoration: none; letter-spacing: .04em; cursor: pointer;
  background: transparent; overflow: hidden; isolation: isolate;
  transform: translate(var(--bx), var(--by));
  transition: transform .5s var(--spring), border-color .3s, box-shadow .3s, color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgb(var(--app-rgb) / .9), rgb(var(--app-rgb) / .55) 60%);
  transform: scale(0); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: scale(1.6); }
.btn .ico { transition: transform .4s var(--spring); }
.btn:hover .ico { transform: translateX(3px) rotate(-8deg); }
.btn-primary { background: #fff; color: #000; border-color: #fff; box-shadow: 0 0 0 0 rgb(var(--glow) / 0), 0 10px 40px -10px rgb(var(--app-rgb) / .8); }
.btn-primary::before { background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgb(var(--app-rgb)), rgb(var(--app-rgb) / .8) 70%); }
.btn-primary:hover { color: #fff; box-shadow: 0 0 30px rgb(var(--app-rgb) / .5); text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.btn-ghost:hover { border-color: rgb(var(--app-rgb)); color: #000; }
.btn-ghost::before { background: #fff; }
.btn-soon { cursor: default; color: var(--muted); border-style: dashed; }
.btn-soon::before { display: none; }
.blink { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--app-rgb)); box-shadow: 0 0 10px rgb(var(--app-rgb)); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.eyebrow { margin: 0 0 12px; font: 700 12px/1.4 var(--mono); letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.eyebrow i { font-style: normal; color: var(--dim); margin: 0 .3em; }
.label { margin: 0 0 18px; font: 700 12px/1 var(--mono); letter-spacing: .24em; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec-no { font: 700 .6em/1 var(--mono); letter-spacing: .1em; color: rgb(var(--app-rgb)); margin-right: .8em; vertical-align: .35em; opacity: .9; }

/* ── トップの 3D アイコン ──────────────────────────────────────────── */
.hero {
  position: relative; min-height: calc(100svh - 66px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 48px var(--gutter) 96px;
}
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5dff9e; box-shadow: 0 0 10px #5dff9e; animation: blink 2.4s infinite; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3D のアイコン（CSS の 3D 変形だけで作る。ライブラリなし） */
.stage {
  --size: min(74vw, 380px);
  --depth: calc(var(--size) * .1);
  --rim: #3b3440;
  position: relative; width: var(--size); aspect-ratio: 1; margin: 18px auto 0;
  perspective: 1400px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.stage.is-dragging { cursor: grabbing; }
.slab { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-22deg); will-change: transform; }

/* 側面: 細い面を周囲に並べる。厚み方向に暗→明→暗のグラデーションで丸みを出す（位置と明るさ --k は build.js が生成） */
.rim { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.rim > i {
  position: absolute; left: 50%; top: 50%; width: var(--w); height: var(--depth);
  margin: calc(var(--depth) / -2) 0 0 calc(var(--w) / -2);
  background:
    linear-gradient(to bottom, rgb(0 0 0 / calc(.85 - var(--k) * .6)), rgb(0 0 0 / calc(.45 - var(--k) * .6)) 45%, rgb(255 255 255 / calc(var(--k) * .12)) 50%, rgb(0 0 0 / calc(.45 - var(--k) * .6)) 55%, rgb(0 0 0 / calc(.85 - var(--k) * .6))),
    var(--rim);
}

.face { position: absolute; inset: 0; border-radius: 22%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin .face { border-radius: 50%; }
.front {
  all: unset; position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  transform: translateZ(calc(var(--depth) / 2 + .5px));
  background: radial-gradient(circle at 50% 38%, #1d161e, #060507 66%);
  box-shadow:
    inset 0 calc(var(--size) * .025) calc(var(--size) * .05) rgb(255 255 255 / .07),
    inset 0 calc(var(--size) * -.035) calc(var(--size) * .07) rgb(0 0 0 / .75);
  font: 800 calc(var(--size) * .17)/1 var(--sans); letter-spacing: .02em;
  cursor: inherit; -webkit-tap-highlight-color: transparent;
}
.front .n { will-change: transform; } /* 光る文字を別の層にして、回転中に描き直さない */
.front:focus-visible { outline: 2px dashed rgb(var(--glow)); outline-offset: 6px; }
/* 面のふち（金属の縁取り） */
.coin .front::before, .coin .back::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 3.2%; pointer-events: none;
  background: conic-gradient(from 210deg, #6c6272, #1a171c 18%, #7b7080 34%, #211d23 52%, #8a7f90 68%, #1c191e 84%, #6c6272);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* 表面の反射: 位置は JS が transform で動かす（描き直しが起きない） */
.shine {
  position: absolute; inset: -40% -60%; pointer-events: none; will-change: transform;
  background: linear-gradient(115deg, transparent 42%, rgb(255 255 255 / .16) 50%, transparent 58%);
}
.back {
  transform: rotateY(180deg) translateZ(calc(var(--depth) / 2 + .5px));
  background: radial-gradient(circle at 50% 38%, #1a151b, #060507 66%);
  box-shadow: inset 0 calc(var(--size) * .025) calc(var(--size) * .05) rgb(255 255 255 / .06), inset 0 calc(var(--size) * -.035) calc(var(--size) * .07) rgb(0 0 0 / .75);
  display: grid; place-content: center; justify-items: center; gap: 10px;
}
.back-mark { font: 800 calc(var(--size) * .15)/1 var(--sans); color: transparent; -webkit-text-stroke: 1px rgb(var(--glow) / .7); }
.back-url { font: 700 11px/1 var(--mono); letter-spacing: .2em; color: var(--dim); }
.stage-shadow {
  position: absolute; left: 18%; right: 18%; bottom: -12%; height: 10%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--glow) / .2), transparent);
}
.spin-hint { margin: 26px 0 0; font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--dim); }
.n {
  display: inline-block;
  color: #fff7fb;
  text-shadow:
    0 0 .02em #fff, 0 0 .06em #fff,
    0 0 .14em rgb(var(--glow) / .9), 0 0 .32em rgb(var(--glow) / .6), 0 0 .7em rgb(var(--glow) / .35);
  animation: ignite 1.6s steps(1) both;
  transition: color .25s, text-shadow .25s, transform .5s var(--spring);
}
.n1 { animation-delay: .12s; } .n2 { animation-delay: .3s; } .n3 { animation-delay: .18s; }
.n4 { animation: ignite 1.6s steps(1) .45s both, flicker 7s steps(1) 3s infinite; }
@keyframes ignite {
  0%, 12%, 26%, 34% { color: #2a2629; text-shadow: none; }
  8%, 18%, 30%, 100% { color: #fff7fb; }
}
@keyframes flicker {
  0%, 93%, 95.5%, 100% { opacity: 1; }
  94%, 97% { opacity: .25; text-shadow: none; }
}
.neon[aria-pressed="false"] .n { color: #1f1c1f; text-shadow: 0 0 0 transparent; animation: none; -webkit-text-stroke: 1px #3a353a; }

.bio { max-width: 34em; margin: 18px auto 0; font-size: clamp(1rem, 2.4vw, 1.2rem); color: #d8d4d7; text-wrap: balance; }
.teaser {
  margin: 28px 0 0; padding: 8px 16px; border-radius: 999px; border: 1px dashed var(--line-2);
  font-size: 13px; color: var(--muted);
}
.teaser span { color: rgb(var(--glow)); display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font: 700 11px/1 var(--mono); letter-spacing: .3em; color: var(--dim); text-decoration: none; }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(#fff, transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ── 流れる帯 ────────────────────────────────────────────────────── */
.bands { overflow: hidden; padding: 40px 0; margin: -40px 0; position: relative; z-index: 2; }
.marquee { overflow: hidden; background: #fff; color: #000; padding: 14px 0; transform: rotate(-2.2deg); margin: 0 -4vw; position: relative; z-index: 2; box-shadow: 0 0 60px rgb(var(--glow) / .35); }
.marquee-alt { background: transparent; color: transparent; transform: rotate(1.6deg); margin-top: -10px; z-index: 1; box-shadow: none; border-block: 1px solid var(--line-2); }
.marquee-alt span { -webkit-text-stroke: 1px rgb(255 255 255 / .5); }
.marquee-alt b { color: rgb(var(--glow)); }
.m-track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 32s linear infinite; font: 800 clamp(1.4rem, 4vw, 2.4rem)/1 var(--sans); letter-spacing: .06em; white-space: nowrap; }
.marquee-alt .m-track { animation-direction: reverse; animation-duration: 40s; }
.m-track b { font-size: .6em; }
.marquee:hover .m-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ── セクション ───────────────────────────────────────────────────── */
.works, .links-sec { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 140px) var(--gutter) 40px; }
.sec-head { display: grid; gap: 10px; margin-bottom: 40px; }
.sec-head h2 { margin: 0; font: 800 clamp(1.6rem, 5vw, 2.6rem)/1.2 var(--sans); letter-spacing: .02em; }
.sec-head h2 sup { font: 700 .42em/1 var(--mono); color: var(--muted); margin-left: .4em; vertical-align: 1em; }
.sec-head p { margin: 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filters button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  font-size: 14px; transition: background .3s, color .3s, transform .4s var(--spring);
}
.filters button:hover { transform: translateY(-2px); }
.filters button[aria-pressed="true"] { background: #fff; color: #000; }

/* フィーチャープロダクト: 落ち着いた表紙 */
.covers { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 32px); }
.cover-wrap[hidden] { display: none; }
.cover {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 72px);
  min-height: clamp(440px, 68vh, 640px); padding: clamp(28px, 5vw, 64px) clamp(24px, 6vw, 80px);
  border-radius: 32px; color: #fff; text-decoration: none;
  background:
    radial-gradient(90% 120% at 100% 50%, color-mix(in srgb, var(--app) 70%, #000) 0%, transparent 70%),
    linear-gradient(135deg, color-mix(in srgb, var(--app) 34%, #0c0b0e), #0c0b0e 70%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
  transition: box-shadow .4s;
}
.cover:hover, .cover:focus-visible { box-shadow: inset 0 0 0 1px rgb(var(--app-rgb) / .7), 0 30px 80px -30px rgb(var(--app-rgb) / .6); }
.cover.is-flip { grid-template-columns: auto minmax(0, 1fr); }
.cover.is-flip .cover-text { order: 2; }
.cover-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; font: 700 12px/1.4 var(--mono); letter-spacing: .2em; color: rgb(255 255 255 / .8); }
.cover-meta i { font-style: normal; opacity: .45; }
.cover-meta b { color: color-mix(in srgb, var(--app) 50%, #fff); }
.cover-meta .is-live { font-style: normal; color: #5dff9e; }
.cover-name { margin: 0; max-width: 12em; font: 800 clamp(1.8rem, 4vw, 3.25rem)/1.2 var(--sans); letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; }
.cover-tag { margin: 18px 0 0; max-width: 30em; font-size: clamp(1rem, 1.8vw, 1.15rem); color: rgb(255 255 255 / .86); word-break: auto-phrase; }
.cover-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 14px 24px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; transition: gap .45s var(--spring), background .3s, color .3s; }
.cover:hover .cover-go { gap: 16px; background: rgb(var(--app-rgb)); color: #fff; }
/* 表紙の右側: スマホの形の動画（なければ代表色と頭文字） */
.cover .cover-phone {
  position: relative; z-index: 0;
  height: min(60vh, 560px); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; padding: 8px;
  background: linear-gradient(145deg, #2a2a30, #0d0d10); box-shadow: 0 0 0 1px rgb(255 255 255 / .2), 0 40px 90px -30px rgb(0 0 0 / .8);
}
.cover-phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: #000; }
.cover-gen { display: grid; place-items: center; container-type: inline-size; background: linear-gradient(170deg, color-mix(in srgb, var(--app) 80%, #fff), var(--app) 40%, color-mix(in srgb, var(--app) 40%, #000)) !important; }
.cover-gen .reel-glyph { animation: none; position: static; translate: none; }
@media (max-width: 760px) {
  .cover, .cover.is-flip { grid-template-columns: 1fr; padding: 28px 22px 32px; min-height: 0; }
  .cover.is-flip .cover-text { order: 0; }
  .cover .cover-phone { order: -1; justify-self: center; height: 46vh; }
}

/* すべての作品 */
.sheet { position: relative; z-index: 3; background: var(--bg); }
.sheet-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 40px; }
.works-feat { padding-bottom: 0; }

/* ── 作品一覧 C: リール風（縦長のマスを敷き詰める） ─────────────── */
.reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.reel-wrap[hidden] { display: none; }
/* 選んだときの浮き上がりと光る枠は外枠（li）で出す。枠の影は最初から描いておき、濃さだけ変える */
.reel-wrap { position: relative; transition: transform .32s var(--spring); }
.reel-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none; opacity: 0; transition: opacity .2s;
  box-shadow: 0 0 0 2px #fff, 0 0 0 6px rgb(var(--app-rgb, 255 255 255) / .55), 0 30px 70px -20px rgb(var(--app-rgb, 255 255 255) / .8);
}
.reel-wrap:has(> .reel.selected) { transform: translateY(-6px) scale(1.03); z-index: 2; }
.reel-wrap:has(> .reel.selected)::before { opacity: 1; }
.reel {
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; contain: layout paint style;
  display: block; aspect-ratio: 9 / 16; border-radius: 22px; background: #111; color: #fff; text-decoration: none;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08);
  transition: transform .32s var(--spring);
}
/* 選んでいないマスを暗くする黒い膜（フィルターより軽い） */
.reel::after { content: ""; position: absolute; inset: 0; z-index: 5; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s; }
.reels.has-selected .reel:not(.selected)::after { opacity: .42; }
.reel:hover { transform: translateY(-4px); }
.reel:active { transform: scale(.97); transition-duration: .15s; }

/* 素材: 重ねておき、表示中の 1 つ（.on）だけ見せる */
.reel-media { position: absolute; inset: 0; z-index: -2; }
.ri { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s; }
.ri.on { opacity: 1; }
.reel.selected img.ri.on { animation: kenburns 4s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: none; } }
/* 素材がない（または 1 つ目が動画の）ときの表紙: 代表色と頭文字 */
.reel-gen { position: absolute; inset: 0; overflow: hidden; container-type: inline-size;
  background: linear-gradient(170deg, color-mix(in srgb, var(--app) 80%, #fff), var(--app) 40%, color-mix(in srgb, var(--app) 40%, #000)); }
.rb { position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%; will-change: transform; }
.rb1 { left: -55%; top: -30%; background: radial-gradient(closest-side, rgb(255 255 255 / .38), transparent); animation: rb1 9s ease-in-out infinite alternate; }
.rb2 { right: -65%; bottom: -30%; background: radial-gradient(closest-side, rgb(var(--glow) / .5), transparent); animation: rb2 11s ease-in-out infinite alternate; }
@keyframes rb1 { to { transform: translate(45%, 40%) scale(1.2); } }
@keyframes rb2 { to { transform: translate(-40%, -45%) scale(1.3); } }
.reel-glyph { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font: 900 88cqw/1 var(--sans); color: transparent; -webkit-text-stroke: 2px rgb(255 255 255 / .75); }
.reel-icon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56cqw; aspect-ratio: 1; border-radius: 22.5%; box-shadow: 0 0 0 1px rgb(255 255 255 / .18), 0 18px 40px -14px rgb(0 0 0 / .7); }
.cover-gen .reel-icon { position: static; translate: none; }
.reel:not(.selected) .rb { animation-play-state: paused; }
.reel-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgb(0 0 0 / .72), rgb(0 0 0 / .35) 16%, transparent 32%, transparent 78%, rgb(0 0 0 / .35)); }

/* 上: 素材の数だけ区切った進み具合の線。止まっている間も薄く見せる */
.reel-bar { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; gap: 4px; }
.reel-bar i { flex: 1; height: 2.5px; border-radius: 2px; background: rgb(255 255 255 / .35); overflow: hidden; }
.reel-bar b { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.reel.selected .reel-bar b, .reel-player .reel-bar b { will-change: transform; }
.reel-bar i.done b { transform: none; }
/* 線のすぐ下: 作品名と対応機種の小さなバッジ */
.reel-head { position: absolute; left: 12px; right: 12px; top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.reel-name { margin-right: 2px; font-weight: 800; font-size: 13px; line-height: 1.35; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.reel-badge { padding: 2px 6px; border-radius: 5px; font: 700 9.5px/1.4 var(--mono); letter-spacing: .04em; background: rgb(0 0 0 / .55); border: 1px solid rgb(255 255 255 / .22); }
/* 右下: 選んだときだけ「詳しく見る」 */
.reel-cta {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; font-size: 13px;
  opacity: 0; translate: 0 8px; scale: .9; pointer-events: none; transition: opacity .3s, translate .5s var(--spring), scale .5s var(--spring);
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / .6);
}
.reel.selected .reel-cta { opacity: 1; translate: 0 0; scale: 1; transition-delay: .15s; }
/* 左下: アプリのアイコン（表紙の真ん中に大きなアイコンが出ている間は隠す） */
.reel-app {
  position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .25), 0 8px 20px -6px rgb(0 0 0 / .7); transition: opacity .3s;
}
.reel:not(.selected):has(.reel-icon) .reel-app { opacity: 0; }
/* 選んだマス */
.reel.selected:hover { transform: none; }
/* 次の作品 */
.reel-next { background: transparent; box-shadow: none; border: 1px dashed var(--line-2); }
.reel-next .reel-name { color: var(--dim); text-shadow: none; }
.reel-tag { position: absolute; left: 12px; right: 12px; top: 46px; font-size: 12px; color: var(--dim); }
@container (max-width: 210px) {
  .reel-name { font-size: 12px; }
  .reel-cta { padding: 8px 12px; font-size: 12px; right: 8px; bottom: 8px; }
  .reel-app { left: 8px; bottom: 8px; width: 34px; height: 34px; }
}

/* アイコン（文書ページで使う平らなもの） */
.icon { width: 84px; aspect-ratio: 1; border-radius: 22%; overflow: hidden; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line-2), 0 12px 40px -8px rgb(var(--app-rgb) / .55); }
.icon img { width: 100%; height: 100%; object-fit: cover; }
.icon-mono { display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgb(var(--app-rgb) / .9), rgb(var(--app-rgb) / .35) 60%, #0d0d0f); font: 800 2.4em/1 var(--sans); color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / .4); }
.teaser-tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-style: normal; font-weight: 800; letter-spacing: .08em; color: #fff; background: rgb(var(--app-rgb)); border: 0; text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.read-kind .teaser-tag { margin-right: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font: 700 12px/1.2 var(--sans); letter-spacing: .04em; border: 1px solid var(--line-2); color: #cfcbd0; background: rgb(0 0 0 / .25); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.is-live { color: #5dff9e; border-color: rgb(93 255 158 / .4); }
.plats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.plat {
  padding: 4px 10px; border-radius: 6px; font: 700 11px/1.4 var(--mono); letter-spacing: .08em;
  background: rgb(0 0 0 / .3); border: 1px solid var(--line-2); color: #e4e0e3;
  transition: transform .4s var(--spring), background .3s;
}
.plats-lg { margin: -12px 0 24px; }
.plats-lg .plat { font-size: 12px; padding: 6px 12px; }

/* ── リンクの行 ──────────────────────────────────────────────────── */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row-link {
  position: relative; display: grid; grid-template-columns: 3em 1fr auto 2em; align-items: center; gap: 16px;
  padding: 26px 8px; border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .4s, padding .5s var(--spring);
}
.row-link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.row-link:hover { color: #000; padding-left: 24px; }
.row-link:hover::before { transform: scaleY(1); }
.r-no { font: 700 12px/1 var(--mono); color: var(--dim); }
.r-label { font: 800 clamp(1.15rem, 3.4vw, 1.75rem)/1.2 var(--sans); }
.r-handle { font: 400 14px/1 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link:hover .r-handle, .row-link:hover .r-no { color: #333; }
.r-arrow { font-size: 1.4rem; transition: transform .5s var(--spring); }
.row-link:hover .r-arrow { transform: rotate(45deg); }

/* ── 作品のページ: 読ませる章立て ───────────────────────────── */
.read { position: relative; max-width: 1040px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.app, .doc { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 12px/1.6 var(--mono); color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; color: var(--muted); } .crumbs a:hover { color: #fff; }
.crumbs i { font-style: normal; color: var(--dim); }

.read-hero { padding: clamp(40px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.read-kind { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; font: 700 12px/1 var(--mono); letter-spacing: .22em; color: color-mix(in srgb, var(--app) 60%, #fff); }
.read-kind i { font-style: normal; opacity: .4; }
.read-title { margin: 0; max-width: 14em; font: 800 clamp(1.9rem, 5vw, 3.4rem)/1.25 var(--sans); letter-spacing: .04em; word-break: auto-phrase; text-wrap: balance; }
.read-tagline { margin: 26px 0 0; max-width: 30em; font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 2; color: #e8e3e6; word-break: auto-phrase; }
.read-hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin-top: 44px; }
.read-icon { width: 92px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.notice { padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--muted); font-size: 14px; }

.read-lead { max-width: 36em; margin: clamp(48px, 8vw, 96px) 0; font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 2.1; color: #f1edef; }
.read-lead p { margin: 0 0 1em; }

/* 冒頭のリール: 右に縦長（スマホでは上） */
.read-hero.has-player { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 72px); padding-top: clamp(24px, 5vw, 64px); }
.reel-player { width: min(340px, 30vw); cursor: default; }
.reel-player:hover, .reel-player:active { transform: none; }
.rp-nav { all: unset; position: absolute; top: 0; bottom: 0; width: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rp-prev { left: 0; }
.rp-next { right: 0; }
.rp-nav:focus-visible { outline: 2px solid #fff; outline-offset: -6px; border-radius: 18px; }
@media (max-width: 760px) {
  .read-hero.has-player { grid-template-columns: 1fr; }
  .reel-player { order: -1; justify-self: center; width: min(76vw, 320px); }
}

/* 章: PC では見出しを左に置き、本文を読む間ついてくる */
.chapters { margin: clamp(32px, 6vw, 72px) 0; }
.chapter { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 16px clamp(24px, 5vw, 72px); padding: clamp(36px, 6vw, 64px) 0; border-top: 1px solid var(--line); }
.ch-head { position: sticky; top: 96px; align-self: start; }
.ch-no { display: block; margin-bottom: 10px; font: 700 12px/1 var(--mono); letter-spacing: .2em; color: color-mix(in srgb, var(--app) 60%, #fff); }
.ch-head h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.5; letter-spacing: .06em; }
.ch-body { max-width: 34em; font-size: 1.05rem; line-height: 2.05; letter-spacing: .04em; color: #e9e4e7; }
.ch-body p, .ch-body ul, .ch-body ol { margin: 0 0 1.1em; }
.ch-body ul, .ch-body ol, .doc-body ul, .a ul { padding-left: 1.3em; }
.ch-body li { padding-left: .3em; }
.ch-body li::marker, .doc-body li::marker { color: color-mix(in srgb, var(--app) 70%, #fff); }
.ch-body strong { color: #fff; font-weight: 700; background: linear-gradient(transparent 62%, rgb(var(--app-rgb) / .35) 62%); }
.ch-body a, .doc-body a, .a a { color: #fff; text-decoration-color: rgb(var(--app-rgb)); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ch-body a:hover, .doc-body a:hover, .a a:hover { text-decoration-thickness: 2px; }
code { font: .9em var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); }
pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
pre code { padding: 0; border: 0; background: none; }
blockquote { margin: 0 0 1.1em; padding: 4px 0 4px 18px; border-left: 2px solid rgb(var(--app-rgb)); color: #d8d3d6; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }

/* ── 作品ごとの世界観（index.md の look:） ───────────────────── */
/* 明朝体: 端末に入っている書体を使う（読み込みなし） */
.look-font-serif .read, .look-font-serif .doc { --sans: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", "Source Han Serif JP", serif; font-family: var(--sans); }
.look-font-serif .read-title { font-weight: 600; letter-spacing: .08em; }
.look-font-serif .ch-head h2, .look-font-serif .clause h2 { font-weight: 600; letter-spacing: .1em; }
.look-font-serif .read-lead, .look-font-serif .ch-body { letter-spacing: .06em; }
/* 紙: 繊維のようなざらつき（SVG のノイズを 1 枚敷くだけ） */
.look-texture-paper::after, .look-texture-grain::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.look-texture-paper::after { opacity: .14; background-size: 240px 240px; filter: contrast(1.3); }
.look-texture-paper { background:
  radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--app) 9%, #0b0907), transparent 70%),
  #0a0908; }
/* ランプ: 暗い部屋に灯る光。読み進めるほど部屋が少しずつ明るくなる */
.lamp { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.lamp i {
  position: absolute; left: 50%; top: -30vh; width: min(1100px, 160vw); aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--app) 40%, #ffb35c) 0%, rgb(255 170 90 / .0) 70%);
  opacity: .16; animation: lamp 9s ease-in-out infinite;
}
.lamp::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, transparent 30%, rgb(0 0 0 / .55) 100%); }
@keyframes lamp { 0%, 100% { opacity: .16; scale: 1; } 40% { opacity: .19; scale: 1.02; } 43% { opacity: .15; } 46% { opacity: .18; } }
@supports (animation-timeline: scroll()) {
  .lamp::after { animation: lights-up linear both; animation-timeline: scroll(root); }
  @keyframes lights-up { to { opacity: .35; } }
}

.media { margin: 40px 0 24px; }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 26px; scrollbar-width: thin; scrollbar-color: var(--dim) transparent; overscroll-behavior-x: contain; }
.phone { flex: 0 0 auto; width: clamp(200px, 26vw, 260px); margin: 0; aspect-ratio: 9 / 19.5; scroll-snap-align: start; border-radius: 34px; padding: 8px; background: linear-gradient(145deg, #2a2a30, #0d0d10); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgb(var(--app-rgb) / .6); transition: transform .6s var(--spring); }
.phone:hover { transform: translateY(-8px) rotate(-1.5deg); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 27px; background: #000; }

.facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts dl > div { background: var(--bg); padding: 20px 22px; }
.facts dt { font: 700 11px/1 var(--mono); letter-spacing: .2em; color: var(--muted); margin-bottom: 10px; }
.facts dd { margin: 0; }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 56px 0 24px; }
.door {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; padding: 28px;
  border-radius: var(--r); border: 1px solid var(--line-2); text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color .4s, transform .6s var(--spring);
}
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(var(--app-rgb)); clip-path: circle(0% at 100% 100%); transition: clip-path .7s var(--ease); }
.door:hover { color: #000; transform: translateY(-4px); }
.door:hover::before { clip-path: circle(150% at 100% 100%); }
.d-k { grid-column: 1 / -1; font: 700 11px/1 var(--mono); letter-spacing: .24em; opacity: .7; }
.d-v { font: 800 clamp(1.3rem, 3.4vw, 1.8rem)/1.3 var(--sans); }
.door .ico { width: 28px; height: 28px; transition: transform .5s var(--spring); }
.door:hover .ico { transform: translateX(6px); }

/* ── 文書（プライバシーポリシー・サポート） ─────────────────────────────── */
.doc-head { display: flex; align-items: center; gap: 22px; padding: clamp(16px, 4vw, 40px) 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.doc-icon { width: 72px; flex: none; }
.doc-head h1 { margin: 0; font: 800 clamp(1.6rem, 4vw, 2.4rem)/1.25 var(--sans); }
.doc-head .eyebrow { margin-bottom: 6px; text-transform: none; letter-spacing: .08em; }
.dates { margin: 10px 0 0; font: 13px/1.6 var(--mono); color: var(--muted); }
.dates i { font-style: normal; margin: 0 .6em; color: var(--dim); }
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 96px; max-height: calc(100dvh - 120px); overflow: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.5; transition: background .25s, color .25s, transform .4s var(--spring); }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 700 11px/1.9 var(--mono); color: var(--dim); }
.toc a:hover, .toc a.is-here { color: #fff; background: var(--bg-3); transform: translateX(4px); }
.toc a.is-here::before { color: rgb(var(--app-rgb)); }
.doc-body { max-width: 72ch; }
.clause { padding: 6px 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.clause:last-child { border-bottom: 0; }
.clause h2 { margin: 0 0 14px; font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.5; }
.clause p { margin: 0 0 12px; color: #e4e0e3; }
.clause:target h2 { color: rgb(var(--app-rgb)); }

.mailcard { position: relative; padding: clamp(24px, 4vw, 40px); border-radius: var(--r); border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 100% 0%, rgb(var(--app-rgb) / .16), transparent 55%), var(--bg-2); margin-bottom: 48px; }
.mailcard p { margin: 0 0 18px; color: #d8d4d7; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail { --bx: 0px; --by: 0px; display: inline-block; font: 800 clamp(1.2rem, 4.4vw, 2rem)/1.3 var(--sans); text-decoration: none; word-break: break-all; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transform: translate(var(--bx), var(--by)); transition: background-size .5s var(--ease), transform .5s var(--spring); }
.mail:hover { background-size: 100% 2px; }
.btn-copy { padding: 10px 18px; font-size: 14px; }
.btn-copy.is-done { border-color: #5dff9e; color: #5dff9e; }
.mail-env { margin: 20px 0 0 !important; font-size: 14px; color: var(--muted) !important; display: flex; flex-wrap: wrap; gap: 12px; }
.mail-env span { font: 700 11px/2 var(--mono); letter-spacing: .2em; color: var(--dim); }

.faq { margin-top: 48px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: grid; grid-template-columns: auto 1fr 28px; gap: 16px; align-items: center; padding: 22px 6px; cursor: pointer; list-style: none; transition: color .3s, padding .5s var(--spring); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { padding-left: 14px; }
.q-no { font: 700 12px/1 var(--mono); color: rgb(var(--app-rgb)); }
.q-text { font-weight: 700; font-size: 1.05rem; line-height: 1.6; }
.q-x { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .5s var(--spring), background .3s, border-color .3s; }
.q-x::before, .q-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; translate: -50% -50%; border-radius: 2px; }
.q-x::after { rotate: 90deg; }
.qa[open] .q-x { transform: rotate(135deg); background: rgb(var(--app-rgb)); border-color: rgb(var(--app-rgb)); color: #000; }
.a { padding: 0 6px 24px calc(6px + 3.1em); color: #e4e0e3; }
.a p { margin: 0 0 10px; }
.qa[open] .a { animation: drop .5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .qa[open]::details-content { height: auto; }
}

/* ── 404 ────────────────────────────────────────────────────────── */
.lost { min-height: 70dvh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 40px var(--gutter); }
.lost-code { margin: 0; font: 800 clamp(6rem, 30vw, 14rem)/1 var(--sans); color: #fff7fb; text-shadow: 0 0 .06em #fff, 0 0 .2em rgb(var(--glow) / .8), 0 0 .5em rgb(var(--glow) / .4); }
.flick { display: inline-block; animation: flicker 2.6s steps(1) infinite; }
.lost h1 { margin: 0; font-size: clamp(1.3rem, 4vw, 2rem); line-height: 1.5; }
.lost small { font-size: .6em; color: var(--muted); font-weight: 400; }
.lost p { color: var(--muted); margin: 0 0 16px; }

/* ── 下部・隠し要素 ──────────────────────────────────────────── */
.foot { position: relative; margin-top: 80px; border-top: 1px solid var(--line); overflow: hidden; }
.secrets { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 24px; }
.secrets-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.secrets h2 { margin: 0; font: 800 1.4rem/1 var(--sans); letter-spacing: .1em; }
.secrets-count { margin: 0; font: 700 13px/1 var(--mono); color: rgb(var(--glow)); }
.secrets-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.secrets-list li { display: grid; grid-template-columns: 14px 1fr; gap: 2px 10px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line-2); transition: border-color .4s, background .4s, transform .5s var(--spring); }
.s-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--dim); }
.s-name { font-weight: 700; color: var(--dim); letter-spacing: .1em; }
.s-hint { grid-column: 2; font-size: 12px; color: var(--dim); }
.secrets-list li.got { border-style: solid; border-color: rgb(var(--glow) / .5); background: rgb(var(--glow) / .06); }
.secrets-list li.got .s-dot { background: rgb(var(--glow)); border-color: rgb(var(--glow)); box-shadow: 0 0 10px rgb(var(--glow)); }
.secrets-list li.got .s-name { color: #fff; letter-spacing: .02em; }
.secrets-list li.pop { animation: pop .7s var(--spring); }
@keyframes pop { 40% { transform: scale(1.06) rotate(-1deg); } }
.secrets.all-found .secrets-count::after { content: " ✦ " attr(data-label); }

/* ── コンプリート ─────────────────────────────────────────────── */
.celebrate { position: fixed; inset: 0; z-index: 120; overflow: hidden; cursor: pointer;
  background: radial-gradient(circle at 50% 50%, rgb(30 20 4 / .86), rgb(0 0 0 / .94) 70%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: cel-in .5s ease both; }
.celebrate.out { animation: cel-out .7s ease both; }
@keyframes cel-in { from { opacity: 0; } }
@keyframes cel-out { to { opacity: 0; } }
.celebrate > * { position: absolute; pointer-events: none; }
/* 回る光の筋 */
.cel-rays { left: 50%; top: 50%; width: 220vmax; aspect-ratio: 1; translate: -50% -50%; opacity: 0;
  background: repeating-conic-gradient(from 0deg, rgb(255 211 110 / .14) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 10%, transparent 70%); mask: radial-gradient(closest-side, #000 10%, transparent 70%);
  animation: rays-in 1s ease .2s forwards, rays-spin 24s linear infinite; }
@keyframes rays-in { to { opacity: 1; } }
@keyframes rays-spin { to { rotate: 360deg; } }
/* 金の玉: 円を描いて灯り、真ん中に吸い込まれる */
.cel-orbs { left: 50%; top: 44%; }
.cel-orbs i { position: absolute; width: 18px; height: 18px; margin: -9px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 35% 35%, #fff, #ffd36e 45%, #b8862b); box-shadow: 0 0 20px #ffd36e, 0 0 50px rgb(255 176 32 / .7);
  transform: translate(var(--x), var(--y));
  animation: orb-on .35s var(--spring) var(--d) forwards, orb-in .45s cubic-bezier(.7, 0, .9, .4) 1.75s forwards; }
@keyframes orb-on { from { opacity: 0; scale: 0; } to { opacity: 1; scale: 1; } }
@keyframes orb-in { from { opacity: 1; } 85% { opacity: 1; } to { opacity: 0; transform: translate(0, 0); scale: .4; } }
/* 白い閃光 */
.cel-flash { inset: 0; background: radial-gradient(circle at 50% 44%, #fff, rgb(255 230 170 / .8) 30%, transparent 70%); opacity: 0;
  animation: flash .9s ease-out 2.15s; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
/* 金色のコイン: 上から高速回転しながら落ちて着地 */
.cel-coin { left: 50%; top: 44%; translate: -50% -50%; }
.cel-coin .stage { --size: min(54vw, 250px); margin: 0; --rim: #6b5222; }
.cel-coin .slab { animation: coin-drop 1.6s cubic-bezier(.2, .8, .3, 1) 2.2s both; }
@keyframes coin-drop {
  0% { transform: translateY(-120vh) rotateX(20deg) rotateY(0deg) scale(.6); }
  70% { transform: translateY(0) rotateX(10deg) rotateY(1440deg) scale(1.08); }
  85% { transform: translateY(-14px) rotateX(6deg) rotateY(1470deg) scale(1); }
  100% { transform: translateY(0) rotateX(8deg) rotateY(1440deg) scale(1); }
}
.cel-coin .stage-shadow { opacity: 0; animation: rays-in .4s ease 3.2s forwards; }
/* 花火 */
.cel-burst i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c), 0 0 22px var(--c); opacity: 0;
  animation: burst var(--t) cubic-bezier(.1, .7, .2, 1) var(--d) forwards; } /* はじけるまでは見せない */
.cel-burst i:nth-child(4n) { width: 3px; height: 14px; border-radius: 2px; }
@keyframes burst {
  0% { transform: translate(0, 0) scale(1.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 8vmin)) scale(.3); opacity: 0; }
}
/* 紙吹雪 */
.cel-rain { inset: 0; }
.cel-rain i { position: absolute; left: var(--x); top: -4vh; width: 9px; height: 14px; border-radius: 2px; background: var(--c); opacity: 0;
  animation: fall var(--t) linear var(--d) infinite; }
.cel-rain i:nth-child(3n) { width: 6px; height: 6px; border-radius: 50%; }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--w), 112vh) rotate(var(--r)); opacity: 1; }
}
/* 文字 */
.cel-badge { left: 0; right: 0; top: calc(44% + min(27vw, 125px) + 28px); display: grid; justify-items: center; gap: 12px; text-align: center; padding: 0 16px; }
.cel-title { display: flex; font: 800 clamp(2.4rem, 11vw, 4.8rem)/1 var(--sans); letter-spacing: .04em; }
.cel-ch { display: inline-block; color: transparent; opacity: 0;
  background: linear-gradient(100deg, #b8862b 0 30%, #fff6d8 45%, #ffd36e 55%, #b8862b 70% 100%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 .12em rgb(255 176 32 / .8));
  animation: ch-pop .7s var(--spring) calc(3.3s + var(--i) * .07s) both, ch-shine 2.4s linear 4.2s infinite; }
@keyframes ch-pop { from { opacity: 0; transform: translateY(.6em) scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes ch-shine { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.cel-badge small { font-size: 14px; letter-spacing: .08em; color: #ffe9b0; opacity: 0; animation: rays-in .6s ease 3.9s forwards; }
/* 動きを減らす設定: コインと文字だけ */
.celebrate.calm .cel-orbs, .celebrate.calm .cel-flash { display: none; }
.celebrate.calm .cel-coin .slab, .celebrate.calm .cel-ch, .celebrate.calm small, .celebrate.calm .cel-rays { animation: none; opacity: 1; }

/* コンプリートした人にだけ残る変化: トップのコインと隠し要素の欄が金色になる */
html.complete .stage { --rim: #6b5222; }
html.complete .n { color: #fff7e0; text-shadow: 0 0 .02em #fff, 0 0 .06em #fff, 0 0 .14em #ffd36e, 0 0 .32em rgb(255 176 32 / .7), 0 0 .7em rgb(255 176 32 / .4); }
html.complete .coin .front::before, html.complete .coin .back::before {
  background: conic-gradient(from 210deg, #f6d27a, #6b4d14 18%, #ffe7a6 34%, #7a5818 52%, #f6d27a 68%, #6b4d14 84%, #f6d27a); }
html.complete .stage-shadow { background: radial-gradient(closest-side, rgb(255 211 110 / .3), transparent); }
html.complete .secrets-list li.got { border-color: rgb(255 211 110 / .6); background: rgb(255 211 110 / .07); }
html.complete .secrets-list li.got .s-dot { background: #ffd36e; border-color: #ffd36e; box-shadow: 0 0 10px #ffd36e; }
html.complete .secrets-count { color: #ffd36e; }

.foot-bottom { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 40px; display: grid; gap: 18px; }
.foot-mark { margin: 0; font: 800 clamp(5rem, 26vw, 19rem)/.8 var(--sans); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .16); user-select: none; transition: -webkit-text-stroke-color .6s, text-shadow .6s; }
.foot:hover .foot-mark { -webkit-text-stroke-color: rgb(var(--glow) / .6); text-shadow: 0 0 40px rgb(var(--glow) / .15); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; } .foot-links a:hover { color: #fff; }
.copy { margin: 0; font: 12px/1 var(--mono); color: var(--dim); }
[data-end] { height: 1px; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 14px; border-radius: 16px;
  background: rgb(20 18 22 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgb(var(--glow) / .5); box-shadow: 0 0 40px rgb(var(--glow) / .3), 0 20px 50px -10px #000;
  translate: -50% 160%; opacity: 0; transition: translate .6s var(--spring), opacity .3s; pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast.show { translate: -50% 0; opacity: 1; }
.toast .t-star { font-size: 22px; color: rgb(var(--glow)); animation: spin 2s linear infinite; }
.toast small { display: block; font: 700 10px/1.2 var(--mono); letter-spacing: .24em; color: rgb(var(--glow)); }
.toast strong { font-size: 15px; }

/* ── スクロールに合わせて表示（JS なし・対応ブラウザのみ） ────────────────── */
@supports (animation-timeline: view()) {
  .chapter, .read-lead, .row-link, .clause, .qa, .phone, .door, .secrets-list li, .cover {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
  }

  .hero > * { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  @keyframes rise { from { opacity: 0; translate: 0 40px; } }
  @keyframes hero-out { to { opacity: 0; translate: 0 -60px; scale: .96; } }
}

/* ── ページ間の切り替えアニメーション ───────────────────────────── */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
::view-transition-group(*) { animation-timing-function: var(--ease); animation-duration: .5s; }

/* ── 画面幅ごとの調整 ───────────────────────────────────────────────── */
@media (max-width: 820px) {
  .doc-grid { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
}
@media (max-width: 760px) {
  .reels { grid-template-columns: 1fr 1fr; gap: 8px; }
  .reel { border-radius: 16px; }
}
@media (max-width: 640px) {
  .chapter { grid-template-columns: 1fr; }
  .ch-head { position: static; }
  .row-link { grid-template-columns: 2.2em 1fr 1.6em; padding: 20px 4px; }
  .r-handle { display: none; }
  .doc-head { align-items: flex-start; }
  .doc-icon { width: 56px; }
  .a { padding-left: 6px; }

}
@media (hover: none) {
  .fx-spot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .chapter, .read-lead, .row-link, .clause, .qa, .phone, .door, .secrets-list li, .hero > *, .lamp i, .rb, .ri { animation: none !important; }
  .m-track { animation: none !important; }
  @view-transition { navigation: none; }
}

@media print {
  .topbar, .fx-grid, .fx-spot, .fx-progress, .foot, .toast, .toc, .doors { display: none !important; }
  body { background: #fff; color: #000; }
  .clause p { color: #000; }
}

/* 3D アイコンの側面 */
.rim-coin>i:nth-child(1){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.681;transform:rotateZ(0deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(2){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.607;transform:rotateZ(5.625deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(3){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.53;transform:rotateZ(11.25deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(4){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.451;transform:rotateZ(16.875deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(5){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.372;transform:rotateZ(22.5deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(6){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.296;transform:rotateZ(28.125deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(7){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.225;transform:rotateZ(33.75deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(8){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.163;transform:rotateZ(39.375deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(9){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(45deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(10){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(50.625deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(11){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(56.25deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(12){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(61.875deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(13){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(67.5deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(14){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(73.125deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(15){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(78.75deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(16){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(84.375deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(17){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(90deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(18){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(95.625deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(19){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(101.25deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(20){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(106.875deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(21){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(112.5deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(22){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(118.125deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(23){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(123.75deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(24){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(129.375deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(25){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(135deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(26){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(140.625deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(27){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(146.25deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(28){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(151.875deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(29){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(157.5deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(30){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(163.125deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(31){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(168.75deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(32){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(174.375deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(33){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(180deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(34){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(185.625deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(35){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(191.25deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(36){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(196.875deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(37){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(202.5deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(38){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(208.125deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(39){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(213.75deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(40){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(219.375deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(41){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.12;transform:rotateZ(225deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(42){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.163;transform:rotateZ(230.625deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(43){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.225;transform:rotateZ(236.25deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(44){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.296;transform:rotateZ(241.875deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(45){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.372;transform:rotateZ(247.5deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(46){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.451;transform:rotateZ(253.125deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(47){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.53;transform:rotateZ(258.75deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(48){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.607;transform:rotateZ(264.375deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(49){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.681;transform:rotateZ(270deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(50){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.75;transform:rotateZ(275.625deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(51){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.812;transform:rotateZ(281.25deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(52){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.867;transform:rotateZ(286.875deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(53){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.914;transform:rotateZ(292.5deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(54){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.951;transform:rotateZ(298.125deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(55){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.978;transform:rotateZ(303.75deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(56){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.994;transform:rotateZ(309.375deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(57){--w:calc(var(--size)*0.0491 + 1.5px);--k:1;transform:rotateZ(315deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(58){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.994;transform:rotateZ(320.625deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(59){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.978;transform:rotateZ(326.25deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(60){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.951;transform:rotateZ(331.875deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(61){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.914;transform:rotateZ(337.5deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(62){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.867;transform:rotateZ(343.125deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(63){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.812;transform:rotateZ(348.75deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
.rim-coin>i:nth-child(64){--w:calc(var(--size)*0.0491 + 1.5px);--k:0.75;transform:rotateZ(354.375deg) translateY(calc(var(--size)*-.5)) rotateX(90deg)}
/* 作品ごとの色 */
.c-kikainoyakata{--app:#e4572e;--app-rgb:228 87 46}.vt-kikainoyakata{view-transition-name:app-kikainoyakata}.vt-card-kikainoyakata{view-transition-name:card-kikainoyakata}.vt-title-kikainoyakata{view-transition-name:title-kikainoyakata}
.c-tontsu{--app:#ff9f2e;--app-rgb:255 159 46}.vt-tontsu{view-transition-name:app-tontsu}.vt-card-tontsu{view-transition-name:card-tontsu}.vt-title-tontsu{view-transition-name:title-tontsu}
.c-munyunyu{--app:#ff8fc0;--app-rgb:255 143 192}.vt-munyunyu{view-transition-name:app-munyunyu}.vt-card-munyunyu{view-transition-name:card-munyunyu}.vt-title-munyunyu{view-transition-name:title-munyunyu}
