/* AI BUILDRICH モック B（冒険型）— 見た目
   夜空の地図の紺に、温かい金と青。羊皮紙の区画で読みやすさを足す。 */

:root {
  --night: #0a1230;
  --night-2: #0e1940;
  --night-3: #14244f;
  --panel: rgba(20, 34, 78, .72);
  --panel-solid: #14224b;
  --line: rgba(216, 179, 106, .26);
  --line-soft: rgba(168, 186, 232, .16);
  --gold: #d8b36a;
  --gold-2: #f0d9a4;
  --gold-deep: #a9823d;
  --blue: #84b6e8;
  --blue-deep: #3d6aa8;
  --text: #e9eef8;
  --dim: #aab6d2;
  --neg: #ef9a8a;
  --pos: #93d4ad;
  --wax: #9e3b33;

  --paper: #f4ecdc;
  --paper-2: #ebe0c9;
  --paper-line: #d6c4a0;
  --ink: #2a2316;
  --ink-dim: #66583f;

  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --cin: "Cinzel", "Shippori Mincho B1", serif;

  --r: 14px;
  --bar-h: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--night);
  overflow-x: hidden;
  font-feature-settings: "palt" 0;
  letter-spacing: .02em;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: var(--gold-2); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: .04em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.cinzel { font-family: var(--cin); letter-spacing: .14em; }
.dim { color: var(--dim); }
.small { font-size: 14px; line-height: 1.7; }
.center { text-align: center; }
.gold { color: var(--gold-2); }
.ink-dim { color: var(--ink-dim); }

.wrap { width: min(1200px, 100% - 64px); margin-inline: auto; }
.wrap.narrow { width: min(860px, 100% - 64px); }

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

/* ---------- モックの帯 ---------- */
.mock-bar {
  position: sticky; top: 0; z-index: 70;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; line-height: 1; letter-spacing: .06em;
  color: var(--gold-2);
  background: #070d24;
  border-bottom: 1px solid var(--line);
}
.mock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(216,179,106,.18); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: var(--bar-h); z-index: 60;
  background: rgba(10, 18, 48, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo-mark { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.logo-mark path { fill: rgba(216,179,106,.2); }
.logo-text { font-family: var(--cin); font-weight: 700; font-size: 19px; letter-spacing: .08em; white-space: nowrap; }
.bm-prefix { font-size: .7em; color: var(--dim); margin-right: .35em; }
.bm-accent { color: var(--gold); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--dim); text-decoration: none; font-size: 14.5px; white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--gold-2); }
.audience { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex: none; }
.aud-btn { border: 0; background: transparent; color: var(--dim); padding: 5px 13px; border-radius: 999px; font-size: 13.5px; line-height: 1.4; white-space: nowrap; }
.aud-btn[aria-pressed="true"] { background: var(--gold); color: #1a1406; font-weight: 700; }
.l-short { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: transparent; position: relative; flex: none; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--gold-2); transition: transform .2s; }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

.member-strip { display: none; background: linear-gradient(90deg, rgba(216,179,106,.18), rgba(216,179,106,.05)); border-top: 1px solid var(--line); }
.is-member .member-strip { display: block; }
.member-strip-inner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; font-size: 14px; }

