:root {
  --sage: #7f9b7a;
  --sage-deep: #5f7d5b;
  --mustard: #e3b94c;
  --mustard-deep: #c99a2a;
  --brick: #b9553f;
  --indigo: #2f4e7a;
  --indigo-deep: #223a5c;
  --slate: #4f6672;
  --slate-deep: #3b4f59;
  --ink: #1f2a30;
  --cream: #f6f0e3;
  --cream-deep: #ebe2cd;
  --paper: #fffdf7;
  --muted: #5e6b70;
  --radius: 18px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.pixel { font-family: "Pixelify Sans", monospace; letter-spacing: 0.02em; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; gap: 18px; font-weight: 700; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--slate-deep); }
.nav-links a:hover { color: var(--brick); }

/* hero */
.hero { background: var(--slate); color: var(--cream); position: relative; overflow: hidden; }
.hero-art { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; image-rendering: pixelated; }
.hero-body { text-align: center; padding: 36px 20px 48px; }
.logo { line-height: 0.95; margin: 0; }
.logo .l1, .logo .l3 { display: block; font-size: 22px; color: var(--cream); letter-spacing: 0.2em; }
.logo .l2 { display: block; font-size: 72px; color: var(--mustard); margin: 4px 0; }
.tagline { font-size: 20px; font-weight: 700; margin: 18px auto 8px; max-width: 560px; }
.sub { color: var(--cream-deep); max-width: 560px; margin: 0 auto 26px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 12px; padding: 10px 18px 10px 14px; text-decoration: none; font-weight: 700; border: 1px solid #555; }
.store-btn svg { width: 26px; height: 26px; fill: #fff; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; line-height: 1; }
.store-btn span { display: block; font-size: 18px; line-height: 1.1; }
.store-btn:hover { background: #222; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--cream-deep); }
.pill { display: inline-block; background: var(--mustard); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); }
h2 { font-size: 32px; margin: 8px 0 10px; line-height: 1.2; }
h3 { font-size: 20px; margin: 0 0 6px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.shots { display: flex; gap: 16px; overflow-x: auto; padding: 8px 20px 20px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.shots img { flex: 0 0 auto; width: 250px; border-radius: 22px; box-shadow: 0 10px 30px rgba(31,42,48,.18); scroll-snap-align: center; }
.shots-hint { font-size: 13px; color: var(--muted); text-align: center; margin-top: 2px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 2px solid var(--cream-deep); border-radius: var(--radius); padding: 22px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 12px; }
.ic.sage { background: #d9e5d6; } .ic.mustard { background: #f6e6b3; } .ic.brick { background: #f0cfc6; } .ic.indigo { background: #cfdcee; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.story img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(31,42,48,.18); }
.quote { background: var(--slate-deep); color: var(--cream); border-radius: 14px; padding: 16px 18px; margin: 18px 0 0; }
.quote b { color: var(--mustard); display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }

.reels { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.reel { width: 270px; }
.reel video { width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; background: #000; box-shadow: 0 10px 30px rgba(31,42,48,.25); }
.reel p { font-size: 14px; color: var(--muted); text-align: center; margin: 8px 0 0; }

.ladder { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.rank { background: var(--paper); border: 2px solid var(--cream-deep); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.rank small { color: var(--muted); font-weight: 500; }

.cta { background: var(--indigo); color: var(--cream); text-align: center; }
.cta h2 { color: #fff; }
.cta .lead { color: #d6e0ef; margin-left: auto; margin-right: auto; }

footer { background: var(--ink); color: #b9c3c8; padding: 36px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { color: #e7ecef; text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--mustard); }

/* text pages */
.page { max-width: 760px; margin: 0 auto; padding: 36px 20px 64px; }
.page h1 { font-size: 36px; line-height: 1.2; margin: 0 0 6px; }
.page .meta { color: var(--muted); margin-bottom: 28px; }
.page h2 { font-size: 24px; margin-top: 40px; }
.page h3 { margin-top: 24px; }
.page table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.page th, .page td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--cream-deep); }
.page th { background: var(--cream-deep); }
.page details { background: var(--paper); border: 2px solid var(--cream-deep); border-radius: 14px; padding: 12px 18px; margin: 10px 0; }
.page summary { font-weight: 800; cursor: pointer; }
.page .box { background: var(--paper); border: 2px solid var(--cream-deep); border-radius: 14px; padding: 18px 22px; }
.btn { display: inline-block; background: var(--brick); color: #fff; font-weight: 800; text-decoration: none; padding: 10px 18px; border-radius: 10px; }
.btn.secondary { background: var(--sage-deep); }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.assets a { display: block; text-decoration: none; color: var(--ink); font-size: 13px; }
.assets img { border-radius: 10px; border: 2px solid var(--cream-deep); background: #fff; aspect-ratio: 1; object-fit: cover; margin-bottom: 6px; }
.assets img.tall { aspect-ratio: 9 / 19.5; }

@media (max-width: 720px) {
  .logo .l2 { font-size: 52px; }
  .nav-links { gap: 12px; font-size: 14px; }
  .story { grid-template-columns: 1fr; }
  h2 { font-size: 26px; }
  .shots img { width: 210px; }
}
.hero .brand, .hero .nav-links a { color: var(--cream); }
.hero .nav-links a:hover { color: var(--mustard); }
@media (max-width: 480px) {
  .brand span { display: none; }
  .nav-links { font-size: 13px; gap: 10px; }
  .nav-links a:first-child { display: none; }
}

/* ---- hero v2 */
.hero2 { background: var(--slate-deep); color: var(--cream); background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 14px 14px; }
.hero2 .brand, .hero2 .nav-links a { color: var(--cream); }
.hero2 .nav-links a:hover { color: var(--mustard); }
.hero2-grid { display: grid; grid-template-columns: 1.1fr 400px; gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 56px; }
.hero2-copy .logo { text-align: left; margin-top: 14px; }
.hero2-copy .logo .l1, .hero2-copy .logo .l3 { font-size: 20px; }
.hero2-copy .logo .l2 { font-size: 84px; }
.hero-try .narrow { display: none; }
.hero2-copy .tagline { margin: 18px 0 8px; font-size: 22px; }
.hero2-copy .sub { margin: 0 0 22px; }
.hero-try { margin-top: 22px; font-weight: 700; color: var(--mustard); }
.hero-try span { display: inline-block; }

/* ---- demo phone */
.d-phone { position: relative; background: #4F6672; border-radius: 30px; padding: 12px 12px 14px; box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 0 0 3px #2a3a44; color: #F7F3EA; user-select: none; -webkit-user-select: none; touch-action: none; outline: none; }
.d-phone:focus-visible { box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 0 0 3px var(--mustard); }
.d-top { display: flex; align-items: baseline; gap: 10px; padding: 4px 6px 8px; font-size: 12px; color: #D3DEE3; }
.d-brand { font-size: 12px; color: var(--mustard); letter-spacing: .05em; }
.d-yen { margin-left: auto; font-size: 20px; color: #F7F3EA; }
.d-rank { font-size: 11px; }
.d-scene { width: 100%; height: auto; border-radius: 12px; image-rendering: pixelated; display: block; background: #3D525D; margin: 0 auto; }
.d-hoshi { display: flex; gap: 8px; align-items: flex-start; background: #3D525D; border-radius: 10px; padding: 8px 10px; margin-top: 8px; min-height: 48px; }
.d-hoshi img { image-rendering: pixelated; image-rendering: crisp-edges; width: 32px; height: 28px; border-radius: 6px; background: #566E7A; flex: none; }
.d-hint { margin: 0; font-size: 12.5px; line-height: 1.35; color: #ECE3D0; }
.d-order { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; padding: 10px 4px 6px; }
.d-chips { display: flex; gap: 4px; }
.d-chip { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: #344752; color: #9fb0b8; }
.d-chip.on { background: var(--mustard); color: #1f2a30; }
.d-gauge { padding: 0 4px; }
.d-track { position: relative; height: 14px; background: #2A3A44; border-radius: 7px; overflow: visible; }
.d-zone { position: absolute; top: 0; bottom: 0; background: #A8E0B4; border-radius: 7px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.d-needle { position: absolute; top: -5px; width: 4px; height: 24px; margin-left: -2px; background: #F7F3EA; border-radius: 2px; box-shadow: 0 0 0 1px #2A3A44; }
.d-readout { display: flex; justify-content: space-between; font-size: 12px; margin-top: 8px; min-height: 18px; }
.d-value { color: #D3DEE3; font-variant-numeric: tabular-nums; }
.d-feedback { font-weight: 800; }
.d-feedback.good { color: #A8E0B4; } .d-feedback.ok { color: var(--mustard); } .d-feedback.bad { color: #F0A08C; }
.d-brew { display: block; width: 100%; margin-top: 10px; border: 0; border-radius: 14px; background: #2F62E0; color: #fff; padding: 12px 10px 10px; cursor: grab; box-shadow: 0 5px 0 #1D3F9A; transition: transform .06s, box-shadow .06s; font-family: inherit; }
.d-brew .pixel { display: block; font-size: 26px; line-height: 1; letter-spacing: .08em; }
.d-brew small { display: block; font-size: 11px; opacity: .9; margin-top: 4px; }
.d-brew.active { transform: translateY(4px); box-shadow: 0 1px 0 #1D3F9A; background: #3A6FF0; cursor: grabbing; }
.d-foot { display: flex; justify-content: space-between; font-size: 11px; color: #9fb0b8; margin-top: 10px; padding: 0 4px; }
.d-result { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(42,58,68,.78); border-radius: 30px; padding: 20px; }
.d-result.show { display: flex; }
.d-card { background: #ECE3D0; color: #1f2a30; border-radius: 18px; padding: 22px; text-align: center; width: 100%; max-width: 300px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.d-stars { font-size: 30px; color: #F2B632; letter-spacing: .05em; line-height: 1; }
.d-stars span { color: #c8bfae; }
.d-result-title { margin: 8px 0 4px; font-size: 22px; }
.d-result-line { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.d-serve { border: 0; border-radius: 10px; background: #2F62E0; color: #fff; font-weight: 800; font-family: inherit; font-size: 15px; padding: 10px 18px; box-shadow: 0 4px 0 #1D3F9A; cursor: pointer; }
.d-more { display: none; margin: 14px 0 0; font-size: 13px; }
.d-more.show { display: block; }

.features.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cast-head { margin-bottom: 24px; }
.cast { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.who { display: flex; gap: 14px; background: var(--paper); border: 2px solid var(--cream-deep); border-radius: var(--radius); padding: 16px; }
.who img { width: 64px; height: 56px; image-rendering: pixelated; background: var(--slate); border-radius: 10px; flex: none; object-fit: contain; }
.who img.tall { height: 56px; }
.who b { display: block; font-size: 16px; }
.who span { display: block; font-size: 13px; color: var(--muted); }
.who q { display: block; margin-top: 6px; font-size: 14px; font-style: italic; quotes: "“" "”"; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.split-art { display: flex; gap: 14px; justify-content: center; }
.split-art img { width: 46%; border-radius: 18px; box-shadow: 0 10px 30px rgba(31,42,48,.18); }
.split-art img:last-child { transform: translateY(28px); }
.ticks { list-style: none; padding: 0; margin: 0; columns: 1; }
.ticks li { padding: 6px 0 6px 28px; position: relative; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--sage-deep); font-weight: 800; }

@media (max-width: 900px) {
  .hero2-grid { grid-template-columns: 1fr; padding-bottom: 36px; }
  .hero2-copy { text-align: center; }
  .hero2-copy .logo { text-align: center; }
  .hero-try .wide { display: none; } .hero-try .narrow { display: inline; }
  .d-phone { max-width: 420px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
}
.d-mute { border: 0; background: #3D525D; color: #F7F3EA; border-radius: 8px; width: 30px; height: 26px; font-size: 14px; cursor: pointer; line-height: 1; padding: 0; margin-left: 6px; align-self: center; }
.d-mute:hover { background: #566E7A; }
.sound-pill { display: none; position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; border: 0; border-radius: 999px; background: var(--mustard); color: var(--ink); font-family: inherit; font-weight: 800; font-size: 13px; padding: 7px 14px; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; }
.sound-pill.show { display: block; }
