/* もくもく（読書銀行）の Web ページ。色はアプリの標準の通帳（PassbookTheme+Colors.swift の standard）とそろえる */
:root {
  --paper: #faf8f3;
  --desk: #edeff3;
  --band: #e0e6ee;
  --ink: #1d2b4a;
  --ink-2: #4e5b73;
  --rule: rgba(29, 43, 74, .14);
  --margin-rule: #e09a9a;
  --vermilion: #c8352b;
  --cover: #24508e;
  --cover-deep: #1a3f78;
  --cover-strip: #f1eee6;
  --cover-text: #f6f2e8;
  --foil: #d9bd78;
  --foil-deep: #a8853f;
  --card: #fffdf8;
  --shadow: 0 1px 2px rgba(29, 43, 74, .06), 0 10px 30px rgba(29, 43, 74, .08);
  --radius: 18px;
  --guilloche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24'%3E%3Cpath d='M0 12 Q15 2 30 12 T60 12 T90 12 T120 12' fill='none' stroke='%231d2b4a' stroke-opacity='.05'/%3E%3Cpath d='M0 18 Q15 8 30 18 T60 18 T90 18 T120 18' fill='none' stroke='%231d2b4a' stroke-opacity='.035'/%3E%3C/svg%3E");
  color-scheme: light;
}
/* 夜の通帳（アプリのダークモードと同じ） */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #18222e;
    --desk: #0e151d;
    --band: #223142;
    --ink: #e6ecea;
    --ink-2: #a7b3bf;
    --rule: rgba(230, 236, 234, .14);
    --margin-rule: #a45f5f;
    --vermilion: #e0675c;
    --cover: #1b3b68;
    --cover-deep: #102949;
    --cover-strip: #d9d4c7;
    --card: #1c2734;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --guilloche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24'%3E%3Cpath d='M0 12 Q15 2 30 12 T60 12 T90 12 T120 12' fill='none' stroke='%23a7b3bf' stroke-opacity='.06'/%3E%3Cpath d='M0 18 Q15 8 30 18 T60 18 T90 18 T120 18' fill='none' stroke='%23a7b3bf' stroke-opacity='.04'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--desk) var(--guilloche);
  color: var(--ink);
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  line-height: 1.85;
  overflow-x: hidden;
}
html:lang(ko) body { font-family: "Noto Serif KR", serif; }
html:lang(en) body { font-family: "Noto Serif", Georgia, serif; }
p, li, h1, h2, h3, summary, figcaption { word-break: auto-phrase; overflow-wrap: anywhere; }
:lang(ko) :is(p, li, h1, h2, h3, summary, figcaption, td) { word-break: keep-all; }
img { max-width: 100%; }
a { color: var(--cover); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: #9cbcf0; } }
button { font: inherit; color: inherit; }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--foil); outline-offset: 3px; border-radius: 6px; }

/* 見出しの小さな赤い字（ストアの絵のラベルと同じ） */
.kicker { color: var(--vermilion); font-weight: 700; letter-spacing: .14em; font-size: 14px; margin: 0 0 6px; }
.kicker-light { color: var(--foil); }
.kicker-gold { color: var(--foil-deep); }
@media (prefers-color-scheme: dark) { .kicker-gold { color: var(--foil); } }

/* ボタン */
.store {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 14px;
  box-shadow: 0 6px 18px rgba(29, 43, 74, .22); transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 43, 74, .28); }