/* ---------- 共通の部品 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: .06em;
  border: 1px solid transparent; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #e7c886, var(--gold)); color: #1b1407; box-shadow: 0 6px 22px rgba(216,179,106,.22), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-line { border-color: var(--gold); color: var(--gold-2); background: rgba(216,179,106,.06); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-2); text-decoration: underline; text-underline-offset: 4px; font-size: 14.5px; }
.link-btn.dim { color: var(--dim); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line); color: var(--gold-2); background: rgba(216,179,106,.08);
}
.tag[data-status="prep"] { color: var(--gold-2); border-color: rgba(216,179,106,.5); }
.tag[data-status="plan"] { color: #c3cbe0; border-color: rgba(195,203,224,.4); background: rgba(195,203,224,.06); border-style: dashed; }
.tag[data-status="verify"] { color: #f2b3a8; border-color: rgba(214,110,96,.55); background: rgba(158,59,51,.18); }
.tag-gold { background: var(--gold); color: #1b1407; border-color: var(--gold); }
.tag-m { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); margin-right: 6px; }
.tag-ink { color: var(--ink-dim); border-color: var(--paper-line); background: transparent; }

.price { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--serif); }
.price b { font-size: 24px; letter-spacing: .02em; }
.price small { font-size: 13px; font-family: var(--sans); }
.price.big b { font-size: 38px; }
.price-text { font-size: 16px; font-weight: 700; }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.art { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.dots { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); }
.dots i.on { background: var(--gold); }

.swap { animation: fadeUp .45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 区画 ---------- */
.section { padding: 112px 0; position: relative; }
.section-deep { background: linear-gradient(180deg, var(--night-2), #0b1535); border-block: 1px solid var(--line-soft); }
.sec-head { max-width: 800px; margin-bottom: 52px; }
.eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .2em; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.eyebrow .sep { width: 28px; height: 1px; background: var(--gold); }
.sec-head h2 { font-size: clamp(27px, 3.2vw, 38px); margin-bottom: 18px; text-wrap: balance; }
.lead { color: var(--dim); font-size: 17px; line-height: 1.9; }
.small-lead { font-size: 15px; }
.sp-label { font-size: 13px; letter-spacing: .14em; color: var(--gold); margin-bottom: 10px; font-weight: 700; }
.sp-label small { display: block; letter-spacing: .04em; color: var(--dim); font-weight: 400; font-size: 12.5px; }

/* ---------- 1. はじまり ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; background: radial-gradient(1200px 600px at 75% 10%, #1b2f66 0%, rgba(10,18,48,0) 60%), radial-gradient(900px 500px at 10% 100%, #12224d 0%, rgba(10,18,48,0) 60%), var(--night); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; pointer-events: none; }
.sky .tw { animation: twinkle 4s ease-in-out infinite; }
.sky .const { fill: none; stroke: rgba(216,179,106,.25); stroke-width: 1; stroke-dasharray: 3 5; }
@keyframes twinkle { 50% { opacity: .1; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero-title { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.38; margin-bottom: 26px; letter-spacing: .05em; }
.hero-title span { display: block; }
.hero-sub { font-size: 18px; color: #d5ddef; max-width: 560px; line-height: 1.95; margin-bottom: 12px; }
.hero-note { color: var(--gold-2); font-size: 16px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card .card-frame {
  position: relative; padding: 30px 30px 26px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, rgba(27,45,98,.85), rgba(14,24,60,.9));
  box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 0 0 6px rgba(10,18,48,.6), inset 0 0 0 7px rgba(216,179,106,.18);
}
.card-cap { display: flex; justify-content: space-between; color: var(--gold); font-size: 13px; letter-spacing: .16em; margin-bottom: 18px; }
.card-cap span { color: var(--dim); letter-spacing: .06em; border: 1px solid var(--line-soft); border-radius: 6px; padding: 0 8px; font-size: 12px; }
.buddy { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.buddy-emblem, .st-emblem { width: 84px; height: 84px; flex: none; }
.ring { fill: none; stroke: var(--gold); stroke-width: 1.4; }
.ring.thin { stroke: rgba(216,179,106,.35); stroke-dasharray: 2 4; }
.star { fill: rgba(216,179,106,.18); stroke: var(--gold-2); stroke-width: 1.4; }
.core { fill: var(--blue); }
.buddy-name { font-family: var(--serif); font-size: 19px; }
.buddy-lv { display: flex; align-items: baseline; gap: 6px; color: var(--gold-2); }
.buddy-lv b { font-family: var(--cin); font-size: 28px; }
.hero-route { display: grid; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.hero-route li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; color: #d5ddef; }
.hero-route li span { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: var(--gold); letter-spacing: 0; flex: none; }
.hero-goal { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--dim); }
.hero-goal b { color: var(--gold-2); font-family: var(--serif); font-size: 18px; }

/* ---------- 2. 冒険の地図 ---------- */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.map-canvas {
  position: relative; aspect-ratio: 1000 / 560;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(80% 90% at 50% 50%, #18295a 0%, #0f1b43 70%, #0b1538 100%);
  box-shadow: inset 0 0 0 6px rgba(10,18,48,.55), inset 0 0 0 7px rgba(216,179,106,.16), 0 24px 60px rgba(0,0,0,.3);
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-svg .grid { stroke: rgba(132,182,232,.07); stroke-width: 1; fill: none; }
.map-svg .land { fill: rgba(216,179,106,.055); stroke: rgba(216,179,106,.3); stroke-width: 1.2; stroke-dasharray: 1 0; }
.map-svg .sea { fill: rgba(10,18,48,.6); stroke: rgba(132,182,232,.3); stroke-width: 1; }
.map-svg .mtn { fill: none; stroke: rgba(216,179,106,.35); stroke-width: 1.3; stroke-linejoin: round; }
.map-svg .tree { fill: rgba(132,182,232,.08); stroke: rgba(132,182,232,.3); stroke-width: 1; }
.map-svg .wave { fill: none; stroke: rgba(132,182,232,.35); stroke-width: 1.2; }
.map-svg .road { fill: none; stroke: rgba(240,217,164,.45); stroke-width: 2.4; stroke-dasharray: 2 9; stroke-linecap: round; }
.map-svg .road-done { stroke: var(--gold); stroke-dasharray: none; stroke-width: 3; filter: drop-shadow(0 0 4px rgba(216,179,106,.5)); }
.map-svg .compass circle { fill: none; stroke: rgba(216,179,106,.45); stroke-width: 1.2; }
.map-svg .compass circle.thin { stroke-dasharray: 2 4; }
.map-svg .compass path { fill: rgba(216,179,106,.3); stroke: var(--gold); stroke-width: 1; }
.map-svg .compass path.thin { fill: rgba(132,182,232,.15); stroke: rgba(132,182,232,.5); }
.map-svg .compass text { fill: var(--gold); font-family: var(--cin); font-size: 14px; }
.map-svg .map-title { fill: rgba(216,179,106,.55); font-family: var(--cin); font-size: 15px; letter-spacing: .3em; }

.map-nodes { position: absolute; inset: 0; }
.node {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -38px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; width: 150px; text-align: center;
}
.medal {
  position: relative; width: 76px; height: 76px; padding: 15px; border-radius: 50%;
  color: var(--dim);
  background: radial-gradient(circle at 50% 35%, #1d3270, #111e48);
  border: 1px solid rgba(168,186,232,.35);
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 0 0 4px rgba(10,18,48,.6);
  transition: transform .25s, border-color .25s, box-shadow .25s, color .25s;
}
.node:hover .medal, .node:focus-visible .medal { transform: translateY(-3px); border-color: var(--gold); color: var(--gold-2); }
.node:focus-visible { outline: none; }
.node:focus-visible .medal { box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--gold); }
.node.is-current .medal { color: var(--gold-2); border-color: var(--gold); }
.node.is-current .medal::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(216,179,106,.55);
  animation: halo 2.6s ease-out infinite;
}
@keyframes halo { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.22); } }
.node.is-cleared .medal { color: #1b1407; background: radial-gradient(circle at 50% 35%, #f3dca6, var(--gold) 70%, var(--gold-deep)); border-color: var(--gold-2); }
.node.is-open .medal { box-shadow: 0 0 0 3px rgba(10,18,48,.9), 0 0 0 5px var(--blue), 0 10px 26px rgba(0,0,0,.4); }
.clear-seal { position: absolute; right: -6px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--wax); color: #f6d9cf; display: none; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.clear-seal .i { width: 18px; height: 18px; }
.node.is-cleared .clear-seal { display: grid; }
.node-text { display: flex; flex-direction: column; align-items: center; line-height: 1.35; }
.node-no { font-size: 11.5px; color: var(--gold); }
.node-name { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--text); text-shadow: 0 2px 8px rgba(10,18,48,.9); white-space: nowrap; }
.node-state { font-size: 12px; color: var(--dim); }
.node.is-current .node-state { color: var(--gold-2); }
.node.unlock .medal { animation: unlock 1.3s ease; }
@keyframes unlock { 0% { box-shadow: 0 0 0 0 rgba(216,179,106,.7); } 100% { box-shadow: 0 0 0 26px rgba(216,179,106,0); } }

.stage-panel {
  margin-top: 22px; padding: 30px 32px;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(27,45,98,.65), rgba(14,24,60,.75));
  scroll-margin-top: 140px;
}
.sp-head { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.sp-medal { width: 64px; height: 64px; padding: 12px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); background: rgba(216,179,106,.08); flex: none; }
.sp-no { font-size: 12.5px; color: var(--gold); }
.sp-head h3 { font-size: 26px; }
.sp-sub { color: var(--dim); font-size: 14.5px; }
.sp-cleared { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #f6d9cf; background: var(--wax); border-radius: 999px; padding: 4px 14px 4px 8px; font-size: 13.5px; font-weight: 700; }
.sp-cleared .i { width: 20px; height: 20px; }
.sp-goal { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: rgba(216,179,106,.06); margin-bottom: 24px; }
.sp-goal li { display: flex; gap: 10px; align-items: flex-start; font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.sp-goal li + li { margin-top: 6px; }
.sp-goal .i { color: var(--gold); margin-top: 4px; }
.sp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sp-powers li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.sp-powers li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--blue); }
.sp-gear li { padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.sp-gear li:last-child { border-bottom: 0; }
.kind { display: inline-block; font-size: 12px; color: var(--gold); border: 1px solid var(--line); border-radius: 5px; padding: 0 7px; margin-right: 8px; line-height: 1.7; vertical-align: 1px; }
.sp-actions { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sp-nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.sp-foot { margin-top: 10px; }

/* ステータス */
.status {
  position: sticky; top: 120px;
  padding: 24px; border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #172a5c, #0f1b44);
  box-shadow: inset 0 0 0 5px rgba(10,18,48,.5), inset 0 0 0 6px rgba(216,179,106,.15);
}
.status-cap { font-size: 12.5px; color: var(--gold); margin-bottom: 12px; }
.st-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.st-emblem { width: 70px; height: 70px; }
.st-name { font-family: var(--serif); font-size: 18px; }
.st-lv { color: var(--gold-2); display: flex; align-items: baseline; gap: 5px; }
.st-lv b { font-family: var(--cin); font-size: 30px; }
.st-meter { margin-bottom: 20px; }
.st-meter-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; margin-bottom: 6px; }
.st-meter-h b { font-family: var(--cin); font-size: 20px; color: var(--gold-2); }
.st-meter-h small { font-size: 13px; color: var(--dim); }
.bar { height: 10px; border-radius: 99px; background: rgba(168,186,232,.14); overflow: hidden; border: 1px solid var(--line-soft); }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); transition: width .7s ease; }
.slots { display: grid; gap: 8px; margin-bottom: 16px; }
.slot { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px dashed var(--line-soft); color: var(--dim); font-size: 14px; line-height: 1.5; }
.slot.on { border-style: solid; border-color: var(--line); background: rgba(216,179,106,.07); color: var(--text); }
.slot.gained { animation: gained 1.2s ease; }
@keyframes gained { 0% { background: rgba(216,179,106,.35); } 100% { background: rgba(216,179,106,.07); } }
.slot-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(10,18,48,.6); padding: 5px; }
.slot.on .slot-ico { color: var(--gold-2); }
.slot-ico .i { width: 18px; height: 18px; }
.slot-t small { display: block; font-size: 10.5px; color: var(--gold); }
.st-msg { font-size: 15px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.st-msg a { margin-left: 8px; }
.st-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line-soft); }

