/* MovieWorks の説明のページ（2026-11-24 作り直し・masaki が好きと言った FlashCast の説明の画面の雰囲気＝暗い地・青紫〜水色のグラデーション・すりガラスの札・光）。
   外の読み込みは使わない（CSP は自前のファイルだけ）。字は端末の日本語の字体 */
:root {
  --bg: #0a0e1a;
  --bg2: #111827;
  --card: rgba(17, 24, 39, 0.78);
  --glass: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f1f5f9;
  --sub: #a3b1c6;
  --muted: #6b7a90;
  --c1: #6366f1;
  --c2: #8b5cf6;
  --c3: #06b6d4;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --glow: 0 0 24px rgba(99, 102, 241, 0.35);
  --gold: #fbbf24;
  --radius: 18px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(99, 102, 241, 0.16), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(6, 182, 212, 0.11), transparent 55%),
    radial-gradient(ellipse at 50% 45%, rgba(139, 92, 246, 0.06), transparent 70%);
}
a { color: #a5b4fc; }
a:hover { color: #c7d2fe; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid #22d3ee; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.35; word-break: auto-phrase; }
p, li, dd, dt, summary { word-break: auto-phrase; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.draft { background: #f59e0b; color: #1f1300; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 800; font-size: 15px; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn-primary { position: relative; overflow: hidden; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent); background-size: 200% 100%; animation: shimmer 3.2s infinite; }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 40px rgba(99, 102, 241, 0.5); }
.btn-line { color: #e2e8f0; border: 1px solid var(--line-2); background: var(--glass); }
.btn-line:hover { color: #fff; border-color: var(--c1); background: rgba(99, 102, 241, 0.12); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn span[aria-hidden] { transition: transform .2s ease; }
.btn:hover span[aria-hidden] { transform: translateX(4px); }

/* 上の帯 */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(10, 14, 26, 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: #fff; }
.brand-mark { position: relative; width: 30px; height: 22px; border-radius: 7px; background: var(--grad); box-shadow: 0 0 18px rgba(99, 102, 241, 0.6); }
.brand-mark::after { content: ""; position: absolute; left: 12px; top: 6px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a { color: var(--sub); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: #fff; }
.header-ctas { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 420px) { .header-ctas .btn-line { display: none; } }

/* 最初の場面 */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 44px; } }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--sub); font-size: 13.5px; font-weight: 600; animation: rise .6s ease both; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.8); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; letter-spacing: -0.01em; margin: 0 0 20px; animation: rise .7s ease .05s both; }
.hero .lead { font-size: clamp(15.5px, 1.6vw, 18px); color: #cbd5e1; margin: 0 0 30px; max-width: 34em; animation: rise .7s ease .1s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .7s ease .15s both; }
.hero-ctas.center { justify-content: center; }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; margin: 38px 0 0; padding: 0; animation: rise .8s ease .25s both; }
.stats li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line-2); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b { font-size: 26px; font-weight: 900; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 12.5px; color: var(--muted); }

/* 見本（頼み → 動画の 1 場面） */
.studio { position: relative; margin: 0; display: grid; gap: 12px; justify-items: end; }
.bubble { max-width: 360px; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.7; border: 1px solid var(--line); background: var(--card); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: rise .6s ease both; }
.bubble.you { justify-self: start; border-bottom-left-radius: 6px; animation-delay: .2s; }
.bubble.ai { justify-self: end; border-bottom-right-radius: 6px; background: rgba(99, 102, 241, 0.16); border-color: rgba(129, 140, 248, 0.35); animation-delay: .5s; }
.bubble .who { display: block; font-size: 11.5px; font-weight: 800; color: var(--sub); letter-spacing: .06em; margin-bottom: 2px; }
.phone { justify-self: center; width: min(250px, 70vw); aspect-ratio: 9 / 16; padding: 9px; border-radius: 30px; background: #05070d; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), var(--glow); animation: float 6s ease-in-out infinite, rise .8s ease .7s both; }
.screen { position: relative; height: 100%; border-radius: 22px; overflow: hidden; }
.sky { position: absolute; inset: 0; background: linear-gradient(180deg, #1e3a8a 0%, #7c3aed 38%, #f472b6 62%, #fb923c 72%); }
.sun { position: absolute; left: 50%; top: 52%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fde68a 0%, #fbbf24 55%, rgba(251, 191, 36, 0) 72%); }
.sea { position: absolute; left: 0; right: 0; top: 64%; bottom: 0; background: repeating-linear-gradient(180deg, #1e40af 0 6px, #1d4ed8 6px 9px); opacity: .95; }
.frame-title { position: absolute; top: 14px; left: 12px; right: 12px; padding: 5px 8px; background: rgba(0, 0, 0, 0.55); border-left: 3px solid var(--gold); color: #fff; font-size: 12px; font-weight: 900; border-radius: 4px; }
.telop { position: absolute; left: 0; right: 0; bottom: 34px; width: 100%; }
.telop text { font-family: var(--font); font-weight: 900; paint-order: stroke; stroke-linejoin: round; }
.t-sub { font-size: 50px; fill: var(--gold); stroke: #1f1300; stroke-width: 12px; }
.t-main { font-size: 76px; fill: #fff; stroke: #111827; stroke-width: 16px; }
.credit { position: absolute; right: 8px; bottom: 16px; font-size: 9px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 2px #000; }
.bar { position: absolute; left: 10px; right: 10px; bottom: 7px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.bar span { display: block; width: 27%; height: 100%; background: #fff; animation: play 9s linear infinite; }

/* 節 */
.section { padding: 76px 0; }
.section-quiet { padding: 48px 0 64px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow { margin: 0 0 8px; color: #a5b4fc; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; }
.section-head p { margin: 0; color: var(--sub); font-size: 16px; }
.panel-card, .step, .format, .plan, .ai, .rules li, .specs, .cta-box, details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* はじめ方 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px 22px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.step:hover { transform: translateY(-4px); border-color: rgba(129, 140, 248, 0.55); box-shadow: var(--glow); }
.step-no { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .2em; color: #818cf8; margin-bottom: 10px; }
.step-icon { display: block; font-size: 34px; line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)); }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--sub); font-size: 14px; }
.step code, .note code { font-family: var(--mono); font-size: 12.5px; background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.address { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 24px auto 0; max-width: 820px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(129, 140, 248, 0.4); background: rgba(99, 102, 241, 0.1); }
.address-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.address-label { font-size: 12px; color: var(--sub); font-weight: 700; }
.address code { font-family: var(--mono); font-size: 15.5px; color: #fff; word-break: break-all; }
.copy { font: inherit; font-size: 14px; font-weight: 800; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--grad); color: #fff; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* できる動画 */
.formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .formats { grid-template-columns: 1fr; } }
.format { padding: 20px 20px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; transition: transform .2s ease, border-color .2s ease; }
.format:hover { transform: translateY(-3px); border-color: rgba(6, 182, 212, 0.5); }
.format-icon { grid-row: span 2; font-size: 28px; line-height: 1.2; }
.format h3 { margin: 0; font-size: 16.5px; }
.format p { margin: 2px 0 0; color: var(--sub); font-size: 13.5px; }

/* 料金 */
.billing { position: relative; text-align: center; }
.billing > input { position: absolute; opacity: 0; pointer-events: none; }
.toggle { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); margin-bottom: 34px; }
.toggle label { cursor: pointer; padding: 9px 20px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: var(--sub); }
#bill-m:checked ~ .toggle label[for=bill-m], #bill-y:checked ~ .toggle label[for=bill-y] { background: var(--grad); color: #fff; box-shadow: var(--glow); }
#bill-m:focus-visible ~ .toggle label[for=bill-m], #bill-y:focus-visible ~ .toggle label[for=bill-y] { outline: 2px solid #22d3ee; outline-offset: 2px; }
.badge { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: #1f1300; font-size: 12px; font-weight: 900; vertical-align: 1px; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: left; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 4px; }
.plan.pick { border-color: rgba(139, 92, 246, 0.85); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.85), 0 24px 60px -24px rgba(139, 92, 246, 0.8); }
.plan-tag { position: absolute; top: -12px; left: 20px; padding: 3px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 900; }
.plan-name { margin: 0; font-size: 20px; font-weight: 900; }
.plan-for { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.yen { font-size: 34px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; }
.per { color: var(--sub); font-size: 13px; font-weight: 700; }
.pricebox { margin: 4px 0 2px; }
.price-original { margin: 0; min-height: 1.6em; color: var(--muted); font-size: 14px; }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.price.hot .yen { color: #f59e0b; }
.price-note { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.price-note.hot { color: #f59e0b; }
.price-note.gold { color: #fcd34d; }
.price-note.muted { color: var(--muted); font-weight: 500; }
.billing .y { display: none; }
#bill-y:checked ~ .plans .m { display: none; }
#bill-y:checked ~ .plans .pricebox.y { display: block; }
#bill-y:checked ~ .plans .btn.y { display: inline-flex; }
[data-after] { display: none; }
[data-after].started { display: block; }
.campaign-banner { text-align: center; margin: -10px auto 30px; max-width: 760px; }
.campaign-badge { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; font-size: 13px; font-weight: 800; }
.campaign-title { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.hot-grad { background: linear-gradient(135deg, #f59e0b, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; }
.campaign-sub { margin: 0; color: var(--sub); font-size: 14.5px; }
.amount { margin: 10px 0 4px; font-size: 15px; }
.amount b { font-size: 19px; }
.plan-points { list-style: none; margin: 0 0 18px; padding: 0; color: var(--sub); font-size: 13px; }
.plan-points li { padding-left: 18px; position: relative; margin-top: 4px; }
.plan-points li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 900; }
.plan .btn { margin-top: auto; width: 100%; }
.badge-hot { background: #f43f5e; color: #fff; }
[data-until].ended { display: none !important; }
.notes { margin: 26px auto 0; max-width: 860px; padding-left: 20px; color: var(--sub); font-size: 13.5px; }
.notes li { margin: 4px 0; }

/* スペック */
.specs { margin: 0 auto; max-width: 940px; padding: 8px 26px; display: grid; }
.spec { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec:last-child { border-bottom: 0; }
.spec dt { font-weight: 800; color: #c7d2fe; }
.spec dd { margin: 0; color: #e2e8f0; }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; gap: 2px; } }

/* 使える AI */
.ais { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.ai { padding: 20px; }
.ai h3 { margin: 0 0 4px; font-size: 17px; }
.ai-plan { margin: 0 0 8px; color: #67e8f9; font-size: 13px; font-weight: 700; }
.ai p { margin: 0; color: var(--sub); font-size: 13.5px; }
.ai code { font-family: var(--mono); font-size: 12px; }

/* 決まりごと */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }
.rules li { padding: 20px 22px; }
.rules h3 { margin: 0 0 6px; font-size: 16px; }
.rules p { margin: 0; color: var(--sub); font-size: 13.5px; }

/* よくある質問 */
.faq { display: grid; gap: 10px; }
details { padding: 0 20px; }
summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 800; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; color: #818cf8; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 16px; color: var(--sub); font-size: 14.5px; }

/* さいごの呼びかけ */
.cta-box { position: relative; overflow: hidden; text-align: center; padding: 56px 24px; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: .14; pointer-events: none; }
.cta-box h2 { position: relative; margin: 0 0 10px; font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; }
.cta-box p { position: relative; margin: 0 0 26px; color: var(--sub); }

/* 表（使っているもの・法律のページ） */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
th { color: #c7d2fe; background: rgba(255, 255, 255, 0.03); white-space: nowrap; }
td { color: var(--sub); word-break: break-word; }
tr:last-child td { border-bottom: 0; }

/* 下の帯 */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--sub); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-org { margin: 0; flex-basis: 100%; color: var(--muted); font-size: 12.5px; }

/* 法律のページ・お支払いのあと・見つからない */
.doc { width: min(820px, 100% - 32px); margin: 48px auto 72px; padding: 36px clamp(20px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.doc-kicker { display: inline-block; margin-bottom: 10px; color: #a5b4fc; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; }
.doc h1 { font-size: clamp(24px, 3.2vw, 32px); margin: 0 0 18px; }
.doc h2 { font-size: 18px; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc p, .doc li { color: #d5deea; font-size: 15px; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc blockquote { margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: rgba(251, 191, 36, 0.08); color: #fde68a; border-radius: 0 10px 10px 0; }
.doc table { font-size: 14px; }
.doc code { font-family: var(--mono); font-size: 13px; background: rgba(255, 255, 255, 0.07); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.codecopy { position: relative; margin: 12px 0 18px; border: 1px solid rgba(129, 140, 248, 0.35); background: rgba(99, 102, 241, 0.08); border-radius: 14px; }
.codecopy pre { margin: 0; padding: 16px 110px 16px 16px; white-space: pre-wrap; word-break: break-word; }
.codecopy code { background: none; padding: 0; font-family: var(--font); font-size: 15px; line-height: 1.7; color: #fff; word-break: auto-phrase; }
.codecopy .copy { position: absolute; top: 10px; right: 10px; padding: 7px 14px; font-size: 13px; }
@media (max-width: 560px) { .codecopy pre { padding: 14px 14px 56px; } .codecopy .copy { top: auto; bottom: 10px; } }
.guide-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 24px; padding: 0 0 18px; border-bottom: 1px solid var(--line); }
.guide-nav a { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--sub); text-decoration: none; font-size: 13px; font-weight: 700; }
.guide-nav a:hover { color: #fff; border-color: var(--c1); }
.guide-nav a[aria-current="page"] { background: var(--grad); color: #fff; border-color: transparent; }
.doc.guide h2 { margin-top: 30px; }
.doc td a, .doc li a, .doc p a { color: #a5b4fc; }
.doc td { color: #d5deea; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes play { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 560px) {
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .stats li, .stats li:first-child { padding-left: 10px; border-left: 1px solid var(--line-2); }
  .stats li:first-child { padding-left: 0; border-left: 0; }
  .stats b { font-size: 21px; }
}

/* 使い方のページ（2026-11-24 作り直し・masaki「文字ばっかで嫌だな」→ 手順の札・本物の画面の写真・流れの図・3 色の札・開く形） */
.doc.guide { width: min(980px, 100% - 32px); }
.doc.guide > p:first-of-type { font-size: 16px; }
.doc .flow, .flow { list-style: none; margin: 18px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; counter-reset: f; }
.flow li { position: relative; padding: 16px 12px 14px; text-align: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 16px; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 38%; color: #818cf8; font-weight: 900; z-index: 1; }
.flow .flow-icon { display: block; font-size: 30px; line-height: 1.2; margin-bottom: 6px; }
.flow b { display: block; font-size: 15px; margin-bottom: 2px; }
.flow span:not(.flow-icon) { display: block; color: var(--sub); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow li { text-align: left; display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; } .flow .flow-icon { grid-row: span 2; margin: 0; } .flow li:not(:last-child)::after { content: "↓"; right: auto; left: 22px; top: auto; bottom: -15px; } }
.gstep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: 22px; align-items: start; margin: 14px 0; padding: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 18px; }
.gstep.noimg { grid-template-columns: 1fr; }
@media (max-width: 760px) { .gstep { grid-template-columns: 1fr; } }
.gstep-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; font-size: 16px; box-shadow: var(--glow); margin-bottom: 8px; }
.gstep h3 { margin: 0 0 6px; font-size: 17px; }
.gstep p { margin: 0; color: #d5deea; font-size: 14.5px; }
.gstep figure { margin: 0; }
.gstep img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9); }
.gstep figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; text-align: center; }
.mock { border-radius: 14px; border: 1px solid var(--line-2); background: #f8fafc; color: #0f172a; padding: 16px; font-size: 13px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9); }
.doc .mock p, .mock-title { margin: 0 0 10px; font-weight: 800; font-size: 14px; color: #0f172a; }
.mock-label { display: block; margin: 8px 0 3px; color: #475569; font-size: 12px; font-weight: 700; }
.mock-input { padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font-family: var(--mono); font-size: 12px; word-break: break-all; }
.mock-btn { display: inline-block; margin-top: 12px; padding: 7px 16px; border-radius: 8px; background: #1e293b; color: #fff; font-weight: 700; }
.mock-row { display: flex; gap: 6px; margin-top: 10px; }
.mock-row span { flex: 1; text-align: center; padding: 7px 6px; border-radius: 8px; background: #e2e8f0; font-weight: 700; font-size: 12px; }
.mock-row span.dark { background: #1e293b; color: #fff; }
.mock + figcaption, .mock-cap { margin-top: 6px; color: var(--muted); font-size: 12px; text-align: center; }
.perm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
@media (max-width: 760px) { .perm { grid-template-columns: 1fr; } }
.perm > div { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.perm h3 { margin: 0 0 4px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.perm p { margin: 0 0 10px; color: var(--sub); font-size: 13px; }
.perm .ok { border-color: rgba(16, 185, 129, 0.45); } .perm .ok h3 { color: #6ee7b7; }
.perm .care { border-color: rgba(245, 158, 11, 0.5); } .perm .care h3 { color: #fcd34d; }
.perm .stop { border-color: rgba(239, 68, 68, 0.5); } .perm .stop h3 { color: #fca5a5; }
.doc .chips, .chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 12.5px; font-weight: 700; color: #e2e8f0; }
.doc details { margin: 8px 0; }
.excards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
@media (max-width: 760px) { .excards { grid-template-columns: 1fr; } }
.excard { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); display: flex; flex-direction: column; gap: 8px; }
.excard-head { display: flex; align-items: center; gap: 12px; }
.excard-icon { font-size: 32px; line-height: 1; }
.excard h3 { margin: 0; font-size: 16.5px; }
.excard .chips li { background: rgba(99, 102, 241, 0.16); color: #c7d2fe; }
.excard p { margin: 0; color: var(--sub); font-size: 13.5px; }
.excard .codecopy { margin: 4px 0 0; }
.doc .tips, .tips { list-style: none; margin: 14px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.tips li { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 13.5px; color: #d5deea; }
.tips b { display: block; color: #fff; margin-bottom: 2px; }
.aipick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
@media (max-width: 760px) { .aipick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aipick a { display: block; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.aipick a:hover { border-color: var(--c1); transform: translateY(-2px); }
.aipick b { display: block; font-size: 16px; }
.aipick span { display: block; color: var(--sub); font-size: 12.5px; margin-top: 4px; }

.doc .gstep figure img { max-width: 250px; margin: 0 auto; }
@media (max-width: 760px) { .doc .gstep figure img, .doc .gstep .mock { max-width: 320px; margin: 0 auto; } }
.doc .gstep .gstep-no + h3 { margin-top: 2px; }
