/* ジョイスクリプト 3D試作：下層ページ
   背景は白〜明るい色だけ。読む日本語は16px以上、本文18px。 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--fg); background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 18px; line-height: 1.85; font-feature-settings: "palt";
  --pc: #d1242f; --pc-soft: #fff4f4; --pc-ink: #1f2328;
}
a { color: inherit; }
img, video { max-width: 100%; }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.25; letter-spacing: -.01em; font-weight: 900; margin: 0 0 22px; }
h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.35; font-weight: 900; margin: 0 0 22px; }
h3 { font-size: 21px; line-height: 1.5; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 1.3vw, 21px); color: var(--sub); }
.sub, small { font-size: 16px; color: var(--sub); }
.wrap { max-width: 900px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 19px; line-height: 1.4;
  text-decoration: none; border-radius: 14px; padding: 16px 28px; border: 0; cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 22px rgba(209,36,47,.22); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(209,36,47,.28); }
.btn.ghost { background: #fff; color: var(--fg); border: 1.5px solid var(--line); box-shadow: none; font-weight: 700; }
.btn.ghost:hover { border-color: #b9c2cc; box-shadow: 0 8px 20px rgba(31,35,40,.06); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn:disabled { opacity: .6; cursor: wait; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 14px; }
.badge { display: inline-block; font-size: 16px; font-weight: 700; color: #7048e8; border: 1.5px solid #7048e8; border-radius: 999px; padding: 0 10px; margin-left: 8px; vertical-align: middle; line-height: 1.6; }

/* ---------- 商品ページ ---------- */
.p-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(90% 80% at 78% 45%, var(--pc-soft) 0%, #fff 70%);
  border-bottom: 1px solid #eef0f3;
}
.p-hero-in { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px) clamp(32px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.p-badge { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.p-badge img { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 6px 16px rgba(31,35,40,.12); }
.p-badge span { display: flex; flex-direction: column; line-height: 1.4; }
.p-badge b { font-size: 20px; }
.p-badge small { font-size: 16px; }
.p-hero h1 { font-size: clamp(34px, 3.6vw, 56px); }
.keyhero { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 540px; margin: 0 auto; }
.keyhero canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.keyhero .kh-fallback { display: none; }
.keyhero.no-webgl canvas { display: none; }
.keyhero.no-webgl .kh-fallback { display: block; width: 52%; margin: 24% auto 0; border-radius: 22%; box-shadow: 0 24px 50px rgba(31,35,40,.18); }
.keyhero-btn {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 17px; font-weight: 700; color: var(--fg); background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 20px 8px 8px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(31,35,40,.10); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.keyhero-btn:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 26px rgba(31,35,40,.14); border-color: #b9c2cc; }
.kh-play { width: 34px; height: 34px; border-radius: 50%; background: var(--pc); flex: none; position: relative; }
.kh-play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 12px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

.p-body { padding: 8px 0 72px; }
.blk { padding: clamp(40px, 6vw, 72px) 0 0; }
.blk > h2 { display: flex; align-items: center; gap: 14px; }
.blk > h2::before { content: ""; width: 10px; height: 34px; border-radius: 6px; background: var(--pc); flex: none; }

figure { margin: 0 0 24px; }
figure img, figure video { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; display: block; background: #fff; }
figcaption { font-size: 16px; color: var(--sub); margin-top: 10px; line-height: 1.7; }
.demo { margin-top: clamp(-40px, -3vw, -20px); position: relative; z-index: 2; }
.demo figure video { box-shadow: 0 30px 60px rgba(31,35,40,.14); border-radius: 20px; }
.shots { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; margin-top: 28px; }

/* チェックの並び */
ul.check { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
ul.check li { position: relative; padding: 14px 18px 14px 52px; background: var(--soft); border-radius: 14px; line-height: 1.7; }
ul.check li::before { content: "✓"; position: absolute; left: 16px; top: 13px; width: 24px; height: 24px; border-radius: 50%; background: var(--pc); color: #fff; font-weight: 900; font-size: 16px; line-height: 24px; text-align: center; }
.card ul.check li { background: #fff; }

/* できること */
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 8px; background: #fff; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: 0 14px 34px rgba(31,35,40,.07); transform: translateY(-2px); }
.feature h3 { display: flex; gap: 10px; align-items: baseline; }
.feature h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--pc); flex: none; transform: translateY(-2px); }
.feature p { font-size: 17px; }
.after-features { margin-top: 24px; }

/* 使い方 */
ol.steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
ol.steps li { counter-increment: st; position: relative; padding: 16px 20px 16px 72px; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-height: 64px; display: flex; align-items: center; }
ol.steps li::before { content: counter(st); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 12px; background: var(--pc); color: #fff; font-weight: 900; font-size: 19px; display: grid; place-items: center; }

/* 料金 */
.card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--soft); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 20px; }
.pricing .grid .card:last-child, .pricing > .card { background: #fff; border: 2px solid var(--pc); box-shadow: 0 18px 40px rgba(31,35,40,.08); }
.pricing .grid .card strong { font-size: 30px; }
.price { font-size: 38px; font-weight: 900; line-height: 1.3; }
.price small { font-size: 16px; font-weight: 600; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 17px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 20px; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: left; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--pc-soft); font-weight: 800; }
table.compare td:nth-child(n+2), table.compare th:nth-child(n+2) { text-align: center; }
table.compare tr:last-child td { font-weight: 800; }
.table-scroll { overflow-x: auto; }

/* よくある質問 */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 56px 18px 20px; list-style: none; position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 20px; font-weight: 700; color: var(--sub); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 17px; }

/* 下の行動 */
.p-next { margin-top: 64px; padding: 32px; border-radius: 24px; background: var(--pc-soft); display: grid; gap: 8px; }
.p-next h2 { margin: 0; font-size: 26px; }
.p-others { margin-top: 56px; }
.p-others h2 { font-size: 24px; }
.mini-keys { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mini-keys a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff; font-weight: 700; font-size: 17px; }
.mini-keys a:hover { box-shadow: 0 10px 24px rgba(31,35,40,.07); }
.mini-keys img { width: 40px; height: 40px; border-radius: 10px; }

/* ---------- 一般ページ ---------- */
.page-head { background: linear-gradient(180deg, #f6f8fa 0%, #fff 100%); border-bottom: 1px solid #eef0f3; }
.page-head .wrap { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 28px; }
.page-head h1 { margin: 0; }
.page-head .sub { margin: 0 0 8px; font-weight: 700; color: var(--accent); }
.doc { padding: 36px 0 80px; }
.doc h2 { font-size: clamp(24px, 2.2vw, 30px); margin-top: 40px; }
.legal-doc h2 { font-size: 22px; margin: 36px 0 10px; }
.legal-doc ol, .legal-doc ul { padding-left: 1.4em; }
table.legal th { width: 30%; background: var(--soft); white-space: normal; }

/* フォーム */
.box, .buybox, .contact-form, .lic { border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--soft); margin: 24px 0; }
label { font-weight: 700; }
.contact-form label, .box label, .buybox label { display: block; margin: 0 0 18px; }
input[type=email], input[type=text], textarea {
  display: block; width: 100%; margin-top: 8px; font: inherit; font-weight: 400; font-size: 18px; color: var(--fg); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: 3px solid rgba(209,36,47,.25); border-color: var(--accent); }
.req { font-size: 16px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 6px; padding: 0 8px; margin-left: 8px; vertical-align: middle; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { color: var(--accent); font-weight: 700; min-height: 1em; font-size: 17px; }
.msg.ok { display: block; margin-top: 12px; padding: 12px 14px; border: 2px solid #1a7f37; border-radius: 12px; background: #dafbe1; color: #116329; }
.msg.err { display: block; margin-top: 12px; padding: 12px 14px; border: 2px solid #d1242f; border-radius: 12px; background: #ffebe9; color: #a40e26; font-size: 17px; line-height: 1.7; }
form.box.help { border: 2px solid #0c8599; background: #f3fafb; }
.help h2 { margin: 0 0 6px; font-size: 21px; }
.help label { display: block; margin-top: 12px; }
.lic .key, .keybox { font: 700 21px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .04em; background: #fff; border: 2px solid var(--accent); border-radius: 12px; padding: 14px; word-break: break-all; margin: 12px 0; }
.lic button { font: inherit; font-size: 16px; cursor: pointer; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 6px 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-weight: 400; }
.agree input { margin-top: 8px; width: 20px; height: 20px; flex: none; }
.features-buy h2 { font-size: 22px; }
.hero-badge { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.hero-badge img { width: 56px; height: 56px; border-radius: 14px; }
.hero-badge span { display: flex; flex-direction: column; line-height: 1.4; }
.hero-badge b { font-size: 20px; }
.hero-badge small { font-size: 16px; color: var(--sub); }

/* 試作の注意（送信しない） */
.sat-note { display: block; margin: 14px 0; padding: 14px 16px; border: 2px solid #ecd97a; background: #fff8d6; border-radius: 12px; color: #5a4a00; font-size: 17px; line-height: 1.7; font-weight: 600; }
.sat-note a { color: #8a5a00; font-weight: 800; }

/* ---------- マンガ・動画・プレゼント（本番の部品を新しい見た目に） ---------- */
.manga, .vpage, .pp { max-width: 960px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 24px; }
.koma { position: relative; margin: 0 0 20px; border: 2px solid #1f2328; border-radius: 10px; overflow: hidden; background: #fff; container-type: inline-size; }
.koma img { display: block; width: 100%; height: auto; }
.koma .cap, .koma .say { position: absolute; font-weight: 700; color: #1f2328; line-height: 1.55; font-size: clamp(16px, 2.4cqw, 20px); }
.koma .cap { background: #fff; border: 2px solid #1f2328; padding: .6em .8em; border-radius: 6px; }
.koma .say { background: #fff; border: 2px solid #1f2328; border-radius: 1.4em; padding: .7em 1em; }
.koma .say i { display: block; font-style: normal; font-size: 16px; color: #0c8599; margin-bottom: .1em; }
.koma.card { border: 1px solid var(--line); padding: 16px; background: var(--soft); border-radius: 18px; }
.koma.card img { border-radius: 10px; border: 1px solid var(--line); }
.koma.card .say.solo { position: static; display: inline-block; margin: 0 0 12px; font-size: clamp(17px, 2.6cqw, 21px); }
.koma.card figcaption { margin-top: 10px; font-size: 16px; color: var(--sub); }
.koma.card figcaption a { color: #0c8599; font-weight: 700; }
@media (max-width: 760px) {
  .koma .cap, .koma .say { position: static; display: block; width: auto !important; border: 0; border-top: 2px solid #1f2328; border-radius: 0; font-size: 17px; }
  .koma.card .say.solo { border: 2px solid #1f2328; border-radius: 1.2em; }
}
.vpage video { width: 100%; height: auto; display: block; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px rgba(31,35,40,.12); }
.feat { margin: 48px 0 0; }
.feat h2 { margin: 0 0 6px; }
.feat-grid { margin-top: 18px; grid-template-columns: repeat(2, 1fr); }
.feat-grid .card { background: #fff; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.feat-grid .card:hover { box-shadow: 0 14px 34px rgba(31,35,40,.08); transform: translateY(-2px); }
.card-title { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 21px; }
.card-title img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.gift { display: flex; gap: 28px; align-items: center; margin: 40px 0 64px; padding: 30px; border: 2px solid #0c8599; border-radius: 24px; background: linear-gradient(135deg, #f3fafb, #fff); text-decoration: none; color: var(--fg); }
.gift img { width: 170px; height: auto; flex: none; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.12); background: #fff; }
.gift-body { display: flex; flex-direction: column; gap: 10px; }
.gift-tag { align-self: flex-start; font-size: 16px; font-weight: 800; color: #fff; background: #0c8599; border-radius: 999px; padding: 3px 14px; }
.gift-title { font-size: 26px; line-height: 1.45; }
.gift-desc { color: var(--sub); font-size: 17px; }
.gift-btn { align-self: flex-start; margin-top: 6px; font-size: 20px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 14px; padding: 16px 30px; box-shadow: 0 8px 22px rgba(209,36,47,.25); }
.after { margin: 32px 0 48px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.after h2 { margin-top: 0; }
.pp-hero { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; margin: 12px 0 8px; }
.pp-hero img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 50px rgba(0,0,0,.14); transform: rotate(-2deg); }
.pp-tag { display: inline-block; font-size: 16px; font-weight: 700; color: #0c8599; border: 1.5px solid #0c8599; border-radius: 999px; padding: 2px 14px; }
.pp h1 { margin: 12px 0 10px; line-height: 1.3; }
.pp-form { background: #f3fafb; border: 2px solid #0c8599; border-radius: 20px; padding: 22px; margin: 20px 0; }
.pp-form label { display: block; margin-bottom: 8px; }
.pp-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-form input[type=email] { flex: 1 1 260px; margin-top: 0; }
.pp-form button { font: inherit; font-size: 18px; font-weight: 800; background: #0c8599; color: #fff; border: 0; border-radius: 12px; padding: 12px 24px; cursor: pointer; }
.pp-form small { display: block; margin-top: 10px; line-height: 1.7; }
.pp-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 8px; }
.pp-pages img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.pp-pages figcaption { text-align: center; }
.pp-sec { margin: 48px 0; }
.got { background: #fff8d6; border: 2px solid #ecd97a; border-radius: 20px; padding: 26px; }
.got-done { font-weight: 800; color: #116329; }
.got-btn { display: flex; gap: 14px; align-items: center; background: var(--accent); color: #fff; text-decoration: none; border-radius: 14px; padding: 16px 22px; margin: 12px 0; }
.got-btn small { color: #fff; }
.got-btn span { display: flex; flex-direction: column; }
.got-arrow { font-size: 28px; }
.got-note { font-size: 16px; color: var(--sub); }

@media (max-width: 860px) {
  .p-hero-in { grid-template-columns: 1fr; }
  .keyhero { max-width: 340px; order: -1; margin-top: -8px; }
  .feat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pp-hero { grid-template-columns: 1fr; gap: 20px; }
  .pp-hero img { max-width: 220px; margin: 0 auto; display: block; }
  .pp-pages { grid-template-columns: 1fr 1fr; }
  .gift { flex-direction: column; text-align: left; padding: 22px 18px; gap: 18px; }
  .gift img { width: 150px; }
  .gift-title { font-size: 21px; }
  .gift-btn { align-self: stretch; text-align: center; font-size: 18px; padding: 15px 16px; }
}
@media (max-width: 640px) {
  h1, h2 { word-break: normal; line-break: strict; }
  h1, .p-hero h1 { font-size: 30px; }
  h2 { font-size: 26px; }
  .btn { width: 100%; font-size: 18px; }
  .p-next { padding: 22px 18px; }
  table { font-size: 16px; }
  th, td { padding: 12px 8px; }
  table.legal th, table.legal td { display: block; width: 100%; }
  table.legal th { border-bottom: 0; padding-bottom: 4px; }
}

/* 縦に長いページの「上へ戻る」 */
.totop { position: fixed; right: 18px; bottom: 22px; z-index: 30; width: 64px; height: 64px; border-radius: 50%; border: 0; background: #0c8599; color: #fff; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.1; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.18); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop b { font-size: 20px; line-height: 1; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }

/* 使い方動画：サムネイルの上の再生ボタン（押したときだけ再生） */
.demo-frame { position: relative; border-radius: 20px; overflow: hidden; }
.demo-frame video { margin: 0; }
.demo-play {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer; font: inherit;
  display: flex; align-items: center; justify-content: center; gap: 18px; padding: 16px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 70%, rgba(255,255,255,0) 100%);
  color: var(--fg); transition: background .2s;
}
.demo-play:hover { background: radial-gradient(60% 60% at 50% 50%, rgba(255,255,255,.7) 0%, rgba(255,255,255,.2) 70%, rgba(255,255,255,0) 100%); }
.demo-play-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--pc); flex: none; position: relative; box-shadow: 0 14px 34px rgba(31,35,40,.28); transition: transform .2s; }
.demo-play-icon::after { content: ""; position: absolute; left: 38px; top: 28px; border-left: 30px solid #fff; border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.demo-play:hover .demo-play-icon { transform: scale(1.06); }
.demo-play-text { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border-radius: 16px; padding: 12px 20px; box-shadow: 0 12px 30px rgba(31,35,40,.16); text-align: left; line-height: 1.45; }
.demo-play-text b { font-size: 22px; }
.demo-play-text small { font-size: 16px; color: var(--sub); }
.demo-frame.is-playing .demo-play { display: none; }
.demo-play.is-hint .demo-play-icon { animation: demoHint 1.2s ease-out 1; }
@keyframes demoHint { 0% { box-shadow: 0 0 0 0 rgba(209,36,47,.45), 0 14px 34px rgba(31,35,40,.28); } 100% { box-shadow: 0 0 0 26px rgba(209,36,47,0), 0 14px 34px rgba(31,35,40,.28); } }
.demo-play:focus-visible { outline: 4px solid rgba(209,36,47,.45); outline-offset: -4px; }
@media (max-width: 640px) {
  .demo-play { flex-direction: column; gap: 12px; }
  .demo-play-icon { width: 72px; height: 72px; }
  .demo-play-icon::after { left: 29px; top: 21px; border-left-width: 22px; border-top-width: 15px; border-bottom-width: 15px; }
  .demo-play-text { align-items: center; text-align: center; padding: 8px 14px; }
  .demo-play-text b { font-size: 19px; }
}

/* フォームの入力欄とボタンの間をあける（本人指摘 2026-10-08） */
form .btn, .buybox .btn, form button[type="submit"] { margin-top: 24px; }
.box input[type=email], .box input[type=text], .box textarea { margin-bottom: 4px; }

/* ---------- プレゼント：立体の本と、扇に重ねた中身 ---------- */
body.present { --pc: #0c8599; --pc-soft: #eaf6f8; }
body.present main.pp { max-width: 1120px; }
body.present .pp-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(16px, 3vw, 48px);
  background: radial-gradient(70% 80% at 25% 45%, #e3f4f6 0%, #f6fbfc 55%, #fff 100%);
  border-radius: 32px; padding: clamp(16px, 3vw, 40px); margin-top: 8px;
}
.bookhero { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; }
.bookhero canvas { width: 100%; height: 100%; display: block; cursor: pointer; touch-action: pan-y; }
.bookhero .bh-fallback { display: none; }
.bookhero.no-webgl canvas { display: none; }
.bookhero.no-webgl .bh-fallback { display: block; width: 62%; margin: 8% auto 0; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 50px rgba(0,0,0,.14); transform: rotate(-3deg); }
body.present .pp h1 { font-size: clamp(32px, 3.2vw, 48px); overflow-wrap: normal; line-break: strict; }
body.present .pp-form { box-shadow: 0 18px 40px rgba(12,133,153,.12); background: #fff; }
body.present .pp-form button { box-shadow: 0 8px 20px rgba(12,133,153,.3); }
body.present .pp-sec h2 { display: flex; align-items: center; gap: 14px; }
body.present .pp-sec h2::before { content: ""; width: 10px; height: 34px; border-radius: 6px; background: var(--pc); flex: none; }
body.present ul.pp-learn { counter-reset: lr; }
body.present ul.pp-learn li { counter-increment: lr; background: #fff; border: 1px solid var(--line); padding: 18px 20px 18px 70px; font-size: 18px; box-shadow: 0 6px 18px rgba(31,35,40,.04); }
body.present ul.pp-learn li::before { content: counter(lr); width: 36px; height: 36px; line-height: 36px; border-radius: 11px; font-size: 18px; top: 50%; transform: translateY(-50%); left: 18px; }
.pp-pages { perspective: 1400px; gap: 0; padding: 30px 6% 10px; }
.pp-pages figure { transition: transform .45s cubic-bezier(.2,.8,.2,1), z-index 0s; position: relative; }
.pp-pages figure:nth-child(1) { transform: rotateY(24deg) translateX(14%) translateZ(-60px) rotateZ(-2deg); z-index: 1; }
.pp-pages figure:nth-child(2) { transform: translateZ(40px) translateY(-10px); z-index: 3; }
.pp-pages figure:nth-child(3) { transform: rotateY(-24deg) translateX(-14%) translateZ(-60px) rotateZ(2deg); z-index: 1; }
.pp-pages figure:hover { transform: translateZ(90px) translateY(-16px) rotateY(0) translateX(0); z-index: 5; }
.pp-pages img { box-shadow: 0 24px 50px rgba(31,35,40,.16); border-radius: 8px; }
.pp-pages figcaption { margin-top: 14px; }
@media (max-width: 700px) {
  body.present .pp-hero { grid-template-columns: 1fr; }
  .bookhero { max-width: 340px; }
  .pp-pages { perspective: none; padding: 10px 0; gap: 14px; }
  .pp-pages figure:nth-child(n) { transform: none; }
}