/* ---------- 3. 最初の装備 ---------- */
.kit-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }
.kit-main { padding: 40px; display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: start; border-right: 1px solid var(--line-soft); background: radial-gradient(120% 80% at 0% 0%, rgba(216,179,106,.12), transparent 60%); }
.chest { width: 130px; fill: rgba(216,179,106,.08); stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.chest .thin { stroke: rgba(216,179,106,.4); stroke-width: 1.4; fill: none; }
.kit-role { color: var(--gold); font-size: 13.5px; letter-spacing: .14em; margin-bottom: 4px; }
.kit-main h3 { font-size: 26px; margin-bottom: 12px; }
.kit-lead { color: #d5ddef; margin-bottom: 18px; }
.kit-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.kit-items { padding: 40px; }
.kit-items ol { display: grid; gap: 4px; margin-bottom: 26px; }
.kit-items li { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.slot-n { width: 24px; height: 24px; flex: none; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11.5px; color: var(--gold); letter-spacing: 0; transform: translateY(5px); }
.kit-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kit-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(10,18,48,.4); color: var(--dim); font-size: 12.5px; line-height: 1.4; transition: border-color .2s, color .2s; }
.kit-chip:hover { border-color: var(--gold); color: var(--gold-2); }
.kit-chip svg { width: 30px; height: 30px; color: var(--gold); }
.kit-chip b { font-size: 12px; color: var(--gold-2); }

.trial { margin-top: 64px; }
.trial-head { margin-bottom: 26px; }
.trial-head h3 { font-size: 26px; margin-bottom: 6px; }
.trial-body { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.trial-q { position: relative; padding: 30px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10,18,48,.5); }
.trial-date { color: var(--gold); font-size: 13px; }
.trial-title { font-family: var(--serif); font-size: 20px; margin-bottom: 18px; }
.trial-q blockquote { margin: 0 0 20px; padding: 14px 18px; border-left: 2px solid var(--gold); background: rgba(216,179,106,.06); font-size: 16.5px; }
.clock { display: flex; align-items: center; gap: 14px; }
.clock svg { width: 58px; height: 58px; fill: none; stroke: var(--gold); stroke-width: 2; }
.clock .half { fill: rgba(216,179,106,.25); stroke: none; }
.clock b { font-family: var(--cin); font-size: 38px; color: var(--gold-2); margin-right: 4px; }
.loot { display: grid; gap: 10px; }
.loot li { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--panel); }
.loot-n { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold-2); letter-spacing: 0; font-size: 14px; }
.loot strong { display: block; font-family: var(--serif); font-size: 17px; }
.loot small { color: var(--dim); font-size: 14px; }

