/* あめのみっくす — 天宮（あめのみや）＝雲海の上の宮殿と、そこに灯る星をモチーフにした、静かで余白のあるデザイン */

:root {
  --flag-pick-bg: #f3d9a4; --flag-pick-ink: #6b4a0f;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #171a24;
  --ink-2: #4a4f5e;
  --muted: #8a8f9c;
  --line: #e3e1da;
  --night-1: #0f1324;
  --night-2: #1b2340;
  --night-3: #2c3a63;
  --mist: #c9d6ea;
  --accent: #3b6fb6;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 19 36 / 0.04), 0 8px 28px rgb(15 19 36 / 0.06);
  --shadow-hover: 0 2px 4px rgb(15 19 36 / 0.06), 0 18px 44px rgb(15 19 36 / 0.12);
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-en: "Jost", "Zen Kaku Gothic New", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11131b;
    --surface: #1a1d28;
    --ink: #eceef4;
    --ink-2: #b7bccb;
    --muted: #7d8394;
    --line: #2a2e3c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.25);
    --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.3), 0 18px 44px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11131b; --surface: #1a1d28; --ink: #eceef4; --ink-2: #b7bccb; --muted: #7d8394; --line: #2a2e3c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; letter-spacing: 0.04em; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  color: #fff;
  transition: background .4s ease, color .4s ease, box-shadow .4s ease, padding .4s ease;
}
.site-header.is-scrolled:not(.is-solid) {
  background: rgb(10 13 28 / .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; margin: 0; }
.logo__mark {
  align-self: center; width: 16px; height: 16px;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  background: linear-gradient(135deg, #fff1c9, #9fb8ff 55%, #8a6fd1);
}
.logo__text { font-family: var(--font-en); font-weight: 500; font-size: 22px; letter-spacing: 0.08em; }
.logo__sub { font-size: 11px; opacity: .7; letter-spacing: 0.2em; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 6px 12px; border-radius: 999px;
  font-size: 14px; text-decoration: none; opacity: .85;
  transition: opacity .2s, background .2s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; background: rgb(127 127 127 / .14); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    content: ""; display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s, opacity .3s;
  }
  .nav-toggle span:first-child { position: relative; }
  .nav-toggle span:first-child::before { position: absolute; top: -7px; }
  .nav-toggle span:first-child::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; background: var(--night-1); color: #fff;
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 6px; }
  .site-nav a { font-size: 20px; padding: 10px 24px; }
  .site-header:has(.site-nav.is-open) { color: #fff; }
}

/* ---------------------------------------------------------------- 共通部品 */
.section-inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section-inner--narrow { max-width: 780px; }
/* 見出しやフッターとくっつかないよう、一覧の上下に余白をとる */
.section-pad { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.section-pad--follow { padding-top: 0; }
.section-pad--follow .sub-title { margin-top: 0; }
.eyebrow {
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px;
}
.section-head { margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: transform .25s ease, box-shadow .25s ease, background .25s;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn--ghost:hover { box-shadow: none; background: rgb(127 127 127 / .1); }
.btn--light { color: #fff; }
/* ダウンロードボタン：2行（「ダウンロード」＋「Windows版・v1.0.0・9.9MB」） */
.btn--dl { display: inline-grid; grid-template-columns: auto auto; column-gap: 12px; row-gap: 1px; align-items: center;
  padding: 11px 30px 11px 16px; font-weight: 700; line-height: 1.3; }
.btn--dl small { grid-column: 2; font-size: 11.5px; font-weight: 400; letter-spacing: .04em; opacity: .8; }
.btn--dl__icon { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px;
  background: color-mix(in srgb, currentColor 14%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 18px; }
.btn-row .btn { margin-top: 0; }
.page-hero .btn-row .btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .55); box-shadow: none; align-self: stretch; }
/* ダウンロードの節 */
.dl-box { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.dl-box__main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dl-box__more { margin: 0; font-size: 13px; }
.dl-box__more a { color: var(--ink-2); }
.dl-box__spec { border-collapse: collapse; font-size: 14px; width: 100%; }
.dl-box__spec th, .dl-box__spec td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dl-box__spec tr:last-child > * { border-bottom: 0; }
.dl-box__spec th { width: 9em; padding-right: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.dl-box__spec .hash { font-size: 11.5px; line-height: 1.5; word-break: break-all; background: none; padding: 0; }
.dl-notes { margin-top: 18px; padding: 18px 22px; border-radius: 14px; border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dl-notes__title { margin: 0 0 6px; font-weight: 700; }
.dl-notes ul { margin: 0; padding-left: 1.2em; }
.dl-notes li { margin: 4px 0; line-height: 1.75; }
@media (max-width: 640px) {
  .dl-box { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
}
.more {
  display: inline-flex; gap: 8px; margin-top: 28px;
  color: var(--accent); font-weight: 500; text-decoration: none; font-size: 15px;
}
.more span { transition: transform .25s; }
.more:hover span { transform: translateX(4px); }
.chip {
  display: inline-block; padding: 2px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); font-size: 12px; font-weight: 500; text-decoration: none; letter-spacing: 0.08em;
}
.chip--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; }
.badge--sample { background: #f3d9a4; color: #6b4a0f; }
.empty { color: var(--muted); }
.notice {
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  background: #fff6df; color: #6b4a0f; border: 1px solid #f0dca8;
}

/* ---------------------------------------------------------------- ヒーロー（パララックス） */
.hero {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden;
  color: #fff; display: grid; place-items: center; text-align: center;
  background: var(--night-1);
  isolation: isolate;
}
.hero__layer { position: absolute; inset: -12% -2%; pointer-events: none; will-change: transform; }
.hero__sky {
  background:
    radial-gradient(90% 55% at 50% 108%, #6c6aa8 0%, #3b4378 35%, transparent 70%),
    radial-gradient(60% 45% at 85% 5%, #2e2560 0%, transparent 70%),
    linear-gradient(180deg, #070a18 0%, var(--night-1) 30%, var(--night-2) 65%, var(--night-3) 100%);
}
/* 星：点を敷き詰めた背景を2層重ね、遠近で動く速さを変える */
.hero__stars {
  background-repeat: repeat;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 85%);
}
.hero__stars--far {
  opacity: .7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 37% 63%, #dfe6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 27%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 81% 72%, #cfd9ff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 4% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 69% 94%, #e8ecff 50%, transparent 51%);
  background-size: 230px 230px;
}
.hero__stars--near {
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 15%, #fff7e0 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 80%, #dfe8ff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 58%, #fff 50%, transparent 51%);
  background-size: 410px 410px;
  opacity: .6;
}
/* 天の川：斜めに流れる淡い光の帯 */
.hero__milky {
  background:
    radial-gradient(40% 18% at 50% 50%, rgb(196 186 255 / .22), transparent 70%),
    radial-gradient(30% 10% at 38% 47%, rgb(255 236 214 / .12), transparent 70%),
    radial-gradient(28% 9% at 63% 54%, rgb(170 200 255 / .14), transparent 70%);
  transform-origin: center;
  rotate: -22deg;
  filter: blur(6px);
}
/* 流れ星：ときどき1本ずつ */
.hero__shooting i {
  position: absolute; top: 14%; left: 70%;
  width: 120px; height: 1px;
  background: linear-gradient(90deg, rgb(255 255 255 / .9), transparent);
  rotate: 155deg; opacity: 0;
  animation: shoot 9s ease-in infinite;
}
.hero__shooting i:nth-child(2) { top: 26%; left: 32%; animation-delay: 5.5s; animation-duration: 11s; }
@keyframes shoot {
  0%, 88% { opacity: 0; transform: translateX(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-340px); }
}
/* 雲海：天の宮は雲の上にある */
/* 雲海の層は、パララックスで上へ動いても下端が見えないよう、下に長く伸ばしておく。
   雲の絵（::before）は上の 54.5% に置き、その下（::after）は雲の色で塗りつぶす。
   雲はグラデーションの縁だけで柔らかく見せ、ぼかしフィルターは使わない
   （画面の約2.4倍の層にぼかしをかけると、GPU のある環境で雲だけ描き上がりが遅れるため） */
.hero__clouds { inset: auto -10% -45% -10%; height: 77%; overflow: hidden; }
/* 雲の下の白っぽい帯（雲を抜けて本文へ降りていく感じ）と、その下の雲の地。
   以前は .hero::after で別に描いていたが、雲と別の層になると読み込み直後や遷移中に
   帯だけ一瞬消えることがあるため、手前の雲と同じ層の中に描く。
   この層は夜空の下端から 45% はみ出しているので、帯は層の上から 20.8%〜41.6%（＝夜空の下 16%）にあたる */
.hero__clouds--front::after {
  content: ""; position: absolute; left: 0; right: 0; top: 20.8%; bottom: 0;
  background: linear-gradient(180deg, rgb(210 208 242 / 0) 0%, rgb(208 206 241 / .7) 26.3%, rgb(212 210 243 / .85) 35%, rgb(214 212 244 / .95) 43%, rgb(214 212 244) 51.5%);
}
.hero__clouds::before {
  content: ""; position: absolute; top: 0; height: 54.5%; left: 0; width: 200%;
  background-size: 50% 100%; background-repeat: repeat-x;
  will-change: transform;
}
.hero__clouds--back::before {
  background-image:
    radial-gradient(13% 34% at 12% 62%, rgb(160 158 220 / .55), transparent 80%),
    radial-gradient(14% 36% at 32% 70%, rgb(176 170 232 / .5), transparent 80%),
    radial-gradient(15% 38% at 52% 62%, rgb(160 158 220 / .5), transparent 80%),
    radial-gradient(13% 34% at 70% 70%, rgb(176 170 232 / .5), transparent 80%),
    radial-gradient(12% 34% at 88% 62%, rgb(160 158 220 / .55), transparent 80%);
  animation: cloud-flow 173s linear var(--cloud-back-delay, 0s) infinite;
}
.hero__clouds--front::before {
  background-image:
    radial-gradient(12% 34% at 11% 88%, rgb(232 230 252 / .75), transparent 80%),
    radial-gradient(13% 36% at 29% 94%, rgb(240 236 255 / .7), transparent 80%),
    radial-gradient(12% 32% at 48% 90%, rgb(226 224 250 / .68), transparent 80%),
    radial-gradient(14% 38% at 68% 96%, rgb(240 236 255 / .72), transparent 80%),
    radial-gradient(12% 34% at 88% 88%, rgb(232 230 252 / .72), transparent 80%);
  animation: cloud-flow 100s linear var(--cloud-front-delay, 0s) infinite;
}
@keyframes cloud-flow { to { transform: translateX(-50%); } }
/* 瞬く星（main.js が [data-twinkle] に配置） */
.hero__twinkle {
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 80%);
}
.hero__twinkle i {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff; box-shadow: 0 0 calc(var(--s) * 3) rgb(220 228 255 / .9);
  opacity: .2;
  animation: tw var(--d) ease-in-out var(--delay) infinite;
}
.hero__twinkle i.is-spark::before, .hero__twinkle i.is-spark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: calc(var(--s) * 9); height: 1px; translate: -50% -50%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .9), transparent);
}
.hero__twinkle i.is-spark::after { rotate: 90deg; }
@keyframes tw {
  0%, 100% { opacity: .15; scale: .7; }
  50% { opacity: 1; scale: 1.15; }
}
.hero__content { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 900px; }
.hero__brand {
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--mist); margin: 0 0 22px; opacity: .85;
}
.hero__title { margin: 0; display: grid; gap: 6px; }
.hero__en {
  font-family: var(--font-en); font-weight: 300;
  font-size: clamp(56px, 13vw, 148px); letter-spacing: 0.06em; line-height: 1;
  background: linear-gradient(180deg, #ffffff 30%, #a9bde3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__ja { font-size: clamp(16px, 2vw, 20px); font-weight: 500; letter-spacing: 0.6em; color: var(--mist); }
.hero__tagline { margin: 30px auto 36px; max-width: 34em; color: #dfe6f3; font-size: clamp(14px, 1.6vw, 17px); word-break: auto-phrase; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn { --accent: #5d82c9; }
.hero__cta--stack { flex-direction: column; align-items: center; gap: 18px; }
.hero__cta--stack .btn { padding: 14px 40px; }
.ripple-layer { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; pointer-events: none; overflow: hidden; view-transition-name: ripple; }
.ripple-ring {
  position: absolute; border-radius: 50%; box-sizing: border-box;
  /* ぼけた輪をグラデーションで直接描く（ぼかしフィルターを使わないので軽い） */
  background: radial-gradient(closest-side, rgb(219 227 255 / 0) 50%, rgb(219 227 255 / .12) 64%, rgb(219 227 255 / .42) 76%, rgb(219 227 255 / .6) 83%, rgb(219 227 255 / .3) 91%, rgb(219 227 255 / 0) 100%);
  transform: scale(.015); opacity: 0; will-change: transform, opacity;
}
.hero__cta--stack .btn.is-pressed { transform: translateY(1px) scale(.96); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 30%, transparent); }

.hero__sublink {
  font-size: 13px; letter-spacing: .1em; color: #b8c2dc; text-decoration: none;
  opacity: .85; transition: opacity .2s, color .2s;
}
.hero__sublink:hover { opacity: 1; color: #fff; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgb(255 255 255 / .5); border-radius: 13px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: scroll 2s ease-in-out infinite;
}
.hero__scroll--inline {
  position: relative; bottom: auto; left: auto; transform: none; flex: none;
  transition: border-color .2s, background .2s;
}
.hero__scroll--inline:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* トップ：1画面だけ。雲の上に小さな案内を置く */
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  text-align: center; font-size: 12px; color: #262c4d; padding: 0 var(--gutter);
}
.hero__foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; list-style: none; margin: 0 0 4px; padding: 0; }
.hero__foot a { text-decoration: none; opacity: .85; }
.hero__foot a:hover { opacity: 1; text-decoration: underline; }
.hero__foot p { margin: 0; opacity: .7; font-size: 11px; }
.hero--single .hero__content { margin-top: -4vh; }

/* ---------------------------------------------------------------- 作品ページ：円柱（シリンダー）
   面を円周上に並べ、JS が回転角を更新する。横スワイプ・ホイール・Tab・左右キーで回せる */
.hero--cyl {
  /* 画面の高さいっぱいにして、下に本文の白がのぞかないようにする。余った高さは円柱のかたまりの上下に配る */
  display: flex; flex-direction: column; place-items: normal; height: auto; min-height: 100svh; text-align: left;
  padding: clamp(84px, 11vh, 120px) 0 clamp(90px, 13vh, 130px);
}
.cyl-hero { position: relative; z-index: 2; will-change: transform, opacity; flex: 1; display: flex; flex-direction: column; }
.cyl-hero__body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: clamp(36px, 7vh, 72px); }
.cyl-hero__head { width: 100%; }
.cyl-hero__head h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 2px 0 0; letter-spacing: .12em; }
.cyl-hero__head .eyebrow { color: var(--mist); }
.cyl-hero__head .crumbs { color: #c9d1e6; }
.cyl {
  --fw: 380px; --fh: 230px;
  position: relative; height: calc(var(--fh) + 90px); margin-top: 0;
  perspective: 1900px; perspective-origin: 50% 40%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.cyl.is-dragging { cursor: grabbing; }
.cyl__stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform-style: preserve-3d; transform: rotateX(-7deg);
  pointer-events: none; /* クリックは面（.cyl__face）だけが受け取る。ドラッグは .cyl 全体で受ける */
}
.cyl__ring { position: relative; width: var(--fw); height: var(--fh); transform-style: preserve-3d; pointer-events: none; }
.cyl__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 22px 20px; border-radius: 18px; overflow: hidden;
  color: #fff; text-decoration: none;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 70%),
    linear-gradient(170deg, color-mix(in srgb, var(--accent) 40%, #141a33), #10142a 85%);
  border: 1px solid rgb(255 255 255 / .16);
  box-shadow: 0 20px 50px rgb(5 8 20 / .45), inset 0 1px 0 rgb(255 255 255 / .12);
  backface-visibility: visible;
  transition: border-color .3s, box-shadow .3s;
  -webkit-user-drag: none;
}
.cyl__face.is-front { border-color: rgb(255 255 255 / .45); box-shadow: 0 26px 60px rgb(5 8 20 / .55), 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 1px 0 rgb(255 255 255 / .2); }
.cyl__face:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cyl__mark {
  position: absolute; right: 18px; top: 50%; translate: 0 -50%; font-size: 120px; font-weight: 700; line-height: 1;
  color: rgb(255 255 255 / .12);
}
.cyl__kind { font-size: 11px; letter-spacing: .14em; color: color-mix(in srgb, var(--accent) 35%, #fff); }
.cyl__title { font-size: 19px; font-weight: 700; line-height: 1.45; max-width: 78%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cyl__catch { font-size: 12.5px; line-height: 1.7; color: #cdd5e8; max-width: 78%;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* 世界のカード：アクセント色で塗った「扉」。中央寄せ・円い印・作品数で、作品カードと一目で見分けられる */
.cyl__face--world {
  justify-content: center; align-items: center; text-align: center; gap: 4px;
  background:
    radial-gradient(90% 80% at 50% 0%, rgb(255 255 255 / .22), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 92%, #fff 8%), color-mix(in srgb, var(--accent) 70%, #0b0f22));
  border: 1px solid rgb(255 255 255 / .35);
}
.cyl__face--world::after {
  content: ""; position: absolute; inset: 8px; border-radius: 12px; pointer-events: none;
  border: 1px solid rgb(255 255 255 / .28);
}
.cyl__face--world .cyl__kind { color: rgb(255 255 255 / .85); }
.cyl__face--world .cyl__title { max-width: none; font-size: 22px; letter-spacing: .08em; }
.cyl__face--world .cyl__catch { max-width: 88%; color: rgb(255 255 255 / .9); -webkit-line-clamp: 1; }
.cyl__seal {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%;
  font-size: 26px; font-weight: 700; color: var(--accent); background: #fff;
  box-shadow: 0 6px 18px rgb(5 8 20 / .25);
}
.cyl__count {
  margin-top: 6px; padding: 3px 12px; border-radius: 999px; font-size: 11.5px; letter-spacing: .08em;
  background: rgb(255 255 255 / .18); border: 1px solid rgb(255 255 255 / .3);
}
.cyl__face--world.is-front { border-color: rgb(255 255 255 / .7); }
.cyl__glow {
  position: absolute; left: 50%; bottom: 18px; width: min(900px, 90%); height: 70px; translate: -50% 0;
  background: radial-gradient(50% 50% at 50% 50%, rgb(190 190 255 / .28), transparent 70%);
  filter: blur(6px); pointer-events: none;
}
.cyl__controls {
  position: relative; display: flex; align-items: center; justify-content: center;
  margin-top: clamp(28px, 5vh, 48px); gap: 28px;
}
@media (max-width: 640px) {
  .cyl { --fw: 236px; --fh: 148px; perspective: 1300px; }
  .cyl__title { font-size: 15px; }
  .cyl__catch { font-size: 11px; -webkit-line-clamp: 1; }
  .cyl__mark { font-size: 76px; right: 10px; }
  .cyl__face { padding: 16px 14px; }
  .cyl__seal { width: 34px; height: 34px; font-size: 17px; margin-bottom: 2px; }
  .cyl__face--world { gap: 2px; }
  .cyl__face--world .cyl__kind { font-size: 10px; }
  .cyl__face--world .cyl__title { font-size: 16px; line-height: 1.35; -webkit-line-clamp: 1; }
  .cyl__face--world .cyl__catch { display: none; }
  .cyl__count { margin-top: 2px; font-size: 10.5px; }
}
.all-works { padding-top: clamp(70px, 9vw, 120px); }

/* ---------------------------------------------------------------- コンセプト */
.intro { padding: clamp(80px, 12vw, 160px) var(--gutter) clamp(60px, 8vw, 100px); }
.intro__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.intro__title { font-size: clamp(28px, 4.4vw, 46px); margin: 0 0 28px; }
.intro p { color: var(--ink-2); }
.intro__stats { display: flex; justify-content: center; gap: clamp(28px, 6vw, 72px); list-style: none; padding: 0; margin: 48px 0 0; }
.intro__stats li { display: flex; align-items: baseline; gap: 6px; }
.intro__stats b { font-family: var(--font-en); font-weight: 300; font-size: clamp(40px, 6vw, 60px); line-height: 1.1; }
.intro__stats span { font-size: 13px; color: var(--muted); letter-spacing: 0.12em; }
.world-nav {
  max-width: var(--max); margin: clamp(56px, 8vw, 96px) auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.world-nav a {
  position: relative; display: grid; gap: 2px; justify-items: center; padding: 28px 12px 24px;
  background: var(--surface); text-decoration: none; font-weight: 700; letter-spacing: 0.12em;
  transition: background .3s;
}
.world-nav a span {
  font-size: 30px; line-height: 1.2; color: var(--accent);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.world-nav a small { font-family: var(--font-en); font-weight: 400; color: var(--muted); letter-spacing: 0.2em; font-size: 11px; text-transform: uppercase; }
.world-nav a:hover { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.world-nav a:hover span { transform: translateY(-4px); }
@media (max-width: 640px) { .world-nav { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- カード */
.featured { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 9vw, 120px); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card__visual {
  position: relative; aspect-ratio: 16 / 8; overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 55%, #fff) 0%, transparent 60%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #000) 0%, var(--accent) 100%);
}
.card__visual::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 30%, rgb(255 255 255 / .7) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 18%, rgb(255 255 255 / .6) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 62%, rgb(255 255 255 / .5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 34% 78%, rgb(255 255 255 / .45) 50%, transparent 51%);
  background-size: 120px 80px;
}
.card__visual > span[aria-hidden] {
  position: absolute; right: 18px; bottom: 14px;
  font-size: 88px; font-weight: 700; line-height: 1; color: rgb(255 255 255 / .22);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.card:hover .card__visual > span[aria-hidden] { transform: translateY(-8px) scale(1.04); }
/* 世界ごとに1つずつの「NEW」「おすすめ」（文字は動かさない） */
.card__visual .card__flags { position: absolute; left: 14px; top: 14px; right: auto; bottom: auto; display: flex; gap: 6px; z-index: 1; font-size: 11px; color: inherit; transition: none; }
.card:hover .card__visual .card__flags { transform: none; }
.flag { padding: 3px 10px; border-radius: 999px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; box-shadow: 0 2px 8px rgb(0 0 0 / .15); }
.flag--new { background: #fff; color: var(--accent); }
.flag--pick { background: var(--flag-pick-bg); color: var(--flag-pick-ink); }
.card__body { padding: 20px 22px 24px; display: grid; gap: 6px; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.card__title { font-size: 18px; margin: 4px 0 0; }
.card__catch { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.75; }

/* ---------------------------------------------------------------- 世界ごとのセクション（パララックス） */
.world { position: relative; padding: clamp(80px, 11vw, 150px) 0; overflow: hidden; isolation: isolate; }
.world:nth-of-type(even) { background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.world__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.world__mark {
  position: absolute; right: 3vw; top: 6%;
  font-size: clamp(220px, 34vw, 460px); font-weight: 700; line-height: 1;
  color: color-mix(in srgb, var(--accent) 9%, transparent);
  will-change: transform;
}
.world__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 48px; }
.world__head { max-width: 760px; }
.world__title { font-size: clamp(40px, 6vw, 64px); margin: 0; letter-spacing: 0.12em; color: var(--accent); }
.world__lead { font-size: clamp(18px, 2vw, 22px); font-weight: 700; margin: 8px 0 6px; }
.world__body { color: var(--ink-2); margin: 0; }
.world__head .more { margin-top: 18px; }

/* ---------------------------------------------------------------- 読みもの */
.latest { padding: clamp(80px, 10vw, 130px) 0; }
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post a {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 18px;
  padding: 20px 6px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background .25s, padding .25s;
}
.post a:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); padding-left: 14px; }
.post time { font-family: var(--font-en); color: var(--muted); font-size: 14px; letter-spacing: 0.08em; }
.post__title { font-weight: 500; }
@media (max-width: 640px) { .post a { grid-template-columns: auto 1fr; } .post__title { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- 運営者 */
.maker {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(90px, 12vw, 160px) 0; color: #fff; text-align: center;
}
.maker__bg {
  position: absolute; inset: -20% 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 20% 30%, #3a2d6399, transparent 70%),
    radial-gradient(60% 80% at 80% 70%, #2f5d8a99, transparent 70%),
    linear-gradient(160deg, var(--night-1), var(--night-3));
}
.maker .eyebrow { color: var(--mist); }
.maker h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 20px; }
.maker p { color: #dfe6f3; margin: 0 auto 32px; }

/* ---------------------------------------------------------------- 下層ページのヒーロー */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(120px, 16vw, 190px) 0 clamp(50px, 7vw, 80px);
  color: #fff; background: var(--night-1);
}
.page-hero__bg {
  position: absolute; inset: -20% 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 90% 10%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%),
    linear-gradient(160deg, var(--night-1) 10%, color-mix(in srgb, var(--accent) 40%, var(--night-2)) 100%);
}
.page-hero__bg span {
  /* 背景は上下にはみ出し、スクロールで少しずれるので、縦の中央に置いて全体が見えるようにする */
  position: absolute; right: 4vw; top: 50%; translate: 0 -50%;
  font-size: clamp(140px, 20vw, 260px); font-weight: 700; line-height: 1; color: rgb(255 255 255 / .07);
}
.page-hero h1 { font-size: clamp(30px, 4.6vw, 50px); margin: 10px 0 12px; }
.page-hero .eyebrow { color: var(--mist); }
.page-hero__lead { font-size: clamp(16px, 1.8vw, 19px); color: #e4e9f4; max-width: 40em; }
.page-hero p { color: #d3dbea; }
.page-hero .chip { background: rgb(255 255 255 / .14); color: #fff; }
.page-hero .chip--ghost { border-color: rgb(255 255 255 / .3); background: transparent; }
.page-hero .btn { margin-top: 18px; background: #fff; color: var(--night-1); box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.page-hero--plain { background: transparent; color: var(--ink); padding-bottom: 20px; }
.page-hero--plain .crumbs { color: var(--muted); }
.page-hero--plain p { color: var(--ink-2); }
.page-hero--plain .btn { background: var(--accent); color: #fff; }
.page-hero--plain .btn--ghost { background: transparent; color: var(--ink); }
.site-header:not(.is-solid):has(~ main .page-hero--plain:first-child) { color: var(--ink); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 13px; opacity: .8; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 作品詳細 */
.doc {
  max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter);
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px);
}
.doc__toc { position: sticky; top: 90px; align-self: start; font-size: 14px; }
.doc__toc p { font-family: var(--font-en); letter-spacing: 0.3em; color: var(--muted); margin: 0 0 8px; font-size: 12px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.doc__toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); }
.doc__toc a:hover, .doc__toc a.is-current { color: var(--accent); border-left-color: var(--accent); }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .doc__toc { display: none; } }
.doc__body { max-width: 760px; }
.doc__summary { font-size: 17px; line-height: 2; margin-top: 0; }
.doc-section { margin-top: 64px; scroll-margin-top: 90px; }
.doc-section > h2, .prose h2 {
  position: relative; font-size: clamp(22px, 2.6vw, 27px); margin: 0 0 22px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.doc-section > h2::after, .prose h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--accent);
}
.checks, .tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li, .tips li { position: relative; padding: 14px 18px 14px 48px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.checks li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 8px; margin-top: -6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.tips li::before { content: "💡"; position: absolute; left: 16px; top: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-en); background: var(--accent); color: #fff; font-size: 16px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18.5px; top: 42px; bottom: 4px; width: 1px; background: var(--line); }
.highlights { display: grid; gap: 18px; }
.highlight {
  position: relative; padding: 26px 26px 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
}
.highlight__no { font-family: var(--font-en); font-weight: 300; font-size: 40px; line-height: 1; color: var(--accent); opacity: .5; }
.highlight h3 { margin: 6px 0 6px; font-size: 18px; }
.highlight p { margin: 0; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 34px; position: relative; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 4px; font-family: var(--font-en); color: var(--accent); font-weight: 600; }
.faq summary::after { content: "+"; position: absolute; right: 10px; font-size: 22px; line-height: 1.4; color: var(--muted); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; padding-left: 34px; color: var(--ink-2); }
.changelog { list-style: none; padding: 0; margin: 0; }
.changelog li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.changelog time { font-family: var(--font-en); color: var(--muted); }
.cta-box {
  margin: 64px 0 24px; padding: 32px; border-radius: var(--radius); text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 90%, #000), var(--accent)); color: #fff;
}
.cta-box p { margin: 0 0 16px; font-weight: 700; font-size: 18px; }
.cta-box .btn { background: #fff; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
.doc__updated { font-size: 13px; color: var(--muted); }
.related { padding: clamp(50px, 7vw, 90px) 0; background: color-mix(in srgb, var(--accent) 4%, var(--bg)); }
.related h2, .sub-title { font-size: 22px; margin: 0 0 28px; }
.sub-title { margin-top: 64px; }
/* ---- 特集 */
.section-pad--tight { padding-bottom: 0; }
.feature-list { display: grid; gap: 16px; }
.feature-list--inline { margin: 8px 0 24px; }
.feature-card {
  position: relative; display: grid; gap: 6px; padding: 26px 28px; overflow: hidden; border-radius: 18px;
  color: #fff; text-decoration: none;
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(255 255 255 / .16), transparent 60%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #0b0f22));
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 25%, transparent);
  transition: transform .25s ease, box-shadow .25s ease;
}
.prose a.feature-card { color: #fff; text-decoration: none; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px color-mix(in srgb, var(--accent) 32%, transparent); }
.feature-card__mark { position: absolute; right: 18px; bottom: -18px; font-size: 120px; font-weight: 700; line-height: 1; opacity: .12; pointer-events: none; }
.feature-card__label { justify-self: start; padding: 2px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  background: #fff; color: var(--accent); }
.feature-card__title { font-size: 21px; font-weight: 700; line-height: 1.5; }
.feature-card__lead { max-width: 46em; font-size: 14.5px; line-height: 1.8; opacity: .92; }
.feature-card__more { margin-top: 4px; font-size: 13.5px; font-weight: 700; }
.feature-intro { margin: 0 0 28px; line-height: 1.9; }
.feature-toc { margin: 0 0 40px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feature-toc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.feature-toc a { color: var(--ink); }
.feature-group { margin-bottom: 48px; }
.feature-group h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; font-size: 22px; }
.feature-group__no { font-family: var(--font-en); font-size: 15px; letter-spacing: .1em; color: var(--accent); }
.feature-group__lead { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.feature-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feature-item { display: grid; gap: 4px; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.feature-item:hover { transform: translateX(3px); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.feature-item__title { font-weight: 700; line-height: 1.6; }
.feature-item__desc { font-size: 13.5px; line-height: 1.75; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .feature-card, .feature-item { transition: none; } .feature-card:hover, .feature-item:hover { transform: none; } }
@media (max-width: 640px) {
  .feature-card { padding: 22px 20px; }
  .feature-card__title { font-size: 18px; }
  .feature-card__mark { font-size: 90px; }
}

/* ---------------------------------------------------------------- 本文（記事・固定ページ） */
.prose { padding-top: clamp(30px, 5vw, 56px); padding-bottom: clamp(60px, 8vw, 100px); font-size: 16.5px; }
.prose h2 { margin-top: 56px; }
.prose h3 { font-size: 19px; margin-top: 36px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 4px 0; }
.prose blockquote {
  margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--accent);
  color: var(--ink-2); background: color-mix(in srgb, var(--accent) 5%, transparent); border-radius: 0 8px 8px 0;
}
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.prose pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: var(--night-1); color: #e4e9f4; }
.prose pre code { background: none; padding: 0; }
.prose li > ul { margin: 4px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.prose .table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-weight: 700; white-space: nowrap; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .t-right { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prose .t-center { text-align: center; }

/* ---------------------------------------------------------------- 絞り込み */
.filters { display: grid; gap: 12px; margin: clamp(32px, 5vw, 56px) 0 36px; }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { font-size: 13px; color: var(--muted); width: 3em; }
.filters button {
  font: inherit; font-size: 14px; padding: 6px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: all .2s;
}
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters [data-filter-world="all"], .filters [data-filter-format] { --accent: var(--ink); }
[data-filter-target] { padding-bottom: clamp(60px, 9vw, 120px); }
.card.is-hidden, .post.is-hidden { display: none; }
.filters--posts { margin-top: 0; margin-bottom: 28px; }

/* ---------------------------------------------------------------- 広告枠 */
.ad { margin: 48px 0; min-height: 100px; text-align: center; }
.ad__label { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.2em; margin-bottom: 6px; }
.ad--preview {
  display: grid; place-items: center; min-height: 250px; border: 1px dashed var(--line); border-radius: 12px;
  color: var(--muted); font-size: 13px;
}

/* ---------------------------------------------------------------- フッター */
.site-footer { background: var(--night-1); color: #c8cfdd; padding: clamp(60px, 8vw, 90px) var(--gutter) 28px; font-size: 14px; }
.site-footer__inner {
  max-width: var(--max); margin: 0 auto; display: grid; gap: 36px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.site-footer h2 { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.3em; color: var(--mist); margin: 0 0 12px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer__brand p { margin: 0 0 10px; max-width: 26em; }
.logo--footer { color: #fff; }
.site-footer__copy { max-width: var(--max); margin: 56px auto 0; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 12px; color: #8a92a6; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- 出現アニメーション */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- ページ遷移（ビュー遷移）
   対応ブラウザ（Chrome・Edge・Safari 18.2+）でだけ動く。非対応なら普通に切り替わる。
   夜空の層は両ページで同じ名前を付けてそのままつなぎ、トップの文字は上へ溶けて消え、円柱は雲の中から浮かび上がる */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.hero__sky { view-transition-name: sky; }
.hero__stars--far { view-transition-name: stars-far; }
.hero__milky { view-transition-name: milky; }
.hero__stars--near { view-transition-name: stars-near; }
.hero__twinkle { view-transition-name: twinkle; }
.hero__clouds--back { view-transition-name: clouds-back; }
.hero__clouds--front { view-transition-name: clouds-front; }
.hero--single .hero__content { view-transition-name: home-copy; }
.hero--single .hero__foot { view-transition-name: home-foot; }
.cyl-hero { view-transition-name: works-hero; }

::view-transition-group(*) { animation-duration: .9s; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
/* 夜空はそのまま（入れ替えのちらつきを出さない） */
::view-transition-old(sky), ::view-transition-old(stars-far), ::view-transition-old(milky),
::view-transition-old(stars-near), ::view-transition-old(clouds-back), ::view-transition-old(clouds-front),
::view-transition-old(site-header) { animation: none; opacity: 0; }
::view-transition-new(sky), ::view-transition-new(stars-far), ::view-transition-new(milky),
::view-transition-new(stars-near), ::view-transition-new(clouds-back), ::view-transition-new(clouds-front),
::view-transition-new(site-header) { animation: none; }
/* 波紋の環は遷移のあいだも一番上に見せる（遷移先のページで続きを描くので、古いほうは消す） */
::view-transition-old(ripple) { animation: none; opacity: 0; }
::view-transition-new(ripple) { animation: none; }
/* トップの文字：上へ浮かびながら溶けて消える／戻ってくるときは上から降りてくる */
::view-transition-old(home-copy) { animation: vt-rise-out .6s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(home-copy) { animation: vt-fall-in .9s cubic-bezier(.2, .8, .2, 1) .15s both; }
::view-transition-old(home-foot) { animation: vt-fade-out .4s ease both; }
::view-transition-new(home-foot) { animation: vt-fade-in .6s ease .4s both; }
/* 作品ページの円柱：雲の中から浮かび上がる／トップへ戻るときは雲の中へ沈む */
::view-transition-new(works-hero) { animation: vt-emerge 1.1s cubic-bezier(.2, .8, .2, 1) .2s both; }
::view-transition-old(works-hero) { animation: vt-sink-out .6s cubic-bezier(.4, 0, .2, 1) both; }

/* 「作品を見る」から来たとき：ボタンの位置を中心に、縁をぼかした円が広がりながら現れる */
@property --vt-r { syntax: "<length>"; inherits: true; initial-value: 0px; }
html.vt-ripple::view-transition-old(home-copy) { animation: vt-dissolve .8s ease both; }
html.vt-ripple::view-transition-new(works-hero) {
  -webkit-mask-image: radial-gradient(circle at var(--rx) var(--ry), #000 calc(var(--vt-r) * .5), transparent var(--vt-r));
  mask-image: radial-gradient(circle at var(--rx) var(--ry), #000 calc(var(--vt-r) * .5), transparent var(--vt-r));
  animation: vt-ripple-reveal 2s cubic-bezier(.3, .6, .25, 1) both, vt-focus 2s ease-out both;
}
@keyframes vt-ripple-reveal {
  from { --vt-r: 0px; opacity: 0; }
  12% { opacity: 1; }
  to { --vt-r: 3200px; opacity: 1; }
}
@keyframes vt-focus { from { filter: blur(10px); } to { filter: none; } }
@keyframes vt-dissolve { to { opacity: 0; filter: blur(10px); transform: scale(1.015); } }
@keyframes vt-rise-out { to { opacity: 0; transform: translateY(-48px) scale(.98); filter: blur(8px); } }
@keyframes vt-fall-in { from { opacity: 0; transform: translateY(-36px); filter: blur(8px); } }
@keyframes vt-emerge { from { opacity: 0; transform: translateY(90px) scale(.94); filter: blur(10px); } }
@keyframes vt-sink-out { to { opacity: 0; transform: translateY(70px) scale(.96); filter: blur(8px); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- 音源一覧（tracks） */
.btn--small { padding: 7px 16px; font-size: 13px; margin-top: 0; }
.tracks__license { margin: 0 0 16px; font-size: 14px; }
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.track { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; background: var(--surface); }
.track__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.track__title { margin: 0; font-size: 17px; }
.track__meta { font-size: 12.5px; color: var(--muted); }
.track__desc { margin: 6px 0 0; font-size: 14px; line-height: 1.8; }
.track__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.track__tags:empty { display: none; }
.track__tag { padding: 1px 10px; border-radius: 999px; font-size: 11.5px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink-2); }
.track__play { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.track__play audio { flex: 1 1 260px; height: 36px; }
.note-link { margin: 32px 0 0; }
/* お知らせ：トップと同じ星空（流れ星つき）を下層ページの見出しに敷く。下の雲は出さない */
.page-hero--sky .hero__layer { z-index: -1; }
.page-hero--sky .hero__clouds { display: none; }
/* 作品の種類のラベル（【VS Code拡張機能】など）。見出しの中では少し小さく */
.title-label { display: block; font-size: .5em; letter-spacing: .06em; opacity: .85; margin-bottom: 4px; }
