/* プレイコードの LP。色はアプリ（src/theme.ts の iOS）の緑とコードのピンクにそろえる。スマートフォンを先に考える */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --tint: #2e9e75;
  --tint-deep: #1f7a59;
  --tint-soft: #e3f4ed;
  --chord: #e0537a;
  --rec: #ff3b30;
  --on-tint: #ffffff;
  --surface: #ffffff;
  --glass: rgba(255, 255, 255, 0.9);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --ink-faint: #d2d2d7;
  --ink-body: #3a3a3c;
  --hero-glow: rgba(46, 158, 117, 0.16);
  --screen-bg: #ffffff;
  --screen-ink: #000000;
  --rec-soft: #fff0ef;
  --field-bg: #0b0b0c;
  --field-card: #161618;
  --cta-bg: radial-gradient(70% 90% at 50% 0%, rgba(92, 199, 157, 0.35), transparent 70%), linear-gradient(#f3faf6, #e3f4ed);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.28), 0 12px 24px -12px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --wrap: 1120px;
  --pad: 20px;
}
@media (min-width: 721px) {
  :root { --pad: 24px; }
}
/* 端末の設定に合わせてダークモードに（色はアプリの iOS のダークにそろえる） */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000000;
    --bg-soft: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: rgba(235, 235, 245, 0.64);
    --ink-3: rgba(235, 235, 245, 0.46);
    --line: rgba(255, 255, 255, 0.1);
    --tint: #5cc79d;
    --tint-deep: #7fd9b5;
    --tint-soft: #16352a;
    --chord: #f07c9c;
    --rec: #ff453a;
    --on-tint: #00382a;
    --surface: #2c2c2e;
    --glass: rgba(44, 44, 46, 0.84);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --ink-faint: rgba(235, 235, 245, 0.22);
    --ink-body: rgba(235, 235, 245, 0.82);
    --hero-glow: rgba(92, 199, 157, 0.2);
    --screen-bg: #000000;
    --screen-ink: #ffffff;
    --rec-soft: #3a1a18;
    --field-bg: #111113;
    --field-card: #1c1c1e;
    --cta-bg: radial-gradient(70% 90% at 50% 0%, rgba(92, 199, 157, 0.28), transparent 70%), linear-gradient(#0f1f19, #0a1510);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
    --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-feature-settings: "palt";
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
/* 日本語を文節で折り返す（対応していないブラウザでは今までどおり） */
h1, h2, h3, p { word-break: auto-phrase; }
p { margin: 0; }
/* 続けて押してもダブルタップで拡大しない（ピンチでの拡大はできる） */
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

.sp { display: none; }
@media (max-width: 720px) {
  .pc { display: none; }
  .sp { display: inline; }
}

/* ---------- ボタン・バッジ ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--on-tint);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 150ms var(--ease);
}
.btn:hover { background: var(--tint-deep); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; }

/* ストアのバッジ: 公式の絵をそのまま使い、形・色・透明度を変えない。高さはそろえる（Google Play は他と同じか大きく）。
   周りの余白はバッジの高さの 1/4 以上（52px なら 13px）。App Store のバッジはページに 1 つ、他のバッジより前に置く */
.get { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; padding: 14px 0; }
.badge { display: inline-flex; line-height: 0; }
.badge img { height: 52px; width: auto; }
.btn-large { height: 52px; padding: 0 32px; font-size: 17px; }

.qr { display: none; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 0; text-align: left; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.qr img { width: 96px; height: 96px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
html.is-desktop .qr { display: flex; }

/* ---------- ナビ ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: var(--wrap);
  height: 60px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
/* ほかの言語の同じページへ。ナビの項目が無いとき（狭い画面、文書のページ）は、言語とボタンを右に寄せる */
.lang-switch { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.lang-switch:hover { color: var(--ink); }
.nav .lang-switch { margin-left: -4px; }
.brand + .lang-switch { margin-left: auto; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .lang-switch { margin-left: auto; }
  .nav-inner { gap: 20px; }
}

/* ---------- 見出しの共通 ---------- */
section { position: relative; }
.section-head { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); text-align: center; }
.section-head h2 { font-size: clamp(28px, 5vw, 52px); line-height: 1.25; }
.section-head p { margin-top: 12px; font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); }

/* ---------- ヒーロー ---------- */
.hero {
  padding: 40px var(--pad) 0;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(60% 40% at 50% 80%, var(--hero-glow), transparent 70%), var(--bg);
}
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint-soft);
  color: var(--tint-deep);
  font-size: 13px;
  font-weight: 600;
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(32px, 7vw, 80px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-lead {
  max-width: 34em;
  text-wrap: balance;
  margin: 16px auto 0;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.8;
  color: var(--ink-2);
}
.hero .get { margin-top: 10px; }
.hero-meta { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--ink-2); }

.hero-stage {
  position: relative;
  max-width: 1040px;
  height: 528px;
  margin: 32px auto 0;
}

/* 端末の枠 */
.device {
  position: relative;
  width: 260px;
  aspect-ratio: 1206 / 2622;
  padding: 9px;
  border-radius: 46px;
  background: #1d1d1f;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #424245;
  container-type: inline-size;
}
.device img,
.device .mk {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  object-fit: cover;
  background: var(--screen-bg);
}
.device::after {
  /* ダイナミックアイランド（端末の幅に合わせる） */
  content: "";
  position: absolute;
  top: 3.6cqw;
  left: 50%;
  width: 30%;
  height: 8cqw;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}
/* アニメーションの要（▶ と操作部）は画面の下にあるので、端末は見切らずに全体を見せる */
.device-hero { position: absolute; left: 50%; top: 0; width: 220px; transform: translateX(-50%); }

/* いまアニメーションが見せている段。端末の画面には重ねず、下に置く */
.hero-steps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.hero-steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px 5px 5px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-3);
  transition: color 200ms var(--ease), background-color 200ms var(--ease);
}
.hero-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  background: var(--bg-soft);
  transition: inherit;
}
.hero-steps li.on { color: var(--ink); background: var(--bg-soft); }
.hero-steps li.on::before { background: var(--tint); color: var(--on-tint); }
.hero-steps li[data-step="rec"].on::before { background: var(--rec); color: #fff; }

@media (min-width: 721px) {
  .hero { padding-top: 72px; }
  .hero-lead { margin-top: 22px; }
  .hero .get { margin-top: 18px; }
  .hero-stage { height: 668px; margin-top: 56px; }
  .device-hero { width: 280px; }
  .hero-steps { gap: 10px; }
  .hero-steps li { gap: 6px; padding: 6px 14px 6px 6px; font-size: 15px; }
  .hero-steps li::before { width: 22px; height: 22px; font-size: 12px; }
}

/* ---------- あるある ---------- */
.pain { padding: 96px var(--pad); }
.pain-text {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.pain-text span { color: var(--ink); transition: color 300ms var(--ease); }
.pain-text .pain-answer { color: var(--tint); }
/* スクロールに合わせて、読むところから濃くなる */
.js .pain-text span:not(.lit) { color: var(--ink-faint); }
@media (prefers-reduced-motion: reduce) {
  .js .pain-text span:not(.lit) { color: var(--ink); }
  .js .pain-text .pain-answer:not(.lit) { color: var(--tint); }
}
@media (min-width: 721px) {
  .pain { padding: 160px var(--pad); }
}

/* ---------- 書く・弾く・聞き返す ---------- */
.how { padding: 24px var(--pad) 72px; }
.step {
  display: grid;
  gap: 28px;
  max-width: 980px;
  margin: 56px auto 0;
}
.step-no { font-size: 14px; font-weight: 700; color: var(--tint); letter-spacing: 0.04em; }
.step h3 { margin-top: 8px; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.3; }
.step-copy > p:last-child { margin-top: 12px; font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); }
.step-visual { display: grid; justify-items: center; }
@media (min-width: 861px) {
  .how { padding: 40px var(--pad) 140px; }
  .step { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; margin-top: 120px; }
  .step-flip .step-copy { order: 2; }
}

/* ---------- 紹介のアニメーション（アプリの見た目を借りて HTML で描く。main.js の SCENES） ----------
   大きさは端末の幅に対する割合（cqw）で決める。アプリの画面の幅 402pt を 100cqw とし、1pt ≒ 0.249cqw */
.mk { container-type: inline-size; position: relative; overflow: hidden; color: var(--screen-ink); text-align: left; line-height: 1.35; }
.mk-screen { position: absolute; inset: 0; transition: opacity 200ms var(--ease); }
.mk.cut .mk-screen { opacity: 0; }
.mk p { margin: 0; }
.mk-status { height: 13cqw; padding: 4.2cqw 0 0 13cqw; font-size: 3.8cqw; font-weight: 600; }
.mk-head { display: flex; align-items: center; gap: 3cqw; height: 13cqw; padding: 0 4cqw; }
.mk-back, .mk-more { flex: none; width: 9.5cqw; height: 9.5cqw; border-radius: 50%; background: var(--bg-soft); position: relative; }
.mk-back::before { content: ""; position: absolute; left: 41%; top: 33%; width: 2.6cqw; height: 2.6cqw; border-left: 0.6cqw solid var(--screen-ink); border-bottom: 0.6cqw solid var(--screen-ink); transform: rotate(45deg); }
.mk-more { width: 15cqw; border-radius: 999px; }
.mk-more::before { content: "• • •"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6cqw; letter-spacing: 0.4cqw; }
.mk-title { flex: 1; text-align: center; line-height: 1.25; }
.mk-title b { display: block; font-size: 3.9cqw; }
.mk-title small { font-size: 2.8cqw; color: var(--ink-3); }
.mk-cancel, .mk-done { font-size: 3.7cqw; color: var(--tint); white-space: nowrap; }
.mk-done { font-weight: 700; }
.mk-progress { height: 0.6cqw; width: 0; background: var(--tint); }
.mk-body { position: absolute; top: 27cqw; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 2cqw 4.5cqw; }
.mk-sheet { font-size: 4.5cqw; line-height: 1.42; white-space: pre; will-change: transform; }
.mk-sheet .mk-c { color: var(--chord); font-weight: 600; }
.mk-part {
  display: inline-block; margin: 3.5cqw 0 0.6cqw; padding: 0.4cqw 2cqw; border-radius: 1.6cqw;
  background: var(--tint-soft); color: var(--tint-deep); font-size: 3cqw; font-weight: 700; line-height: 1.5;
}
.mk-sheet > :first-child { margin-top: 0; }
.mk-c { display: inline-block; transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.mk-c.swap { opacity: 0; transform: translateY(-1.5cqw); transition: none; }
.mk-count {
  position: absolute; left: 50%; top: 45%; width: 22cqw; height: 22cqw; margin: -11cqw 0 0 -11cqw;
  display: grid; place-items: center; border-radius: 50%; background: var(--glass); box-shadow: var(--shadow-md);
  font-size: 11cqw; font-weight: 800; color: var(--tint); opacity: 0; transform: scale(0.9);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.mk-count.on { opacity: 1; transform: none; }
/* 下の操作部。止まっているときは 4 つのボタン、流しているあいだは「− 速さ +」（と録音）だけに縮んで ▶ の横に寄る */
.mk-bar { position: absolute; left: 3.5cqw; right: 3.5cqw; bottom: 7cqw; display: flex; align-items: center; justify-content: flex-end; gap: 3cqw; }
.mk-dock {
  display: flex; align-items: center; padding: 1cqw; border-radius: 999px;
  background: var(--glass); box-shadow: 0 0 0 1px var(--line), var(--shadow-md);
}
.mk-idle, .mk-stepper { display: flex; align-items: center; overflow: hidden; transition: max-width 250ms var(--ease), opacity 150ms var(--ease); }
.mk-idle { max-width: 54cqw; }
.mk-stepper { max-width: 0; opacity: 0; }
.mk-bar.playing .mk-idle { max-width: 0; opacity: 0; }
.mk-bar.playing .mk-stepper { max-width: 32cqw; opacity: 1; }
.mk-ctl { position: relative; flex: none; width: 18cqw; display: grid; justify-items: center; line-height: 1.2; border-radius: 999px; padding: 1.5cqw 0; transition: background-color 200ms var(--ease); }
.mk-ctl b { font-size: 4.4cqw; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-ctl b em { margin-right: 0.8cqw; font-style: normal; font-size: 2.6cqw; font-weight: 400; color: var(--ink-3); }
.mk-ctl small { font-size: 2.3cqw; color: var(--ink-2); white-space: nowrap; }
.mk-ctl.on { background: var(--tint-soft); }
.mk-stepper .mk-ctl { width: 14cqw; }
.mk-minus, .mk-plus { position: relative; flex: none; width: 9cqw; height: 9cqw; }
.mk-minus::before, .mk-plus::before, .mk-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 3.6cqw; height: 0.55cqw; margin: -0.275cqw 0 0 -1.8cqw;
  border-radius: 1cqw; background: var(--screen-ink);
}
.mk-plus::after { transform: rotate(90deg); }
.mk-mic svg { width: 4.4cqw; height: 4.4cqw; margin: 0.2cqw 0 0.3cqw; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
/* 録っているあいだは、録音のボタンが赤い面に ■ と時間になる（アプリと同じ） */
.mk-mic .mk-rec-time { display: none; font-size: 3.6cqw; line-height: 4.9cqw; font-variant-numeric: tabular-nums; }
.mk-mic .mk-rec-time::before { content: ""; display: inline-block; width: 2.2cqw; height: 2.2cqw; margin-right: 1cqw; border-radius: 0.4cqw; background: currentColor; vertical-align: 0.2cqw; }
.mk-mic.rec { background: var(--rec); }
.mk-mic.rec svg { display: none; }
.mk-mic.rec .mk-rec-time { display: block; color: #fff; }
.mk-mic.rec small { color: rgba(255, 255, 255, 0.85); }
.mk-bar.playing .mk-mic:not(.rec) { display: none; }
.mk-speed.swap { opacity: 0; }
.mk-speed { transition: opacity 150ms var(--ease); }
.mk-play {
  position: relative; flex: none; display: grid; place-items: center; width: 15cqw; height: 15cqw; border-radius: 50%;
  background: var(--tint); box-shadow: var(--shadow-md);
}
.mk-icon-play { width: 0; height: 0; margin-left: 1cqw; border-left: 4.4cqw solid var(--on-tint); border-top: 2.7cqw solid transparent; border-bottom: 2.7cqw solid transparent; }
.mk-icon-pause { display: none; width: 4cqw; height: 4.6cqw; border-left: 1.4cqw solid var(--on-tint); border-right: 1.4cqw solid var(--on-tint); }
.mk-play.on .mk-icon-play { display: none; }
.mk-play.on .mk-icon-pause { display: block; }
/* キーのパネル */
.mk-panel {
  position: absolute; left: 3cqw; right: 3cqw; bottom: 27cqw; padding: 3.5cqw; border-radius: 6cqw;
  background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-md);
  opacity: 0; transform: translateY(4cqw); transition: opacity 220ms var(--ease), transform 260ms var(--ease);
}
.mk-panel.on { opacity: 1; transform: none; }
.mk-panel p { display: flex; align-items: baseline; gap: 2cqw; padding: 0 1cqw 2.5cqw; }
.mk-panel small { font-size: 3.2cqw; color: var(--ink-2); }
.mk-panel b { font-size: 5.5cqw; }
.mk-keys { display: flex; gap: 2.2cqw; }
.mk-keys span {
  flex: 1; display: grid; place-items: center; height: 12cqw; border-radius: 3.5cqw;
  background: var(--bg-soft); font-size: 4.2cqw; font-weight: 700; transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.mk-keys span.on { background: var(--tint); color: var(--on-tint); }
/* 書く: 編集の画面（本文は色の付かないただの文字）と、完了で切り替わるノート */
.mk-page { position: absolute; inset: 13cqw 0 0; transition: opacity 220ms var(--ease); }
.mk-page .mk-body { top: 14cqw; }
.mk-view { opacity: 0; }
.mk.saved .mk-edit { opacity: 0; }
.mk.saved .mk-view { opacity: 1; }
.mk-round { position: relative; flex: none; width: 9.5cqw; height: 9.5cqw; border-radius: 50%; background: var(--bg-soft); }
.mk-close::before, .mk-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 3.6cqw; height: 0.55cqw; margin: -0.275cqw 0 0 -1.8cqw;
  background: var(--screen-ink); transform: rotate(45deg);
}
.mk-close::after { transform: rotate(-45deg); }
.mk-eye::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 4.4cqw; height: 2.8cqw; margin: -1.4cqw 0 0 -2.2cqw;
  border: 0.55cqw solid var(--screen-ink); border-radius: 50% / 60%;
}
.mk-eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.4cqw; height: 1.4cqw; margin: -0.7cqw 0 0 -0.7cqw; border-radius: 50%; background: var(--screen-ink); }
.mk-ok { margin-left: -1cqw; background: var(--tint); }
.mk-ok::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 2cqw; height: 3.8cqw; margin: -2.2cqw 0 0 -1cqw;
  border-right: 0.6cqw solid var(--on-tint); border-bottom: 0.6cqw solid var(--on-tint); transform: rotate(45deg);
}
.mk-fields { padding: 2.5cqw 4.5cqw 2.5cqw; margin: 0 0 0; border-bottom: 1px solid var(--line); line-height: 1.35; }
.mk-fields b { display: block; font-size: 5.6cqw; }
.mk-fields small { font-size: 3.8cqw; color: var(--ink-2); }
.mk-text { padding: 2.5cqw 4.5cqw; font-size: 4.4cqw; line-height: 1.5; white-space: pre; color: var(--screen-ink); }
.mk-caret { display: inline-block; width: 0.5cqw; height: 1.15em; margin: 0 0.1cqw; vertical-align: -0.22em; background: var(--tint); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* キーボード（アプリのコードのキーボードと、歌詞のときのシステムのキーボード）。押したキーは一瞬濃くなる */
.mk-pad { position: absolute; left: 0; right: 0; bottom: 0; height: 84cqw; background: var(--bg-soft); border-top: 1px solid var(--line); }
.mk-mode { display: inline-flex; margin: 1.6cqw 3cqw; padding: 0.5cqw; border-radius: 999px; background: var(--line); }
.mk-mode span { width: 21cqw; padding: 0.9cqw 0; border-radius: 999px; text-align: center; font-size: 3cqw; font-weight: 600; color: var(--ink-2); transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.mk-mode span.on { background: var(--surface); color: var(--screen-ink); box-shadow: 0 0.3cqw 1cqw rgba(0, 0, 0, 0.12); }
.mk-chordpad { display: grid; gap: 1.5cqw; padding: 0 1cqw 9cqw; }
.mk-chordpad p { display: flex; gap: 1.5cqw; }
.mk-chordpad span {
  flex: 1; display: grid; place-items: center; height: 9cqw; border-radius: 2cqw; background: var(--surface);
  box-shadow: 0 0.25cqw 0 rgba(0, 0, 0, 0.18); font-size: 3.6cqw; font-weight: 500; white-space: nowrap;
  transition: background-color 120ms var(--ease);
}
.mk-chordpad .subtle { background: var(--line); box-shadow: none; }
.mk-chordpad .accent { flex: none; width: 11cqw; background: var(--tint-soft); color: var(--tint-deep); }
.mk-chordpad .mk-space { flex: 3; }
.mk-chordpad .mk-shift { align-items: center; padding: 1.2cqw 1.5cqw 0; border-top: 1px solid var(--line); }
.mk-shift small { flex: 1; font-size: 2.7cqw; color: var(--ink-2); }
.mk-shift span { flex: none; padding: 0 2.2cqw; height: 8cqw; font-size: 3cqw; }
.mk-chordpad span.press, .mk-sys span.press { background: var(--ink-faint); }
.mk-sys { display: none; }
.mk-kana { grid-template-columns: repeat(5, 1fr); gap: 1.8cqw; padding: 1cqw 2cqw 11.5cqw; }
.mk-kana span {
  display: grid; place-items: center; height: 12.4cqw; border-radius: 2.2cqw; background: var(--surface);
  box-shadow: 0 0.25cqw 0 rgba(0, 0, 0, 0.18); font-size: 4cqw; transition: background-color 120ms var(--ease);
}
.mk-kana span:nth-child(5n + 1), .mk-kana span:nth-child(5n) { font-size: 3cqw; color: var(--ink-2); }
.mk-kana [data-k="↵"] { grid-row: span 2; }
/* 英語のときの QWERTY */
.mk-qwerty { flex-direction: column; gap: 2.8cqw; padding: 2cqw 1cqw 12cqw; }
.mk-qwerty p { display: flex; justify-content: center; gap: 1.5cqw; }
.mk-qwerty span {
  display: grid; place-items: center; width: 8.4cqw; height: 11cqw; border-radius: 1.6cqw; background: var(--surface);
  box-shadow: 0 0.25cqw 0 rgba(0, 0, 0, 0.18); font-size: 4.4cqw; transition: background-color 120ms var(--ease);
}
.mk-qwerty .wide { width: 12cqw; font-size: 3cqw; background: var(--line); box-shadow: none; }
.mk-qwerty p:last-child .wide { width: 15cqw; }
.mk-qwerty .mk-space { width: 44cqw; font-size: 3.4cqw; }
.mk-pad.lyrics .mk-chordpad { display: none; }
.mk-pad.lyrics .mk-kana { display: grid; }
.mk-pad.lyrics .mk-qwerty { display: flex; }

/* 録音の一覧 */
.mk-list { padding: 0 4cqw; }
.mk-list .mk-status { padding-left: 9cqw; }
.mk-large { font-size: 8.5cqw; font-weight: 800; margin: 3cqw 0 3cqw !important; }
.mk-day { display: flex; justify-content: space-between; align-items: baseline; padding: 3.5cqw 0 1.5cqw; }
.mk-day b { font-size: 4.6cqw; }
.mk-day small, .mk-row small, .mk-len, .mk-times small { font-size: 2.9cqw; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mk-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 2cqw; padding: 2.6cqw 3cqw; margin: 0 -3cqw; border-radius: 4cqw; transition: background-color 220ms var(--ease); }
.mk-row b { display: block; font-size: 3.6cqw; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-player { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease); }
.mk-player > * { overflow: hidden; min-height: 0; }
.mk-take.on { background: var(--bg-soft); }
.mk-take.on .mk-player { grid-template-rows: 1fr; }
.mk-wave { display: flex; align-items: center; gap: 0.7cqw; height: 13cqw; margin-top: 2.5cqw; }
.mk-wave i { flex: 1; border-radius: 999px; background: var(--ink-faint); transition: background-color 120ms linear; }
.mk-wave i.done { background: var(--tint); }
.mk-times { display: flex; justify-content: space-between; align-items: center; padding-top: 1cqw; }
.mk-times .mk-play { width: 10cqw; height: 10cqw; box-shadow: none; }
.mk-times .mk-icon-play { margin-left: 0.6cqw; border-left-width: 3cqw; border-top-width: 1.8cqw; border-bottom-width: 1.8cqw; }
.mk-times .mk-icon-pause { width: 2.8cqw; height: 3.2cqw; border-left-width: 1cqw; border-right-width: 1cqw; }
/* 押した印 */
.mk .tap {
  position: absolute; width: 14cqw; height: 14cqw; margin: -7cqw 0 0 -7cqw; border-radius: 50%;
  background: rgba(128, 128, 128, 0.25); box-shadow: 0 0 0 0.5cqw rgba(255, 255, 255, 0.9), 0 0.5cqw 2cqw rgba(0, 0, 0, 0.2);
  opacity: 0; pointer-events: none;
}
.mk .tap.on { animation: tap 480ms var(--ease); }
.mk .tap.on.hold { animation-duration: 900ms; }
@keyframes tap {
  0% { opacity: 0; transform: scale(1.3); }
  30% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(1); }
}

/* 端末の大きさ */
.step-visual .device { width: 250px; }
@media (min-width: 861px) {
  .step-visual .device { width: 290px; }
}

/* ---------- 細かいけれど大事なこと（暗い面） ---------- */
.field { padding: 72px var(--pad); background: var(--field-bg); color: #fff; }
.field .section-head p { color: rgba(235, 235, 245, 0.62); }
.field-grid {
  display: grid;
  gap: 10px;
  max-width: var(--wrap);
  margin: 36px auto 0;
}
/* 狭い画面では、左に絵・右に文の 1 列 */
.fcard {
  display: grid;
  grid-template-columns: 104px 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 14px;
  border-radius: 22px;
  background: var(--field-card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.fvis { grid-row: 1 / 4; }
.f-when { margin-top: 2px; font-size: 12px; color: rgba(235, 235, 245, 0.55); }
.fcard h3 { margin-top: 2px; font-size: 16px; line-height: 1.45; }
.f-why { margin-top: 6px; font-size: 13px; line-height: 1.65; color: rgba(235, 235, 245, 0.7); }
.fvis {
  display: grid;
  place-items: center;
  height: 104px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-size: 12px;
}
/* 圏外でも開ける */
.fvis-offline { align-content: center; gap: 8px; }
.f-status { display: flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, 0.85); }
.no-signal { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); font-size: 11px; white-space: nowrap; }
.f-sheet { display: flex; gap: 5px; font-size: 14px; font-weight: 600; color: #ff8fae; }
.f-sheet i { font-style: normal; }
/* 明るい画面と暗い画面 */
.fvis-dark { grid-template-columns: 1fr 1fr; place-items: stretch; padding: 0; }
.fvis-dark span { display: grid; align-content: center; justify-items: center; padding: 0 8px; font-size: 13px; line-height: 1.5; white-space: nowrap; overflow: hidden; }
.fvis-dark i { display: block; font-style: normal; }
.f-light { background: #fff; color: #000; }
.f-light i { color: #e0537a; }
.f-dim { background: #000; color: rgba(255, 255, 255, 0.86); }
.f-dim i { color: #f07c9c; }
/* 文字の大きさ */
.fvis-size { grid-auto-flow: column; gap: 6px; align-items: end; justify-content: center; font-weight: 700; }
.f-a1 { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.f-a2 { font-size: 36px; line-height: 1; }
.f-pinch { align-self: center; font-size: 13px; color: #5cc79d; }
/* 曲順 */
.fvis-list { place-items: stretch; align-content: center; gap: 2px; padding: 6px; }
.fvis-list span { display: flex; align-items: center; gap: 4px; padding: 3px 6px; text-overflow: ellipsis; border-radius: 8px; font-size: 11px; color: rgba(255, 255, 255, 0.7); white-space: nowrap; overflow: hidden; }
.fvis-list i { flex: none; font-style: normal; width: 10px; color: rgba(255, 255, 255, 0.4); }
.fvis-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: inherit; }
.fvis-list .now { background: #16352a; color: #7fd9b5; }
.fvis-list .now i { color: #7fd9b5; }
/* 曲ごとの速さとキー */
.fvis-keep { align-content: center; gap: 6px; padding: 6px; }
.f-song { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.f-vals { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.f-vals span { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 11px; color: rgba(235, 235, 245, 0.62); white-space: nowrap; }
.f-vals b { color: #5cc79d; font-variant-numeric: tabular-nums; }
/* テキストファイル */
.fvis-file { padding: 8px; }
.f-doc { display: grid; gap: 1px; width: 100%; padding: 7px; border-radius: 8px; background: rgba(255, 255, 255, 0.92); color: #1d1d1f; font-size: 9px; line-height: 1.45; text-align: left; overflow: hidden; }
.f-doc b { margin-bottom: 3px; font-size: 9px; color: #6e6e73; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-doc i { font-style: normal; white-space: nowrap; overflow: hidden; }
.f-doc .c { color: #6e6e73; }
@media (min-width: 861px) {
  .field { padding: 120px var(--pad); }
  .field-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
  .fcard { display: flex; flex-direction: column; align-items: stretch; padding: 20px 20px 24px; border-radius: 26px; }
  .fvis { height: 140px; border-radius: 18px; font-size: 13px; }
  .f-when { margin-top: 18px; font-size: 13px; }
  .fcard h3 { margin-top: 4px; font-size: 20px; }
  .f-why { font-size: 14px; }
  .f-sheet { gap: 12px; font-size: 24px; }
  .fvis-dark span { font-size: 16px; }
  .fvis-list { padding: 8px 10px; }
  .fvis-list span { gap: 8px; padding: 4px 8px; font-size: 13px; }
  .fvis-list i { width: 14px; }
  .f-song { font-size: 15px; }
  .f-vals { flex-direction: row; gap: 6px; }
  .f-vals span { padding: 4px 10px; font-size: 13px; }
  .fvis-size { gap: 12px; }
  .f-a1 { font-size: 20px; }
  .f-a2 { font-size: 64px; }
  .f-pinch { font-size: 16px; }
  .fvis-file { padding: 16px 28px; }
  .f-doc { padding: 12px 14px; font-size: 12px; }
  .f-doc b { font-size: 11px; }
}


/* ---------- 使われてきたこと ---------- */
.voices { padding: 64px var(--pad); background: var(--bg-soft); }
.voices-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.voices-links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--tint-deep);
}
.voices-links a::after { content: "↗"; margin-left: 6px; font-weight: 400; }
@media (min-width: 861px) {
  .voices { padding: 96px var(--pad); }
}

/* ---------- FAQ ---------- */
.faq { padding: 72px var(--pad); }
.faq-list { max-width: 760px; margin: 32px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); font-size: 15px; }
@media (min-width: 861px) {
  .faq { padding: 120px var(--pad); }
  .faq-list { margin-top: 48px; }
  .faq summary { padding: 24px 48px 24px 0; font-size: 18px; }
  .faq details p { font-size: 16px; }
}

/* ---------- 最後 ---------- */
.cta { padding: 0 var(--pad) 96px; }
.cta-panel {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 20px;
  border-radius: 32px;
  text-align: center;
  background: var(--cta-bg);
}
.cta-icon { width: 72px; height: 72px; margin: 0 auto; border-radius: 17px; box-shadow: var(--shadow-md); }
.cta h2 { margin-top: 22px; font-size: clamp(28px, 5vw, 52px); line-height: 1.25; font-weight: 800; }
.cta p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }
.cta-get { margin-top: 28px; }
/* パソコンでは、入手のボタンの代わりに QR コード */
html.is-desktop .cta-get { display: none; }
@media (min-width: 721px) {
  .cta { padding-bottom: 120px; }
  .cta-panel { padding: 96px 24px; border-radius: 40px; }
  .cta-icon { width: 96px; height: 96px; border-radius: 22px; }
  .cta p { font-size: 18px; }
}

.foot { border-top: 1px solid var(--line); }
.foot-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--pad) 40px;
  font-size: 13px;
  color: var(--ink-2);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot .brand { font-size: 15px; color: var(--ink); }
.legal { flex-basis: 100%; font-size: 11px; line-height: 1.6; color: var(--ink-3); }
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--ink); }
@media (min-width: 721px) {
  .foot nav { margin-left: auto; }
}
/* スマートフォンでは、下の入手のバーにフッターが隠れないように */
@media (max-width: 720px) {
  html.is-ios .foot-inner, html.is-android .foot-inner { padding-bottom: 110px; }
}

/* ---------- 文書のページ（プライバシーポリシー） ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 56px var(--pad) 96px; }
.doc h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.2; font-weight: 800; }
.doc h2 { margin-top: 44px; font-size: 21px; line-height: 1.4; }
.doc h3 { margin-top: 28px; font-size: 17px; line-height: 1.5; }
.doc p, .doc li { font-size: 16px; line-height: 1.85; color: var(--ink-body); word-break: normal; overflow-wrap: anywhere; }
.doc p { margin-top: 16px; }
.doc ul { margin: 12px 0 0; padding-left: 1.4em; }
.doc a { color: var(--tint-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc .doc-meta { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.doc > .doc-meta:last-child { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- スマートフォンの下の入手のバー ---------- */
.sticky-get {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 60;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
  transform: translateY(140%);
  transition: transform 300ms var(--ease);
}
.sticky-get img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.sticky-get span { flex: 1; min-width: 0; line-height: 1.3; }
.sticky-get b { display: block; font-size: 15px; }
.sticky-get small { font-size: 12px; color: var(--ink-2); }
.sticky-get .btn { height: 38px; padding: 0 22px; }
.sticky-get.show { transform: none; }
@media (max-width: 720px) {
  html.is-ios .sticky-get,
  html.is-android .sticky-get { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

:focus-visible { outline: 3px solid rgba(46, 158, 117, 0.5); outline-offset: 3px; }
