/* 百鬼国盗 製品ページ。色と書体はゲームの UI（漆の濃紺・金・朱・和紙、見出しは明朝）に合わせる */
:root {
  --bg: #0a1226;
  --bg-2: #0e1832;
  --panel: #13203f;
  --panel-2: #1a2b52;
  --line: rgba(230, 196, 115, .2);
  --line-2: rgba(230, 196, 115, .45);
  --text: #f6efdf;
  --muted: #bdb5a2;
  --gold: #e6c473;
  --gold-l: #f4dc9c;
  --gold-hi: #ffd54a;
  --gold-d: #a57c36;
  --shu: #c23a27;
  --shu-l: #df5a40;
  --shu-d: #962515;
  --ally: #4f9cff;
  --washi: #f4ecd8;
  --sumi: #1e150b;
  --radius: 14px;
  --wrap: 1160px;
  --nav-h: 64px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  --font-title: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 500;
  line-height: 1.85; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-l); }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.nw { white-space: nowrap; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 8px; }

/* ---------- ほぬらぼの帯 */
.studio { background: #060a18; font-size: 13px; }
.studio .wrap { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.studio a { color: var(--muted); text-decoration: none; font-weight: 700; }
.studio a b { color: #fff; font-weight: 900; }
.studio a:hover { color: #fff; }
.studio span { color: rgba(189, 181, 162, .5); }

/* ---------- ナビ */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: rgba(10, 18, 38, .84); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.nav-logo img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 12px; }
.nav-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--shu-l); }

/* ---------- ボタン */
.btn {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; font-weight: 900;
  background: linear-gradient(180deg, var(--shu-l), var(--shu) 55%, var(--shu-d));
  border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .5), inset 0 0 0 3px rgba(60, 10, 4, .55), 0 4px 0 #4a0f07, 0 10px 24px rgba(0, 0, 0, .35);
  transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(255, 220, 160, .5), inset 0 0 0 3px rgba(60, 10, 4, .55), 0 2px 0 #4a0f07; }
.btn.sm { padding: 7px 18px; font-size: 14px; white-space: nowrap; }
.btn.play { padding: 14px 34px; font-size: 22px; letter-spacing: .06em; line-height: 1.3; }
.btn.play small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #ffe1c8; }
.btn.play svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ヒーロー */
.hero { position: relative; overflow: hidden; padding: 28px 0 34px; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 10, 24, .2) 0%, rgba(6, 10, 24, .35) 40%, rgba(6, 10, 24, .82) 62%, rgba(6, 10, 24, .9) 100%),
    linear-gradient(180deg, rgba(10, 18, 38, .3) 0%, rgba(10, 18, 38, 0) 30%, rgba(10, 18, 38, 0) 70%, var(--bg) 100%),
    url(media/hero.jpg) center 40% / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 12px; min-height: 600px; }
.party { position: relative; aspect-ratio: 1 / 1; max-height: 640px; }
.party img { position: absolute; width: auto; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .55)); }
.p-yuzuha { left: 4%; top: 0; height: 60%; }
.p-kazamaru { left: 44%; top: -1%; height: 61%; }
.p-akari { left: 0; top: 30%; height: 70%; z-index: 2; }
.p-suzune { left: 40%; top: 28%; height: 73%; z-index: 2; }
.hero-copy { position: relative; z-index: 3; }
.hero-genre { margin: 0 0 6px; display: inline-block; font-weight: 900; font-size: 14px; letter-spacing: .12em; color: #fff; padding: 3px 26px 4px 14px;
  background: linear-gradient(180deg, var(--shu-l), var(--shu-d)); clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); }