.store .apple { width: 20px; height: 20px; }
.store-light { background: var(--cover-text); color: #1d2b4a; }
.ghost {
  display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 14px;
  border: 1.5px solid rgba(246, 242, 232, .55); color: var(--cover-text); text-decoration: none; font-weight: 600; background: transparent; cursor: pointer;
}
.ghost:hover { background: rgba(246, 242, 232, .12); }
.ghost-ink { border-color: var(--rule); color: var(--ink); }
.ghost-ink:hover { background: var(--band); }

/* 上の帯 */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { border-radius: 9px; flex: none; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: .06em; }
.brand small { color: var(--ink-2); font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
.bar-nav { display: flex; align-items: center; gap: 6px; }
.bar-nav > a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 8px 10px; border-radius: 10px; white-space: nowrap; }
.bar-nav > a:hover, .bar-nav > a[aria-current] { background: var(--band); }
.lang { position: relative; }
.lang-button { display: flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.lang-button:hover { background: var(--band); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow); min-width: 210px; }
.lang-menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 10px 12px; border: 0; background: transparent; border-radius: 10px; text-align: left; cursor: pointer; font-size: 15px; }
.lang-menu button:hover { background: var(--band); }
.lang-menu button::before { content: ""; width: 16px; flex: none; color: var(--vermilion); font-weight: 700; }
.lang-menu button[aria-checked="true"]::before { content: "✓"; }
@media (max-width: 520px) {
  .brand small { display: none; }
  .bar-nav > a { display: none; }
}

