/* ゆれなし LP — 文章に付いた色が主役。JS・Webフォント・外部読み込みなし。
   色は水色と黄色の2語だけ。この2色は「文章のマーク」にだけ使い、飾りにもボタンにも使わない。 */
:root {
  color-scheme: light dark;
  /* アプリ（EditorView.swift）の実測色に合わせる */
  --paper: #121417; --ink: #e8e8ed; --sub: #a0a0a5; --line: #343840;
  --aqua: #5ac8fa; --aqua-fill: rgba(90, 200, 250, 0.30);
  --yellow: #ffd60a;
  --night: #121417; --night-ink: #e8e8ed; --night-sub: #a0a0a5;
  --s1: 12px; --s2: 24px; --s3: 48px; --s4: 96px; --pad: 24px;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --w-head: 600; --w-body: 300;
  --t-sample: clamp(1.5rem, 1rem + 2.2vw, 2.375rem);   /* ヒーローの本文。ページでいちばん大きく鳴らす所 */
  --t-h2: clamp(2.25rem, 1.2rem + 4vw, 4rem);
  --t-lead: clamp(1.25rem, 1rem + 1vw, 1.625rem);
}
@media (prefers-color-scheme: light) {
  :root {
    --paper: #f7f7f5; --ink: #1c1c1e; --sub: #636366; --line: #d6d6d2;
    --aqua: #0071a4; --aqua-fill: rgba(0, 113, 164, 0.16);
    --yellow: #9a6700;
  }
}
@media (min-width: 800px) { :root { --s1: 16px; --s2: 32px; --s3: 64px; --s4: 144px; --pad: 48px; } }

/* LP は端末の設定にかかわらず、ライトの地に、ダークの章を1つだけ。 */
.lp { color-scheme: light; --paper: #f7f7f5; --ink: #1c1c1e; --sub: #636366; --line: #d6d6d2; --aqua: #0071a4; --aqua-fill: rgba(0, 113, 164, 0.16); --yellow: #9a6700; }
.night { color-scheme: dark; --ink: var(--night-ink); --sub: var(--night-sub); --aqua: #5ac8fa; --aqua-fill: rgba(90, 200, 250, 0.30); --yellow: #ffd60a; background: var(--night); color: var(--ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--w-body) 1.0625rem/1.85 var(--font); -webkit-font-smoothing: antialiased; word-break: auto-phrase; }
p, dd, li { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
h1, h2, h3 { font-weight: var(--w-head); font-feature-settings: "palt"; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--t-h2); line-height: 1.3; }
strong { font-weight: 600; }
.nw { display: inline-block; max-width: 100%; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.small { font-size: 1rem; line-height: 1.75; font-weight: 400; color: var(--sub); }

/* ── 文章のマーク（アプリの規則と同じ）──────────────────────────
   ゆれ = 水色の塗り / くり返し = 黄色の点線。文字そのものは墨のまま。
   動きは擬似要素の scaleX だけ。動きを減らす設定では最初から付いている。 */
.m { position: relative; display: inline-block; isolation: isolate; line-height: 1.3; }
.m::before, .m::after { content: ""; position: absolute; left: 0; right: 0; transform-origin: left center; }
.m-a::before { z-index: -1; top: 0.02em; bottom: -0.04em; left: -0.08em; right: -0.08em; border-radius: 0.18em; background: var(--aqua-fill); }
.m-y::after { bottom: -0.08em; height: 0.16em; background: radial-gradient(circle at 50% 50%, var(--yellow) 0 0.05em, transparent 0.058em) 0 0 / 0.21em 0.16em repeat-x; }
@keyframes mark-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .m::before, .m::after { animation: mark-in 300ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .m-a::before, .m-y::after { animation-delay: 400ms; }
  .d1::before, .d1::after { animation-delay: 520ms; }
  .d2::before, .d2::after { animation-delay: 640ms; }
  .d3::before, .d3::after { animation-delay: 760ms; }
  .d4::before, .d4::after { animation-delay: 880ms; }
  .d5::before, .d5::after { animation-delay: 1000ms; }
}
/* 実画面（780×1696）。角丸は画面そのもの。影なし。地と同じ色の画面は 1px の縁だけ。 */
.screen { width: min(100%, 320px); aspect-ratio: 780 / 1696; border-radius: 12.5% / 5.75%; overflow: hidden; outline: 1px solid rgba(128, 128, 128, 0.28); outline-offset: -1px; }
.screen img { width: 100%; height: 100%; }
.screen.on-night { outline-color: rgba(255, 255, 255, 0.14); }

/* 公開前の案内。押せるものではないので、枠だけ。 */
.soon { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--ink); border-radius: 980px; font-size: 1rem; font-weight: 600; line-height: 1; }

/* ── 1 ヒーロー ─────────────────────────────── */
.hero { padding-block: var(--s3) var(--s4); }
.hero .wrap { display: grid; gap: var(--s3); }
.app-name { font-size: 1.0625rem; line-height: 1.4; letter-spacing: 0.02em; }
.hero-lead { margin-top: var(--s1); font-size: var(--t-lead); line-height: 1.6; font-weight: 600; max-width: 22em; }
.sample { margin-top: var(--s3); font-size: var(--t-sample); line-height: 1.9; font-weight: 300; max-width: 19em; }
.sample p + p { margin-top: 0.7em; }
.tagline { margin-top: var(--s3); font-size: var(--t-lead); line-height: 1.6; font-weight: 600; }
.hero-meta { margin-top: var(--s2); display: grid; justify-items: start; gap: var(--s1); }
.hero-device { justify-self: start; }
@media (min-width: 900px) {
  .hero { padding-block: var(--s3) var(--s4); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; column-gap: 96px; }
  .hero-device { justify-self: end; }
}
@media (max-width: 899px) { .hero-device { justify-self: center; } }

/* ── 2 そろえる ─────────────────────────────── */
.align, .offline { padding-block: var(--s4); }
.align .wrap, .offline .wrap { display: grid; gap: var(--s3); align-items: center; }
.align h2, .offline h2 { max-width: 9em; }
.align p.lead, .offline p.lead { margin-top: var(--s2); font-size: var(--t-lead); line-height: 1.8; max-width: 22em; }
.align .screen { justify-self: center; }
.offline .screen { justify-self: center; }
@media (min-width: 900px) {
  .align .wrap { grid-template-columns: 320px minmax(0, 1fr); column-gap: 128px; }
  .offline .wrap { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 128px; }
  .align .screen { justify-self: start; order: -1; }
  .offline .screen { justify-self: end; }
}
@media (max-width: 899px) { .align .screen { order: 2; } }

/* ── 3 書き分け（この 1 章だけダーク）────────── */
.kakiwake { padding-block: var(--s4); }
.kakiwake h2 { max-width: 12em; }
.pairs { margin-top: var(--s3); display: grid; gap: var(--s2); }
.pair { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 1.6em; font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem); line-height: 1.5; font-weight: 300; }
.kakiwake .lead { margin-top: var(--s3); font-size: var(--t-lead); line-height: 1.8; max-width: 26em; }
.kakiwake .small { margin-top: var(--s2); max-width: 30em; }

/* ── 5 料金 ────────────────────────────────── */
.price { padding-block: var(--s4) var(--s3); }
.price h2 { font-size: clamp(1.375rem, 5vw, 2rem); line-height: 1.2; letter-spacing: 0; }
.price .big { font-size: clamp(4.5rem, 20vw, 6rem); line-height: 1; letter-spacing: -0.04em; margin-right: 0.08em; }
.plans { margin-top: var(--s3); display: grid; gap: var(--s2); max-width: 44em; }
.plans dt { font-size: var(--t-lead); line-height: 1.5; font-weight: 600; }
.plans dd { margin: 0.3em 0 0; font-size: 1.0625rem; line-height: 1.8; font-weight: 400; color: var(--sub); }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; gap: var(--s3); } }
.price .body { margin-top: var(--s2); font-size: var(--t-lead); line-height: 1.8; max-width: 24em; }

