/* 戦国パズル合戦 — 夜の絵巻（紺・金・和紙）。字はゲームと同じ Yuji Syuku／Shippori Mincho（同梱・SIL OFL）。 */
@font-face { font-family: "Yuji Syuku"; src: url("/fonts/yuji-syuku.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("/fonts/shippori-mincho.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Shippori Mincho"; src: url("/fonts/shippori-mincho-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #0D1944;
  --navy-deep: #070e29;
  --navy-soft: #17275f;
  --gold: #EABD59;
  --gold-soft: #f3d692;
  --gold-deep: #9c7228;
  --washi: #F3EBD8;
  --washi-edge: #e3d5b4;
  --sumi: #221f1a;
  --ink-soft: #574e40;
  --shu: #B93A22;
  --cream: #F6EEDC;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --brush: "Yuji Syuku", "Shippori Mincho", serif;
  --wrap: min(1120px, 100% - 2 * clamp(16px, 5vw, 48px));
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --fibre: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .45' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .36  0 0 0 0 .22  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cream);
  background: var(--grain), radial-gradient(120% 70% at 70% 0%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  background-color: var(--navy);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---- 上の帯 ---- */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px clamp(16px, 5vw, 48px);
  background: rgba(7, 14, 41, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(234, 189, 89, .28);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(234, 189, 89, .45); }
.brand-name { font-family: var(--brush); font-size: 1.12rem; letter-spacing: .06em; color: var(--cream); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; font-size: .86rem; letter-spacing: .08em; }
.nav a { text-decoration: none; color: rgba(246, 238, 220, .78); padding: 6px 0; }
.nav a:hover { color: var(--gold); }
.nav .lang { border: 1px solid rgba(234, 189, 89, .55); color: var(--gold); padding: 4px 12px; border-radius: 999px; }
@media (max-width: 720px) {
  .nav a:not(.lang):not([href*="support"]):not([href*="privacy"]) { display: none; }
  .nav { gap: 4px 14px; font-size: .8rem; }
}

/* ---- 表紙 ---- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 72px) 0 clamp(48px, 8vw, 96px); }
.hero-sky {
  position: absolute; inset: -10% -20% auto auto; width: min(980px, 130vw); aspect-ratio: 1;
  background: url("/img/hero-bg.webp") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
  opacity: .55;
}
.hero-in {
  position: relative; width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr auto; grid-template-areas: "copy art title"; align-items: center; gap: clamp(16px, 4vw, 48px);
}
.hero-title { grid-area: title; margin: 0; font-family: var(--brush); font-weight: 400; color: var(--gold); line-height: 1.02; display: flex; gap: .18em; }
.hero-title .v { writing-mode: vertical-rl; font-size: clamp(3.2rem, 9vw, 7.4rem); letter-spacing: .08em; text-shadow: 0 0 28px rgba(234, 189, 89, .28); }
.hero-title .v + .v { font-size: clamp(2.1rem, 5.6vw, 4.6rem); padding-top: 1.6em; color: var(--gold-soft); }
.hero-title.en { flex-direction: column; writing-mode: horizontal-tb; }
.hero-title.en span:first-child { font-size: clamp(3rem, 9vw, 6.6rem); letter-spacing: .02em; }
.hero-title.en .sub { font-family: var(--serif); font-size: clamp(1rem, 2.4vw, 1.5rem); letter-spacing: .42em; text-transform: uppercase; color: var(--gold-soft); }
.hero-art { grid-area: art; position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 189, 89, .22) 0%, rgba(234, 189, 89, .05) 55%, transparent 70%);
}
.helmet { position: relative; width: min(520px, 100%); margin: 0 auto; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45)); animation: bob 7s ease-in-out infinite; }
.hero-copy { grid-area: copy; }
.tagline { margin: 0 0 .5em; font-family: var(--brush); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.4; color: var(--cream); }
.short { margin: 0 0 1.6em; color: rgba(246, 238, 220, .82); max-width: 32em; }
.hero-title, .hero-art, .tagline, .short, .hero .stores { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-art { animation-delay: .12s; }
.tagline { animation-delay: .24s; }
.short { animation-delay: .34s; }
.hero .stores { animation-delay: .44s; }
@media (max-width: 860px) {
  /* 狭い画面: 兜を大きく、縦の題字は兜の右上に重ねる（題字が幅を取って兜が豆粒になっていた）。 */
  .hero-in { grid-template-columns: 1fr; grid-template-areas: "art" "copy"; }
  .hero-title:not(.en) { position: absolute; top: -6px; right: 0; z-index: 2; }
  .hero-title:not(.en) .v { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-title:not(.en) .v + .v { font-size: clamp(1.9rem, 9vw, 3.1rem); }
  .hero-art { margin-right: 24%; }
  .helmet { width: min(74vw, 420px); }
  .hero-sky { inset: -4% -45% auto auto; }
  .hero-in:has(.hero-title.en) { grid-template-areas: "title" "art" "copy"; }
  .hero-in:has(.hero-title.en) .hero-art { margin: 0 auto; }
}

/* ---- ストアの札 ---- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; min-height: 56px; padding: 8px 18px;
  border-radius: 12px; text-decoration: none; background: var(--navy-deep); color: var(--cream);
  border: 1px solid var(--gold); box-shadow: inset 0 0 0 3px var(--navy-deep), inset 0 0 0 4px rgba(234, 189, 89, .35);
}
.store-small { font-size: .72rem; letter-spacing: .14em; color: var(--gold-soft); }
.store-big { font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; }
.store.is-soon { border-style: dashed; opacity: .78; cursor: default; }
a.store:hover { background: var(--navy-soft); }

/* ---- 和紙の段 ---- */
.paper {
  position: relative; width: var(--wrap); margin: 0 auto clamp(40px, 7vw, 80px); padding: clamp(28px, 5vw, 64px) clamp(22px, 6vw, 80px);
  background: var(--fibre), linear-gradient(180deg, var(--washi) 0%, #efe4cc 100%);
  color: var(--sumi); border-radius: 3px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(156, 114, 40, .25);
}
.paper::before, .paper::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: linear-gradient(90deg, var(--gold-deep), var(--gold) 40%, var(--gold-deep)); opacity: .85; }
.paper::before { top: 0; }
.paper::after { bottom: 0; }
.intro { max-width: 860px; text-align: center; }
.opening, .tagline, .facts li, .feat h3, .doc h1, .free h2 { text-wrap: balance; }
.opening { font-family: var(--brush); font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.6; margin: 0 0 .9em; }
.intro p:last-child { margin: 0 auto; max-width: 36em; color: var(--ink-soft); }

/* ---- ひと目で ---- */
.facts { width: var(--wrap); margin: 0 auto clamp(40px, 7vw, 80px); text-align: center; }
.eyebrow { font-family: var(--serif); font-weight: 400; font-size: .82rem; letter-spacing: .5em; color: var(--gold); margin: 0 0 1.2em; }
.eyebrow::before, .eyebrow::after { content: "—"; margin: 0 .8em; opacity: .55; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.facts li {
  font-family: var(--brush); font-size: 1.08rem; line-height: 1.4; padding: 18px 10px; border: 1px solid rgba(234, 189, 89, .45);
  border-radius: 2px; background: linear-gradient(180deg, rgba(234, 189, 89, .08), rgba(234, 189, 89, 0)); display: grid; place-items: center; min-height: 86px;
}
@media (max-width: 860px) { .facts ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .facts ul { grid-template-columns: repeat(2, 1fr); } .facts li { font-size: 1rem; } }

/* ---- 特徴 ---- */
.feats { width: var(--wrap); margin: 0 auto clamp(48px, 8vw, 96px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 28px); }
.feat { position: relative; padding: 26px 26px 22px 30px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(234, 189, 89, .07), transparent 70%); }
.feat h3 { margin: 0 0 .5em; font-family: var(--brush); font-weight: 400; font-size: 1.42rem; color: var(--gold); letter-spacing: .04em; }
.feat p { margin: 0; color: rgba(246, 238, 220, .86); }
@media (max-width: 720px) { .feats { grid-template-columns: 1fr; } }

/* ---- 画面（絵巻のように横へ） ---- */
.screens { margin: 0 auto clamp(48px, 8vw, 96px); text-align: center; }
.lead { margin: -.4em auto 1.4em; color: rgba(246, 238, 220, .74); font-size: .95rem; padding: 0 16px; }
.strip {
  display: flex; justify-content: safe center; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px clamp(16px, 5vw, 48px) 24px;
  scrollbar-color: var(--gold-deep) transparent;
}
.shot { flex: 0 0 auto; margin: 0; width: clamp(196px, 13.4vw, 250px); scroll-snap-align: center; }
@media (max-width: 860px) { .shot { width: clamp(196px, 52vw, 260px); } }
.shot img { border-radius: 22px; border: 1px solid rgba(234, 189, 89, .55); box-shadow: 0 0 0 6px var(--navy-deep), 0 0 0 7px rgba(234, 189, 89, .3), 0 24px 40px -18px rgba(0, 0, 0, .7); }

/* ---- はじめは無料・値段 ---- */
.free h2 { margin: 0 0 .6em; font-family: var(--brush); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.free > p { max-width: 38em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 1.6em 0; padding: 18px 22px; border: 1px solid rgba(185, 58, 34, .45); border-radius: 2px; background: rgba(185, 58, 34, .05); }
.price-name { font-family: var(--brush); font-size: 1.3rem; }
.price-num { font-family: var(--brush); font-size: 2.3rem; color: var(--shu); line-height: 1; }
.price-note { flex-basis: 100%; font-size: .86rem; color: var(--ink-soft); }
.free .stores .store { background: var(--sumi); }
.closing { margin: 2em 0 0; font-family: var(--brush); color: var(--ink-soft); }

/* ---- 文書（サポート・プライバシー） ---- */
.is-doc main { padding: clamp(28px, 6vw, 64px) 0 8px; }
.doc { max-width: 820px; }
.doc h1 { margin: 0 0 .4em; font-family: var(--brush); font-weight: 400; font-size: clamp(1.9rem, 5vw, 2.7rem); letter-spacing: .04em; word-break: keep-all; overflow-wrap: anywhere; }
.doc h2 { margin: 2em 0 .6em; font-size: 1.18rem; font-weight: 700; padding-bottom: .3em; border-bottom: 1px solid rgba(156, 114, 40, .45); }
.doc p, .doc li { color: var(--sumi); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: .3em 0; }
.doc code { font-family: ui-monospace, Menlo, monospace; font-size: .84em; background: rgba(156, 114, 40, .12); padding: .05em .35em; border-radius: 3px; }
.doc a { color: var(--shu); }
.updated { margin: 0 0 1.4em; font-size: .88rem; color: var(--ink-soft); }
.contact { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.contact dt { color: var(--ink-soft); }
.contact dd { margin: 0; font-weight: 700; }
/* 特定商取引法に基づく表記（項目｜表示。狭い画面では縦に積む） */
.law { margin: 1.2em 0 0; border-top: 1px solid rgba(156, 114, 40, .45); }
.law > div { display: grid; grid-template-columns: 11em 1fr; gap: 6px 20px; padding: 14px 0; border-bottom: 1px solid rgba(156, 114, 40, .3); }
.law dt { font-weight: 700; color: var(--sumi); }
.law dd { margin: 0; color: var(--sumi); overflow-wrap: anywhere; }
.law dd p { margin: 0 0 .6em; }
.law dd p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .law > div { grid-template-columns: 1fr; gap: 4px; } }
.faq details { border-bottom: 1px solid rgba(156, 114, 40, .3); padding: 2px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.3rem; color: var(--shu); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; }
.nf h1 .nf-en { display: block; font-family: var(--serif); font-size: 1rem; letter-spacing: .2em; color: var(--ink-soft); }

/* ---- 下の帯 ---- */
.foot { margin-top: clamp(32px, 6vw, 64px); background: var(--navy-deep); border-top: 1px solid rgba(234, 189, 89, .25); }
.foot-in { width: var(--wrap); margin: 0 auto; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); display: flex; gap: 18px; align-items: flex-start; font-size: .9rem; }
.seal { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; background: var(--shu); color: var(--washi); font-family: var(--brush); font-size: 1.5rem; border-radius: 4px; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18); }
.foot p { margin: 0 0 .3em; }
.foot a { color: var(--gold-soft); }
.foot-links a { white-space: nowrap; } /* 項目の名前の途中で折らない（特定商取引法に基づく表記が長い） */
.foot-note { color: rgba(246, 238, 220, .6); font-size: .82rem; }
.foot-copy { color: rgba(246, 238, 220, .5); font-size: .8rem; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
