:root {
  --lav: #9b6bd6;
  --lav-deep: #7d4fc2;
  --lav-pale: #f2ecfb;
  --pink: #e8a0cf;
  --pink-deep: #d9608a;
  --pink-pale: #fdf3f8;
  --ink: #333a40;
  --ink-soft: #6b6f76;
  --line: #e9e2f3;
  --white: #fff;
  --green: #06c755;
  --green-deep: #05a847;
  --shadow: 0 10px 30px rgba(123, 79, 194, .10);
  --max: 960px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2 { line-height: 1.35; margin: 0; }
p { margin: 0; }
.nowrap { white-space: nowrap; }

.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.logo-mark { display: block; width: 28px; height: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease;
}
.btn:active { transform: scale(.98); }
.btn-line { background: var(--green); color: var(--white); box-shadow: 0 8px 20px rgba(6, 199, 85, .22); }
.btn-line:hover { background: var(--green-deep); }
.btn-primary { background: var(--lav); color: var(--white); box-shadow: 0 8px 20px rgba(155, 107, 214, .25); }
.btn-primary:hover { background: var(--lav-deep); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-wide { width: min(100%, 280px); }

.play-top { background: linear-gradient(160deg, var(--pink-pale), var(--lav-pale) 60%, var(--white)); }
.play-intro { display: none; }
.play-intro h1 { font-size: 40px; font-weight: 900; }
.play-intro h1 em { font-style: normal; color: var(--lav-deep); }
.hero-lead { margin-top: 14px; font-size: 16px; color: var(--ink-soft); line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; }
.btn-ghost { background: var(--white); color: var(--lav-deep); border: 2px solid var(--lav); }
.play-frame { height: calc(100vw * 16 / 9); height: max(calc(100vw * 16 / 9), calc(100svh - 112px)); }
.play-frame iframe, .game-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--lav-pale); }
.play-cue {
  display: flex; align-items: center; justify-content: center; height: 52px;
  color: var(--lav-deep); font-size: 13px; font-weight: 700; text-decoration: none;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.play-cue span::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }

.sec { padding: 52px 16px; text-align: center; scroll-margin-top: 60px; }
.sec > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.sec-soft { background: var(--pink-pale); }
.sec-title { font-size: 24px; font-weight: 900; margin-bottom: 28px; }
.sec-price { margin-top: -20px; margin-bottom: 28px; font-weight: 700; color: var(--lav-deep); font-size: 16px; }
.sec-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.hint { margin-top: 14px; font-size: 12px; color: var(--ink-soft); }
.flow p, .faq summary, .faq p, .sec-note, .game-text p, .pr-name, .hero-lead { text-wrap: balance; word-break: auto-phrase; }