/* 最初の画面：紺の表紙の上に、もくもく */
.hero { position: relative; overflow: hidden; color: var(--cover-text); background: linear-gradient(165deg, var(--cover) 0%, var(--cover-deep) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28'%3E%3Cpath d='M0 14 Q20 2 40 14 T80 14 T120 14 T160 14' fill='none' stroke='%23ffffff' stroke-opacity='.07'/%3E%3C/svg%3E"); pointer-events: none; }
.clouds span { position: absolute; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(255, 253, 248, .16), rgba(255, 253, 248, 0) 70%); animation: drift 38s linear infinite; }
.clouds span:nth-child(1) { width: 420px; height: 240px; top: -60px; left: -120px; }
.clouds span:nth-child(2) { width: 300px; height: 180px; top: 40%; left: 55%; animation-duration: 46s; animation-delay: -12s; }
.clouds span:nth-child(3) { width: 520px; height: 260px; bottom: -120px; left: 20%; animation-duration: 54s; animation-delay: -30s; }
.clouds span:nth-child(4) { width: 220px; height: 140px; top: 12%; right: -60px; animation-duration: 40s; animation-delay: -5s; }
@keyframes drift { from { transform: translateX(-40px); } 50% { transform: translateX(40px); } to { transform: translateX(-40px); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(34px, 6.2vw, 60px); line-height: 1.3; margin: 0 0 18px; letter-spacing: .02em; }
.hero-lead { font-size: 17px; color: #d6deec; margin: 0 0 26px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13px; color: #b8c4da; margin: 16px 0 0; }
.hero-stage { position: relative; min-height: 380px; }
.passcover {
  position: absolute; left: 0; top: 20px; width: min(78%, 340px); aspect-ratio: 1.42; border-radius: 16px;
  background: linear-gradient(160deg, #2b5a9c, #1a3f78); border: 2px solid var(--foil); box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
  transform: rotate(-7deg); padding: 18px 20px; color: var(--cover-text); overflow: hidden;
}
.passcover::after { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 30px; background: var(--cover-strip); }
.passcover p { margin: 0; position: relative; z-index: 1; }
.passcover-title { color: var(--foil); font-weight: 700; letter-spacing: .12em; font-size: 15px; }
.passcover-holder { color: #1d2b4a; margin-top: 18px !important; font-size: 14px; font-weight: 600; }
.passcover-label { font-size: 12px; margin-top: 22px !important; color: #c9d4e8; letter-spacing: .2em; }
.passcover-balance { font-size: 34px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.hero-mm { position: absolute; right: 0; bottom: 0; width: min(70%, 320px); background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-mm-img { width: 100%; height: auto; display: block; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28)); }
.hero-mm .sprite { position: absolute; inset: 0; opacity: 0; }
.hero-mm.jump .hero-mm-img { opacity: 0; animation: none; }
.hero-mm.jump .sprite { opacity: 1; animation: wish 1.4s steps(15) forwards; }
.bubble {
  position: absolute; z-index: 3; right: 58%; top: 2%; background: var(--card); color: var(--ink); border-radius: 16px; padding: 8px 14px;
  font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow); transform-origin: right bottom; animation: pop .35s ease;
}
.bubble::after { content: ""; position: absolute; right: -6px; bottom: 10px; border: 7px solid transparent; border-left-color: var(--card); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 跳ねるもくもく（16コマを横に並べた1枚） */
.sprite { display: block; aspect-ratio: 1; background: url("/assets/mokumoku/wish.webp?v=20261027") 0 0 / 1600% 100% no-repeat; }
@keyframes wish { from { background-position: 0 0; } to { background-position: 100% 0; } }
.sprite-play { animation: wish 1.6s steps(15) infinite alternate; }

/* 見出し */
section { position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; line-height: 1.4; }
.section-lead { color: var(--ink-2); margin: 0; }

/* 記帳してみる */
.demo { padding: 72px 0; background: var(--desk); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.desk { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 0; overflow: hidden; }
.shelf { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 236px; padding: 0 6px 12px; border-bottom: 10px solid #b98a5e; border-radius: 0 0 4px 4px; }
.book {
  --c: #5b7ba6; width: 52px; height: var(--h); flex: none; border: 0; border-radius: 4px 4px 2px 2px; cursor: pointer;
  background: linear-gradient(90deg, rgba(0, 0, 0, .18) 0 6%, transparent 6% 94%, rgba(0, 0, 0, .18) 94%), var(--c);
  color: #fffdf6; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 0 10px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 3px 0 rgba(0, 0, 0, .12); transition: transform .2s ease, opacity .3s ease;
}
.book:hover:not(:disabled) { transform: translateY(-10px); }
.book:disabled { cursor: default; }
.book.taken { opacity: 0; transform: translateY(-60px) scale(.9); pointer-events: none; }
.book-title { writing-mode: vertical-rl; font-weight: 700; font-size: 14px; letter-spacing: .06em; line-height: 1.2; }
.book-author { writing-mode: vertical-rl; font-size: 11px; opacity: .85; }
:lang(en) .book-title, :lang(en) .book-author { font-size: 12px; letter-spacing: .02em; }
:lang(en) .book-author { font-size: 10px; }
.scanner { position: relative; height: 230px; display: flex; align-items: flex-end; justify-content: center; }
.demo-mm { width: 210px; height: auto; transition: transform .25s ease; position: relative; z-index: 1; }
.demo-mm.swap { animation: hop .45s ease; }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-18px) scale(1.04); } 100% { transform: translateY(0) scale(1); } }
.beam { position: absolute; left: 30%; right: 30%; top: 40px; height: 3px; background: var(--vermilion); box-shadow: 0 0 12px var(--vermilion); opacity: 0; z-index: 2; }
.scanner.scanning .beam { opacity: .85; animation: beam .9s ease-in-out; }
@keyframes beam { 0% { transform: translateY(0); } 50% { transform: translateY(110px); } 100% { transform: translateY(0); } }
.pile { position: absolute; right: 12px; bottom: 0; display: flex; flex-direction: column-reverse; align-items: center; }
.pile i { display: block; width: 74px; height: 14px; border-radius: 3px; background: var(--c); margin-top: -1px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); animation: drop .4s cubic-bezier(.3, 1.4, .5, 1); }
.pile i:nth-child(even) { transform: translateX(5px); }
@keyframes drop { from { transform: translateY(-50px); opacity: 0; } }

.passbook { background: var(--paper) var(--guilloche); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--rule); }
.pb-cover { background: linear-gradient(160deg, var(--cover), var(--cover-deep)); color: var(--cover-text); padding: 16px 20px 14px; position: relative; }
.pb-cover p { margin: 0; }
.pb-title { color: var(--foil); font-weight: 700; letter-spacing: .14em; }
.pb-holder { background: var(--cover-strip); color: #1d2b4a; margin: 10px -20px 12px !important; padding: 4px 20px; font-weight: 600; font-size: 14px; }
.pb-balance-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pb-label { font-size: 12px; letter-spacing: .2em; color: #c9d4e8; }
.pb-balance { font-size: clamp(30px, 5vw, 40px); font-weight: 700; font-variant-numeric: tabular-nums; }
.pb-balance.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.12); color: #fff3c4; } }
.pb-count { font-size: 13px; color: #c9d4e8; text-align: right; }
.pb-page { padding: 6px 12px 14px; overflow-x: auto; }
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.ledger th { font-weight: 600; font-size: 11px; color: var(--ink-2); padding: 6px 4px; border-bottom: 1.5px solid var(--ink-2); background: var(--band); }
.ledger th:nth-child(1) { width: 19%; } .ledger th:nth-child(3), .ledger th:nth-child(4) { width: 21%; }
.ledger td { padding: 8px 4px; border-bottom: 1px solid var(--rule); vertical-align: middle; height: 52px; position: relative; }
.ledger td + td { border-left: 1px dashed var(--rule); }
.ledger tr.blank td { color: var(--ink-2); font-size: 12px; text-align: center; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ledger .date { font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
.ledger .sum { line-height: 1.35; padding-right: 50px; }
.ledger .sum b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger .sum small { color: var(--ink-2); font-size: 11px; }
.ledger tr.printing td > * , .ledger tr.printing td.num, .ledger tr.printing td.date { animation: print .7s steps(12) both; }
.ledger tr.printing td:nth-child(2) > * { animation-delay: .12s; }
.ledger tr.printing td:nth-child(3) { animation-delay: .3s; }
.ledger tr.printing td:nth-child(4) { animation-delay: .45s; }
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.stamp {
  position: absolute; right: 4px; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%;
  border: 2px solid var(--vermilion); color: var(--vermilion); font-size: 10px; font-weight: 700; line-height: 1.1;
  display: flex; align-items: center; justify-content: center; text-align: center; transform: rotate(-14deg); opacity: .85;
  animation: stamp .35s .75s cubic-bezier(.3, 1.6, .5, 1) both; pointer-events: none; background: color-mix(in srgb, var(--paper) 40%, transparent);
}
@keyframes stamp { from { transform: rotate(-14deg) scale(2.2); opacity: 0; } }
.demo-status { text-align: center; min-height: 1.8em; margin: 18px 0 0; color: var(--ink-2); font-weight: 600; }
.complete { margin: 20px auto 0; max-width: 720px; display: flex; align-items: center; gap: 18px; background: var(--card); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); border: 2px solid var(--foil); animation: pop .4s ease; }
.complete .sprite { width: 120px; flex: none; }
.complete-title { font-size: 20px; font-weight: 700; margin: 0; }
.complete-body { margin: 2px 0 12px; color: var(--ink-2); }
.complete-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* できること（取引明細票の紙） */
.features { padding: 80px 0; background: var(--paper) var(--guilloche); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.slips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.slip { position: relative; background: var(--card); border-radius: var(--radius); padding: 18px 22px 22px; box-shadow: var(--shadow); border: 1px solid var(--rule); overflow: hidden; }
.slip::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 1px; background: var(--margin-rule); opacity: .45; }
.slip-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--rule); padding-bottom: 6px; margin-bottom: 4px; position: relative; }
.slip-no { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.slip-key { font-size: 12px; font-weight: 700; color: var(--vermilion); border: 1.5px solid var(--vermilion); border-radius: 6px; padding: 0 8px; letter-spacing: .06em; }
.slip-mm { display: block; width: 132px; height: auto; margin: 6px auto 2px; transition: transform .3s ease; }
.slip:hover .slip-mm { transform: translateY(-6px) rotate(-3deg); }
.slip h3 { font-size: 19px; margin: 6px 0 6px; line-height: 1.45; position: relative; }
.slip p { margin: 0; color: var(--ink-2); font-size: 15px; position: relative; }
.sprite-hover { width: 132px; }
.slip:hover .sprite-hover, .slip.in .sprite-hover { animation: wish 1.6s steps(15) 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* アプリの画面 */
.screens { padding: 80px 0 64px; }
.carousel { position: relative; }
.track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(16px, calc((100vw - 1080px) / 2 + 16px)) 28px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.phone { margin: 0; flex: none; width: 250px; scroll-snap-align: center; }
.phone figcaption { text-align: center; margin-bottom: 12px; line-height: 1.5; }
.phone figcaption .kicker { display: block; font-size: 12px; margin: 0; }
.phone-title { display: block; font-weight: 700; font-size: 15px; }
.phone-body { border-radius: 36px; padding: 8px; background: #11161f; box-shadow: 0 18px 36px rgba(29, 43, 74, .25); }
.phone-body img { display: block; width: 100%; height: auto; border-radius: 29px; }
.carousel-button { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--card); box-shadow: var(--shadow); font-size: 24px; line-height: 1; cursor: pointer; }
.carousel-button.prev { left: 12px; } .carousel-button.next { right: 12px; }
.carousel-button:disabled { opacity: 0; pointer-events: none; }

/* スーパーもくもくプラン（貸金庫） */
.plan { padding: 24px 0 80px; }
.plan-inner { width: calc(100% - 32px); display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; background: linear-gradient(160deg, var(--cover), var(--cover-deep)); color: var(--cover-text); border-radius: 28px; padding: 36px 40px; border: 2px solid var(--foil); box-shadow: 0 24px 48px rgba(29, 43, 74, .25); }
.plan h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; }
.plan .kicker-gold { color: var(--foil); }
.plan-lead { color: #d6deec; margin: 0 0 14px; }
.plan-mm { width: 100%; height: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .3)); }
.checks { list-style: none; padding: 0; margin: 0 0 12px; }
.checks li { padding-left: 28px; position: relative; margin: 6px 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--foil); font-weight: 700; }
.plan-note { font-size: 13px; color: #b8c4da; margin: 0; }

/* 最後のひと押し */
.cta { padding: 40px 0 88px; text-align: center; }
.cta h2 { font-size: clamp(24px, 4vw, 34px); margin: 4px 0 6px; }
.cta p { color: var(--ink-2); margin: 0 0 22px; }
.cta-mm { position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.cta-mm-img { width: 200px; height: auto; display: block; margin: 0 auto; animation: float 6s ease-in-out infinite; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; left: 50%; top: 40%; width: 8px; height: 12px; border-radius: 2px; animation: burst 1.1s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* 規約・ポリシー・よくある質問 */
.doc { padding: 40px 0 64px; }
.doc-wrap { max-width: 820px; }
.doc-head { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.doc-mm { width: 128px; height: auto; flex: none; animation: float 6s ease-in-out infinite; }
.doc-head h1 { font-size: clamp(26px, 5vw, 36px); margin: 0; line-height: 1.35; }
.doc-lead { margin: 4px 0 6px; color: var(--ink-2); }
.updated { display: inline-block; margin: 0; font-size: 13px; color: var(--vermilion); border: 1.5px solid var(--vermilion); border-radius: 6px; padding: 0 10px; font-weight: 600; }
.toc { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 14px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.toc-title { font-weight: 700; margin: 0 0 4px; font-size: 14px; color: var(--ink-2); letter-spacing: .1em; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 28px; font-size: 14px; }
.toc li { break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.sheet { position: relative; background: var(--paper) var(--guilloche); border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 28px 20px 48px; box-shadow: var(--shadow); }
.sheet::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 1px; background: var(--margin-rule); opacity: .55; }
.clause { padding: 14px 0 6px; border-bottom: 1px solid var(--rule); }
.clause:last-child { border-bottom: 0; }
.clause h2 { font-size: 19px; margin: 6px 0 4px; line-height: 1.5; }
.clause p, .clause li { font-size: 16px; }
.clause ul { padding-left: 1.3em; }
.clause-contact { margin-top: 14px; }
.sheet.clause-contact { padding-top: 16px; }
.to-top { text-align: right; margin: 18px 0 0; font-size: 14px; }

/* よくある質問 */
.faq-search { margin-bottom: 18px; }
.faq-search label { display: block; font-weight: 700; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.faq-field { position: relative; }
.faq-field input { width: 100%; font: inherit; font-size: 16px; padding: 12px 70px 12px 16px; border-radius: 14px; border: 1.5px solid var(--rule); background: var(--card); color: var(--ink); }
.faq-field input:focus { outline: none; border-color: var(--cover); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cover) 25%, transparent); }
.faq-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--ink-2); }
.faq-list { padding: 6px 22px 6px 48px; }
.qa { border-bottom: 1px solid var(--rule); }
.qa:last-of-type { border-bottom: 0; }
.qa summary { list-style: none; display: flex; gap: 12px; align-items: baseline; padding: 14px 0; cursor: pointer; font-weight: 700; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "＋"; margin-left: auto; color: var(--ink-2); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.q { color: var(--vermilion); font-size: 15px; flex: none; }
.qa-body { padding: 0 0 12px 27px; color: var(--ink); }
.qa-body p { margin: 0 0 8px; }
mark { background: color-mix(in srgb, var(--foil) 45%, transparent); color: inherit; border-radius: 3px; }
.faq-empty { text-align: center; padding: 18px 0 22px; }
.faq-empty-mm { width: 130px; height: auto; }
.faq-empty-title { font-weight: 700; font-size: 17px; margin: 4px 0; }
.faq-empty p { margin: 4px 0; }

/* 下の帯 */
.foot { background: var(--band); border-top: 1px solid var(--rule); font-size: 14px; }
.foot-inner { display: flex; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.foot-mm { width: 96px; height: auto; flex: none; }
.foot-brand { font-weight: 700; margin: 0 0 4px; }
.foot-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 0 0 6px; }
.foot-nav a { color: var(--ink); }
.foot-mail, .foot-copy { margin: 0; color: var(--ink-2); }

@media (max-width: 900px) {
  .slips { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; gap: 8px; }
  .hero-stage { min-height: 300px; }
  .passcover { width: 68%; top: 10px; aspect-ratio: auto; padding: 14px 16px 16px; }
  .passcover::after { top: 52px; height: 28px; }
  .passcover-holder { margin-top: 14px !important; }
  .passcover-label { margin-top: 14px !important; }
  .passcover-balance { font-size: 28px; }
  .hero-mm { width: 58%; }
  .bubble { right: 40%; font-size: 13px; }
  .plan-inner { grid-template-columns: 1fr; padding: 28px 22px; text-align: left; }
  .plan-art { max-width: 200px; margin: 0 auto; }
  .toc ol { columns: 1; }
  .carousel-button { display: none; }
}
@media (max-width: 560px) {
  .slips { grid-template-columns: 1fr; }
  .demo { padding: 56px 0; }
  .desk { padding: 16px 12px 0; }
  .shelf { gap: 5px; height: 232px; }
  .book { width: 48px; }
  .scanner { height: 160px; }
  .demo-mm { width: 150px; }
  .beam { top: 26px; }
  .pile i { width: 56px; height: 11px; }
  .demo-grid { gap: 16px; }
  .ledger { font-size: 12px; }
  .ledger th:nth-child(1) { width: 17%; }
  .ledger .date { font-size: 10.5px; }
  .stamp { width: 34px; height: 34px; margin-top: -17px; font-size: 8px; }
  .ledger .sum { padding-right: 40px; }
  .sheet { padding: 4px 16px 16px 30px; }
  .sheet::before { left: 18px; }
  .faq-list { padding: 4px 14px 4px 30px; }
  .doc-head { gap: 12px; }
  .doc-mm { width: 92px; }
  .complete { flex-direction: column; text-align: center; }
  .complete-actions { justify-content: center; }
  .foot-inner { align-items: flex-start; }
  .foot-mm { width: 72px; }
  .phone { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