.hero-logo { margin: 0; }
.hero-logo img { width: min(100%, 520px); height: auto; margin-left: -10px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.hero-logo .kana { display: block; margin-top: -2px; font-family: var(--font-title); font-weight: 700; font-size: 15px; letter-spacing: .5em; color: var(--gold-l); }
.tagline { margin: 18px 0 8px; font-family: var(--font-title); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.lead { margin: 0 0 24px; max-width: 34em; color: #e9e1cf; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.launch { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; line-height: 1.4; }
.launch b { font-weight: 900; font-size: 13px; letter-spacing: .08em; color: var(--sumi); background: linear-gradient(180deg, #ffe58a, #e7b73e); padding: 4px 10px; border-radius: 6px; box-shadow: 0 2px 0 #7a5413; white-space: nowrap; }
.launch span { text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.launch time { display: block; color: var(--gold-hi); font-size: 17px; font-weight: 900; }
.facts { list-style: none; margin: 26px 0 0; padding: 16px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; border-top: 1px solid var(--line); }
.facts li { font-family: var(--font-title); font-weight: 800; font-size: 16px; color: var(--gold-l); }

/* ---------- 共通の節 */
.sec { position: relative; padding: 96px 0; }
.sec.alt { background: var(--bg-2); }
.h2 { margin: 0 0 16px; font-family: var(--font-title); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.35; letter-spacing: .02em; }
.sec-lead { margin: 0 auto; max-width: 40em; color: var(--muted); }
.center .sec-lead { text-align: center; }
b { font-weight: 900; color: #fff; }

/* ---------- スマホの枠 */
.phone {
  margin: 0; border-radius: 30px; padding: 7px; aspect-ratio: 585 / 1266;
  background: linear-gradient(145deg, #30343f, #0d0f16 45%, #22262f);
  box-shadow: 0 0 0 1.5px rgba(232, 199, 122, .6), 0 24px 50px rgba(0, 0, 0, .6);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.phones { position: relative; height: 560px; }
.phones .phone { position: absolute; width: 250px; }
.phones .phone:not(.back) { left: 18%; top: 0; z-index: 2; }
.phones .phone.back { width: 220px; left: 52%; top: 46px; transform: rotate(6deg); }

/* ---------- バトル */
.battle { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.battle .sec-lead { margin: 0; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; }
.steps li { display: flex; gap: 20px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.die {
  flex: none; width: 38px; height: 38px; margin-top: 3px; padding: 6px; border-radius: 8px; display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr); background: var(--washi); box-shadow: inset 0 -3px 0 #cdbf9f, 0 2px 6px rgba(0, 0, 0, .4);
}
.die i { width: 6px; height: 6px; margin: auto; border-radius: 50%; background: var(--sumi); }
.die.d1 i { grid-area: 2 / 2; width: 13px; height: 13px; background: var(--shu); }
.die.d2 i:nth-child(1), .die.d4 i:nth-child(1) { grid-area: 1 / 1; }
.die.d2 i:nth-child(2), .die.d4 i:nth-child(4) { grid-area: 3 / 3; }
.die.d4 i:nth-child(2) { grid-area: 1 / 3; }
.die.d4 i:nth-child(3) { grid-area: 3 / 1; }
.die.d3 i:nth-child(1) { grid-area: 1 / 1; }
.die.d3 i:nth-child(2) { grid-area: 2 / 2; }
.die.d3 i:nth-child(3) { grid-area: 3 / 3; }
.steps h3 { margin: 0; font-family: var(--font-title); font-weight: 800; font-size: 19px; line-height: 1.5; }
.steps p { margin: 2px 0 0; font-size: 14.5px; color: #ddd5c3; line-height: 1.75; }

/* ---------- キャラ */
.chara-sec { overflow: hidden; isolation: isolate; }
.chara-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 18, 38, .55) 22%, rgba(10, 18, 38, .6) 78%, var(--bg-2) 100%), url(media/bg-2.webp) center / cover no-repeat; }
.chara { margin-top: 36px; }
.chara-pick { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chara-pick button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; width: 104px; padding: 8px 6px 6px; cursor: pointer;
  border-radius: var(--radius); background: rgba(10, 18, 38, .75); border: 1px solid var(--line); font-weight: 900; font-size: 14px; color: var(--muted);
  transition: border-color .15s, background .15s, transform .15s;
}
.chara-pick button img { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #2a3d6b, #101a36); box-shadow: inset 0 0 0 2px var(--gold-d); }
.chara-pick button:hover { transform: translateY(-2px); color: #fff; }
.chara-pick button[aria-selected="true"] { color: #fff; border-color: var(--gold); background: linear-gradient(180deg, rgba(194, 58, 39, .55), rgba(10, 18, 38, .85)); }
.chara-pick button[aria-selected="true"] img { box-shadow: inset 0 0 0 2px var(--gold-l), 0 0 0 3px rgba(230, 196, 115, .35); }
.chara-card { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; margin-top: 18px; }
.chara-card[hidden] { display: none; }
.chara-art { width: auto; height: 600px; max-width: 100%; object-fit: contain; justify-self: center; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); animation: rise .45s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.chara-info {
  padding: 30px 32px; border-radius: var(--radius); background: rgba(10, 18, 38, .88);
  box-shadow: inset 0 0 0 1px var(--gold-d), inset 0 0 0 4px rgba(6, 10, 24, .9), inset 0 0 0 5px rgba(230, 196, 115, .35);
}
.chara-race { margin: 0; font-weight: 700; font-size: 14px; color: var(--gold); }
.chara-name { margin: 0 0 10px; font-family: var(--font-title); font-weight: 800; font-size: 44px; line-height: 1.2; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-weight: 700; font-size: 13px; padding: 2px 12px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); }
.tags li:first-child { color: #fff; background: var(--shu); border-color: var(--shu-l); }
.chara-desc { margin: 16px 0; }
.jutsu { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 14.5px; }
.jutsu dt { font-family: var(--font-title); font-weight: 800; color: var(--gold-l); }
.jutsu dd { margin: 0; color: #ddd5c3; }
.ougi { margin: 14px 0 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-title); font-weight: 800; font-size: 22px; }
.ougi span { font-family: var(--font); font-size: 12px; font-weight: 900; letter-spacing: .1em; padding: 2px 10px; border-radius: 6px; color: var(--sumi); background: linear-gradient(180deg, #ffe58a, #e7b73e); }

/* ---------- 見どころ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 70px; }
.feature.flip .phones { order: 2; }
.feature-body h3 { margin: 6px 0 14px; font-family: var(--font-title); font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.45; }
.feature-body p { margin: 0 0 12px; color: #ddd5c3; }
.phones.duo { height: 540px; }
.phones .shiki { position: absolute; width: 190px; height: auto; right: 0; top: -20px; z-index: 3; filter: drop-shadow(0 0 24px rgba(255, 214, 120, .45)) drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
.more { list-style: none; margin: 80px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.more li { display: flex; gap: 16px; align-items: center; padding: 4px 0 4px 18px; border-left: 2px solid var(--shu); }
.more img { flex: none; width: 70px; height: auto; aspect-ratio: 585 / 1266; object-fit: cover; object-position: top; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }
.more b { display: block; font-family: var(--font-title); font-size: 19px; }
.more span { display: block; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ---------- 物語 */
.story-sec { overflow: hidden; isolation: isolate; }
.story-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 18, 38, .92) 0%, rgba(10, 18, 38, .8) 50%, rgba(10, 18, 38, .45) 100%), linear-gradient(180deg, var(--bg-2), rgba(10, 18, 38, 0) 20%, rgba(10, 18, 38, 0) 80%, var(--bg)), url(media/bg-1.webp) center / cover no-repeat; }
.story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: center; }
.story-body p { margin: 0 0 14px; font-size: 16.5px; }
.story-body .story-note { margin-top: 22px; font-size: 14px; color: var(--muted); }
.story-phone { width: 270px; justify-self: center; transform: rotate(-3deg); }

/* ---------- 画面 */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.gallery-nav { display: flex; gap: 10px; }
.gallery-nav button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: var(--panel); border: 1px solid var(--line-2); }
.gallery-nav button:hover { background: var(--panel-2); }
.gallery-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gallery {
  --edge: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 18px var(--edge) 12px; scroll-padding-inline: var(--edge);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery button { flex: none; width: 210px; padding: 0; border: 0; background: none; cursor: zoom-in; scroll-snap-align: start; text-align: left; }
.gallery img { width: 100%; height: auto; aspect-ratio: 585 / 1266; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 1.5px rgba(232, 199, 122, .5), 0 14px 30px rgba(0, 0, 0, .5); transition: transform .15s; }
.gallery button:hover img { transform: translateY(-3px); }
.gallery span { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.55; }

/* ---------- はじめかた */
.start { overflow: hidden; isolation: isolate; }
.start-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 18, 38, .7) 30%, rgba(10, 18, 38, .85) 100%), url(media/bg-5.webp) center / cover no-repeat; }
.start-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 44px; border-radius: 18px; background: rgba(10, 18, 38, .9);
  box-shadow: inset 0 0 0 1px var(--gold-d), inset 0 0 0 5px rgba(6, 10, 24, .9), inset 0 0 0 6px rgba(230, 196, 115, .35), 0 30px 60px rgba(0, 0, 0, .45);
}
.howto { margin: 18px 0 14px; padding-left: 1.4em; }
.howto li { margin-bottom: 6px; }
.howto li::marker { font-family: var(--font-title); font-weight: 800; color: var(--gold); }
.muted { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.spec { margin: 0; display: grid; grid-template-columns: max-content 1fr; font-size: 14.5px; }
.spec dt, .spec dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec dt { padding-right: 20px; font-weight: 700; color: var(--gold); }
.legal { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.legal a { color: var(--muted); }

/* ---------- フッター */
.foot { padding: 30px 0 40px; background: #060a18; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot a { color: #fff; text-decoration: none; font-weight: 700; }
.foot a b { font-weight: 900; }

/* ---------- 拡大 */
.lightbox { padding: 0; border: 0; background: none; max-width: 94vw; max-height: 94vh; overflow: visible; color: var(--text); }
.lightbox::backdrop { background: rgba(4, 8, 20, .88); }
.lightbox img { max-height: 84vh; width: auto; border-radius: 20px; box-shadow: 0 0 0 1.5px rgba(232, 199, 122, .5); }
.lightbox p { margin: 10px 0 0; text-align: center; font-weight: 700; font-size: 14px; }
.lightbox .close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); font-size: 22px; line-height: 1; cursor: pointer; }

/* ---------- 狭い画面 */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav .btn.sm { margin-left: auto; }
  .hero { padding-top: 8px; }
  .hero-bg { background:
    linear-gradient(180deg, rgba(6, 10, 24, .1) 0%, rgba(6, 10, 24, .25) 36%, rgba(6, 10, 24, .88) 56%, var(--bg) 100%),
    url(media/hero.jpg) 30% 0 / auto 62% no-repeat, var(--bg); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .party { width: min(100%, 440px); margin: 0 auto -18%; }
  .hero-copy { text-align: center; }
  .hero-logo img { margin: 0 auto; width: min(92%, 440px); }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .battle, .feature, .story, .start-box { grid-template-columns: 1fr; }
  .feature.flip .phones { order: 0; }
  .phones, .phones.duo { height: 470px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phones .phone { width: 210px; }
  .phones .phone:not(.back) { left: 8%; }
  .phones .phone.back { width: 185px; left: 48%; }
  .phones .shiki { width: 140px; }
  .chara-card { grid-template-columns: 1fr; }
  .chara-art { height: 440px; }
  .more { grid-template-columns: 1fr; }
  .story-phone { width: 220px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 64px 0; }
  .nav-logo img { height: 30px; }
  .studio { font-size: 12px; }
  .btn.play { font-size: 19px; padding: 12px 26px; }
  .launch { justify-content: center; }
  .facts { gap: 4px 20px; }
  .facts li { font-size: 14px; }
  .steps li { padding: 14px 0; gap: 14px; }
  .phones, .phones.duo { height: 400px; }
  .phones .phone { width: 180px; }
  .phones .phone.back { width: 160px; left: 46%; }
  .chara-pick { gap: 8px; }
  .chara-pick button { width: calc(25% - 6px); font-size: 12.5px; }
  .chara-pick button img { width: 56px; height: 56px; }
  .chara-art { height: 380px; }
  .chara-info { padding: 22px 18px; }
  .chara-name { font-size: 36px; }
  .jutsu { grid-template-columns: 1fr; gap: 0; }
  .jutsu dd { margin-bottom: 8px; }
  .start-box { padding: 26px 18px; gap: 28px; }
  .gallery { --edge: 16px; }
  .gallery button { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chara-art { animation: none; }
  .btn, .gallery img, .chara-pick button { transition: none; }
}

/* ---------- ほぬらぼの正式ロゴ */
.studio .studio-logo { display: block; padding: 4px 0; }
.studio-logo img { display: block; width: auto; height: 26px; }
.foot .foot-logo img { display: block; width: auto; height: 38px; }