.game-text { max-width: 380px; margin: 0 auto 22px; }
.game-text > p:first-child { font-size: 15px; color: var(--ink); }
.game-text .hint { margin-top: 8px; }
.game-frame {
  position: relative; width: calc(100vw - 20px); margin-left: calc(50% - 50vw + 10px);
  border: 6px solid transparent; border-radius: 32px;
  background: linear-gradient(#1d1a21, #1d1a21) padding-box, linear-gradient(150deg, #5c5464, #27222c 40%, #1b1720 62%, #4a4452) border-box;
  box-shadow: 0 0 0 1px #0f0d12, 0 12px 30px rgba(51, 58, 64, .22);
}
.game-frame iframe { height: auto; aspect-ratio: 9 / 16; border-radius: 26px; }
.game-frame::before, .game-frame::after { content: ""; position: absolute; width: 3px; background: #3a3540; }
.game-frame::before { left: -10px; top: 18%; height: 44px; border-radius: 2px 0 0 2px; box-shadow: 0 58px 0 #3a3540; }
.game-frame::after { right: -10px; top: 24%; height: 70px; border-radius: 0 2px 2px 0; }

.phone { margin: 0; display: block; width: 100%; max-width: 240px; container-type: inline-size; }
.phone-body {
  position: relative; padding: 3.4cqw; border-radius: 16cqw;
  background: linear-gradient(150deg, #5c5464 0%, #27222c 38%, #1b1720 62%, #4a4452 100%);
  box-shadow: inset 0 0 0 .5cqw rgba(255, 255, 255, .18), inset 0 0 0 1.4cqw #131016, 0 18px 40px rgba(51, 58, 64, .28);
}
.phone-body::before, .phone-body::after { content: ""; position: absolute; width: 1.3cqw; background: #3a3540; }
.phone-body::before { left: -1.2cqw; top: 30cqw; height: 11cqw; border-radius: 1cqw 0 0 1cqw; box-shadow: 0 15cqw 0 #3a3540; }
.phone-body::after { right: -1.2cqw; top: 40cqw; height: 20cqw; border-radius: 0 1cqw 1cqw 0; }
.phone-screen { border-radius: 12.8cqw; overflow: hidden; background: #fff7fb; }
.phone-status { position: relative; height: 11.5cqw; display: flex; align-items: center; justify-content: space-between; padding: .8cqw 7.5cqw 0 9.5cqw; font-size: 4.8cqw; font-weight: 700; color: #2b2530; line-height: 1; }
.ps-island { position: absolute; left: 50%; top: 2.4cqw; width: 30cqw; height: 8.4cqw; transform: translateX(-50%); border-radius: 5cqw; background: #111014; }
.ps-icons { display: flex; align-items: center; gap: 1.6cqw; }
.ps-icons svg { display: block; height: 3.9cqw; width: auto; fill: currentColor; }
.vwrap { position: relative; cursor: pointer; }
.phone video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #f2ecfb; }
.vplay { position: absolute; left: 50%; top: 58%; width: 18cqw; height: 18cqw; padding: 0; border: 0; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255, 255, 255, .9); box-shadow: 0 2cqw 6cqw rgba(70, 40, 90, .28); cursor: pointer; transition: opacity .2s; }
.vplay::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -3.6cqw 0 0 -2.2cqw; border-left: 6.4cqw solid var(--pink-deep); border-top: 3.6cqw solid transparent; border-bottom: 3.6cqw solid transparent; }
.vwrap.playing .vplay { opacity: 0; pointer-events: none; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 1.2cqw; background: rgba(255, 255, 255, .35); opacity: 0; transition: opacity .2s; }
.vbar i { display: block; width: 0; height: 100%; background: var(--pink-deep); }
.vwrap.playing .vbar, .vwrap.paused .vbar { opacity: 1; }
.phone-home { height: 7cqw; display: grid; place-items: center; }
.phone-home::after { content: ""; width: 34cqw; height: 1.5cqw; border-radius: 1cqw; background: #2b2530; }

.manga-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
.manga-thumb {
  padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--white); cursor: pointer; box-shadow: var(--shadow); font: inherit; color: inherit;
}
.manga-thumb img { width: 100%; height: auto; }
.manga-thumb { position: relative; }
.manga-more { position: absolute; left: 50%; bottom: 10px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 12px rgba(80, 50, 110, .25); }
.manga-more::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -7px 0 0 -5px; border-right: 2.5px solid var(--lav-deep); border-bottom: 2.5px solid var(--lav-deep); transform: rotate(45deg); }

.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; justify-items: center; max-width: 560px; }

.price-table { max-width: 560px; text-align: left; border-top: 1px solid var(--line); }
.pr { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.pr-name { font-size: 15px; font-weight: 700; line-height: 1.5; }
.pr-val { text-align: right; line-height: 1.5; }
.pr-val b { font-size: 16px; color: var(--lav-deep); white-space: nowrap; }
.pr small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-soft); white-space: nowrap; }

.flow { list-style: none; counter-reset: step; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.flow li {
  counter-increment: step; display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); text-align: left;
}
.flow li::before {
  content: counter(step); flex: 0 0 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--lav));
}
.flow b { display: block; font-size: 15px; line-height: 30px; }
.flow p { margin-top: 2px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

.faq { display: grid; gap: 10px; max-width: 560px; text-align: left; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 700; font-size: 15px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; color: var(--lav); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 14px; font-size: 14px; color: var(--ink-soft); }

.or { margin: 34px 0 0; font-size: 13px; color: var(--ink-soft); }
.form { max-width: 420px; margin: 14px auto 0; text-align: left; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.form input, .form textarea {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--lav); border-color: var(--lav); }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: center; }
.form-note { text-align: center; font-size: 14px; min-height: 1.8em; }
.form-note[data-state="ok"] { color: var(--green-deep); font-weight: 700; }
.form-note[data-state="err"] { color: var(--pink-deep); font-weight: 700; }

.foot { text-align: center; padding: 26px 16px 36px; color: var(--ink-soft); font-size: 12px; border-top: 1px solid var(--line); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(30, 20, 40, .9); }
.lightbox-body { width: 100%; height: 100%; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 16px; }
.lightbox-body img { width: min(92vw, 540px); height: auto; border-radius: 12px; }
.lightbox-close {
  position: fixed; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--white); color: var(--ink); font-size: 26px; line-height: 1;
}

@media (max-width: 599px) {
  .bar { position: relative; }
  .sec { scroll-margin-top: 0; }
}

@media (min-width: 600px) {
  .play-top { padding: 32px 24px 0; }
  .play-frame, .game-frame {
    position: relative; width: clamp(320px, calc((100vh - 150px) * 0.5625 + 20px), 400px); height: auto; margin: 0 auto;
    border: 10px solid transparent; border-radius: 42px;
    background: linear-gradient(#1d1a21, #1d1a21) padding-box, linear-gradient(150deg, #5c5464, #27222c 40%, #1b1720 62%, #4a4452) border-box;
    box-shadow: 0 0 0 1px #0f0d12, 0 20px 50px rgba(51, 58, 64, .25);
  }
  .play-frame iframe, .game-frame iframe { height: auto; aspect-ratio: 9 / 16; border-radius: 32px; }
  .play-frame::before, .play-frame::after { content: ""; position: absolute; width: 3px; background: #3a3540; }
  .play-frame::before, .game-frame::before { left: -14px; top: 17%; height: 40px; border-radius: 2px 0 0 2px; box-shadow: 0 54px 0 #3a3540; }
  .play-frame::after, .game-frame::after { right: -14px; top: 23%; height: 66px; border-radius: 0 2px 2px 0; }
  .play-cue { background: transparent; border: 0; }
}

@media (min-width: 900px) {
  .play-top {
    display: grid; grid-template-columns: minmax(0, 460px) auto; justify-content: center; align-items: center;
    gap: 64px; padding: 40px 24px 32px;
  }
  .play-intro { display: block; }
  .hero-actions .btn { min-width: 170px; }
  .play-cue { grid-column: 1 / -1; }
  .game-box { display: grid; grid-template-columns: auto minmax(0, 380px); justify-content: center; align-items: center; gap: 56px; text-align: left; }
  .game-frame { order: -1; margin: 0; }
  .game-text { margin: 0; }
}

@media (min-width: 640px) {
  .sec { padding: 68px 24px; }
  .sec-title { font-size: 30px; }
  .manga-grid { grid-template-columns: repeat(4, 1fr); }
}
