/* 無銘 攻略指南 — 墨と金と朱。画像の差し込み印は build.mjs の CSS 置換を参照（ここに印そのものを書くと壊れる） */
:root {
  --ink: #0b0b0f; --sumi: #14131a; --sumi2: #1c1a22; --line: rgba(201,162,74,.28);
  --paper: #efe6d2; --paper-d: #b9ad95; --gold: #c9a24a; --gold-l: #e6c873; --shu: #b8362a;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  overflow-x: hidden; margin: 0; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  background-image: radial-gradient(ellipse at 50% -10%, rgba(201,162,74,.10), transparent 55%), radial-gradient(ellipse at 100% 100%, rgba(184,54,42,.06), transparent 50%);
  background-attachment: fixed;
}
a { color: var(--gold-l); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #fff1c4; }
img { max-width: 100%; height: auto; }
b, strong { color: #fff3d6; font-weight: 700; }

/* ---- 上の帯と目次 ---- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: rgba(11,11,15,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: .2em; }
.logo small { font-size: 12px; font-weight: 400; letter-spacing: .3em; color: var(--gold); }
.seal { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--shu); color: #f6e7da; font-size: 18px; font-weight: 800; border-radius: 4px; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(246,231,218,.25); letter-spacing: 0; }
.top-cta { margin-left: auto; padding: 6px 16px; font-size: 14px; letter-spacing: .12em; color: #1a130a; background: linear-gradient(180deg, var(--gold-l), #b48c36); border-radius: 2px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.top-cta:hover { color: #000; filter: brightness(1.08); }
.nav { position: sticky; top: 57px; z-index: 19; display: flex; gap: 2px; overflow-x: auto; padding: 0 12px; background: rgba(20,19,26,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(239,230,210,.08); scrollbar-width: none; justify-content: center; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; padding: 11px 14px 10px; font-size: 14px; color: var(--paper-d); text-decoration: none; letter-spacing: .1em; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--paper); }
.nav a[aria-current] { color: var(--gold-l); border-bottom-color: var(--gold); }

/* ---- 看板(トップ) ---- */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: slowzoom 24s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,15,.35) 0%, rgba(11,11,15,0) 30%, rgba(11,11,15,.55) 62%, var(--ink) 100%); }
.hero-in { position: relative; z-index: 1; max-width: 1080px; width: 100%; margin: 0 auto; padding: 0 24px 56px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(64px, 13vw, 132px); line-height: 1; letter-spacing: .18em; text-indent: .18em; font-weight: 800; color: #f6eedc; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero .kana { display: block; margin-top: 10px; font-size: 15px; letter-spacing: .6em; text-indent: .6em; color: var(--gold); }
.hero .catch { margin: 22px 0 6px; font-size: clamp(18px, 2.6vw, 24px); letter-spacing: .14em; color: #f3e9d4; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero .sub { margin: 0 auto 26px; max-width: 640px; font-size: 15px; color: var(--paper-d); }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-size: 16px; font-weight: 700; letter-spacing: .14em; text-decoration: none; border-radius: 2px; transition: transform .15s, filter .2s, background .2s; }
.btn.gold { color: #1a130a; background: linear-gradient(180deg, var(--gold-l), #b48c36); box-shadow: 0 0 26px rgba(201,162,74,.3), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { color: var(--paper); background: rgba(11,11,15,.55); border: 1px solid rgba(239,230,210,.4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: inherit; }
.btn.gold:hover { color: #000; }
.btn small { font-weight: 400; font-size: 12px; letter-spacing: .06em; opacity: .85; }

/* ---- 本文 ---- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 8px 24px 64px; }
.crumb { margin: 18px 0 0; font-size: 13px; color: var(--paper-d); }
.crumb a { color: var(--paper-d); }
.page-head { position: relative; margin: 0 calc(50% - 50vw); padding: 72px max(24px, calc(50vw - 520px)) 44px; text-align: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 55%, rgba(11,11,15,.72), rgba(11,11,15,.25) 80%), linear-gradient(180deg, rgba(11,11,15,0) 50%, var(--ink)); }
.page-head .lead { text-shadow: 0 1px 8px #000; color: #e4d9c2; }
.page-head > * { position: relative; z-index: 1; }
.page-head .eyebrow { margin: 0 0 6px; font-size: 13px; letter-spacing: .5em; color: var(--gold); }
h1 { margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: .14em; font-weight: 800; line-height: 1.4; }
.lead { max-width: 720px; margin: 14px auto 0; color: var(--paper-d); font-size: 16px; }
h2 { position: relative; margin: 64px 0 22px; padding: 0 0 12px 0; font-size: clamp(22px, 3.2vw, 28px); letter-spacing: .12em; font-weight: 800; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
h2 .no { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; font-size: 18px; color: #f6e7da; background: var(--shu); border-radius: 3px; transform: rotate(-3deg); letter-spacing: 0; }
h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); }
h3 { margin: 32px 0 10px; font-size: 19px; letter-spacing: .1em; color: var(--gold-l); }
p { margin: 0 0 14px; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }
.note { padding: 14px 18px; margin: 18px 0; font-size: 15px; background: rgba(201,162,74,.07); border-left: 3px solid var(--gold); border-radius: 0 3px 3px 0; color: var(--paper-d); }
.note b { color: var(--gold-l); }
.warn { border-left-color: var(--shu); background: rgba(184,54,42,.09); }

/* ---- 札(カード) ---- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { position: relative; display: block; padding: 20px 20px 18px; background: linear-gradient(180deg, var(--sumi2), var(--sumi)); border: 1px solid rgba(239,230,210,.09); border-radius: 4px; color: var(--paper); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.45); color: var(--paper); }
.card b { display: block; margin-bottom: 4px; font-size: 18px; letter-spacing: .1em; color: var(--gold-l); }
.card span { display: block; font-size: 14px; line-height: 1.75; color: var(--paper-d); }
.card .go { position: absolute; right: 16px; top: 18px; color: var(--gold); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 26px 0; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stats div { padding: 18px 10px; text-align: center; background: var(--sumi); }
.stats b { display: block; font-size: 34px; line-height: 1.1; color: var(--gold-l); font-weight: 800; }
.stats span { font-size: 13px; color: var(--paper-d); letter-spacing: .1em; }

/* ---- 章 ---- */
.chap { margin: 0 0 26px; border: 1px solid rgba(239,230,210,.1); border-radius: 4px; overflow: hidden; background: var(--sumi); }
.chap-head { position: relative; min-height: 170px; display: flex; align-items: flex-end; padding: 22px 24px; }
.chap-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chap-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,15,.92) 0%, rgba(11,11,15,.55) 55%, rgba(11,11,15,.15) 100%); }
.chap-head > div { position: relative; z-index: 1; }
.chap-no { font-size: 13px; letter-spacing: .4em; color: var(--gold); }
.chap-head h3 { margin: 2px 0 0; font-size: 28px; color: #f6eedc; letter-spacing: .16em; }
.chap-body { padding: 18px 24px 22px; }
.chap-open { margin: 0 0 14px; font-size: 15px; color: var(--paper-d); font-style: normal; border-left: 2px solid var(--shu); padding-left: 14px; }
.goal { display: inline-block; margin-bottom: 10px; padding: 3px 12px; font-size: 14px; color: #1a130a; background: var(--gold); border-radius: 2px; letter-spacing: .06em; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 6px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 8px 0 8px 44px; border-top: 1px dashed rgba(239,230,210,.12); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; display: grid; place-items: center; font-size: 14px; color: var(--gold-l); border: 1px solid var(--gold); border-radius: 50%; }
.tag { display: inline-block; margin-right: 6px; padding: 0 8px; font-size: 12px; line-height: 1.8; border-radius: 2px; background: rgba(239,230,210,.1); color: var(--paper); letter-spacing: .08em; vertical-align: 2px; }
.tag.am { background: #e9c86d; color: #2a1d06; } .tag.noon { background: #d7d0bf; color: #222; } .tag.eve { background: #c86a3a; color: #fff3e6; } .tag.night { background: #2b3a67; color: #dfe6ff; }

/* ---- 表 ---- */
.tbl { overflow-x: auto; margin: 14px 0 24px; border: 1px solid rgba(239,230,210,.1); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
th { position: sticky; top: 0; padding: 10px 12px; text-align: left; font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--gold-l); background: #1f1c16; border-bottom: 1px solid var(--gold); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid rgba(239,230,210,.07); vertical-align: top; }
tr:nth-child(even) td { background: rgba(239,230,210,.025); }
tr:hover td { background: rgba(201,162,74,.07); }
td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.nm { white-space: nowrap; color: #fff3d6; font-weight: 700; }
.plus { color: #8fd18a; } .minus { color: #e48a7a; }
td img { vertical-align: middle; margin-right: 6px; }
.filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.filter button { font: inherit; font-size: 13px; padding: 4px 12px; color: var(--paper-d); background: transparent; border: 1px solid rgba(239,230,210,.2); border-radius: 999px; cursor: pointer; letter-spacing: .06em; }
.filter button.on, .filter button:hover { color: #1a130a; background: var(--gold); border-color: var(--gold); }

/* ---- 操作のキー ---- */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 28px; margin: 12px 0 20px; padding: 0; list-style: none; }
.keys li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid rgba(239,230,210,.07); }
.keys .k { flex: 0 0 104px; display: flex; gap: 4px; flex-wrap: wrap; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; font: 700 13px/1.6 ui-monospace, Consolas, monospace; text-align: center; color: var(--gold-l); background: rgba(239,230,210,.06); border: 1px solid rgba(201,162,74,.6); border-bottom-width: 3px; border-radius: 4px; }

/* ---- 人物 ---- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; background: var(--sumi); border: 1px solid rgba(239,230,210,.09); border-radius: 4px; overflow: hidden; }
.person img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #0e0d12; filter: saturate(.92); transition: filter .3s, transform .4s; }
.person:hover img { filter: saturate(1.1); }
.person div { padding: 12px 14px 14px; }
.person b { display: block; font-size: 17px; letter-spacing: .08em; }
.person em { display: block; margin: 2px 0 6px; font-style: normal; font-size: 12px; color: var(--gold); letter-spacing: .14em; }
.person span { font-size: 13.5px; line-height: 1.7; color: var(--paper-d); }
.fac { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: 1px; }

/* ---- 結末(伏せ札) ---- */
.ends { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.end { position: relative; aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; border: 1px solid rgba(201,162,74,.35); border-radius: 4px; background: repeating-linear-gradient(45deg, rgba(239,230,210,.025) 0 8px, transparent 8px 16px), linear-gradient(180deg, #19161d, #0f0e13); }
.end .num { font-size: 13px; letter-spacing: .3em; color: var(--gold); }
.end .q { font-size: 30px; letter-spacing: .2em; color: rgba(239,230,210,.35); }
.end .rt { font-size: 12px; padding: 1px 10px; border: 1px solid rgba(239,230,210,.2); border-radius: 999px; color: var(--paper-d); }

/* ---- FAQ ---- */
details { margin: 0 0 10px; background: var(--sumi); border: 1px solid rgba(239,230,210,.1); border-radius: 4px; }
summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; letter-spacing: .04em; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "問"; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 10px; font-size: 13px; color: #f6e7da; background: var(--shu); border-radius: 3px; }
details[open] summary { color: var(--gold-l); }
details > div { padding: 0 18px 16px 52px; color: var(--paper-d); }

/* ---- 体験版への札 ---- */
.cta-band { position: relative; margin: 72px 0 0; padding: 44px 28px; text-align: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(11,11,15,.4), rgba(11,11,15,.9)); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { justify-content: center; border: 0; margin: 0 0 8px; }
.cta-band h2::after { display: none; }
.cta-band p { color: var(--paper-d); }
.updated { margin-top: 40px; font-size: 13px; color: rgba(185,173,149,.7); }

footer { padding: 36px 24px 110px; text-align: center; font-size: 13px; color: var(--paper-d); border-top: 1px solid var(--line); background: #08080b; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 14px; }
footer nav a { color: var(--paper-d); text-decoration: none; }
footer nav a:hover { color: var(--gold-l); }
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,11,15,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.sticky a { display: block; padding: 12px; text-align: center; font-weight: 700; letter-spacing: .14em; color: #1a130a; text-decoration: none; background: linear-gradient(180deg, var(--gold-l), #b48c36); border-radius: 2px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero > img { animation: none; } }

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .top { padding: 8px 14px; }
  .logo { font-size: 17px; letter-spacing: .14em; }
  .logo small { display: none; }
  .nav { top: 51px; justify-content: flex-start; }
  .wrap { padding: 4px 16px 48px; }
  .page-head { padding: 48px 16px 30px; }
  .hero-in { padding: 0 16px 40px; }
  .chap-head { min-height: 130px; padding: 16px; }
  .chap-head h3 { font-size: 23px; }
  .chap-body { padding: 14px 16px 18px; }
  .keys { grid-template-columns: 1fr; }
  .sticky { display: block; }
  .top-cta { display: none; }
  details > div { padding-left: 18px; }
  .ends { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .end { aspect-ratio: 4 / 5; padding: 6px; }
  .end .q { font-size: 20px; letter-spacing: .1em; }
  .end .num { font-size: 11px; letter-spacing: .1em; }
  .end .rt { font-size: 10px; padding: 0 6px; }
}
