/* きせスラ 設定資料集 */
:root {
  --bg: #120f2a;
  --bg2: #1b1640;
  --card: #231d4d;
  --card2: #2b2459;
  --line: rgba(190, 165, 255, .22);
  --text: #eee9ff;
  --muted: #b9b0dc;
  --violet: #a98bff;
  --violet-d: #6d4fe0;
  --pink: #ff9ecf;
  --peach: #ffb8a0;
  --gold: #ffd36b;
  --aqua: #8fe3ff;
  --mint: #8ff0c8;
  --radius: 22px;
  --toc-w: 232px;
  --font: "Zen Maru Gothic", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --hand: "Yusei Magic", "Zen Maru Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(169, 139, 255, .20), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 158, 207, .10), transparent 60%),
    radial-gradient(1000px 800px at 50% 110%, rgba(255, 211, 107, .07), transparent 60%),
    var(--bg);
  line-height: 1.85;
  font-size: 16px;
  overflow-x: hidden;
}
body::before { /* 星くず */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #ffe9a8, transparent),
    radial-gradient(1.2px 1.2px at 200px 160px, #fff, transparent),
    radial-gradient(1px 1px at 300px 40px, #cdbbff, transparent),
    radial-gradient(1.5px 1.5px at 380px 220px, #ffd1ea, transparent);
  background-size: 420px 260px;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
strong { color: #fff; }
em { font-style: normal; color: var(--gold); }

/* ───── ヒーロー ───── */
.hero {
  position: relative; z-index: 1; overflow: hidden;
  min-height: 640px;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  padding: 56px max(5vw, 24px) 40px;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url(../img/bg_title.webp) center / cover no-repeat;
  filter: saturate(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 15, 42, .94) 0%, rgba(18, 15, 42, .78) 42%, rgba(18, 15, 42, .25) 75%, rgba(18, 15, 42, .45) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-copy { max-width: 640px; }
.badge {
  display: inline-block; font-size: 13px; letter-spacing: .2em;
  padding: 4px 14px; border-radius: 999px;
  background: rgba(255, 211, 107, .14); color: var(--gold); border: 1px solid rgba(255, 211, 107, .45);
}
.hero h1 {
  font-family: var(--hand); font-weight: 400;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.25; margin: 18px 0 8px;
  background: linear-gradient(100deg, #fff 0%, #e6d8ff 35%, #ffc4e4 65%, #ffe39b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(169, 139, 255, .45));
}
.hero h1 small { display: block; font-size: .42em; letter-spacing: .3em; margin-bottom: 4px; }
.hero .catch {
  font-size: clamp(18px, 2.1vw, 26px); font-weight: 700; margin: 18px 0 10px;
  color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.hero .catch::before { content: "「"; color: var(--pink); }
.hero .catch::after { content: "」"; color: var(--pink); }
.hero .lead { color: var(--muted); max-width: 560px; }
.hero-art { position: relative; height: 560px; }
.hero-art .halo {
  position: absolute; left: 50%; top: 52%; width: 520px; height: 520px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, .55) 0%, rgba(214, 190, 255, .35) 40%, transparent 70%);
}
.hero-art img { position: absolute; bottom: 0; height: 540px; width: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.hero-art .a1 { left: 4%; }
.hero-art .a2 { right: 2%; height: 500px; }
.hero-art .a3 { left: 42%; bottom: 8px; height: 150px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) scale(1.04, .96); } }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags span {
  font-size: 13px; padding: 4px 12px; border-radius: 999px;
  background: rgba(169, 139, 255, .18); border: 1px solid var(--line);
}

/* ───── レイアウト ───── */
.layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: var(--toc-w) minmax(0, 1fr); gap: 40px;
  max-width: 1320px; margin: 0 auto; padding: 40px 28px 80px;
}
.toc {
  position: sticky; top: 20px; align-self: start;
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: rgba(35, 29, 77, .75); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 12px; scrollbar-width: thin;
}
.toc h2 { font-family: var(--hand); font-weight: 400; font-size: 18px; margin: 0 8px 8px; color: var(--gold); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li a {
  display: block; padding: 5px 10px; border-radius: 12px;
  color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.5;
}
.toc li a:hover { background: rgba(169, 139, 255, .14); color: #fff; }
.toc li a.active { background: linear-gradient(90deg, rgba(169, 139, 255, .35), rgba(255, 158, 207, .18)); color: #fff; }
.toc .spoil-all {
  width: 100%; margin-top: 12px; padding: 8px; border-radius: 12px; cursor: pointer;
  font-family: var(--font); font-size: 13px; color: var(--text);
  background: rgba(255, 158, 207, .12); border: 1px dashed rgba(255, 158, 207, .5);
}
main { min-width: 0; }

/* ───── セクション ───── */
section { margin-bottom: 88px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head .no { font-family: var(--hand); color: var(--violet); font-size: 15px; letter-spacing: .1em; }
.sec-head h2 {
  margin: 0; font-family: var(--hand); font-weight: 400; font-size: clamp(26px, 3vw, 36px); line-height: 1.3;
}
.sec-head h2::after {
  content: ""; display: block; height: 6px; margin-top: 4px; border-radius: 6px;
  background: linear-gradient(90deg, var(--violet), var(--pink) 55%, transparent);
  opacity: .8;
}
.sec-head .en { color: var(--muted); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; }
h3 { font-size: 20px; margin: 0 0 10px; color: #fff; }
h4 { font-size: 16px; margin: 18px 0 6px; color: var(--gold); }
p { margin: 0 0 12px; }

.card {
  background: linear-gradient(160deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stack > * + * { margin-top: 18px; }
.note { font-size: 14px; color: var(--muted); }
.tag {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; margin: 0 4px 4px 0;
  background: rgba(169, 139, 255, .2); border: 1px solid var(--line); color: #e3dcff; line-height: 1.7;
}
.tag.proto { background: rgba(255, 211, 107, .18); border-color: rgba(255, 211, 107, .55); color: var(--gold); font-weight: 700; }
.tag.pink { background: rgba(255, 158, 207, .18); border-color: rgba(255, 158, 207, .5); color: #ffd3ea; }
.tag.aqua { background: rgba(143, 227, 255, .15); border-color: rgba(143, 227, 255, .45); color: #d4f4ff; }
dl.kv { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 14px; margin: 0; }
dl.kv dt { color: var(--violet); font-weight: 700; font-size: 14px; }
dl.kv dd { margin: 0; }

/* 引用（セリフ） */
.quote {
  position: relative; margin: 12px 0; padding: 14px 18px 14px 22px;
  background: rgba(255, 255, 255, .05); border-radius: 16px; border-left: 4px solid var(--pink);
}
.quote .who { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
.quote.mel { border-color: var(--violet); }
.quote.lil { border-color: var(--peach); }
.quote.cel { border-color: var(--aqua); }
.quote.gold { border-color: var(--gold); }

/* ネタバレ */
details.spoiler {
  margin: 14px 0; border-radius: 18px; overflow: hidden;
  border: 1px dashed rgba(255, 158, 207, .55);
  background: repeating-linear-gradient(135deg, rgba(255, 158, 207, .06) 0 12px, rgba(169, 139, 255, .06) 12px 24px);
}
details.spoiler > summary {
  cursor: pointer; list-style: none; padding: 12px 18px; font-weight: 700; color: #ffd3ea;
  display: flex; align-items: center; gap: 10px; user-select: none;
}
details.spoiler > summary::-webkit-details-marker { display: none; }
details.spoiler > summary::before {
  content: "ネタバレ"; font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: var(--pink); color: #3a1030; letter-spacing: .1em;
}
details.spoiler > summary::after { content: "クリックで表示 ▾"; margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
details.spoiler[open] > summary::after { content: "とじる ▴"; }
details.spoiler[open] { background: rgba(35, 29, 77, .7); border-style: solid; }
details.spoiler > .body { padding: 4px 20px 18px; }

/* 画像フレーム */
.stage { /* 透過の立ち絵を明るい台座で見せる */
  position: relative; border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, #fff8ee 0%, #efe4ff 55%, #d9c8ff 100%);
  display: flex; align-items: flex-end; justify-content: center;
}
.stage.peach { background: radial-gradient(circle at 50% 35%, #fff6ee 0%, #ffe3e6 55%, #ffc9d6 100%); }
.stage.violet { background: radial-gradient(circle at 50% 35%, #f6f1ff 0%, #ddd0ff 55%, #b9a4ff 100%); }
.stage.aqua { background: radial-gradient(circle at 50% 35%, #f2fbff 0%, #d7f0ff 55%, #b6defa 100%); }
.stage img { height: 100%; width: auto; aspect-ratio: 848 / 1264; object-fit: contain; }
.scene { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.scene img { width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 0; }

/* 作品紹介 */
.intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.point { text-align: center; padding: 18px 12px; }
.point .ic { font-family: var(--hand); font-size: 30px; color: var(--gold); line-height: 1.2; }
.point h3 { font-size: 16px; margin: 6px 0; }
.point p { font-size: 14px; color: var(--muted); margin: 0; }

/* 世界観 */
.world-map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.world-map .node {
  text-align: center; padding: 14px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 14px;
}
.world-map .node b { display: block; font-size: 16px; color: #fff; }
.truth { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.truth .card h3 { font-family: var(--hand); font-weight: 400; }

/* 階層 */
.floors { display: grid; gap: 18px; }
.floor { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.floor .thumb { position: relative; min-height: 220px; background: var(--fc, #3a2f7a); }
.floor .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.floor .thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(18, 15, 42, .65) 0%, transparent 38%); }
.floor .thumb .lvl {
  position: absolute; left: 14px; top: 12px; z-index: 2;
  font-family: var(--hand); font-size: 42px; line-height: 1; color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .6);
}
.floor .thumb .lvl small { font-size: 14px; display: block; letter-spacing: .1em; }
.floor .thumb.noimg {
  background:
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .25), transparent 55%),
    linear-gradient(150deg, var(--fc), var(--fc2, #1b1640));
}
.floor .thumb.noimg::after {
  content: attr(data-motif); position: absolute; right: 16px; bottom: 10px;
  font-family: var(--hand); font-size: 14px; color: rgba(255, 255, 255, .8);
}
.floor .info { padding: 20px 24px; }
.floor .info h3 { margin-bottom: 2px; }
.floor .info .ruby { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.floor dl.kv { grid-template-columns: 6.5em 1fr; font-size: 15px; }

/* キャラ紹介 */
.chara { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 26px; align-items: start; }
.chara .stage { height: 500px; }
.chara .side { display: grid; gap: 12px; }
.chara .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chara .mini .stage { height: 160px; }
.name-big { font-family: var(--hand); font-weight: 400; font-size: 34px; line-height: 1.2; margin: 0; }
.name-big small { font-family: var(--font); font-size: 14px; color: var(--muted); margin-left: 10px; }
.color-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 14px 4px 0; }
.color-chip i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

/* ギャラリー */
.gallery { display: grid; gap: 18px; }
.g-row { display: grid; grid-template-columns: 200px repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; padding: 18px; }
.g-row .g-info h3 { font-size: 18px; margin-bottom: 4px; }
.g-row .g-info p { font-size: 13px; color: var(--muted); margin: 0; }
.g-row figure .stage { height: 300px; }
.g-row figcaption { text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.legend .card { flex: 1 1 260px; padding: 16px 18px; }

/* ユニーク冒険者 */
.uniq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.u-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 18px; }
.u-card .bust {
  width: 170px; height: 170px; border-radius: 50%; overflow: hidden; background: #fff;
  border: 4px solid rgba(255, 211, 107, .7); box-shadow: 0 0 0 6px rgba(169, 139, 255, .18);
}
.u-card .bust img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.u-card .bust.full img { object-fit: cover; object-position: center 4%; transform: scale(1.0); }
.u-card h3 { margin: 0; font-size: 22px; }
.u-card .alias { color: var(--pink); font-size: 14px; font-weight: 700; }
.u-card .job { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.u-card p { font-size: 14px; margin-bottom: 6px; }
.u-card .style { font-size: 13px; background: rgba(255, 211, 107, .08); border: 1px solid rgba(255, 211, 107, .3); border-radius: 12px; padding: 8px 12px; }
.u-card .style b { color: var(--gold); }
.u-card .bust-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* テーブル */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(35, 29, 77, .6); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
th, td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(190, 165, 255, .12); }
th { background: rgba(169, 139, 255, .18); color: #fff; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, .03); }
td.c { text-align: center; white-space: nowrap; }
td .ic {
  width: 64px; height: 64px; border-radius: 16px; background: radial-gradient(circle, #fff8ee, #e3d6ff);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
td .ic img { width: 100%; height: 100%; object-fit: contain; }
td .ic.tall img { object-fit: cover; object-position: center 6%; }
td .ic.none { background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 11px; }
.rar-c { color: #d9d4f0; } .rar-r { color: var(--aqua); font-weight: 700; } .rar-sr { color: var(--gold); font-weight: 700; }
.uniq-mark { color: var(--gold); font-weight: 700; white-space: nowrap; }

/* ボス */
.bosses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.boss { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px; align-items: start; }
.boss .ic {
  width: 120px; height: 120px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle, #fff8ee, #d8c6ff);
  display: flex; align-items: center; justify-content: center;
}
.boss .ic img { width: 100%; height: 100%; object-fit: contain; }
.boss .ic.tall img { object-fit: cover; object-position: center 5%; }
.boss .ic.none { background: linear-gradient(150deg, var(--fc, #4b3a9c), #1b1640); font-family: var(--hand); font-size: 28px; color: rgba(255, 255, 255, .85); }
.boss .fl { font-size: 12px; color: var(--violet); font-weight: 700; letter-spacing: .1em; }
.boss h3 { font-size: 18px; margin: 2px 0 6px; }
.boss p { font-size: 14px; margin: 0; }
.boss.last { grid-column: 1 / -1; }

/* あらすじ */
.chapters { position: relative; display: grid; gap: 16px; padding-left: 34px; }
.chapters::before {
  content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px;
  background: linear-gradient(var(--violet), var(--pink), var(--gold));
}
.chap { position: relative; }
.chap::before {
  content: ""; position: absolute; left: -30px; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(255, 211, 107, .25);
}
.chap .cno { font-family: var(--hand); color: var(--gold); font-size: 15px; }
.chap h3 { margin-bottom: 8px; }
.chap .with-img { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }

/* 吸収サンプル */
.prose {
  font-size: 16px; line-height: 2.1; padding: 28px 32px;
  background:
    linear-gradient(160deg, rgba(169, 139, 255, .12), rgba(255, 158, 207, .06)),
    var(--card);
}
.prose p { margin: 0 0 6px; }
.prose .m { color: #e3d6ff; }
.prose .spacer { height: 10px; }

/* システム */
.sys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sys .card h3 { display: flex; align-items: center; gap: 10px; }
.sys .card h3 .k {
  font-family: var(--hand); font-weight: 400; font-size: 14px; color: #2a1a00;
  background: var(--gold); border-radius: 999px; padding: 1px 10px;
}
.sys ul { margin: 6px 0 0; padding-left: 1.2em; }
.sys li { margin-bottom: 4px; font-size: 15px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.flow span { padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-size: 14px; }
.flow i { font-style: normal; color: var(--pink); }
.timeline { display: grid; gap: 6px; font-size: 14px; }
.timeline div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.timeline b { color: var(--gold); }

/* 用語集 */
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.glossary div { padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.glossary dt { font-weight: 700; color: #fff; }
.glossary dt small { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12px; }
.glossary dd { margin: 4px 0 0; font-size: 14px; color: #dcd5f5; }

/* エンディング */
.ending-prose p { margin: 0 0 10px; }

/* クレジット */
.credits { text-align: center; }
.credits dl { display: grid; grid-template-columns: 12em 1fr; gap: 10px 18px; text-align: left; max-width: 760px; margin: 0 auto; }
.credits dt { color: var(--violet); font-weight: 700; }
.credits dd { margin: 0; }
footer { position: relative; z-index: 1; text-align: center; padding: 30px 20px 50px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .mark { font-family: var(--hand); color: var(--gold); font-size: 20px; }

/* ───── レスポンシブ ───── */
@media (max-width: 1180px) {
  .g-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-row .g-info { grid-column: 1 / -1; }
  .uniq { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero-art { height: 380px; }
  .hero-art img { height: 370px; }
  .hero-art .a2 { height: 340px; }
  .hero-art .a3 { height: 100px; }
  .hero-art .halo { width: 360px; height: 360px; }
  .layout { grid-template-columns: 1fr; padding: 0 16px 60px; gap: 0; }
  .toc {
    position: sticky; top: 0; z-index: 10; max-height: none; overflow-x: auto; overflow-y: hidden;
    border-radius: 0 0 18px 18px; margin: 0 -16px 28px; padding: 8px 10px; border-top: none;
    background: rgba(27, 22, 64, .92);
  }
  .toc h2, .toc .spoil-all { display: none; }
  .toc ol { display: flex; gap: 4px; white-space: nowrap; }
  .toc li a { padding: 6px 12px; font-size: 13px; }
  html { scroll-padding-top: 64px; }
  .intro, .truth, .grid2, .sys, .bosses, .glossary { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .world-map { grid-template-columns: 1fr 1fr; }
  .floor { grid-template-columns: 1fr; }
  .floor .thumb { min-height: 180px; }
  .chara { grid-template-columns: 1fr; }
  .chara .stage { height: 420px; }
  .chap .with-img { grid-template-columns: 1fr; }
  .boss.last { grid-column: auto; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .hero { padding: 32px 18px 20px; }
  .hero-art { height: 300px; }
  .hero-art img { height: 290px; }
  .hero-art .a2 { height: 270px; }
  .hero-art .halo { width: 280px; height: 280px; }
  .card { padding: 18px; }
  .points { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .u-card { grid-template-columns: 1fr; text-align: left; }
  .u-card .bust-col { align-items: center; }
  .g-row { padding: 12px; gap: 8px; }
  .g-row figure .stage { height: 190px; }
  .g-row figcaption { font-size: 11px; }
  .boss { grid-template-columns: 84px minmax(0, 1fr); }
  .boss .ic { width: 84px; height: 84px; }
  dl.kv, .floor dl.kv { grid-template-columns: 1fr; gap: 0 0; }
  dl.kv dd { margin-bottom: 8px; }
  .credits dl { grid-template-columns: 1fr; gap: 2px; }
  .credits dd { margin-bottom: 10px; }
  .prose { padding: 20px; }
  .timeline div { grid-template-columns: 1fr; gap: 0; }
}

/* ───── 調整 ───── */
details.spoiler > summary { flex-wrap: wrap; row-gap: 4px; }
details.spoiler > summary::before, details.spoiler > summary::after { white-space: nowrap; flex-shrink: 0; }
.u-card details.spoiler > summary::after, .boss details.spoiler > summary::after { display: none; }
.table-wrap td:nth-child(2) { min-width: 10.5em; }
details.spoiler > .body.chapters::before, details.spoiler > .body.chapters .chap::before { display: none; }
.card.floor { padding: 0; }