/* ---------- 4. 装備屋 ---------- */
.jobs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }
.job { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(20,34,78,.5); transition: border-color .2s, background .2s; }
.job:hover { border-color: var(--line); }
.job[aria-selected="true"] { border-color: var(--gold); background: linear-gradient(180deg, rgba(216,179,106,.18), rgba(216,179,106,.04)); }
.job-name { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.job[aria-selected="true"] .job-name { color: var(--gold-2); }
.job-cat { font-size: 12.5px; color: var(--dim); }
.shop-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 30px; padding: 12px 16px; border-radius: 10px; background: rgba(10,18,48,.45); border: 1px solid var(--line-soft); }
.lg { display: inline-flex; gap: 8px; align-items: center; }
.shelf-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.shelf-job { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--gold-2); display: flex; align-items: baseline; gap: 12px; }
.shelf-job .cinzel { font-size: 12px; color: var(--gold); }
.shelf-group { font-family: var(--serif); font-size: 18px; color: var(--text); margin: 26px 0 12px; display: flex; align-items: center; gap: 12px; }
.shelf-group::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.item {
  position: relative; display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 20px 18px 18px; border-radius: 14px;
  border: 1px solid var(--line-soft); background: var(--panel);
  transition: transform .2s, border-color .2s;
}
.item:hover { transform: translateY(-2px); border-color: var(--line); }
.item-ico { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--gold-2); background: radial-gradient(circle at 50% 30%, #22397a, #121f4a); border: 1px solid var(--line); }
.item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item-name { font-weight: 700; font-size: 16.5px; line-height: 1.55; }
.item-term { font-size: 12.5px; color: var(--dim); }
.item-desc { font-size: 14.5px; color: #c7d1e7; line-height: 1.7; }
.item-meta { margin-top: 6px; display: flex; align-items: center; }
.item { padding-top: 50px !important; }
.item-seal { position: absolute; top: 14px; left: 18px; right: 14px; display: flex; flex-direction: row; align-items: center; gap: 8px; line-height: 1.3; }
.item-seal b { font-size: 12px; }
.item-seal small { font-size: 12px; color: var(--dim); }
.item-seal[data-status="prep"] b { color: var(--gold-2); border: 1px solid rgba(216,179,106,.5); border-radius: 5px; padding: 1px 7px; }
.item-seal[data-status="plan"] b { color: #c3cbe0; border: 1px dashed rgba(195,203,224,.5); border-radius: 5px; padding: 1px 7px; }
.item-seal[data-status="verify"] .i { width: 26px; height: 26px; color: #f6d9cf; background: var(--wax); border-radius: 50%; padding: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.item-seal[data-status="verify"] b { color: #f2b3a8; }
/* 開発予定＝封印 */
.item.st-plan { background: repeating-linear-gradient(135deg, rgba(20,34,78,.55) 0 10px, rgba(20,34,78,.38) 10px 20px); border-style: dashed; }
.item.st-plan .item-ico { color: rgba(195,203,224,.45); filter: saturate(0); }
.item-lock { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; background: #0b1435; border: 1px solid rgba(195,203,224,.4); display: grid; place-items: center; color: #c3cbe0; }
.item-lock .i { width: 14px; height: 14px; }
.item.st-plan .item-name { color: #cfd6e8; }
/* 検証待ち＝封蝋 */
.item.st-verify { border-color: rgba(214,110,96,.35); }
.item.st-verify .item-ico { color: #e9b4aa; }
.shelf-foot { margin-top: 22px; color: var(--dim); font-size: 15px; }

/* 詳しい説明の引き出し */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(4,8,22,.6); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); overflow-y: auto; padding: 44px 34px 34px; background: linear-gradient(180deg, #172a5c, #0e1940); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .3s ease; }
.drawer.open .drawer-panel { transform: none; }
.drawer-x { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 22px; line-height: 1; color: var(--gold-2); }
.dr-ico { width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-2); margin-bottom: 16px; }
.dr-ico .i { width: 30px; height: 30px; }
.dr-job { font-size: 12px; color: var(--gold); margin-bottom: 4px; }
.drawer-panel h3 { font-size: 24px; margin-bottom: 4px; }
.dr-desc { margin: 14px 0 20px; color: #d5ddef; }
.dr-dl { display: grid; gap: 10px; margin: 0 0 22px; padding: 16px 0; border-block: 1px solid var(--line-soft); }
.dr-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; }
.dr-dl dt { color: var(--dim); font-size: 14px; }
.dr-dl dd { margin: 0; }
.drawer-panel .btn { margin-top: 20px; }

/* ---------- 5. 投資家クエスト ---------- */
.quest-head { max-width: 860px; margin-bottom: 40px; }
.quest-badge { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--gold); margin-bottom: 22px; font-size: 14px; color: var(--gold-2); }
.quest-badge .cinzel { background: var(--gold); color: #1b1407; border-radius: 999px; padding: 2px 12px; font-size: 11.5px; font-weight: 700; }
.quest-head h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 18px; }
.quest-brief { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; margin-bottom: 28px; padding: 26px 28px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(10,18,48,.45); }
.brief-h { font-family: var(--serif); font-size: 18px; color: var(--gold-2); margin-bottom: 8px; }
.brief-col p + p { margin-top: 8px; }
.glossary { margin: 0; display: grid; gap: 10px; }
.glossary div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
.glossary dt { font-weight: 700; color: var(--gold-2); font-size: 15px; }
.glossary dd { margin: 0; color: #c7d1e7; font-size: 15px; }

.report { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #13224f, #0e1940); }
.report-tabs { display: flex; border-bottom: 1px solid var(--line); background: rgba(10,18,48,.5); }
.vtab { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 24px; border: 0; background: transparent; text-align: left; border-bottom: 2px solid transparent; color: var(--dim); }
.vtab .cinzel { font-size: 11px; color: var(--gold); width: 100%; }
.vtab b { font-family: var(--serif); font-size: 18px; }
.vtab small { font-size: 13px; }
.vtab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--gold); background: rgba(216,179,106,.07); }
.report-body { padding: 30px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.rp-cap { font-size: 11.5px; color: var(--gold); }
.rp-head h3 { font-size: 24px; }
.rp-chip { font-size: 13px; color: var(--gold-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(10,18,48,.5); display: flex; flex-direction: column; gap: 4px; }
.kpi-l { font-size: 13.5px; color: var(--dim); line-height: 1.5; }
.kpi-v { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.2; }
.kpi-v small { font-family: var(--sans); font-size: 13px; font-weight: 400; margin-left: 4px; color: var(--dim); }
.kpi.accent { border-color: var(--line); }
.kpi.accent .kpi-v { color: var(--gold-2); }
.kpi.neg .kpi-v { color: var(--neg); }
.kpi.text .kpi-v { font-size: 20px; }
.panel { padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(10,18,48,.42); margin-bottom: 16px; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.panel-h strong { font-family: var(--serif); font-size: 18px; }
.panel-h small { color: var(--dim); font-size: 13px; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 330px) 1fr 70px; gap: 14px; align-items: center; font-size: 14.5px; }
.hb-label { line-height: 1.5; color: #d5ddef; }
.hb-track { position: relative; height: 22px; border-radius: 6px; background: rgba(168,186,232,.08); }
.hb-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, rgba(132,182,232,.35), rgba(132,182,232,.75)); }
.hbar.hl .hb-fill { background: linear-gradient(90deg, rgba(216,179,106,.5), var(--gold)); }
.hbar.hl .hb-label { color: var(--gold-2); font-weight: 700; }
.hbar.hold .hb-fill { background: linear-gradient(90deg, rgba(147,212,173,.3), rgba(147,212,173,.7)); }
.hb-principal { position: absolute; top: -4px; bottom: -4px; border-left: 1.5px dashed rgba(255,255,255,.55); }
.hb-val { font-family: var(--serif); font-weight: 700; text-align: right; }
.hbar.hl .hb-val { color: var(--gold-2); }
.hb-axisrow { font-size: 12px; color: var(--dim); }
.hb-ticks { position: relative; height: 16px; }
.hb-ticks span { position: absolute; transform: translateX(-50%); }
.hb-unit { text-align: right; }
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-row .panel { margin-bottom: 16px; }
.donut-wrap { display: flex; gap: 20px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.donut { position: relative; width: 130px; height: 130px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.d-bg { fill: none; stroke: rgba(132,182,232,.35); stroke-width: 14; }
.d-fg { fill: none; stroke: var(--neg); stroke-width: 14; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.donut-c b { font-family: var(--serif); font-size: 24px; }
.donut-c small { font-size: 12px; color: var(--dim); }
.legend { display: grid; gap: 8px; font-size: 14.5px; flex: 1; min-width: 180px; }
.legend li { display: flex; gap: 8px; align-items: baseline; }
.legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; transform: translateY(1px); }
.lg-a { background: var(--neg); } .lg-b { background: rgba(132,182,232,.6); }
.waterfall { display: grid; gap: 14px; }
.wf { display: grid; grid-template-columns: 130px 1fr 96px; gap: 12px; align-items: center; font-size: 14.5px; }
.wf-track { height: 20px; border-radius: 5px; background: rgba(168,186,232,.08); position: relative; }
.wf-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.wf.pos .wf-bar { background: var(--pos); }
.wf.neg .wf-bar { background: var(--neg); }
.wf.net .wf-bar { background: repeating-linear-gradient(135deg, var(--neg) 0 4px, rgba(239,154,138,.45) 4px 8px); }
.wf-v { font-family: var(--serif); font-weight: 700; text-align: right; white-space: nowrap; }
.wf.pos .wf-v { color: var(--pos); } .wf.neg .wf-v, .wf.net .wf-v { color: var(--neg); }
.wf.net .wf-l { font-weight: 700; }
.flat { display: grid; gap: 14px; margin-bottom: 12px; }
.fl-row { display: grid; grid-template-columns: minmax(0, 330px) 1fr auto; gap: 14px; align-items: center; font-size: 14.5px; }
.fl-bar { height: 22px; border-radius: 6px; background: linear-gradient(90deg, rgba(132,182,232,.35), rgba(132,182,232,.75)); }
.fl-bar.short { width: 96%; background: linear-gradient(90deg, rgba(216,179,106,.5), var(--gold)); }
.fl-gap { color: var(--neg); font-family: var(--serif); font-weight: 700; white-space: nowrap; }
.findings ol { counter-reset: f; display: grid; gap: 10px; }
.findings li { counter-increment: f; position: relative; padding-left: 40px; line-height: 1.8; }
.findings li::before { content: counter(f); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); display: grid; place-items: center; font-family: var(--cin); font-size: 13px; }
.source { margin-top: 16px; font-size: 14px; color: var(--dim); line-height: 1.8; padding-left: 14px; border-left: 2px solid var(--line); }
.pack { margin-top: 56px; }
.pack-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pack-head h3 { font-size: 22px; }
.pack-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pack-price strong { font-size: 15px; }
.pack-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pg { padding: 16px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(10,18,48,.4); }
.pg-h { font-family: var(--serif); font-weight: 700; font-size: 15.5px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; color: var(--gold-2); }
.pg-h small { color: var(--dim); font-family: var(--cin); }
.pg li button { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 6px 0; font-size: 14px; line-height: 1.5; color: #d5ddef; }
.pg li button:hover { color: var(--gold-2); }
.pg li .i { width: 16px; height: 16px; margin-top: 3px; color: var(--gold); }
.pg li.st-verify button { color: #e3b9b1; }
.pg li.st-verify .i { color: #e3a296; }

/* ---------- 6. エピローグ ---------- */
.ending { background: linear-gradient(180deg, var(--night) 0%, #101d4a 55%, #2a2f5c 85%, #4a3d55 100%); overflow: hidden; }
.ending-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.ending-copy h2 { font-size: clamp(27px, 3.2vw, 38px); margin-bottom: 18px; }
.ending-copy .lead { margin-bottom: 30px; }
.night { position: relative; display: grid; gap: 4px; margin-bottom: 14px; }
.night::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--blue), var(--gold)); opacity: .6; }
.night li { position: relative; padding: 8px 0 8px 34px; display: grid; grid-template-columns: 110px 1fr; gap: 0 14px; }
.night li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--night); border: 2px solid var(--blue); }
.night li:nth-child(n+4)::before { border-color: var(--gold); }
.night li:last-child::before { background: var(--gold); }
.night .t { font-family: var(--cin); font-size: 13px; color: var(--gold); letter-spacing: .06em; padding-top: 3px; grid-row: span 2; }
.night strong { font-size: 16.5px; }
.night small { color: var(--dim); font-size: 14px; line-height: 1.6; }
.phone-wrap { position: relative; display: grid; justify-items: center; gap: 14px; }
.dawn { position: absolute; width: 420px; height: 420px; border-radius: 50%; top: 40px; background: radial-gradient(circle, rgba(240,200,140,.32), rgba(240,200,140,0) 65%); pointer-events: none; }
.phone { position: relative; width: 330px; border-radius: 40px; padding: 14px 12px 18px; background: #0b1128; border: 1px solid rgba(216,179,106,.45); box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 2px #1a2350; }
.phone-status { display: flex; justify-content: space-between; padding: 4px 16px 10px; font-size: 13px; color: var(--dim); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #141d44; margin-bottom: 10px; }
.chat-head strong { display: block; font-size: 14.5px; line-height: 1.4; }
.chat-head small { font-size: 12px; color: var(--dim); }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #f3dca6, var(--gold)); flex: none; }
.chat-ava svg { width: 20px; height: 20px; fill: #1b1407; }
.chat-body { display: grid; gap: 8px; padding: 0 4px; }
.chat-day { justify-self: center; font-size: 11.5px; color: var(--dim); background: rgba(168,186,232,.1); border-radius: 99px; padding: 0 10px; }
.bubble { position: relative; max-width: 92%; padding: 10px 14px 18px; border-radius: 14px 14px 14px 4px; background: #1b2758; font-size: 13.5px; line-height: 1.65; }
.bubble p + p, .bubble ul + p { margin-top: 6px; }
.bubble ul { margin-top: 6px; display: grid; gap: 4px; }
.bubble li { padding-left: 12px; position: relative; }
.bubble li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.bubble b { color: var(--gold-2); white-space: nowrap; }
.b-title { font-weight: 700; color: var(--gold-2); }
.b-time { position: absolute; right: 10px; bottom: 3px; font-size: 10.5px; color: var(--dim); }
.bubble.me { justify-self: end; background: #e7c886; color: #1b1407; border-radius: 14px 14px 4px 14px; }
.bubble.me .b-time { color: #6b5426; }
.bubble.typing { padding: 12px 14px; display: flex; gap: 5px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: typing 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .2s; } .bubble.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 50% { opacity: .25; transform: translateY(-2px); } }

/* ---------- 7. ギルド ---------- */
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gcard { display: flex; gap: 14px; padding: 22px 20px; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--panel); }
.g-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-2); }
.gcard h3 { font-size: 18px; color: var(--gold-2); }
.g-real { font-size: 13px; color: var(--dim); margin-bottom: 6px; }
.gcard p:last-child { font-size: 15px; color: #d0d9ec; line-height: 1.75; }
.guild-price { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 18px 22px; border-radius: 12px; border: 1px dashed var(--line); }
.guild-price > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.crew { margin-top: 80px; }
.crew-title { font-size: 26px; margin-bottom: 22px; }
.crew-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.crew-card { padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(27,45,98,.7), rgba(14,24,60,.8)); }
.crew-top { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.crew-emb { width: 70px; height: 70px; flex: none; border-radius: 50%; border: 1px solid var(--gold); padding: 10px; display: grid; place-items: center; background: rgba(216,179,106,.07); }
.crew-emb svg { width: 100%; height: 100%; fill: none; stroke: var(--gold-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.crew-title-s { color: var(--gold); font-size: 14px; font-weight: 700; letter-spacing: .1em; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.crew-title-s span { color: var(--dim); font-weight: 400; letter-spacing: .04em; font-size: 13px; }
.crew-card h4 { font-size: 26px; }
.crew-role { color: var(--dim); font-size: 14px; }
.crew-card li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.crew-card li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.crew-flow { margin-top: 20px; text-align: center; color: var(--dim); font-size: 15px; }
.crew-flow span { color: var(--gold); margin: 0 6px; }

/* ---------- 8. 冒険者の記録 ---------- */
.logbook { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.log { display: flex; flex-direction: column; padding: 24px 22px; border-radius: 4px 16px 16px 4px; background: var(--paper); color: var(--ink); border-left: 5px solid var(--gold-deep); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.log-no { font-size: 12px; color: var(--gold-deep); margin-bottom: 10px; }
.log blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 17px; line-height: 1.85; flex: 1; }
.log-who { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-dim); border-top: 1px solid var(--paper-line); padding-top: 10px; }
.log-who b { color: var(--ink); }
.recruit { margin-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: 16px; border: 1px solid var(--gold); background: linear-gradient(110deg, rgba(216,179,106,.16), rgba(216,179,106,.03)); }
.recruit-cap { font-size: 11.5px; color: var(--gold); }
.recruit h3 { font-size: 22px; }
.recruit p:last-child { color: var(--dim); }

/* ---------- 羊皮紙の区画 ---------- */
.parchment { background: var(--paper); color: var(--ink); background-image: radial-gradient(120% 80% at 0% 0%, rgba(255,255,255,.5), transparent 60%), radial-gradient(100% 80% at 100% 100%, rgba(169,130,61,.12), transparent 60%); }
.parchment .eyebrow { color: var(--gold-deep); }
.parchment .lead { color: var(--ink-dim); }
.parchment .tag[data-status="prep"] { color: #7a5a1e; border-color: #c6a463; background: rgba(216,179,106,.15); }
.parchment .tag[data-status="plan"] { color: #5d5a66; border-color: #a7a2b2; background: transparent; }
.parchment .tag-m { color: #fff; }
.aud-inline { display: inline-flex; border: 1px solid var(--paper-line); border-radius: 999px; padding: 3px; margin-bottom: 26px; background: #fff8; }
.parchment .aud-btn { color: var(--ink-dim); font-size: 14.5px; padding: 6px 18px; }
.parchment .aud-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 26px; border-radius: 18px; background: #fffaf0; border: 1px solid var(--paper-line); box-shadow: 0 10px 30px rgba(80,60,20,.08); }
.plan.rec { border: 2px solid var(--gold-deep); box-shadow: 0 18px 40px rgba(120,90,30,.18); }
.rec-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--gold-2); font-size: 13px; font-weight: 700; padding: 3px 16px; border-radius: 99px; white-space: nowrap; }
.plan-route { font-size: 12px; color: var(--gold-deep); }
.plan h3 { font-size: 22px; margin: 4px 0 2px; }
.plan-line { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.was { font-size: 13.5px; color: var(--ink-dim); text-decoration: line-through; }
.save { font-size: 14px; color: #7a5a1e; margin-top: 2px; }
.save b { font-size: 16px; }
.plan-lead { font-size: 15px; margin: 14px 0; line-height: 1.8; }
.plan-req { font-size: 13.5px; color: #7a5a1e; margin-top: -6px; margin-bottom: 12px; }
.checks { display: grid; gap: 6px; margin-bottom: 20px; }
.checks li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.65; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }
.plan-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--paper-line); }
.plans-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.sub { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--paper-line); background: rgba(255,250,240,.6); }
.sub-name { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sub-lead { font-size: 14px; color: var(--ink-dim); line-height: 1.7; margin-top: 4px; }
.sub-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.table-title { font-size: 22px; margin: 56px 0 16px; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--paper-line); background: #fffaf0; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
.compare th, .compare td { padding: 13px 14px; border-bottom: 1px solid var(--paper-2); text-align: center; line-height: 1.6; }
.compare thead th { font-family: var(--serif); font-size: 15px; background: var(--paper-2); }
.compare tbody th { text-align: left; font-weight: 500; }
.compare .rec-col { background: rgba(216,179,106,.13); }
.compare .yes { color: var(--gold-deep); }
.compare .no { color: #b9aa8a; }
.compare .price b { font-size: 18px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---------- 会員 ---------- */
.member-section { display: none; padding: 80px 0; }
.is-member .member-section { display: block; }
.member-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; padding: 40px; border-radius: 20px; border: 1px solid var(--gold); background: linear-gradient(140deg, rgba(61,106,168,.25), rgba(216,179,106,.08)); }
.member-card h2 { font-size: 28px; margin-bottom: 12px; }
.member-card > div > p { margin-bottom: 14px; color: #d5ddef; }
.member-card .checks li::before { border-color: var(--gold); }
.member-side { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.member-sum { border: 1px solid var(--line); border-radius: 12px; padding: 8px 18px; background: rgba(10,18,48,.4); }
.ms-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.5px; }
.ms-row:last-child { border-bottom: 0; }
.ms-row s { color: var(--dim); margin-right: 8px; font-size: 13px; }
.ms-row b { color: var(--gold-2); white-space: nowrap; }

/* ---------- 質問 ---------- */
#faq { border-top: 1px solid var(--paper-line); }
.faq { display: grid; gap: 10px; }
.qa { border: 1px solid var(--paper-line); border-radius: 12px; background: #fffaf0; }
.qa summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 700; cursor: pointer; line-height: 1.6; }
.qa summary::-webkit-details-marker { display: none; }
.q-mark { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font-size: 13px; letter-spacing: 0; }
.chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--ink-dim); border-bottom: 2px solid var(--ink-dim); transform: rotate(45deg); transition: transform .2s; flex: none; }
.qa[open] .chev { transform: rotate(-135deg); }
.qa .a { padding: 0 20px 20px 64px; color: #3d3423; line-height: 1.9; }

/* ---------- フッター ---------- */
.site-footer { padding: 64px 0 40px; background: #070d24; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.footer-kana { color: var(--dim); font-size: 13px; margin-top: 8px; }
.footer-concept { font-family: var(--serif); font-size: 18px; margin-top: 14px; }
.footer-meaning { font-size: 14px; margin-top: 4px; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.footer-cols strong { display: block; color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.footer-cols a { display: block; color: var(--dim); text-decoration: none; font-size: 14.5px; padding: 3px 0; }
.footer-cols a:hover { color: var(--gold-2); }
.footer-note { border-top: 1px solid var(--line-soft); padding-top: 22px; display: grid; gap: 6px; font-size: 13px; color: var(--dim); line-height: 1.8; }

/* ---------- お知らせ ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 95; max-width: calc(100% - 32px); padding: 12px 22px; border-radius: 12px; background: var(--gold-2); color: #1b1407; font-weight: 700; font-size: 15px; box-shadow: 0 12px 30px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   幅ごとの調整
   ========================================================= */
@media (max-width: 1240px) {
  .nav { gap: 16px; }
  .nav a { font-size: 13.5px; }
  .l-long { display: none; } .l-short { display: inline; }
  .pack-groups { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .map-layout { grid-template-columns: 1fr; }
  .status { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .status .status-cap, .status .st-top, .status .st-meter { grid-column: 1; }
  .status .sp-label, .status .slots { grid-column: 2; }
  .status .sp-label { grid-row: 1; }
  .status .slots { grid-row: 2 / span 3; }
  .status .st-msg, .status .st-foot { grid-column: 1; }
  .kit-box { grid-template-columns: 1fr; }
  .kit-main { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .logbook { grid-template-columns: 1fr 1fr; }
  .hbar, .fl-row { grid-template-columns: minmax(0, 240px) 1fr 64px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .audience { order: 3; }
  .menu-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(10,18,48,.98); border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .menu-open .nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-card { max-width: 520px; }
  .trial-body, .quest-brief, .ending-grid, .member-card { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: repeat(3, 1fr); }
  .kpis { grid-template-columns: 1fr 1fr; }
  .split-row { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .plan.rec { order: -1; }
  .plans-sub { grid-template-columns: 1fr; }
  .crew-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* 地図を縦の道にする */
@media (max-width: 860px) {
  .map-canvas { aspect-ratio: auto; padding: 22px 16px 22px; }
  .map-svg { display: none; }
  .map-nodes { position: relative; inset: auto; display: grid; gap: 12px; }
  .map-nodes::before { content: ""; position: absolute; left: 37px; top: 30px; bottom: 30px; border-left: 2px dashed rgba(240,217,164,.4); }
  .node { position: relative; left: auto; top: auto; transform: none; width: 100%; flex-direction: row; gap: 16px; text-align: left; padding: 8px; border-radius: 14px; }
  .node.is-open { background: rgba(132,182,232,.08); }
  .node .medal { width: 60px; height: 60px; padding: 12px; flex: none; }
  .node-text { align-items: flex-start; }
  .node-name { font-size: 18px; }
  .node-state { font-size: 13px; }
  .stage-panel { padding: 24px 20px; }
  .sp-cols { grid-template-columns: 1fr; gap: 20px; }
  .status { display: block; }
  .sp-nav { margin-left: 0; }
}

@media (max-width: 640px) {
  :root { --bar-h: 28px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .mock-bar { font-size: 12px; }
  .header-inner { height: 60px; gap: 10px; }
  .logo-text { font-size: 16px; }
  .logo-mark { width: 26px; height: 26px; }
  .bm-prefix { display: none; }
  .aud-btn { padding: 4px 10px; font-size: 12.5px; }
  .menu-btn { width: 38px; height: 38px; margin-left: 0; }
  .menu-btn span { left: 9px; right: 9px; }
  .menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 22px; }
  .audience { margin-left: auto; order: 0; }
  .section { padding: 76px 0; }
  .sec-head { margin-bottom: 36px; }
  .lead { font-size: 16px; }
  .hero { padding: 56px 0 72px; }
  .hero-title { font-size: 31px; }
  .hero-sub { font-size: 16.5px; }
  .hero-cta .btn { width: 100%; }
  .hero-card .card-frame { padding: 24px 20px 20px; }
  .buddy-emblem { width: 68px; height: 68px; }
  .sp-head h3 { font-size: 23px; }
  .sp-goal li { font-size: 17px; }
  .sp-cleared { margin-left: 0; }
  .sp-actions .btn { width: 100%; }
  .kit-main { grid-template-columns: 1fr; padding: 28px 22px; gap: 16px; }
  .chest { width: 96px; }
  .kit-items { padding: 28px 22px; }
  .kit-map { grid-template-columns: repeat(3, 1fr); }
  .trial-q { padding: 22px 20px; }
  .jobs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .job { padding: 12px 6px; }
  .job-name { font-size: 16.5px; }
  .shelf-job { font-size: 24px; }
  .items { grid-template-columns: 1fr; }
  .item { padding: 18px 14px 16px; }
  .quest-brief { padding: 20px 18px; }
  .glossary div { grid-template-columns: 1fr; gap: 0; }
  .report-body { padding: 20px 14px; }
  .vtab { padding: 14px 14px; }
  .vtab b { font-size: 16px; }
  .kpis, .kpis-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px; }
  .kpi-v { font-size: 22px; }
  .kpi.text .kpi-v { font-size: 17px; }
  .panel { padding: 18px 14px; }
  .hbar, .fl-row { grid-template-columns: 1fr 64px; gap: 4px 10px; }
  .hb-label, .fl-l { grid-column: 1 / -1; font-size: 14px; }
  .hb-axisrow { grid-template-columns: 1fr 64px; }
  .hb-axisrow > span:first-child { display: none; }
  .fl-row .fl-bar { grid-column: 1 / -1; }
  .fl-gap { grid-column: 1 / -1; }
  .wf { grid-template-columns: 1fr 88px; }
  .wf-l { grid-column: 1 / -1; }
  .pack-groups { grid-template-columns: 1fr; }
  .ending-grid { gap: 40px; }
  .night li { grid-template-columns: 1fr; padding-left: 30px; }
  .night .t { grid-row: auto; }
  .phone { width: min(330px, 100%); }
  .dawn { width: 320px; height: 320px; }
  .gcard { padding: 18px 16px; }
  .crew-card { padding: 22px 18px; }
  .logbook { grid-template-columns: 1fr; }
  .recruit { padding: 22px 20px; }
  .recruit .btn { width: 100%; }
  .plan { padding: 28px 20px 22px; }
  .price.big b { font-size: 34px; }
  .sub { flex-direction: column; align-items: flex-start; }
  .sub-price { align-items: flex-start; text-align: left; }
  .qa summary { padding: 16px; gap: 10px; }
  .qa .a { padding: 0 16px 18px; }
  .member-card { padding: 26px 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .drawer-panel { padding: 44px 22px 28px; }
  .dr-dl div { grid-template-columns: 96px 1fr; }
}

.nb { display: inline-block; }
.hero-title .gold { display: block; }
/* 全ページ撮影の時だけ、上に貼り付く帯を外す（撮影で帯が重なるのを防ぐ） */
html.no-motion .mock-bar, html.no-motion .site-header, html.no-motion .status { position: relative; top: auto; }
@media (max-width: 640px) {
  .ending-copy h2 .nb { display: inline; }
  .table-wrap::before { content: "横にずらすと全部の列が見られます"; display: block; position: sticky; left: 0; padding: 8px 14px; font-size: 13px; color: var(--ink-dim); background: var(--paper-2); }
}
