/* kusukawa.jp と同じ配色トークン・背景・フォントを使う */
:root{
  --bg:#0b0e18;
  --bg-2:#131a2e;
  --surface:rgba(255,255,255,.045);
  --surface-hover:rgba(255,255,255,.085);
  --border:rgba(255,255,255,.10);
  --border-hover:rgba(255,255,255,.22);
  --text:#eef1f8;
  --muted:#98a2bd;
  --accent:#7dd3fc;
  --accent-2:#c4b5fd;
  --glow-1:rgba(125,211,252,.20);
  --glow-2:rgba(196,181,253,.18);
  --shadow:0 18px 40px -18px rgba(0,0,0,.75);
}
:root[data-theme="light"]{
  --bg:#f6f7fb;
  --bg-2:#e9eef9;
  --surface:rgba(255,255,255,.72);
  --surface-hover:#ffffff;
  --border:rgba(16,24,50,.10);
  --border-hover:rgba(16,24,50,.22);
  --text:#141a2e;
  --muted:#5c6684;
  --accent:#0d76c2;
  --accent-2:#6d4bd8;
  --glow-1:rgba(13,118,194,.14);
  --glow-2:rgba(109,75,216,.12);
  --shadow:0 18px 36px -20px rgba(20,26,46,.28);
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    --bg:#f6f7fb;
    --bg-2:#e9eef9;
    --surface:rgba(255,255,255,.72);
    --surface-hover:#ffffff;
    --border:rgba(16,24,50,.10);
    --border-hover:rgba(16,24,50,.22);
    --text:#141a2e;
    --muted:#5c6684;
    --accent:#0d76c2;
    --accent-2:#6d4bd8;
    --glow-1:rgba(13,118,194,.14);
    --glow-2:rgba(109,75,216,.12);
    --shadow:0 18px 36px -20px rgba(20,26,46,.28);
  }
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic UI",Meiryo,system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";
  position:fixed; inset:0; z-index:-1;
  background:
    radial-gradient(60rem 40rem at 12% -10%, var(--glow-1), transparent 60%),
    radial-gradient(48rem 36rem at 92% 8%, var(--glow-2), transparent 62%),
    linear-gradient(170deg, var(--bg) 0%, var(--bg-2) 100%);
}
a{color:var(--accent); text-underline-offset:.2em}
a:hover{color:var(--accent-2)}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:.3rem}

.wrap{
  max-width:50rem;
  margin:0 auto;
  padding:1.25rem 16px clamp(2.5rem,6vh,4rem);
}

/* ===== 上部バー ===== */
.topbar{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  margin-bottom:clamp(1.5rem,5vh,3rem);
}
.topbar .back{
  display:inline-flex; align-items:center; gap:.6rem;
  color:var(--text); text-decoration:none; font-weight:600; font-size:.95rem;
}
.topbar .back img{width:28px; height:28px; border-radius:.45rem}
.topbar .lang{
  font-size:.8rem; color:var(--muted); text-decoration:none;
  border:1px solid var(--border); border-radius:999px; padding:.25rem .8rem;
  background:var(--surface);
  transition:border-color .2s ease,color .2s ease;
}
.topbar .lang:hover{color:var(--text); border-color:var(--border-hover)}

