/* THE WORD MACHINE — LP 共通スタイル（2026-10-19 アン） */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  color-scheme: light;
  --paper: #FFFFFF;      /* アプリの地は白 */
  --kinari: #F6F2EC;     /* ヘッダーの生成り */
  --plaster: #EFE9E1;    /* 壁 */
  --line: #E4DBCF;
  --ink: #5A4330;        /* 焦げ茶 */
  --ink-deep: #3B2C20;
  --text: #6A5847;
  --muted: #9A8A79;
  --brass: #A8844E;
  --sand: #D9B98C;
  --wood: #4A3020;
  --ok: #55FD9D;         /* 正解の緑（キーボードの光） */
  --ng: #FB604A;         /* ミスの赤 */
  --ok-ink: #1F9C5A;     /* 字にするときの緑 */
  --ng-ink: #D2412C;
  --jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --plate: Copperplate, "Copperplate Gothic", "Cinzel", Georgia, serif;
  --serif: "Cormorant Garamond", "Hiragino Mincho ProN", Georgia, serif;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--jp); font-weight: 400; font-size: 15.5px; line-height: 2.05; letter-spacing: .03em;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(90,67,48,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.container { max-width: 680px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
@media (min-width: 768px) { .container, .container-wide { padding: 0 40px; } }
br.sp { display: none; }
@media (max-width: 600px) { br.sp { display: inline; } br.pc { display: none; } }
.plate { font-family: var(--plate); font-weight: 400; letter-spacing: .14em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: 60px;
  background: rgba(246, 242, 236, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(228, 219, 207, .8);
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px;
}
.header-logo { display: flex; align-items: center; gap: 5px; color: #4a4a4a; font-family: system-ui, sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0; text-decoration: none; }
.header-logo img { width: 17px; height: 17px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-app-link { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.header-app-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.header-app-logo { font-family: var(--plate); font-size: 13.5px; letter-spacing: .14em; white-space: nowrap; }
.header-nav { display: none; gap: 20px; font-size: 13px; margin-right: 8px; }
.header-nav a { color: var(--text); text-decoration: none; }
.header-nav a:hover { color: var(--ink); }
@media (min-width: 960px) { .header-nav { display: flex; } }
.hamburger-btn { display: none; background: none; border: none; cursor: pointer; font-size: 21px; color: #6a5a4c; padding: 6px 4px 6px 8px; line-height: 1; }
@media (max-width: 959px) { .hamburger-btn { display: block; } }
@media (max-width: 380px) { .header-app-logo { display: none; } }

/* ---------- Drawer ---------- */
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(40, 30, 20, .3); z-index: 200; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 270px; background: var(--kinari); z-index: 201; transform: translateX(100%); transition: transform .3s ease; padding: 18px 26px 40px; box-shadow: -2px 0 18px rgba(0,0,0,.1); }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.drawer-close-btn { background: none; border: none; font-size: 19px; color: #a79a8b; cursor: pointer; padding: 4px 6px; }
.drawer-nav a { display: block; font-size: 15px; color: var(--text); padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; }
.drawer-nav a:first-child { border-top: 1px solid var(--line); }

/* ---------- Common ---------- */
section { position: relative; }
.eyebrow { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 17px; letter-spacing: .06em; color: var(--brass); margin-bottom: 6px; }
.section-title { font-weight: 300; font-size: 26px; line-height: 1.6; letter-spacing: .1em; color: var(--ink-deep); text-align: center; margin-bottom: 8px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .section-title { margin-bottom: 0; }
.section-intro { text-align: center; color: var(--text); font-size: 15px; margin-top: 14px; }
@media (max-width: 600px) { .section-title { font-size: 22px; } }
.rule { display: block; width: 46px; height: 1px; background: var(--brass); opacity: .6; margin: 0 auto 20px; }
.ok-sq, .ng-sq { display: inline-block; width: .82em; height: .82em; vertical-align: -.06em; margin: 0 .12em; border-radius: 1px; }
.ok-sq { background: var(--ok); box-shadow: 0 0 6px rgba(85,253,157,.7); }
.ng-sq { background: var(--ng); box-shadow: 0 0 6px rgba(251,96,74,.6); }
.c-ok { color: var(--ok-ink); font-weight: 500; }
.c-ng { color: var(--ng-ink); font-weight: 500; }

/* 時間の操作の記号（絵文字は使わない） */
.tc { display: inline-flex; align-items: center; gap: 1px; vertical-align: -.12em; }
.tc svg { width: 1.15em; height: 1em; fill: var(--ink-deep); }

/* スクショの額 */
.phone { border-radius: 22px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 18px 40px rgba(74, 48, 32, .16); background: #fff; }

/* ---------- Buttons ---------- */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-deep); color: #fff; font-family: system-ui, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .02em;
  padding: 13px 28px; border-radius: 999px; box-shadow: 0 6px 22px rgba(59, 44, 32, .22); text-decoration: none;
}
.appstore-btn:hover { transform: translateY(-1px); }
.appstore-btn.is-soon { cursor: default; background: rgba(59, 44, 32, .78); }
.appstore-btn.is-soon:hover { transform: none; }
.hero-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; line-height: 1.8; letter-spacing: .04em; }

/* ---------- Hero ---------- */
.section-hero { background: var(--plaster); overflow: hidden; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: auto; }
.hero-text { text-align: center; padding: 34px 22px 46px; }
.hero-sub { font-size: 13.5px; letter-spacing: .3em; color: var(--text); margin-bottom: 10px; margin-right: -.3em; }
.hero-title { font-family: var(--plate); font-weight: 400; font-size: clamp(30px, 7.6vw, 50px); line-height: 1.25; letter-spacing: .12em; color: var(--ink-deep); margin-right: -.12em; }
.hero-title .the { display: block; font-size: .5em; letter-spacing: .5em; margin-right: -.5em; color: var(--brass); margin-bottom: 4px; }
.hero-tagline { font-weight: 300; font-size: 17px; letter-spacing: .14em; color: var(--ink); margin: 22px 0 26px; line-height: 2; }
@media (max-width: 819px) {
  .hero-photo { aspect-ratio: 4 / 3.3; }
  .hero-photo img { height: 100%; object-fit: cover; object-position: 26% 40%; }
}
@media (min-width: 820px) {
  .section-hero { min-height: 0; }
  .hero-text {
    position: absolute; top: 50%; right: 6%; transform: translateY(-58%);
    width: min(44%, 520px); padding: 0;
  }
  .hero-tagline { font-size: clamp(16px, 1.6vw, 19px); }
  .hero-text .hero-note { color: #000; }  /* 写真の上に乗るので黒（Cage 10/20） */
}
@media (min-width: 1500px) { .hero-photo { max-height: calc(100vh - 60px); overflow: hidden; } .hero-photo img { object-fit: cover; object-position: 50% 60%; height: calc(100vh - 60px); } }

/* ---------- Concept ---------- */
.section-concept { padding: 96px 0 90px; background: var(--paper); }
.concept-lines { text-align: center; font-weight: 300; font-size: 16.5px; line-height: 2.35; letter-spacing: .08em; color: var(--ink); }
.concept-lines p { margin: 0; }
@media (max-width: 420px) { .concept-lines { font-size: 14.5px; letter-spacing: .04em; } }
.film { margin: 56px auto 0; max-width: 820px; }
.film video, .film img { width: 100%; border-radius: 6px; box-shadow: 0 20px 50px rgba(74, 48, 32, .18); background: #e9e1d6; aspect-ratio: 1280 / 1000; object-fit: cover; }
.figcap { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; letter-spacing: .06em; line-height: 1.8; }

/* ---------- Not a game ---------- */
.section-notagame { padding: 92px 0; background: var(--kinari); }
.notagame-text p { color: var(--text); margin-bottom: 16px; }
.nots { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin: 6px 0 30px; }
.nots span { font-size: 13.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 16px; text-decoration: line-through; text-decoration-color: rgba(154,138,121,.6); background: rgba(255,255,255,.5); }

/* ---------- How it works ---------- */
.section-howto { padding: 100px 0 90px; }
.steps { display: grid; gap: 64px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.step { text-align: left; }
.step-shots { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.step-shots img { width: min(220px, 46%); }
.step-shots.single img { width: min(250px, 66%); }
@media (min-width: 860px) { .step-shots.single img { width: 62%; } }
.step-num { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--brass); line-height: 1; margin-bottom: 8px; }
.step h3 { font-weight: 500; font-size: 18px; letter-spacing: .08em; color: var(--ink-deep); margin-bottom: 8px; line-height: 1.6; }
.step p { color: var(--text); font-size: 15px; }
details.guide { max-width: 620px; margin: 70px auto 0; border: 1px solid var(--line); border-radius: 14px; background: var(--kinari); }
details.guide summary { cursor: pointer; list-style: none; padding: 16px 22px; font-size: 14.5px; color: var(--ink); text-align: center; }
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary::after { content: "＋"; margin-left: 8px; color: var(--brass); }
details.guide[open] summary::after { content: "−"; }
.guide-body { padding: 4px 22px 26px; text-align: center; font-weight: 300; font-size: 15px; line-height: 2.2; color: var(--ink); }
.guide-body .gt { font-weight: 400; margin-bottom: 6px; letter-spacing: .2em; }

/* ---------- Record ---------- */
.section-record { padding: 100px 0; background: var(--kinari); }
.record-wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 860px) { .record-wrap { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.record-shots { display: flex; gap: 14px; justify-content: center; }
.record-shots img { width: min(230px, 47%); }
.record-cap { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.8; }
.record-text h3 { font-weight: 400; font-size: 21px; letter-spacing: .1em; color: var(--ink-deep); line-height: 1.7; margin-bottom: 14px; }
.record-text p { color: var(--text); margin-bottom: 14px; }
.lights { display: grid; gap: 12px; margin: 22px 0 6px; }
.light { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.light .lamp { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 4px; }
.light .lamp.ok { background: var(--ok); box-shadow: 0 0 12px rgba(85,253,157,.85); }
.light .lamp.ng { background: var(--ng); box-shadow: 0 0 12px rgba(251,96,74,.75); }
.light b { color: var(--ink-deep); font-weight: 500; }
.time-controls { margin-top: 70px; }
.tc-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .tc-grid { grid-template-columns: repeat(3, 1fr); } }
.tc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 18px; }
.tc-card .keys { font-size: 26px; margin-bottom: 8px; display: flex; gap: 10px; }
.tc-card .keys .tc svg { width: 1.2em; }
.tc-card h4 { font-weight: 500; font-size: 16px; letter-spacing: .08em; color: var(--ink-deep); margin-bottom: 4px; }
.tc-card p { font-size: 14px; color: var(--text); line-height: 1.95; }
.past-note { text-align: center; margin-top: 30px; color: var(--text); font-size: 14.5px; }

/* ---------- Stages ---------- */
.section-stages { padding: 100px 0; }
.stages-wrap { display: grid; gap: 44px; align-items: center; }
@media (min-width: 860px) { .stages-wrap { grid-template-columns: 1fr 1fr; gap: 60px; } }
.stages-photo img { border-radius: 6px; box-shadow: 0 16px 40px rgba(74, 48, 32, .16); }
.nixie-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 22px; }
.nixie-row span {
  width: 30px; height: 40px; border-radius: 15px 15px 6px 6px; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 21px; color: #F7A35A; text-shadow: 0 0 6px rgba(255, 140, 50, .9);
  background: radial-gradient(circle at 50% 45%, #4a2a18, #24140b 80%); box-shadow: inset 0 0 0 1px rgba(255,200,150,.18);
}
.nixie-row span.zero { color: #FFD3A8; }
@media (max-width: 420px) { .nixie-row { gap: 4px; } .nixie-row span { width: 25px; height: 34px; font-size: 18px; } }
.stages-text h3 { font-weight: 400; font-size: 21px; letter-spacing: .1em; color: var(--ink-deep); line-height: 1.7; margin-bottom: 14px; }
.stages-text p { color: var(--text); margin-bottom: 14px; }
.stage0 { background: var(--kinari); border-radius: 12px; padding: 14px 18px; font-size: 14.5px; color: var(--text); margin-top: 6px; }
.stage0 b { color: var(--ink-deep); font-weight: 500; }
.guide-shot { display: flex; gap: 28px; align-items: center; margin-top: 60px; }
.guide-shot img { width: min(210px, 42%); flex: 0 0 auto; }
.guide-shot p { color: var(--text); font-size: 15px; }
@media (max-width: 560px) { .guide-shot { gap: 18px; } .guide-shot p { font-size: 14px; } }

/* ---------- Stage 0 (night) ---------- */
.night { margin-top: 80px; background: #0B0705; color: #E8D9C2; border-radius: 18px; padding: 44px 28px; display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .night { grid-template-columns: 1.1fr 1fr; padding: 56px 56px; gap: 56px; } }
.night .eyebrow { color: #D9A86A; }
.night h3 { font-weight: 400; font-size: 21px; letter-spacing: .1em; color: #F6EAD6; line-height: 1.7; margin-bottom: 14px; }
.night p { color: #CDBCA5; margin-bottom: 14px; font-size: 15px; }
.night p b { color: #F6EAD6; font-weight: 500; }
.night .night-note { font-size: 13px; color: #9C8A74; margin-top: 18px; margin-bottom: 0; }
.night-shot { display: flex; justify-content: center; }
.night-shot img { width: min(250px, 66%); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 18px 50px rgba(0,0,0,.6); }

/* ---------- Words ---------- */
.section-words { padding: 90px 0 20px; }
.words-box { border: 1px solid var(--line); border-radius: 16px; background: var(--kinari); padding: 28px 24px 22px; text-align: center; }
.words-ver { font-family: var(--plate); font-size: 13px; letter-spacing: .2em; color: var(--brass); }
.words-count { font-size: 17px; color: var(--ink-deep); margin: 6px 0 16px; letter-spacing: .06em; }
.words-count .num { font-family: var(--serif); font-size: 34px; font-weight: 500; margin: 0 4px; }
.words-count .sep { color: var(--muted); margin: 0 10px; }
.words-notes { list-style: none; text-align: left; max-width: 480px; margin: 0 auto; font-size: 14px; color: var(--text); line-height: 1.9; }
.words-notes li { padding-left: 1.1em; text-indent: -1.1em; }
.words-notes li::before { content: "・"; }
.words-source { text-align: left; max-width: 480px; margin: 16px auto 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
.words-source a { color: inherit; }
.words-after { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 14px; }

/* ---------- Machine gallery ---------- */
.section-machine { padding: 100px 0; background: var(--plaster); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery figure { margin: 0; }
.gallery img { border-radius: 4px; aspect-ratio: 1280 / 1000; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.7; letter-spacing: .04em; }
.machine-text { max-width: 640px; margin: 0 auto 44px; text-align: center; color: var(--text); }
.machine-text p { margin-bottom: 12px; }

/* ---------- Price ---------- */
.section-price { padding: 80px 0 100px; }
.price-lead { text-align: center; font-weight: 300; font-size: 19px; letter-spacing: .1em; color: var(--ink-deep); margin-bottom: 30px; line-height: 1.9; }
.price-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; background: #fff; }
.price-card h4 { font-weight: 500; font-size: 16px; letter-spacing: .06em; color: var(--ink-deep); margin-bottom: 6px; }
.price-card p { font-size: 14px; color: var(--text); line-height: 1.95; }
.price-card .yen { display: inline-block; margin-top: 10px; font-size: 13.5px; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 8px; width: 100%; }
.price-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 22px; line-height: 1.9; }

/* ---------- FAQ ---------- */
.section-faq { padding: 100px 0; background: var(--kinari); }
.faq-items { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 15px 44px 15px 18px; font-size: 15px; color: var(--ink-deep); position: relative; line-height: 1.7; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "＋"; position: absolute; right: 18px; top: 15px; color: var(--brass); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 18px 16px; font-size: 14.5px; color: var(--text); line-height: 1.95; }

/* ---------- Support ---------- */
.section-support { padding: 100px 0; }
.support-contact { text-align: center; border: 1px solid var(--line); border-radius: 14px; padding: 26px 20px; background: var(--kinari); margin-bottom: 34px; }
.support-contact .label { font-size: 12.5px; color: var(--muted); letter-spacing: .1em; }
.support-contact .mail { font-size: 20px; letter-spacing: .04em; color: var(--ink-deep); }
.support-note { font-size: 13.5px; color: var(--text); margin-top: 6px; }
.support-box h3 { font-weight: 500; font-size: 16px; letter-spacing: .06em; margin: 22px 0 4px; color: var(--ink-deep); }
.support-box p { color: var(--text); font-size: 15px; }

/* ---------- CTA ---------- */
.section-cta { padding: 96px 22px 100px; text-align: center; background: var(--plaster); }
.cta-icon { width: 112px; height: 112px; border-radius: 25px; margin: 26px auto 30px; box-shadow: 0 14px 34px rgba(59, 44, 32, .25); }
.cta-line { font-weight: 300; font-size: 18px; letter-spacing: .1em; color: var(--ink-deep); line-height: 2; }

/* ---------- Footer ---------- */
.site-footer { background: #2E231B; color: #D9CEC0; font-size: 13px; line-height: 1.7; padding: 42px 22px; text-align: center; letter-spacing: .04em; }
.site-footer a { color: #F3ECE2; }
.footer-item { display: block; margin-bottom: 11px; }
.footer-item:last-child { margin-bottom: 0; color: #9E9183; }

/* ---------- Policy pages ---------- */
.page-content { padding: 56px 0 72px; }
.page-content h1 { font-weight: 300; font-size: 26px; letter-spacing: .1em; margin-bottom: 6px; line-height: 1.5; color: var(--ink-deep); }
.last-updated { font-size: 13px; color: var(--muted); margin-bottom: 38px; }
.page-content h2 { font-size: 16.5px; font-weight: 500; margin-top: 34px; margin-bottom: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--ink-deep); letter-spacing: .05em; }
.page-content p { margin-bottom: 12px; color: var(--text); }
.page-content ul { padding-left: 20px; margin-bottom: 12px; color: var(--text); }
.page-content li { margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin: 10px 0 16px; }
.data-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13.5px; border: 1px solid var(--line); background: #fff; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.7; }
.data-table th { background: var(--kinari); color: var(--ink-deep); font-weight: 500; font-size: 12.5px; }
.data-table tr:last-child td { border-bottom: none; }
.callout { background: var(--kinari); border-left: 3px solid var(--brass); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 14px 0 6px; font-size: 14.5px; color: var(--text); }
.callout strong { font-weight: 500; color: var(--ink-deep); }

/* ヒント（使い方の節の下・10/20） */
.hint-wrap { display: grid; gap: 36px; align-items: center; max-width: 900px; margin: 80px auto 0; }
@media (min-width: 860px) { .hint-wrap { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.hint-shot { margin: 0; text-align: center; }
.hint-shot img { width: 100%; max-width: 360px; height: auto; margin: 0 auto; }
.hint-text h3 { font-weight: 400; font-size: 21px; letter-spacing: .1em; color: var(--ink-deep); line-height: 1.7; margin-bottom: 14px; }
.hint-text p { color: var(--text); margin-bottom: 14px; }