/* ── 6 閉じ ────────────────────────────────── */
.closing { padding-block: var(--s3) var(--s4); }
.closing .icon { width: 112px; height: 112px; border-radius: 22.37%; overflow: hidden; }
.closing .icon img { width: 100%; height: 100%; }
.closing .line { margin-top: var(--s3); font-size: var(--t-h2); line-height: 1.35; font-weight: var(--w-head); letter-spacing: -0.02em; font-feature-settings: "palt"; text-wrap: balance; }
.closing .soon { margin-top: var(--s2); }

/* ── フッター ──────────────────────────────── */
.site-footer { padding-block: var(--s3); font-size: 0.9375rem; line-height: 1.8; font-weight: 400; color: var(--sub); border-top: 1px solid var(--line); }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--s2); }
.site-footer a { display: inline-block; padding-block: 6px; color: var(--sub); }
.site-footer a:hover { color: var(--ink); }
.site-footer .credit { margin-top: var(--s2); max-width: 44em; }

/* ── サブページ（サポート・プライバシー・特商法・規約）。端末の明暗に従う ── */
.site-header { padding-block: var(--s2) 0; }
.site-header a { text-decoration: none; font-weight: var(--w-head); }
.page { padding-block: var(--s3) var(--s4); font-weight: 400; }
.col { max-width: 40em; }
.page h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.3; }
.page .lead { margin-top: var(--s1); font-size: 1.125rem; color: var(--sub); }
.page h2 { margin-top: var(--s3); font-size: 1.375rem; line-height: 1.5; letter-spacing: 0; }
.page p, .page dd, .page ul { margin-top: 0.75em; }
.page ul { padding-left: 1.25em; }
.page li + li { margin-top: 0.35em; }
.page dt { margin-top: var(--s2); font-weight: 600; }
.page dt:first-child { margin-top: var(--s1); }
.page dd { margin-top: 0.3em; }
.page .note { color: var(--sub); font-size: 0.9375rem; }
.page .meta { margin-top: var(--s3); }
.page dl.facts dt { color: var(--sub); font-size: 0.9375rem; font-weight: 400; }
.page dl.facts dd { margin-top: 0.15em; }
