/* =========================================================================
   WhisperHUB ランディング v2 — エディトリアル×ダーク×ガラス
   (LP専用。thanks/法務ページは従来の style.css を使う)
   ========================================================================= */
:root {
  --bg: #0a0e14;
  --bg2: #0e141d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border2: rgba(255, 255, 255, 0.16);
  --text: #eef2f7;
  --muted: #8b94a3;
  --accent: #38bdf8;
  --accent2: #34d399;
  --blue: #3b82f6;
  --grad: linear-gradient(92deg, #38bdf8 0%, #34d399 100%);
  --spk1: #60a5fa;
  --spk2: #34d399;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --jp-display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --en: "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* iOS Safariのテキスト自動拡大を無効化(zoom縮小したアプリモックの文字だけが
     勝手に拡大されてUIが崩れるため) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--jp-display);
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- 背景キャンバス(波形パーティクル) ---- */
#wave-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.55;
}
.grain::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(56, 189, 248, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(52, 211, 153, 0.07), transparent 60%);
}
main, header.nav, footer.foot { position: relative; z-index: 2; }

/* ---- フローティングナビ ---- */
header.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 10px 22px;
  background: rgba(13, 18, 26, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.02em; font-size: 16px; }
.brand .pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9);
}
nav.links { display: flex; gap: 26px; font-size: 13.5px; color: var(--muted); }
nav.links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: #0b0f15; font-weight: 700; font-size: 13.5px;
  padding: 9px 20px; border-radius: 999px;
}
.nav-cta:hover { background: #fff; }

/* ---- ヒーロー ---- */
.hero { padding: 168px 0 40px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--en); font-size: 12px; letter-spacing: 0.22em;
  color: var(--muted); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--grad); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(44px, 8.4vw, 104px);
  line-height: 1.12; font-weight: 800; letter-spacing: 0.01em;
}
.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(238, 242, 247, 0.55);
}
@supports not (-webkit-text-stroke: 1px black) {
  .hero h1 .outline { color: var(--muted); }
}
.hero .lede { margin-top: 28px; max-width: 660px; color: var(--muted); font-size: clamp(14.5px, 1.6vw, 16.5px); }
.hero .lede strong { color: var(--text); font-weight: 700; }
.cta-row { margin-top: 36px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: 12px;
  font-size: 15.5px; font-weight: 800; letter-spacing: 0.02em;
  border: 1px solid var(--border2); color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn.primary {
  background: var(--grad); color: #06121a; border: none;
  box-shadow: 0 10px 34px rgba(56, 189, 248, 0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(56, 189, 248, 0.45); }
.btn.ghost:hover { background: var(--panel2); transform: translateY(-2px); }
.cta-note { width: 100%; color: var(--muted); font-size: 12.5px; }
.license-note {
  width: 100%; display: flex; align-items: center; gap: 11px; color: var(--muted);
  font-size: 12.5px;
}
.license-note strong { color: var(--text); }
.license-devices { display: inline-flex; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.license-devices i {
  position: relative; display: block; width: 17px; height: 12px;
  border: 1.5px solid var(--accent); border-radius: 3px;
}
.license-devices i::after {
  content: ""; position: absolute; left: 4px; bottom: -4px; width: 7px; height: 1.5px;
  border-radius: 2px; background: var(--accent);
}

/* ---- ヒーローのアプリモック ---- */
.hero-stage { margin-top: 64px; }
.mock-window {
  position: relative;
  background: linear-gradient(180deg, #10161f 0%, #0c1119 100%);
  border: 1px solid var(--border2);
  border-radius: 16px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(56, 189, 248, 0.06), 0 0 120px rgba(56, 189, 248, 0.10);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.mock-title { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mock-badge {
  margin-left: auto; display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--accent2); font-weight: 700;
  border: 1px solid rgba(52, 211, 153, 0.35); border-radius: 999px; padding: 3px 12px;
  background: rgba(52, 211, 153, 0.08);
}
.mock-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }
.mock-tabs { display: flex; gap: 4px; padding: 14px 20px 0; }
.mock-tab { font-size: 12.5px; color: var(--muted); padding: 7px 16px; border-radius: 8px; }
.mock-tab.on { color: var(--text); background: var(--panel2); font-weight: 700; }
.mock-body { padding: 16px 22px 20px; min-height: 260px; }
.seg { display: flex; gap: 14px; padding: 9px 0; align-items: baseline; opacity: 0; transform: translateY(8px); }
.seg.show { opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.45s ease; }
.seg time { font-family: var(--en); font-size: 11px; color: var(--muted); min-width: 38px; }
.chip {
  font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
}
.chip.s1 { color: var(--spk1); background: rgba(96, 165, 250, 0.12); border: 1px solid rgba(96, 165, 250, 0.3); }
.chip.s2 { color: var(--spk2); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.seg p { font-size: 13.5px; color: #cbd5e1; }
.seg p .caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mock-player {
  display: flex; align-items: center; gap: 16px;
  border-top: 1px solid var(--border); padding: 14px 22px;
  background: rgba(255, 255, 255, 0.02);
}
.play { width: 34px; height: 34px; border-radius: 50%; background: var(--panel2); border: 1px solid var(--border2); position: relative; flex-shrink: 0; }
.play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 10px solid var(--text); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.bars { display: flex; align-items: center; gap: 3px; height: 30px; flex: 1; overflow: hidden; }
.bars i { width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent2)); opacity: 0.85; animation: bounce 1.15s ease-in-out infinite; }
@keyframes bounce { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
.mock-time { font-family: var(--en); font-size: 11px; color: var(--muted); }

/* ---- マーキー ---- */
.marquee { margin: 84px 0 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; padding: 16px 0; width: max-content; animation: slide 30s linear infinite; }
.marquee span { font-family: var(--en); font-size: 13px; letter-spacing: 0.24em; color: var(--muted); text-transform: uppercase; }
.marquee b { color: var(--accent); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- セクション共通 ---- */
section.blk { padding: 110px 0 30px; }
.sec-head { margin-bottom: 54px; }
.sec-no { font-family: var(--en); font-size: 12px; letter-spacing: 0.26em; color: var(--accent); }
.sec-head h2 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; line-height: 1.25; margin-top: 12px; }
.sec-head h2 .outline { color: transparent; -webkit-text-stroke: 1.2px rgba(238, 242, 247, 0.5); }
@supports not (-webkit-text-stroke: 1px black) { .sec-head h2 .outline { color: var(--muted); } }
.sec-head .desc { color: var(--muted); margin-top: 14px; max-width: 620px; font-size: 15px; }

/* リビール */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; } .rv.d2 { transition-delay: 0.16s; } .rv.d3 { transition-delay: 0.24s; }

/* ---- 3枚ガラスカード ---- */
.glass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.glass {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  padding: 30px 28px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.glass:hover { transform: translateY(-6px); border-color: var(--border2); background: var(--panel2); }
.glass .no { font-family: var(--en); font-size: 12px; letter-spacing: 0.24em; color: var(--muted); }
.glass h3 { font-size: 19px; font-weight: 800; margin: 16px 0 12px; }
.glass p { color: var(--muted); font-size: 13.8px; }
.glass .big { font-size: 27px; letter-spacing: 0.02em; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.3; margin-top: 20px; }

/* ---- 操作画面ショーケース ---- */
.showcase { position: relative; }
.showcase-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.mock-side { display: flex; flex-direction: column; gap: 22px; }
.mock-mini {
  background: linear-gradient(180deg, #10161f, #0c1119);
  border: 1px solid var(--border2); border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow);
}
.mock-mini .label { font-family: var(--en); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.dict-pill {
  display: flex; align-items: center; gap: 12px;
  background: #0b0f16; border: 1px solid var(--border2); border-radius: 999px;
  padding: 12px 20px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.dict-pill .mic { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); flex-shrink: 0; box-shadow: 0 0 16px rgba(56, 189, 248, 0.6); }
.dict-pill .bars { height: 22px; }
.dict-pill .st { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sum-lines { display: flex; flex-direction: column; gap: 9px; }
.sum-lines i { height: 9px; border-radius: 4px; background: var(--panel2); display: block; }
.sum-lines i:nth-child(1) { width: 88%; background: linear-gradient(90deg, rgba(56,189,248,.35), rgba(52,211,153,.25)); }
.sum-lines i:nth-child(2) { width: 72%; }
.sum-lines i:nth-child(3) { width: 80%; }
.sum-lines i:nth-child(4) { width: 55%; }
.sum-title { font-size: 13.5px; font-weight: 800; margin-bottom: 12px; }
.showcase-note { margin-top: 18px; color: var(--muted); font-size: 12.5px; }

/* ---- 比較表 ---- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.cmp th, table.cmp td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--border); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: none; }
table.cmp th:first-child, table.cmp td:first-child { text-align: left; color: var(--muted); font-weight: 600; }
table.cmp thead th { font-family: var(--en); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
table.cmp thead th.me { color: var(--text); font-size: 14px; letter-spacing: 0.04em; }
table.cmp td.good { color: var(--accent2); font-weight: 800; }
table.cmp td { color: #aab3c0; }

/* ---- 料金 ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 30px; text-align: left;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border2); }
.price-card.featured { border-color: rgba(56, 189, 248, 0.55); box-shadow: 0 0 60px rgba(56, 189, 248, 0.12), var(--shadow); }
.ribbon {
  position: absolute; top: -13px; left: 30px;
  background: var(--grad); color: #06121a; font-size: 11.5px; font-weight: 800;
  padding: 4px 16px; border-radius: 999px; letter-spacing: 0.06em;
}
.plan-name { font-family: var(--en); font-size: 12px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.plan-jp { font-size: 15px; font-weight: 800; margin-top: 6px; }
.price { font-family: var(--en); font-size: 46px; font-weight: 800; margin-top: 16px; line-height: 1; }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.per { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.price-card ul { list-style: none; margin: 24px 0 28px; font-size: 13.5px; color: var(--muted); flex: 1; }
.price-card li { padding: 5px 0 5px 24px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent2); font-weight: 800; }
.pricing-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }
.pricing-note strong { color: var(--text); }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 26px; margin-bottom: 12px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.faq details[open] { border-color: var(--border2); }
.faq summary { cursor: pointer; font-weight: 800; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--en); font-size: 22px; color: var(--accent); transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* ---- 最終CTA ---- */
.final { text-align: center; padding: 130px 0 120px; }
.final h2 { font-size: clamp(34px, 6vw, 72px); font-weight: 800; line-height: 1.2; }
.final h2 .outline { color: transparent; -webkit-text-stroke: 1.4px rgba(238, 242, 247, 0.5); }
@supports not (-webkit-text-stroke: 1px black) { .final h2 .outline { color: var(--muted); } }
.final .lede { color: var(--muted); margin: 20px auto 0; max-width: 520px; }
.final .cta-row { justify-content: center; }

/* ---- フッター ---- */
footer.foot { border-top: 1px solid var(--border); padding: 36px 0 60px; color: var(--muted); font-size: 13px; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.foot a { margin-right: 20px; }
footer.foot a:hover { color: var(--text); }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  nav.links { display: none; }
  .showcase-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .seg { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .bars i { animation: none; transform: scaleY(0.7); }
  .seg p .caret { animation: none; }
}

/* ---- ヒーロー: 処理中表示(リアルタイムではなく「後からまとめて処理」を伝える) ---- */
.proc { padding: 26px 6px 10px; }
.pbar {
  height: 8px; border-radius: 99px; background: var(--panel2);
  overflow: hidden; border: 1px solid var(--border);
}
.pbar i { display: block; height: 100%; width: 0%; background: var(--grad); border-radius: 99px; transition: width 0.12s linear; }
.proc-t { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.proc.hide { display: none; }

/* ---- ヒーロー: DMG版の文字起こし画面をLP用に再現 ---- */
.tw-app {
  --tw-bg: #1c1c1e;
  --tw-card: #26262a;
  --tw-card-hover: #313135;
  --tw-pill: #2a2a2e;
  --tw-border: #38383c;
  --tw-text: #fff;
  --tw-text-dim: #d0d0d0;
  --tw-muted: #8e8e93;
  --tw-accent: #0a84ff;
  display: flex;
  height: 640px;
  color: var(--tw-text);
  background: var(--tw-bg);
  font-family: "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Hiragino Sans", system-ui, sans-serif;
  font-size: 13.5px;
}
.tw-app .tw-icon {
  width: 1.15em; height: 1.15em; display: inline-block; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.tw-sidebar {
  width: 232px; flex-shrink: 0; display: flex; flex-direction: column;
  padding: 12px 8px; overflow: hidden; background: var(--tw-bg); border-right: 1px solid var(--tw-border);
}
.tw-dragbar { height: 30px; display: flex; align-items: flex-start; gap: 8px; padding: 2px 6px; }
.tw-dragbar span { width: 11px; height: 11px; border-radius: 50%; }
.tw-dragbar span:nth-child(1) { background: #ff5f57; }
.tw-dragbar span:nth-child(2) { background: #febc2e; }
.tw-dragbar span:nth-child(3) { background: #28c840; }
.tw-mode-switch {
  display: flex; gap: 2px; margin: 0 2px 8px; padding: 3px;
  background: var(--tw-pill); border: 1px solid var(--tw-border); border-radius: 9px;
}
.tw-mode-switch span {
  flex: 1; padding: 5px 4px; color: var(--tw-muted); border-radius: 7px;
  font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap;
}
.tw-mode-switch .active { color: var(--tw-text); background: rgba(255,255,255,.1); }
.tw-side-item, .tw-history-item {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  color: var(--tw-text-dim); border-radius: 8px; white-space: nowrap;
}
.tw-side-item { padding: 7px 10px; font-size: 13px; }
.tw-side-item.active { color: var(--tw-text); background: rgba(255,255,255,.1); font-weight: 600; }
.tw-side-item i { width: 18px; display: inline-flex; justify-content: center; }
.tw-search {
  display: flex; align-items: center; gap: 8px; margin: 2px; padding: 6px 10px;
  color: var(--tw-muted); background: var(--tw-pill); border: 1px solid var(--tw-border); border-radius: 8px;
  font-size: 12.5px;
}
.tw-search .tw-icon { width: 15px; height: 15px; opacity: .6; }
.tw-side-history { flex: 1; min-height: 0; margin-top: 16px; overflow: hidden; }
.tw-side-label, .tw-panel-label {
  color: var(--tw-muted); font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.tw-side-label { padding: 4px 10px; }
.tw-history-item { padding: 5px 10px; color: var(--tw-muted); font-size: 12px; line-height: 1.4; }
.tw-history-item span { overflow: hidden; text-overflow: ellipsis; }
.tw-history-item .tw-icon { display: none; width: 13px; height: 13px; color: var(--tw-accent); }
.tw-history-item.processing { color: var(--tw-text-dim); }
.tw-history-item.processing .tw-icon { display: block; animation: tw-spin .9s linear infinite; }
.tw-history-item.complete { color: var(--tw-text); background: rgba(255,255,255,.1); }
.tw-side-bottom { margin-top: auto; padding-top: 16px; }
.tw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--tw-bg); }
.tw-topbar { min-height: 34px; flex-shrink: 0; }
.tw-view { flex: 1; min-height: 0; position: relative; }
.tw-view[hidden] { display: none; }

.tw-home-view { overflow: hidden; }
.tw-home-hero {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px; padding: 0 24px 9vh;
}
.tw-home-brand {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  margin-bottom: 34px; padding: 18px 22px; font-size: 34px; font-weight: 700;
}
.tw-home-brand img { width: 68px; height: 68px; border-radius: 12px; object-fit: contain; }
.tw-home-actions { width: min(760px, 100%); display: grid; grid-template-columns: repeat(4, minmax(132px, 1fr)); gap: 14px; }
.tw-home-action {
  min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--tw-text); background: var(--tw-card); border: 1px solid var(--tw-border); border-radius: 12px;
  font-size: 13.5px; font-weight: 700; transition: background .12s, transform .1s, border-color .12s;
}
.tw-home-action .tw-icon { width: 24px; height: 24px; color: var(--tw-accent); }
.tw-home-action.is-clicked { background: var(--tw-card-hover); border-color: rgba(10,132,255,.65); transform: translateY(-1px); }
.tw-home-controls { display: flex; justify-content: center; gap: 14px; }
.tw-home-controls label { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.tw-home-controls label > span { padding-left: 4px; color: var(--tw-muted); font-size: 11.5px; font-weight: 600; }
.tw-home-controls b, .tw-select {
  min-width: 170px; padding: 7px 34px 7px 11px; color: var(--tw-text); background: var(--tw-pill);
  border: 1px solid var(--tw-border); border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background-image: linear-gradient(45deg, transparent 50%, var(--tw-text-dim) 50%), linear-gradient(135deg, var(--tw-text-dim) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%; background-size: 4px 4px; background-repeat: no-repeat;
}

.tw-detail-view { display: flex; flex-direction: column; overflow: hidden; }
.tw-transcript-head { padding: 8px 18px 6px; flex-shrink: 0; }
.tw-title-row { display: flex; align-items: center; gap: 8px; }
.tw-back { display: inline-flex; align-items: center; gap: 3px; padding: 7px 10px; color: var(--tw-text); font-size: 13.5px; }
.tw-back .tw-icon { width: 16px; height: 16px; }
.tw-title-row input {
  flex: 1; min-width: 0; padding: 6px 8px; color: var(--tw-text); background: transparent;
  border: 1px solid transparent; border-radius: 8px; outline: none;
  font-family: inherit; font-size: 20px; font-weight: 700;
}
.tw-detail-layout {
  flex: 1; min-height: 0; display: grid;
  grid-template-columns: minmax(0,1fr) 266px; grid-template-rows: auto minmax(0,1fr);
}
.tw-tabs-row { grid-column: 1; grid-row: 1; display: flex; justify-content: center; align-items: center; padding: 2px 0; }
.tw-tab-switch { display: flex; gap: 2px; padding: 3px; background: var(--tw-pill); border: 1px solid var(--tw-border); border-radius: 9px; }
.tw-tab-switch button { width: 110px; padding: 5px 4px; color: var(--tw-muted); background: transparent; border: none; border-radius: 7px; font-size: 12px; font-weight: 600; text-align: center; }
.tw-tab-switch .active { color: var(--tw-text); background: rgba(255,255,255,.1); }
.tw-tab-switch .locked { color: var(--tw-muted); opacity: .4; }
.tw-tab-actions { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; padding-right: 14px; color: var(--tw-muted); }
.tw-tab-actions .tw-icon { width: 17px; height: 17px; }
.tw-detail-main { grid-column: 1; grid-row: 2; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.tw-main-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.tw-main-pane[hidden], .tw-side-pane[hidden] { display: none; }
.tw-transcript-main { overflow: hidden; }
.tw-transcript-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 12px; }
.tw-transcript-body {
  flex: 1; min-height: 0; margin: 8px 18px 0; padding: 14px 12px 16px; overflow-y: hidden;
  color: var(--tw-text); background: var(--tw-card); border: 1px solid var(--tw-border); border-radius: 12px;
}
.tw-processing { height: 100%; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--tw-muted); text-align: center; }
.tw-processing[hidden], .tw-segments[hidden], .tw-speakers[hidden] { display: none; }
.tw-processing .tw-spinner { width: 34px; height: 34px; color: var(--tw-accent); animation: tw-spin .9s linear infinite; }
.tw-processing .tw-spinner .tw-icon { width: 100%; height: 100%; } /* 実アプリ同様、34pxの円弧そのものが回転する */
.tw-processing strong { color: var(--tw-text-dim); font-size: 15px; font-weight: 600; }
.tw-processing > span { font-size: 12.5px; }
.tw-progress { width: min(320px, 82%); height: 6px; margin-top: 2px; overflow: hidden; background: var(--tw-pill); border-radius: 3px; }
.tw-progress i { display: block; width: 0; height: 100%; background: var(--tw-accent); transition: width .3s; }
.tw-progress.indeterminate i { width: 40%; animation: tw-bar-slide 1.2s ease-in-out infinite; }
.tw-segments { opacity: 0; transition: opacity .28s ease; }
.tw-segments.show { opacity: 1; }
.tw-turn { display: flex; gap: 11px; padding: 5px 8px; border-radius: 8px; align-items: flex-start; }
.tw-turn-time { min-width: 38px; padding-top: 1px; color: var(--tw-accent); font: 10.5px Consolas, monospace; white-space: nowrap; }
.tw-turn-main { flex: 1; min-width: 0; }
.tw-turn-head { margin-bottom: 2px; }
.tw-speaker-name { font-size: 11.5px; font-weight: 700; }
.tw-seg-line { padding: 1px 3px; color: var(--tw-text); border-radius: 4px; font-size: 12.5px; line-height: 1.5; }
.tw-seg-pair { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,42%); align-items: start; }
.tw-seg-pair .tw-seg-line { min-width: 0; }
.tw-translation-line { min-width: 0; margin-left: 12px; padding: 1px 3px 1px 16px; border-left: 1px solid var(--tw-border); color: var(--tw-text-dim); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.tw-summary-content {
  flex: 1; min-height: 0; margin: 8px 18px 14px; padding: 22px 26px 40px; overflow-y: auto;
  background: var(--tw-card); border: 1px solid var(--tw-border); border-radius: 12px;
  color: var(--tw-text-dim); font-size: 13.5px; line-height: 1.8;
}
.tw-empty-note { color: var(--tw-muted); text-align: center; padding: 60px 0; }
.tw-summary-loading { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--tw-muted); }
.tw-summary-loading[hidden], .tw-summary-result[hidden] { display: none; }
.tw-summary-loading .tw-icon { width: 34px; height: 34px; color: var(--tw-accent); animation: tw-spin .9s linear infinite; }
.tw-summary-result h2 { margin: 16px 0 8px; color: var(--tw-text); font-size: 15px; }
.tw-summary-result h2:first-child { margin-top: 0; }
.tw-summary-result p { margin: 8px 0; }
.tw-summary-result ul { margin: 6px 0; padding-left: 22px; }
.tw-summary-result li { margin: 3px 0; }
.tw-summary-result strong { color: var(--tw-text); }
.tw-chat-main { overflow: hidden; }
.tw-chat-thread {
  flex: 1; min-height: 0; margin: 8px 18px 12px; padding: 18px 22px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--tw-card); border: 1px solid var(--tw-border); border-radius: 12px;
}
.tw-chat-empty { margin: auto; padding: 60px 0; color: var(--tw-muted); font-size: 12px; line-height: 1.7; text-align: center; }
.tw-chat-message { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.tw-chat-message.user { align-self: flex-end; color: #fff; background: var(--tw-accent); }
.tw-chat-message.assistant { align-self: flex-start; color: var(--tw-text-dim); background: var(--tw-card); border: 1px solid var(--tw-border); }
.tw-chat-loading { align-self: flex-start; display: flex; gap: 4px; padding: 11px 14px; background: var(--tw-card); border: 1px solid var(--tw-border); border-radius: 12px; }
.tw-chat-loading[hidden], .tw-chat-message[hidden] { display: none; }
.tw-chat-loading i { width: 5px; height: 5px; border-radius: 50%; background: var(--tw-muted); animation: tw-chat-dot .9s ease-in-out infinite; }
.tw-chat-loading i:nth-child(2) { animation-delay: .15s; }
.tw-chat-loading i:nth-child(3) { animation-delay: .3s; }
.tw-chat-input-row { position: relative; display: flex; align-items: flex-end; flex-shrink: 0; min-height: 54px; margin: 0 18px 18px; padding: 10px 50px 10px 14px; background: var(--tw-card); border: 1px solid var(--tw-border); border-radius: 18px; }
.tw-chat-input-row > span { flex: 1; min-width: 0; min-height: 20px; color: var(--tw-text); font-size: 13px; line-height: 1.5; white-space: normal; overflow: hidden; }
.tw-chat-input-row button { position: absolute; right: 9px; bottom: 9px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--tw-accent); border: none; border-radius: 50%; font-size: 16px; font-weight: 700; }
.tw-player-row { flex-shrink: 0; padding: 0 18px 12px; }
.tw-player-row audio { width: 100%; height: 34px; }
.tw-detail-side { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; gap: 7px; padding: 8px 14px 14px 0; overflow: hidden; }
.tw-side-pane { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 7px; }
.tw-detail-search { margin: 0 0 4px; }
.tw-wide-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 10px; color: var(--tw-text); background: var(--tw-pill); border: 1px solid var(--tw-border);
  border-radius: 12px; font-size: 12.5px; font-weight: 600;
}
.tw-wide-btn .tw-icon { width: 16px; height: 16px; }
.tw-wide-btn.accent { color: #fff; background: var(--tw-accent); border-color: var(--tw-accent); }
.tw-wide-btn.is-loading .tw-icon { animation: tw-spin .8s linear infinite; }
.tw-click-target { transition: transform .13s ease, filter .13s ease, background-color .13s ease; }
.tw-click-target.is-pressed { transform: scale(.96); filter: brightness(1.18); }
.tw-panel-label { margin-top: 6px; }
.tw-select { width: 100%; min-width: 0; padding-top: 8px; padding-bottom: 8px; font-weight: 400; }
.tw-side-textarea { flex: 1 1 auto; min-height: 160px; padding: 9px 10px; color: var(--tw-muted); background: var(--tw-pill); border: 1px solid var(--tw-border); border-radius: 12px; font-size: 12px; line-height: 1.6; }
.tw-prompt-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 2px; }
.tw-prompt-list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 4px; color: var(--tw-text-dim); background: transparent; border: none; border-bottom: 1px solid var(--tw-border); font-size: 12.5px; text-align: left; }
.tw-prompt-list button span:last-child { flex: 1; text-align: left; }
.tw-side-hint { padding: 0 2px; color: var(--tw-muted); font-size: 11px; }
.tw-speakers { display: flex; flex-direction: column; gap: 7px; }
.tw-speaker-chip { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--tw-pill); border: 1px solid var(--tw-border); border-radius: 12px; }
.tw-speaker-chip i { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; color: #fff; background: var(--speaker); font-family: inherit; font-size: 10px; font-weight: 700; }
.tw-speaker-chip span { color: var(--tw-text); font-size: 12.5px; }
.tw-cursor {
  position: absolute; z-index: 10; left: 64%; top: 350px; width: 20px; height: 26px;
  background: #fff; clip-path: polygon(0 0, 0 100%, 7px 73%, 12px 100%, 17px 97%, 12px 70%, 20px 70%);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.8)); transform-origin: 2px 2px;
  transition: left .65s ease, top .65s ease, opacity .2s ease, transform .12s ease;
}
.tw-cursor.is-clicking { transform: scale(.72); }
.tw-click-ripple { position: absolute; z-index: 9; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; pointer-events: none; animation: tw-click-ripple .55s ease-out forwards; }
@keyframes tw-spin { to { transform: rotate(360deg); } }
@keyframes tw-bar-slide { from { transform: translateX(-100%); } to { transform: translateX(350%); } }
@keyframes tw-chat-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes tw-click-ripple { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(4.2); } }

@media (min-width: 721px) and (max-width: 980px) {
  .tw-app { height: 600px; }
  .tw-sidebar { width: 190px; }
  .tw-detail-layout { grid-template-columns: minmax(0,1fr); }
  .tw-tab-actions { grid-column: 1; }
  .tw-detail-side { display: none; }
  .tw-home-actions { grid-template-columns: repeat(2, minmax(120px, 1fr)); max-width: 480px; }
  .tw-home-action { min-height: 74px; }
}
@media (max-width: 720px) {
  /* スマホは縦積みにせず、PCと同一レイアウトを縮小表示する(zoomはlanding.jsが設定。
     実アプリはこのような縦長UIにならないため。2026-07-12 社長指示) */
  .tw-app { height: 620px; }
}

/* ---- 機能セクション(実スクリーンショット) ---- */
.feat-row {
  display: grid; grid-template-columns: 0.9fr 1.25fr; gap: 44px;
  align-items: center; padding: 46px 0;
}
.feat-row.alt { grid-template-columns: 1.25fr 0.9fr; }
.feat-row.alt .feat-copy { order: 2; }
.feat-row.alt .shot { order: 1; }
.feat-eyebrow { font-family: var(--en); font-size: 12px; letter-spacing: 0.22em; color: var(--accent); text-transform: uppercase; }
.feat-copy h3 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; line-height: 1.45; margin: 14px 0 12px; }
.feat-copy > p { color: var(--muted); font-size: 14.5px; }
.feat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.feat-chips span {
  font-size: 12px; color: #aab3c0; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel);
}
.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border2);
  box-shadow: var(--shadow), 0 0 70px rgba(56, 189, 248, 0.08);
  background: #0c1119;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shot img { display: block; width: 100%; height: auto; }
.shot:hover { transform: translateY(-5px) scale(1.012); box-shadow: var(--shadow), 0 0 90px rgba(56, 189, 248, 0.14); }

/* ライト/ダーク切替 */
.theme-toggle { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.tt-btn {
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  color: var(--muted); background: var(--panel); border: 1px solid var(--border);
  padding: 7px 18px; border-radius: 999px; transition: all 0.2s ease;
}
.tt-btn.on { color: #06121a; background: var(--grad); border-color: transparent; }
.tt-note { font-size: 11.5px; color: var(--muted); margin-left: 4px; }

/* 音声入力デモ */
.dict-demo { max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.dict-demo .label { margin-bottom: 0; }
.dict-editor { width: 100%; overflow: hidden; background: #f4f4f6; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.34); }
.de-titlebar { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #e8e8ed; background: #24252b; border-bottom: 1px solid #393a40; font-size: 11.5px; }
.de-titlebar strong { flex: 1; text-align: center; font-weight: 600; transform: translateX(-26px); }
.de-dots { display: flex; gap: 6px; }
.de-dots i { width: 9px; height: 9px; border-radius: 50%; }
.de-dots i:nth-child(1) { background: #ff5f57; }
.de-dots i:nth-child(2) { background: #febc2e; }
.de-dots i:nth-child(3) { background: #28c840; }
.de-field { height: 31px; display: flex; align-items: center; gap: 8px; padding: 0 13px; color: #37383d; background: #fff; border-bottom: 1px solid #dedee2; font-size: 11.5px; }
.de-field span { width: 34px; color: #85858b; }
.de-field b { font-weight: 500; }
.de-body { min-height: 142px; padding: 14px 16px; color: #24252a; background: #fff; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.de-caret { display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; background: #0a84ff; vertical-align: -3px; animation: de-caret-blink .85s steps(1) infinite; }
.de-caret.hidden { opacity: 0; animation: none; }
@keyframes de-caret-blink { 50% { opacity: 0; } }

/* ---- ローカル×クラウド ---- */
.lc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.lc-card h3 { font-size: 20px; margin-top: 14px; }
.lc-list { list-style: none; margin: 16px 0 18px; }
.lc-list li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 14px; }
.lc-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent2); font-weight: 800; }
.lc-list strong { color: var(--text); }
.lc-note { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; }

@media (max-width: 900px) {
  .feat-row, .feat-row.alt { grid-template-columns: 1fr; gap: 22px; padding: 34px 0; }
  .feat-row.alt .feat-copy { order: 1; }
  .feat-row.alt .shot { order: 2; }
}

/* ---- テキスト型の統計表示(数値でなく価値を言い切る) ---- */
.glass .big.txt { font-size: 27px; letter-spacing: 0.02em; line-height: 1.3; }

/* ---- 音声入力: 実際のクラシックレコーディングウィンドウを忠実に再現 ----
   (実UI: 424x116 / 角丸18 / 上=波形エリア(白バー) / 下=コントロール行
    モード名・タイマー・停止+ショートカット表記) */
.dict-win {
  width: 100%; max-width: 424px; height: 116px;
  display: flex; flex-direction: column; overflow: hidden;
  margin: 0 auto;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}
.dw-wave { flex: 1; display: flex; align-items: center; background: rgba(0, 0, 0, 0.38); padding: 0 26px; min-height: 0; }
.bars.dw { height: 46px; gap: 3px; justify-content: center; flex: none; width: 100%; }
.bars.dw i { background: #fff; width: 4px; flex: none; opacity: 0.95; }
.dw-ctrl {
  height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; background: rgba(255, 255, 255, 0.05); font-size: 12.5px; color: #ececf0;
}
.dw-left { display: flex; align-items: center; gap: 8px; }
.dw-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; animation: recblink 1.4s ease-in-out infinite; }
@keyframes recblink { 50% { opacity: 0.45; } }
.dw-mode { opacity: 0.85; }
.dw-timer { font-family: var(--en); font-size: 12px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.dw-right { display: flex; align-items: center; gap: 8px; }
.dw-stop { opacity: 0.85; }
.dw-kbd { background: rgba(255, 255, 255, 0.1); border-radius: 5px; padding: 2px 6px; font-size: 10.5px; opacity: 0.8; font-family: var(--en); }
.dict-win.processing .bars.dw i, .dict-win.typing .bars.dw i, .dict-win.done .bars.dw i { animation-play-state: paused; opacity: .35; }
.dict-win.processing .dw-dot, .dict-win.typing .dw-dot { background: #0a84ff; animation: none; box-shadow: 0 0 8px rgba(10,132,255,.65); }
.dict-win.done .dw-dot { background: #32d74b; animation: none; box-shadow: 0 0 8px rgba(50,215,75,.55); }
@media (max-width: 560px) {
  .dict-demo { padding: 14px; }
  .de-field { font-size: 10.5px; }
  .de-body { min-height: 154px; padding: 12px; font-size: 12px; }
  .dict-win { height: 108px; }
  .dw-kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) { .dw-dot { animation: none; } }

@media (max-width: 760px) {
  .hero .lede br { display: none; } /* 狭幅では手動改行を無効化して自然折返しに */
}

/* ---- スマホ最適化: 見出しが語の途中で折り返さないサイズに抑える ---- */
@media (max-width: 560px) {
  /* 「アップロードしない、」(10文字)が1行に収まる上限 = 約8.6vw */
  .hero h1 { font-size: clamp(26px, 8.6vw, 40px); line-height: 1.3; }
  .hero .lede { font-size: 14px; }
  .final h2 { font-size: clamp(24px, 8.6vw, 34px); }
  .sec-head h2 { font-size: clamp(24px, 7.6vw, 30px); }
  .sec-head h2 br { display: none; } /* 手動改行は解除して自然折返しに */
  .final h2 br { display: none; }
}

/* ---- 料金: 無料トライアルを主役に(プラン契約が先だと誤読させない) ---- */
.trial-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--panel2); border: 1px solid rgba(56, 189, 248, 0.35); border-radius: 18px;
  padding: 26px 30px; margin-bottom: 34px;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.10);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  flex-wrap: wrap;
}
.tb-eyebrow { font-family: var(--en); font-size: 11.5px; letter-spacing: 0.22em; color: var(--accent); }
.tb-title { font-size: clamp(18px, 2.4vw, 23px); font-weight: 800; margin-top: 8px; }
.tb-title b { font-family: var(--en); font-size: 1.35em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-right: 6px; }
.tb-desc { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.trial-banner .btn { flex-shrink: 0; }
.plans-label {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--en); font-size: 12px; letter-spacing: 0.2em; color: var(--muted);
  margin-bottom: 22px; white-space: nowrap;
}
.plans-label::before, .plans-label::after { content: ""; height: 1px; background: var(--border); flex: 1; }