/* ===== ヒーロー ===== */
.hero{text-align:center; margin-bottom:clamp(2rem,5vh,3rem)}
.mark{
  display:block; margin:0 auto 1.1rem;
  width:5.5rem; height:5.5rem;
  border:1px solid var(--border); border-radius:1.4rem;
  background:var(--surface); box-shadow:var(--shadow);
}
h1{
  margin:0;
  font-size:clamp(2.1rem,7vw,3.25rem);
  line-height:1.2;
  letter-spacing:-.02em;
  font-weight:700;
  background:linear-gradient(100deg,var(--text) 22%,var(--accent) 68%,var(--accent-2) 100%);
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
}
.tagline{
  margin:.8rem auto 0; max-width:34rem;
  color:var(--muted); font-size:clamp(.95rem,2.4vw,1.1rem); line-height:1.7;
}
.banner{
  display:block; width:100%; height:auto; aspect-ratio:1024/500;
  border:1px solid var(--border); border-radius:1.4rem;
  box-shadow:var(--shadow); background:var(--surface);
}
.sr-only{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.hero .tagline{margin-top:1.4rem; text-wrap:balance; word-break:auto-phrase}
.stores{display:flex; flex-wrap:wrap; justify-content:center; gap:.9rem; margin:1.6rem 0 0}
.store{
  display:flex; flex-direction:column; align-items:center; gap:.1rem;
  min-width:11rem; padding:.7rem 1.3rem .75rem;
  border:1px solid var(--border); border-radius:1rem; background:var(--surface);
  color:var(--text); text-decoration:none;
  transition:transform .22s ease, border-color .22s ease, background-color .22s ease;
}
.store:hover{transform:translateY(-3px); border-color:var(--border-hover); background:var(--surface-hover); color:var(--text)}
.store .plat{font-size:.72rem; color:var(--muted); letter-spacing:.08em}
.store .get{font-size:.95rem; font-weight:600}
.prose .stores{justify-content:flex-start}

/* ===== スクリーンショット ===== */
.shots{margin:0 -16px clamp(2rem,5vh,3rem)}
.shots ul{
  list-style:none; margin:0; padding:.25rem 16px 1rem;
  display:flex; gap:.9rem; overflow-x:auto;
  scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
}
.shots li{flex:0 0 auto; scroll-snap-align:center}
.shots img{
  display:block; width:min(62vw,15rem); height:auto;
  border:1px solid var(--border); border-radius:1.1rem; box-shadow:var(--shadow);
  background:var(--surface);
}
@media (min-width:52rem){
  .shots ul{justify-content:center; flex-wrap:wrap; overflow:visible}
  .shots img{width:9.5rem}
}

/* ===== 本文 ===== */
section{margin-top:clamp(2rem,5.5vh,3rem)}
.sec-head{display:flex; align-items:center; gap:.85rem; margin:0 0 1.1rem}
.sec-head h2{
  margin:0; font-size:1.05rem; font-weight:700; letter-spacing:.04em; color:var(--text);
}
.sec-head::after{content:""; flex:1; height:1px; background:linear-gradient(90deg,var(--border),transparent)}

.prose p{margin:.2rem 0 1rem}
.prose ul{margin:.2rem 0 1rem; padding-left:1.4rem}
.prose li{margin:.25rem 0}
.prose h3{
  margin:1.6rem 0 .4rem; font-size:1rem; font-weight:700; color:var(--text);
}
.prose h3::before{content:"Q. "; color:var(--accent)}
.legal h3::before{content:none}
.prose hr{border:0; border-top:1px solid var(--border); margin:2rem 0}
.lead{font-size:1.02rem}
.lead .q{color:var(--muted)}

.legal-links{display:flex; flex-wrap:wrap; gap:.6rem}
.legal-links a{
  padding:.35rem .9rem; font-size:.88rem; text-decoration:none; color:var(--text);
  border:1px solid var(--border); border-radius:999px; background:var(--surface);
  transition:border-color .2s ease, background-color .2s ease;
}
.legal-links a:hover{border-color:var(--border-hover); background:var(--surface-hover)}

/* ===== 規約・ポリシー ===== */
.doc-note{
  margin:0 0 1.5rem; padding:.9rem 1.1rem; font-size:.88rem; color:var(--muted);
  border:1px solid var(--border); border-radius:1rem; background:var(--surface);
}
.legal{
  margin-top:1.5rem; padding:clamp(1.1rem,3vw,1.8rem);
  border:1px solid var(--border); border-radius:1.2rem; background:var(--surface);
  scroll-margin-top:1rem;
}
.legal+.legal{margin-top:2rem}
.legal .doc-title{font-size:clamp(1.5rem,5vw,2rem); margin-bottom:1rem}
.legal h2{
  margin:2rem 0 .6rem; padding-bottom:.35rem; font-size:1.1rem;
  border-bottom:1px solid var(--border);
}
.legal h3{margin:1.3rem 0 .4rem; font-size:1rem}
.legal p{overflow-wrap:anywhere}

/* ===== フッター ===== */
footer{
  margin-top:clamp(3rem,8vh,4.5rem);
  padding-top:1.25rem; border-top:1px solid var(--border);
  display:flex; flex-wrap:wrap; gap:.75rem 1rem; align-items:center;
  font-size:.8rem; color:var(--muted);
}
footer a{color:var(--muted); text-decoration:none}
footer a:hover{color:var(--text); text-decoration:underline}
.foot-links{display:flex; flex-wrap:wrap; gap:.4rem 1rem; width:100%}
#theme{
  margin-left:auto;
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.4rem .75rem;
  border:1px solid var(--border); border-radius:999px; background:var(--surface);
  color:var(--muted); font:inherit; font-size:.8rem; cursor:pointer;
  transition:border-color .2s ease,color .2s ease;
}
#theme:hover{border-color:var(--border-hover); color:var(--text)}
#theme svg{width:.95rem; height:.95rem; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round}

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