:root { --paper:#fbf3e0; --paper2:#f3e6c8; --ink:#2a2118; --dim:#6b5d4c; --accent:#c8561b; --card:#fff7e3; --green:#5d8a4a; }
@media (prefers-color-scheme: dark) { :root { --paper:#1f1a14; --paper2:#2a231b; --ink:#f3e9d6; --dim:#b8a98f; --accent:#f08a4b; --card:#2f271e; --green:#8dbb78; } }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.8 -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
a { color:var(--accent); } .wrap { max-width:880px; margin:0 auto; padding:0 20px; }
header.top { padding:14px 0; font-size:.9rem; } header.top .wrap { display:flex; justify-content:space-between; align-items:center; gap:12px; }
header.top b { font-size:1.05rem; } header.top nav a { margin-left:14px; color:var(--dim); text-decoration:none; }
.hero { padding:36px 0 28px; text-align:center; }
.hero h1 { font-size:clamp(1.9rem,6vw,2.9rem); line-height:1.35; margin:.2em 0; }
.hero p.lead { font-size:1.05rem; color:var(--dim); max-width:34em; margin:.6em auto 1.2em; }
.badge { display:inline-block; border:3px solid var(--ink); background:var(--card); padding:10px 22px; border-radius:999px; font-weight:800; box-shadow:4px 5px 0 var(--ink); }
.art { color:var(--ink); width:100%; max-width:420px; height:auto; display:block; margin:18px auto 0; } .art text { font-family:inherit; }
.art .stroke { stroke:var(--ink); }
.shots { display:flex; gap:18px; overflow-x:auto; padding:6px 4px 18px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; }
.shots figure { flex:0 0 min(62vw,250px); margin:0; scroll-snap-align:start; }
.shots img { width:100%; height:auto; display:block; border:3px solid var(--ink); border-radius:26px; box-shadow:4px 5px 0 var(--ink); background:var(--card); }
.shots figcaption { margin-top:12px; font-size:.88rem; color:var(--dim); line-height:1.6; } .shots figcaption b { display:block; color:var(--ink); font-size:.98rem; }
@media (min-width:860px) { .shots { overflow:visible; } .shots figure { flex:1 1 0; } }
section { padding:34px 0; } h2 { font-size:1.45rem; margin:0 0 .3em; } h2 + p { color:var(--dim); margin-top:0; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px; margin-top:20px; }
.box { background:var(--card); border:3px solid var(--ink); border-radius:18px; padding:16px 18px; box-shadow:4px 5px 0 var(--ink); }
.box h3 { margin:.1em 0 .2em; font-size:1.05rem; } .box p { margin:.2em 0; color:var(--dim); font-size:.95rem; }
.step { counter-increment:s; } .step h3::before { content:counter(s); display:inline-grid; place-items:center; width:1.7em; height:1.7em; margin-right:.5em; border:3px solid var(--ink); border-radius:50%; background:var(--paper2); font-size:.9rem; }
.steps { counter-reset:s; }
.two { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:26px; align-items:center; }
.promise li { margin:.5em 0; } .promise { padding-left:1.2em; }
.dim { color:var(--dim); font-size:.88rem; }
details { border-top:2px solid var(--ink); padding:10px 0; } details:last-of-type { border-bottom:2px solid var(--ink); } summary { cursor:pointer; font-weight:700; } details p { margin:.4em 0 .2em; color:var(--dim); }
footer { padding:30px 0 56px; border-top:3px solid var(--ink); font-size:.88rem; color:var(--dim); } footer a { margin-right:14px; }

  /* ---- pages ---- */
header.top nav a[aria-current="page"] { color:var(--ink); font-weight:700; }
  .page { padding:30px 0 10px; } .page h1 { font-size:clamp(1.6rem,5vw,2.2rem); line-height:1.4; margin:.2em 0 .3em; }
  .page .lead { color:var(--dim); max-width:36em; }
  .crumb { font-size:.85rem; color:var(--dim); } .crumb a { color:var(--dim); }
  .prose h2 { margin-top:1.6em; } .prose p, .prose li { max-width:40em; } .prose ul { padding-left:1.2em; }
  .chip { display:inline-block; font-size:.78rem; font-weight:800; padding:1px 10px; border:2px solid var(--ink); border-radius:999px; background:var(--paper2); }
  .chip.rare { background:#e7d38a; } .chip.legend { background:#f2a35e; }
  .cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:18px; margin-top:18px; }
  .sp { background:var(--card); border:3px solid var(--ink); border-radius:18px; padding:16px 18px; box-shadow:4px 5px 0 var(--ink); }
  .sp .no { font-size:.8rem; color:var(--dim); letter-spacing:.06em; } .sp h3 { margin:.1em 0 .3em; font-size:1.2rem; }
  .sp dl { display:grid; grid-template-columns:5.5em 1fr; gap:2px 8px; margin:.6em 0; font-size:.9rem; } .sp dt { color:var(--dim); } .sp dd { margin:0; }
  .sp p { margin:.4em 0 0; font-size:.93rem; color:var(--dim); }
  .hidden-sp { border-style:dashed; box-shadow:none; background:transparent; text-align:center; color:var(--dim); display:grid; place-items:center; min-height:150px; }
  .tl { list-style:none; padding:0; margin:20px 0 0; } .tl li { padding:14px 0; border-top:2px solid var(--ink); } .tl li:last-child { border-bottom:2px solid var(--ink); }
  .tl time { font-size:.85rem; color:var(--dim); display:block; } .tl h3 { margin:.1em 0 .2em; font-size:1.05rem; } .tl p { margin:.2em 0; color:var(--dim); }
  .cta { text-align:center; padding:26px 0 8px; }
  .more { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px; margin-top:18px; }
  .more a { display:block; text-decoration:none; color:var(--ink); } .more a:hover .box { background:var(--paper2); }
header.top .wrap { flex-wrap:wrap; } header.top b { white-space:nowrap; }
header.top nav { display:flex; flex-wrap:wrap; gap:2px 14px; } header.top nav a { margin-left:0; white-space:nowrap; }

/* ---- characters ---- */
.crew { display:flex; justify-content:center; align-items:flex-end; gap:6px; flex-wrap:nowrap; margin:6px 0 4px; }
.crew img { width:clamp(44px, calc((100vw - 64px) / 5), 108px); min-width:0; height:auto; animation:bob 3.4s ease-in-out infinite; transform-origin:50% 100%; }
.crew img:nth-child(2) { animation-delay:-.7s; } .crew img:nth-child(3) { animation-delay:-1.4s; } .crew img:nth-child(4) { animation-delay:-2.1s; } .crew img:nth-child(5) { animation-delay:-2.8s; }
@keyframes bob { 0%,100% { transform:translateY(0) rotate(-1.5deg); } 50% { transform:translateY(-7px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .crew img { animation:none; } }
.titlebar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.titlebar h1 { margin-right:auto; } .mascot { width:clamp(64px,16vw,92px); height:auto; flex:none; }
.stepart { float:right; width:84px; margin:-6px 0 6px 12px; } .stepart img { width:100%; height:auto; display:block; }
.prose h2 { clear:both; }
.variants { display:flex; justify-content:center; gap:clamp(6px,3vw,26px); flex-wrap:wrap; margin:18px 0 6px; }
.variants figure { margin:0; text-align:center; width:clamp(92px,26vw,150px); } .variants img { width:100%; height:auto; display:block; background:var(--card); border:3px solid var(--ink); border-radius:23%; overflow:hidden; box-shadow:4px 5px 0 var(--ink); padding:0; }
.variants figcaption { margin-top:10px; font-size:.85rem; color:var(--dim); line-height:1.5; } .variants figcaption b { display:block; color:var(--ink); }
.sp .art { float:right; width:84px; margin:-2px -4px 4px 8px; } .sp .art img { width:100%; height:auto; display:block; border-radius:21%; }
.hidden-sp .shadow { width:76px; height:auto; display:block; margin:0 auto 8px; filter:brightness(0); opacity:.14; }
.stepimg { display:block; width:72px; height:auto; margin:-4px 0 4px auto; }
.mini { width:36px; height:auto; vertical-align:middle; margin-right:6px; }
.promise-art { display:block; width:88px; margin:0 auto 6px; }

/* ---- i18n / legal pages ---- */
html:lang(ko) body { font-family:-apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; word-break:keep-all; }
html:lang(zh-Hans) body { font-family:-apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
html:lang(zh-Hant) body { font-family:-apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html:lang(en) body { font-family:-apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height:1.7; }
.langs { margin:14px 0 6px; } .langs a, .langs span { margin-right:14px; white-space:nowrap; } .langs span { color:var(--ink); font-weight:700; }
.note { background:var(--card); border:3px solid var(--ink); border-radius:14px; padding:10px 16px; margin:14px 0; font-size:.92rem; color:var(--dim); }
.prose h3 { font-size:1rem; margin:1.4em 0 .2em; }
.prose table { border-collapse:collapse; width:100%; font-size:.92rem; margin:12px 0; } .prose th, .prose td { border:2px solid var(--ink); padding:6px 10px; text-align:left; vertical-align:top; } .prose th { background:var(--paper2); }
.prose .dim { color:var(--dim); font-size:.9rem; }
.page.prose h1, .prose h1 { font-size:clamp(1.5rem,5vw,2rem); }
.badge { text-align:center; line-height:1.5; max-width:100%; }
.flinks { margin:0 0 6px; display:flex; flex-wrap:wrap; gap:2px 14px; } footer .flinks a { margin-right:0; white-space:nowrap; }

/* ---- header menu ---- */
header.top { position:relative; }
.menu-btn { display:none; }
.nav-more, .nav-langs { display:none; }
header.top .nav-main { display:flex; flex-wrap:wrap; gap:2px 14px; }
@media (max-width: 760px) {
  html.js .menu-btn { display:flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; padding:0 10px; margin-right:-8px; background:transparent; border:0; cursor:pointer; color:var(--ink); }
  html.js .menu-btn span { display:block; height:3px; border-radius:2px; background:currentColor; transition:transform .2s, opacity .2s; }
  html.js.menu-open .menu-btn span:nth-child(1) { transform:translateY(8px) rotate(45deg); }
  html.js.menu-open .menu-btn span:nth-child(2) { opacity:0; }
  html.js.menu-open .menu-btn span:nth-child(3) { transform:translateY(-8px) rotate(-45deg); }
  html.js header.top .wrap { flex-wrap:nowrap; }
  html.js header.top nav { display:none; position:absolute; z-index:50; left:0; right:0; top:100%; max-height:calc(100vh - 64px); overflow-y:auto; background:var(--paper); border-bottom:3px solid var(--ink); box-shadow:0 8px 0 rgba(0,0,0,.08); padding:6px 20px 16px; }
  html.js.menu-open header.top nav { display:block; }
  html.js header.top nav a, html.js header.top nav span { display:flex; align-items:center; min-height:44px; margin:0; padding:0 4px; font-size:1.02rem; color:var(--ink); text-decoration:none; border-bottom:1px solid rgba(0,0,0,.08); }
  html.js header.top nav a[aria-current="page"] { font-weight:800; color:var(--accent); }
  html.js header.top .nav-main { display:block; }
  html.js header.top .nav-more { display:block; margin-top:10px; padding-top:6px; border-top:3px solid var(--ink); }
  html.js header.top .nav-more a { color:var(--dim); font-size:.95rem; min-height:40px; }
  html.js header.top .nav-langs { display:flex; flex-wrap:wrap; gap:0 6px; margin-top:10px; padding-top:6px; border-top:3px solid var(--ink); }
  html.js header.top .nav-langs a, html.js header.top .nav-langs span { border-bottom:0; padding:0 8px; font-size:.92rem; }
  html.js header.top .nav-langs span { font-weight:800; }
}
@media (prefers-color-scheme: dark) { .hidden-sp .shadow { filter:brightness(0) invert(1); opacity:.16; } }
a.badge { color:var(--ink); text-decoration:none; } a.badge:hover { background:var(--paper2); } a.badge:active { transform:translate(2px,3px); box-shadow:2px 2px 0 var(--ink); }
.review { text-align:center; } .review h2 { margin-top:.1em; } .review p { margin-left:auto; margin-right:auto; max-width:34em; }
/* Reading comfort: more air between blocks, calmer headings, and ink-coloured text (not dimmed) under a heading. */
.prose { line-height:1.95; }
.prose h2 { margin-top:2.4em; padding-top:1.2em; border-top:2px dashed rgba(0,0,0,.15); font-size:1.3rem; }
.prose h2:first-of-type { border-top:0; padding-top:0; margin-top:1.8em; }
.prose h2 + p { color:var(--ink); }
.prose h3 { margin:1.9em 0 .4em; }
.prose p { margin:0 0 1.15em; }
.prose li { margin:.2em 0 .75em; }
.prose ul { margin:.4em 0 1.4em; }
.prose table { margin:20px 0; }
.prose .lead + h2, .prose .titlebar + p.lead { margin-bottom:1em; }
@media (prefers-color-scheme: dark) { .prose h2 { border-top-color:rgba(255,255,255,.18); } }
@media (max-width:760px) { .wrap { padding:0 22px; } }
/* Folded sections (terms, privacy) */
.prose .sec { border-top:2px dashed rgba(0,0,0,.15); } .prose .sec:last-of-type { border-bottom:2px dashed rgba(0,0,0,.15); }
.prose .sec summary { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:56px; }
.prose .sec summary::-webkit-details-marker { display:none; }
.prose .sec summary::after { content:"+"; font-size:1.5rem; font-weight:700; color:var(--dim); flex:none; }
.prose .sec[open] summary::after { content:"−"; }
.prose .sec summary h2 { margin:0; padding:0; border:0; font-size:1.1rem; }
.prose .sec > :not(summary) { margin-left:0; }
.prose .sec[open] { padding-bottom:.6em; }
@media (prefers-color-scheme: dark) { .prose .sec, .prose .sec:last-of-type { border-color:rgba(255,255,255,.18); } }
/* Top page: fewer things per screen, stronger size contrast, much more air (phones especially) */
.hero ~ section { padding:48px 0; }
.hero ~ section h2 { font-size:1.75rem; line-height:1.4; margin:0 0 .45em; }
.hero ~ section h2 + p { font-size:.95rem; margin-bottom:1.6em; }
.hero ~ section .box h3 { font-size:1.15rem; margin-bottom:.35em; }
.hero ~ section .box p { font-size:.9rem; line-height:1.75; }
.hero ~ section .grid { gap:24px; }
.hero ~ section .promise { list-style:none; padding:0; } .hero ~ section .promise li { margin:0; padding:16px 0; border-top:2px dashed rgba(0,0,0,.15); font-size:1.05rem; } .hero ~ section .promise li:last-child { border-bottom:2px dashed rgba(0,0,0,.15); }
.hero ~ section .promise li b { display:block; font-size:1.15rem; margin-bottom:.1em; }
.hero ~ section .promise li:has(b:only-child) b { display:inline; }
@media (max-width:760px) {
  .hero { padding:44px 0 40px; }
  .hero h1 { font-size:2.15rem; line-height:1.4; margin:.5em 0 .6em; }
  .hero p.lead { font-size:1rem; line-height:1.9; margin:1em auto 1.8em; }
  .hero ~ section { padding:64px 0; }
  .hero ~ section h2 { font-size:1.6rem; }
}
@media (prefers-color-scheme: dark) { .hero ~ section .promise li, .hero ~ section .promise li:last-child { border-color:rgba(255,255,255,.18); } }
/* Bolder size contrast, banded sections and big numbers on the top page */
.hero ~ section:nth-of-type(even) { background:var(--paper2); }
.stats { padding:36px 0 !important; background:transparent !important; }
.stats .wrap { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; text-align:center; }
.stats b { display:block; font-size:2.8rem; line-height:1.1; font-weight:800; color:var(--accent); letter-spacing:-.02em; }
.stats span { display:block; margin-top:.3em; font-size:.82rem; color:var(--dim); }
@media (max-width:760px) {
  .hero h1 { font-size:clamp(1.6rem,7.6vw,2.4rem); }
  .hero ~ section h2 { font-size:2rem; line-height:1.3; font-weight:800; }
  .hero ~ section h2 + p { font-size:.92rem; }
  .shots figure { flex:0 0 min(78vw,300px); }
  .stats b { font-size:2.3rem; }
}
/* Inner pages: same idea as the top page — a clear step between title, section heading and text */
.page.prose h1, .prose h1 { font-size:clamp(1.8rem,7vw,2.5rem); line-height:1.35; font-weight:800; margin:.3em 0 .5em; }
.prose .lead { font-size:1.05rem; line-height:1.9; margin-bottom:1.6em; }
.prose h2 { font-size:clamp(1.45rem,5.6vw,1.8rem); line-height:1.35; font-weight:800; margin-top:2.8em; padding-top:1.4em; }
.prose h2:first-of-type { margin-top:2em; }
.prose h3 { font-size:1.12rem; }
.prose p, .prose li { font-size:.97rem; }
.prose .dim { font-size:.85rem; }
/* Spacing rules taken from the app's plan.md ("余白と文字の目安"):
   blocks 24-32 apart; a heading sits close to its content (12-16) with a wide gap above; cards pad 18 x 16-20;
   small text never under ~12px; lists of cards go two to a row. */
.prose p, .prose ul, .prose ol, .prose table, .prose details.sec + .sec { margin-bottom:24px; }
.prose h2 { margin-top:56px; margin-bottom:14px; }
.prose h2:first-of-type { margin-top:40px; }
.prose h3 { margin:32px 0 10px; }
.prose li { margin:0 0 12px; }
.prose .lead { margin-bottom:32px; }
.box { padding:20px 18px; }
.hero ~ section h2 { margin-bottom:14px; }
.hero ~ section h2 + p { margin-bottom:28px; }
.hero ~ section .grid { gap:24px; }
.more { grid-template-columns:repeat(2,1fr) !important; gap:16px !important; }
.more .box { padding:16px 14px; height:100%; } .more .box h3 { font-size:1rem; } .more .box p { font-size:.85rem; }
@media (min-width:860px) { .more { grid-template-columns:repeat(4,1fr) !important; } }
