/* =========================================================
   トップ（/）の待機画面（着地面）
   ---------------------------------------------------------
   **この頁の規則は、すべて body[data-landing='1'] の下にある。**
   通訳中（#empty が隠れたとき）は top.js が data-landing を '0' にし、ここは 1 つも効かない ——
   通訳中の画面は style.css のまま（集中した道具の見た目を保つ）。

   2026-10-17 磨き直し（所有者「トップがめちゃくちゃ AI っぽい」）:
   - 主役は製品そのもの（デモ）。飾りのアイコン・ぼかしの光・角丸の札の格子・浮かび上がる演出はやめた。
   - 格子は 1 本: 広い画面では「左に節の名（小さな名詞）・右に中身」。区切りは細い罫線だけ。
   - 色は文字の濃淡で組み、強調色は「話している人」の印（製品の中の色）にだけ使う。
   - どの節も最初の描画で見えている（描画の後回しや巻き連動の出現は使わない）。

   配色: 着地面は公開面（site.css の data-theme="auto"）と同じ規則 —— 既定は暗、OS が明なら明。
   ========================================================= */

/* ---- 寸法の token（site.css の body[data-site] と同じ値。骨組みの部品がこれを読む）---- */
body[data-top] {
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --rad-sm: 8px;
  --rad-md: 12px;
  --rad-lg: 20px;
  --wrap: 1180px;
  --gutter: 16px;
  --head-h: 64px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-fine: 13px;
  /* 着地面の縦のリズム（節と節のあいだ） */
  --sec-y: 64px;
}
@media (min-width: 720px) {
  body[data-top] {
    --gutter: 40px;
    --sec-y: 112px;
  }
}

/* ---- 配色: 公開面と同じ明暗自動（site.css の body[data-theme='auto'] と同じ値）---- */
@media (prefers-color-scheme: light) {
  body[data-landing='1'][data-theme='dark'],
  body[data-landing='1'][data-theme='light'] {
    --bg: #f3f2ee;
    --bg-grad: linear-gradient(180deg, #f6f5f1, #ecebe5 70%);
    --surface: #ffffff;
    --surface-2: #f1f0ec;
    --line: rgba(20, 18, 12, 0.1);
    --line-2: rgba(20, 18, 12, 0.18);
    --text: #1a1815;
    --dim: #5b594f;
    --faint: #6c6a60;
    --accent-a: #a06a18;
    --accent-b: #1d7d6e;
    --shadow: 0 24px 70px rgba(60, 55, 40, 0.16);
    color-scheme: light;
  }
}
@media (prefers-color-scheme: dark) {
  body[data-landing='1'][data-theme='light'] {
    --bg: #0b0b0d;
    --bg-grad: linear-gradient(180deg, #101013, #0a0a0c 60%);
    --surface: #16161a;
    --surface-2: #1d1d22;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #f2f1ec;
    --dim: #b4b3ad;
    --faint: #8a897f;
    --accent-a: #e2a85c;
    --accent-b: #56b0a0;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}
/* デモの舞台（地より一段だけ沈める。明暗どちらでも同じ式） */
body[data-landing='1'] {
  --stage: color-mix(in srgb, var(--text) 5%, var(--bg));
}

/* ---- どちらの画面か ---- */
/* 骨組み（ヘッダー・フッター）は着地面だけ。通訳中は出さない（マーケの要素を 1 つも出さない）。 */
body[data-top]:not([data-landing='1']) .site-skip,
body[data-top]:not([data-landing='1']) .site-head,
body[data-top]:not([data-landing='1']) .site-foot {
  display: none;
}
/* 道具のヘッダーは通訳中だけ（着地面の役は骨組みのヘッダーが引き受ける）。 */
body[data-landing='1'] .bar {
  display: none;
}
body[data-landing='1'] .bar .nav-pricing {
  display: none;
}

/* 着地面は**頁として巻ける**（通訳中の画面は巻かない固定の作り）。 */
body[data-landing='1'] {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
body[data-landing='1'] #stage {
  position: static;
  flex: 1 0 auto;
}
body[data-landing='1'] .empty {
  position: relative;
  display: block;
  padding: 0;
  overflow: visible;
  overflow-x: clip;
  /* style.css の .empty は place-items:center。Chrome は block の子にも justify-items を効かせるので、
     ここで戻さないとデモの舞台（全幅の帯）が中身の幅に縮む。 */
  place-items: normal;
}
/* 日本語は文節の切れ目でだけ折る（対応しない器は通常の折り方）。 */
body[data-landing='1']:lang(ja) .empty {
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
/* 韓国語は語（分かち書きの単位）の途中で折らない（「번／역」「있어／요」と折れていた）。 */
body[data-landing='1']:lang(ko) .empty {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---- 書体（着地面の中だけ。ヘッダー・フッターは骨組みの担当）----
   1) 読み込み直後の跳ね: Be Vietnam Pro は非同期で届く（beacon.js）。届くまでの代役（system-ui）は字幅が
      1 割狭く、届いた瞬間に主張や説明の行数が変わって頁が 4〜9px 跳ねていた。
      代役を Arial に固定し、字幅と行の高さを Be Vietnam Pro に合わせる（実測: 同じ文で 400 は 1.097 倍・
      800 は 1.058 倍、ascent 1.00 / descent 0.26）。
   2) 中国語・韓国語: 漢字・ハングルは Noto Sans JP（日本語の字形・簡体字が欠ける）ではなく、
      その言語の書体で組む（簡体字だけがシステム書体になり、1 字ごとに書体が混ざっていた）。 */
@font-face {
  font-family: 'Interpres Sans Fallback';
  src: local('Arial'), local('ArialMT');
  font-weight: 100 599;
  size-adjust: 109.7%;
  ascent-override: 91.2%;
  descent-override: 23.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Interpres Sans Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT');
  font-weight: 600 1000;
  size-adjust: 105.8%;
  ascent-override: 94.5%;
  descent-override: 24.6%;
  line-gap-override: 0%;
}
body[data-landing='1'] .empty {
  --font-ui:
    'Be Vietnam Pro', 'Interpres Sans Fallback', ui-sans-serif, system-ui, 'Noto Sans JP', sans-serif;
  font-family: var(--font-ui);
}
body[data-landing='1']:lang(zh) .empty {
  --font-ui:
    'Be Vietnam Pro', 'Interpres Sans Fallback', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC',
    'Microsoft YaHei', sans-serif;
}
body[data-landing='1']:lang(ko) .empty {
  --font-ui:
    'Be Vietnam Pro', 'Interpres Sans Fallback', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic',
    sans-serif;
}

/* =========================================================
   ファーストビュー: 主張と開始の口
   ========================================================= */
body[data-landing='1'] .top-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: grid;
  /* 列を明示して min-content に引きずられないようにする（320px で開始ボタンごとはみ出した前例）。 */
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  text-align: left;
  min-width: 0;
}
body[data-landing='1'] .top-hero-copy {
  min-width: 0;
}
/* 小見出しの札（kicker）は戻ってきた人の「新しいセッション」にだけ使う。初めての人には主張だけを見せる。 */
body[data-landing='1']:not([data-resume='1']) .kicker {
  display: none;
}
body[data-landing='1'] .kicker {
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13px;
  margin-bottom: 12px;
}
body[data-landing='1'] .hero-h1 {
  margin: 0 0 16px;
}
/* 主張の書体: style.css の .hero-sub は Noto Sans JP 固定で、ベトナム語の声調記号付きの字や簡体字・ハングルが
   欠けて 1 字ごとに別の書体へ落ちていた。着地面では日本語だけ Noto Sans JP、他は表示言語の書体（--font-ui）。 */
body[data-landing='1'] .hero-sub {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(34px, 9vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
body[data-landing='1']:lang(ja) .hero-sub,
body[data-landing='1']:lang(zh) .hero-sub,
body[data-landing='1']:lang(ko) .hero-sub {
  letter-spacing: -0.03em;
  line-height: 1.16;
}
body[data-landing='1']:lang(ja) .hero-sub {
  font-family: var(--font-ja);
}
/* 韓国語の主張は字間を詰めすぎない（ハングルは詰めると読みにくい） */
body[data-landing='1']:lang(ko) .hero-sub {
  letter-spacing: -0.02em;
}
body[data-landing='1'] .lede {
  font-size: 16px;
  line-height: 1.7;
  max-width: 30em;
  margin: 0;
  color: var(--dim);
  text-wrap: pretty;
}

/* 言語ペア ＋ 開始 ＋ 但し書き（1 つの塊）。電話では罫線 1 本で主張と分け、
   720px 以上では薄い面に載せる（宙に浮いた罫線にしない。下の @media）。 */
body[data-landing='1'] .top-start {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 440px;
}
body[data-landing='1'] .top-start-cap {
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  margin-bottom: 4px;
}
body[data-landing='1'] .top-start .hero-pair {
  margin: 0 0 14px -6px;
  justify-content: flex-start;
  font-size: clamp(1.25rem, 5.4vw, 1.55rem);
  /* ペアは app.js が決めてから描く（それまで .pending で伏せる）。添え書きの行まで高さを先に取る（CLS）。 */
  min-height: calc(1.24em + 28px);
}
/* ペアの色は製品の中（話し手の印）でだけ使う。頁の上では文字の色で */
body[data-landing='1'] .top-start .hero-pair .rp-a,
body[data-landing='1'] .top-start .hero-pair .rp-b {
  color: var(--text);
}
@media (max-width: 359px) {
  body[data-landing='1'] .top-start .hero-pair {
    font-size: 1.05rem;
  }
}
body[data-landing='1'] .empty-actions {
  justify-content: flex-start;
  gap: 8px;
}
body[data-landing='1'] .top-start .start.big {
  width: 100%;
  height: 56px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
}
/* 無料枠の但し書き: 項目ごとに折れない札（印付き）。折れるのは項目の切れ目だけ。 */
body[data-landing='1'] .free-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--dim);
  text-align: left;
}
body[data-landing='1'] .free-note[hidden] {
  display: none;
}
body[data-landing='1'] .free-note li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
body[data-landing='1'] .free-note li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 4px;
  margin-top: -3px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
/* 料金への口は着地面ではどの幅でも出す（道具のヘッダーの「料金」は通訳中だけになったため）。 */
body[data-landing='1'] .free-note-link {
  display: inline-block;
  /* 当たり判定は 44px（13px の文字の行 16 + 14 + 14）。上下の負の margin で
     置き場所は 40px のまま —— 育てるのは指の当たる範囲だけ（tap-target.e2e.mjs 軸 2）。 */
  margin: -2px 0 -2px -2px;
  padding: 14px 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
body[data-landing='1'] .free-note-link:hover {
  text-decoration-color: currentColor;
}
/* キーボードの案内は、戻ってきた人のキーボードのある広い画面だけ。 */
body[data-landing='1'] .hint {
  display: none;
}
@media (min-width: 901px) and (hover: hover) {
  body[data-landing='1'][data-resume='1'] .hint {
    display: block;
  }
}
body[data-landing='1'] .past {
  grid-column: 1 / -1;
  width: 100%;
}
/* 戻ってきた人（過去のセッションがある）は中央の 1 列。主役はペアで、デモは要らない。 */
body[data-landing='1'][data-resume='1'] .top-hero {
  text-align: center;
}
body[data-landing='1'][data-resume='1'] .top-start,
body[data-landing='1'][data-resume='1'] .lede {
  margin-left: auto;
  margin-right: auto;
}
body[data-landing='1'][data-resume='1'] .top-start .hero-pair {
  margin: 0 auto 18px;
  justify-content: center;
}
body[data-landing='1'][data-resume='1'] .empty-actions {
  justify-content: center;
}
body[data-landing='1'][data-resume='1'] .free-note {
  justify-content: center;
}
body[data-landing='1'][data-resume='1'] .top-demo {
  display: none;
}

/* 720px 以上: 開始の塊を薄い面（カード）にする。罫線 1 本だと、広い画面で右の列に宙に浮いて見えた。 */
@media (min-width: 720px) {
  body[data-landing='1']:not([data-resume='1']) .top-start {
    margin-top: 36px;
    padding: 20px 22px 6px;
    border: 0;
    border-radius: 20px;
    background: var(--surface);
    box-shadow:
      0 0 0 1px var(--line),
      0 24px 48px -36px rgba(0, 0, 0, 0.35);
  }
}
/* 720〜959px（タブレット縦）: 左寄せの 440px で右半分が空いていた。
   塊を全幅にして「ペア | 開始」を 1 行に並べ、但し書きと料金への口をその下の 1 行に置く。 */
@media (min-width: 720px) and (max-width: 959px) {
  body[data-landing='1']:not([data-resume='1']) .top-start {
    max-width: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      'cap cap'
      'pair act'
      'note note'
      'link link';
    column-gap: 32px;
    align-items: center;
  }
  body[data-landing='1']:not([data-resume='1']) .top-start-cap {
    grid-area: cap;
  }
  body[data-landing='1']:not([data-resume='1']) .top-start .hero-pair {
    grid-area: pair;
    margin-bottom: 0;
  }
  body[data-landing='1']:not([data-resume='1']) .top-start .empty-actions {
    grid-area: act;
  }
  body[data-landing='1']:not([data-resume='1']) .top-start .free-note {
    grid-area: note;
  }
  body[data-landing='1']:not([data-resume='1']) .top-start .free-note-link {
    grid-area: link;
    justify-self: start;
  }
}

/* 広い画面: 主張を左に大きく、開始の塊（カード）を右の列に（カードの下端を説明の下端にそろえる） */
@media (min-width: 960px) {
  body[data-landing='1'] .top-hero {
    padding-top: 88px;
    padding-bottom: 72px;
  }
  body[data-landing='1']:not([data-resume='1']) .top-hero-copy {
    display: grid;
    /* 右の列はカードの幅（ペアが 1 行に収まる 384px）。主張は残りの幅いっぱい（日本語の主張を 2 行に保つ） */
    grid-template-columns: minmax(0, 1fr) minmax(0, 384px);
    /* カードが主張＋説明より高いとき、余りは主張の行（上）へ回す（主張と説明の間を空けない） */
    grid-template-rows: 1fr auto;
    column-gap: 56px;
    align-items: end;
  }
  body[data-landing='1']:not([data-resume='1']) #heroBlock {
    display: contents;
  }
  /* 左: 主張と説明。右: 開始の口（説明の下端にそろえる）と、その但し書き */
  body[data-landing='1']:not([data-resume='1']) .top-hero-copy > * {
    grid-column: 2;
  }
  body[data-landing='1']:not([data-resume='1']) #heroBlock > .hero-h1 {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 24px;
  }
  body[data-landing='1']:not([data-resume='1']) #heroBlock > .lede {
    grid-column: 1;
    grid-row: 2;
  }
  body[data-landing='1']:not([data-resume='1']) .top-start {
    grid-row: 1 / span 2;
    align-self: end;
    max-width: none;
    margin-top: 0;
  }
  body[data-landing='1']:not([data-resume='1']) .lede {
    font-size: 18px;
  }
  body[data-landing='1']:not([data-resume='1']) .hero-sub {
    font-size: clamp(48px, 4.6vw, 68px);
  }
}

/* =========================================================
   デモ（アプリの「会話」表示の 1 画面）—— 頁の主役
   画面は通訳中のアプリと同じ暗い字幕の見た目で固定する（明るい頁でも）。
   ========================================================= */
.top-demo {
  display: grid;
  justify-items: center;
  gap: 32px;
  margin: 0;
  padding: 40px var(--gutter) 32px;
  background: var(--stage);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
@media (min-width: 960px) {
  .top-demo {
    padding: 72px var(--gutter) 48px;
  }
}
.td-stage {
  position: relative;
  display: grid;
  justify-items: center;
}
.td-phone {
  --p-bg: #0b0b0d;
  --p-text: #f2f1ec;
  --p-dim: #a3a299;
  --p-line: rgba(255, 255, 255, 0.09);
  --p-a: #e2a85c;
  --p-b: #56b0a0;
  width: min(340px, calc(100vw - 56px));
  aspect-ratio: 9 / 15;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 16px 14px 12px;
  border-radius: 44px;
  background: var(--p-bg);
  color: var(--p-text);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 8px #1b1b1f,
    0 0 0 9px color-mix(in srgb, var(--text) 16%, transparent),
    0 50px 90px -40px rgba(0, 0, 0, 0.5);
  font-family: var(--font-ui);
}
@media (min-width: 960px) {
  .td-phone {
    width: 380px;
    padding: 20px 18px 14px;
    border-radius: 50px;
  }
}
/* 画面: アプリの「会話」表示と同じく、吹き出しが上から順に積もり、あふれたら最新まで巻く（top.js の follow）。
   上端だけ薄く消す（流れて出ていく古い吹き出し）。 */
.td-feed {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 4px 14px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px);
  mask-image: linear-gradient(to bottom, transparent, #000 18px);
  transition: opacity 0.4s var(--ease);
}
.td-feed.is-fading {
  opacity: 0;
}
/* 吹き出し: 言語 A の人は左、言語 B の人は右（アプリの会話表示と同じ読み方）。中は「札 → 原文 → 訳」。 */
.td-ex {
  --c: var(--p-a);
  position: relative;
  flex: none;
  align-self: flex-start;
  max-width: 90%;
  padding: 9px 13px 11px;
  border-radius: 18px 18px 18px 6px;
  background: color-mix(in srgb, var(--c) 13%, #121215);
  border: 1px solid color-mix(in srgb, var(--c) 24%, transparent);
  text-align: left;
}
.td-ex[data-from='b'] {
  --c: var(--p-b);
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
}
.td-src {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--p-dim);
  overflow-wrap: anywhere;
}
/* 行頭の言語の札 = 話された言語を聞き分けた印 */
.td-tag {
  display: inline-block;
  margin-right: 7px;
  padding: 0 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  color: var(--c);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  vertical-align: 1px;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}
.td-ex.is-hearing .td-tag {
  animation: tdHear 0.42s ease-out;
}
@keyframes tdHear {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
.td-dst {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.42;
  color: var(--p-text);
  overflow-wrap: anywhere;
  /* 最後の行に 1 字だけ残さない（「微／辣。」） */
  text-wrap: pretty;
}
@media (min-width: 960px) {
  .td-src {
    font-size: 15px;
  }
  .td-dst {
    font-size: 22px;
  }
  .td-ex {
    padding: 11px 16px 13px;
  }
}
.td-dst:empty {
  min-height: 1.42em;
}
.td-dst.is-live::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: tdCaret 0.9s steps(1) infinite;
}
@keyframes tdCaret {
  50% {
    opacity: 0;
  }
}
/* 読み上げの印（訳が出そろったあと、声でも出している間だけ） */
.td-say {
  position: absolute;
  top: -9px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c);
  color: #0b0b0d;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.td-ex[data-from='b'] .td-say {
  right: auto;
  left: -7px;
}
.td-say svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.td-say svg path:first-child {
  fill: currentColor;
}
.td-ex.is-saying .td-say {
  opacity: 1;
  transform: none;
}
.td-ex.is-saying .td-say svg path:last-child {
  animation: tdWave 0.7s ease-in-out infinite alternate;
}
@keyframes tdWave {
  from {
    opacity: 0.35;
  }
}
.td-dst:lang(ja),
.td-src-t:lang(ja) {
  font-family: var(--font-ja);
  line-break: strict;
  word-break: auto-phrase;
}
.td-dst:lang(ko),
.td-src-t:lang(ko) {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', var(--font-ui);
  word-break: keep-all;
}
.td-dst:lang(zh),
.td-src-t:lang(zh) {
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', var(--font-ui);
}
/* 画面の下の帯: 通訳中（赤い点）・いまのペア・読み上げが入っている印（スピーカー） */
.td-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  /* 右端は一時停止のボタンが角に重なるので空けておく */
  padding: 10px 36px 0 8px;
  border-top: 1px solid var(--p-line);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--p-dim);
}
.td-live {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rec);
}
.td-pair {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.td-voice-ico {
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.td-voice-ico path:first-child {
  fill: currentColor;
}
.td-cap {
  max-width: 30em;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
  text-align: center;
  text-wrap: balance;
}
/* 一時停止は端末の右下の角に重ねる（キャプションは真ん中のまま） */
.td-toggle {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--dim);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}
.td-toggle[hidden] {
  display: none;
}
.td-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}
.td-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.td-toggle .td-ico-play {
  display: none;
  fill: currentColor;
  stroke: none;
}
.td-toggle[data-paused] .td-ico-play {
  display: block;
}
.td-toggle[data-paused] .td-ico-pause {
  display: none;
}

/* =========================================================
   続き: 1 本の格子（左に節の名・右に中身）
   ========================================================= */
.top-more {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: left;
  font-size: var(--fs-body);
  line-height: 1.65;
}
.top-sec {
  padding: var(--sec-y) 0 0;
}
.top-sec + .top-sec {
  margin-top: var(--sec-y);
  border-top: 1px solid var(--line);
}
.top-h2 {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--dim);
}
@media (min-width: 960px) {
  .top-sec {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    column-gap: 40px;
    align-items: start;
  }
  .top-h2 {
    margin: 0;
    position: sticky;
    top: calc(var(--head-h) + 24px);
  }
}
.top-body {
  min-width: 0;
}

/* ---- 性能: 数字を大きく、意味は小さく。罫線で区切るだけ ---- */
.top-stats {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.top-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.top-stat:first-child {
  border-top: 0;
  padding-top: 0;
}
.top-stat-n {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  white-space: nowrap;
}
.top-stat .top-stat-n {
  font-size: 56px;
}
.top-stat-t {
  font-size: 15px;
  line-height: 1.55;
  color: var(--dim);
  text-wrap: pretty;
}
@media (min-width: 720px) {
  .top-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
  }
  .top-stat,
  .top-stat:first-child {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
    border-top: 0;
  }
  .top-stat .top-stat-n {
    font-size: clamp(56px, 6vw, 88px);
  }
}
.top-note {
  margin-top: 28px;
  max-width: 60em;
  font-size: 12px;
  line-height: 1.7;
  color: var(--faint);
}

/* ---- 機能: 実際の画面の一部と、短い説明 ---- */
.top-cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.top-cap + .top-cap {
  margin-top: 56px;
}
.top-cap h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-wrap: balance;
}
.top-cap-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dim);
  text-wrap: pretty;
}
@media (min-width: 720px) {
  .top-cap {
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
    column-gap: 40px;
    align-items: start;
  }
  .top-cap + .top-cap {
    padding-top: 48px;
    margin-top: 48px;
    border-top: 1px solid var(--line);
  }
}
/* 画面の一部（アプリの字幕と同じ暗い面・同じ文字の組み方） */
.top-ui {
  --u-bg: #111114;
  --u-text: #f2f1ec;
  --u-dim: #9a998f;
  --u-line: rgba(255, 255, 255, 0.09);
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--u-bg);
  color: var(--u-text);
  box-shadow: 0 0 0 1px var(--line);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  min-width: 0;
}
.ui-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--u-dim);
}
.ui-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rec);
}
.ui-src {
  padding-left: 11px;
  border-left: 2px solid #e2a85c;
  font-size: 13px;
  color: var(--u-dim);
}
.ui-dst {
  margin-top: 10px;
  padding-left: 11px;
  border-left: 2px solid #56b0a0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.42;
}
.ui-dst::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.14em;
  background: currentColor;
  animation: tdCaret 0.9s steps(1) infinite;
}
.ui-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--u-line);
  font-size: 14px;
}
.ui-row > .ui-tag {
  grid-column: 1 / -1;
}
.ui-row > :last-child {
  color: var(--u-dim);
}
.ui-head {
  padding-top: 0;
  border-top: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--u-dim);
}
.ui-head > :first-child {
  display: none;
}
.ui-tag {
  justify-self: start;
  font-size: 11.5px;
  font-weight: 600;
  color: #e2a85c;
}
.ui-tag.is-b {
  color: #56b0a0;
}
.ui-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--u-line);
  font-size: 12px;
  color: var(--u-dim);
}
.ui-foot > :first-child {
  margin-right: auto;
}
.ui-key {
  padding: 3px 10px;
  border: 1px solid var(--u-line);
  border-radius: 6px;
  color: var(--u-text);
  font-weight: 600;
}
.ui-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.ui-field {
  padding: 12px 14px;
  border: 1px solid var(--u-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.75;
}
.ui-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--u-dim);
}

/* ---- 場面: 罫線で区切った文字の一覧。行全体が押せる ---- */
.top-scenes {
  list-style: none;
}
.top-scene {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.top-scenes li:first-child .top-scene {
  border-top: 0;
  padding-top: 0;
}
.top-scene-t {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.top-scene-d {
  grid-column: 1 / -1;
  font-size: 15px;
  line-height: 1.65;
  color: var(--dim);
  text-wrap: pretty;
}
.top-go,
.top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.top-go i,
.top-link i {
  font-style: normal;
  color: var(--dim);
  transition: transform 0.16s var(--ease);
}
.top-daily:not([href]) .top-go {
  display: none;
}
.top-scene[href]:hover .top-go span,
.top-link:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.top-scene[href]:hover .top-go i,
.top-link:hover i {
  transform: translateX(3px);
}
/* 電話: 名前と行き先を 1 行に、説明をその下に（行き先の文字は省いて矢印だけ —— 行全体が押せる） */
@media (max-width: 719px) {
  .top-go {
    grid-row: 1;
    grid-column: 2;
    min-height: 0;
  }
  .top-go span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
@media (min-width: 720px) {
  .top-scene {
    grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
    column-gap: 32px;
    padding: 24px 0;
  }
  .top-scene-d {
    grid-column: auto;
    grid-row: 1;
    grid-column-start: 2;
  }
  /* 説明だけの行（リンクの無い場面）は、行き先の列まで説明を伸ばす */
  li.top-scene .top-scene-d {
    grid-column: 2 / -1;
  }
  .top-go {
    justify-self: end;
    min-height: 0;
  }
}

/* ---- 言語: 64 の名前を、文字の並びとして ---- */
.top-sub {
  font-size: 17px;
  line-height: 1.6;
  max-width: 34em;
  text-wrap: pretty;
}
.top-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dim);
}
.top-cloud li {
  white-space: nowrap;
}
/* 文字ごとの見た目の大きさをそろえる（同じ 16px でも、アラビア文字・インド系の文字は小さく、
   行の下へずれて見えた）。並びはベースラインでそろえ、行の高さは変えない。 */
.top-cloud {
  align-items: baseline;
}
.top-cloud li:is(:lang(ar), :lang(fa), :lang(ur)) {
  font-size: 1.2em;
  line-height: 1.333;
}
.top-cloud
  li:is(:lang(hi), :lang(mr), :lang(bn), :lang(pa), :lang(gu), :lang(ta), :lang(te), :lang(kn), :lang(ml)) {
  font-size: 1.06em;
  line-height: 1.51;
}
.top-cloud li:is(:lang(ka), :lang(hy), :lang(am), :lang(th)) {
  font-size: 1.04em;
  line-height: 1.54;
}
.top-cloud li:lang(zh) {
  font-family: 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', var(--font-ui);
}
.top-cloud li:lang(ko) {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', var(--font-ui);
}
.top-link {
  margin-top: 24px;
}
.top-scenes-more {
  margin-top: 16px;
}

/* ---- FAQ: 開閉するだけの一覧 ---- */
.top-faq details {
  border-bottom: 1px solid var(--line);
}
.top-faq details:first-child {
  border-top: 1px solid var(--line);
}
.top-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.top-faq summary::-webkit-details-marker {
  display: none;
}
/* 開閉の印は細い線の「＋」（開くと「−」） */
.top-faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--dim);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
}
.top-faq details[open] summary::after {
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat;
}
.top-faq details p {
  max-width: 40em;
  padding: 0 0 24px;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.75;
}

/* ---- 頁末: 札にしない。主張 1 行と開始の口 ---- */
.top-final {
  margin-top: var(--sec-y);
  padding: var(--sec-y) 0 0;
  border-top: 1px solid var(--line);
}
.top-final-h {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 16em;
}
.top-final-body {
  margin-top: 20px;
  max-width: 34em;
}
.top-final-body > p {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.7;
}
.top-final .top-final-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  margin-top: 28px;
  padding: 0 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}
.top-final-links {
  list-style: none;
  margin-top: 28px;
  font-size: 14px;
  color: var(--dim);
}
.top-final-links li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  border-top: 1px solid var(--line);
  min-height: 48px;
}
.top-final-links .top-link {
  margin: 0;
}
.top-ios {
  padding: 12px 0;
}
@media (max-width: 559px) {
  .top-final .top-final-cta {
    width: 100%;
  }
}
body[data-top] .site-foot {
  margin-top: var(--sec-y);
}

/* 焦点は見える形で（キーボードで来た人のために）。 */
body[data-landing='1'] .top-more a:focus-visible,
body[data-landing='1'] .top-more summary:focus-visible,
body[data-landing='1'] .top-more button:focus-visible,
body[data-landing='1'] .td-toggle:focus-visible,
body[data-landing='1'] .free-note-link:focus-visible,
body[data-landing='1'] .top-start .start.big:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .td-dst.is-live::after,
  .td-ex.is-hearing .td-tag,
  .td-ex.is-saying .td-say svg path:last-child,
  .ui-dst::after {
    animation: none;
  }
  .td-feed {
    transition: none;
  }
  .top-go i,
  .top-link i {
    transition: none;
  }
}

/* 電話: 開始ボタンが最初の 1 画面に入るように（in-app browser の 390x520 級でも）。
   test/e2e/fold-reach.e2e.mjs が #emptyStart を窓の中に要求している。 */
@media (max-width: 560px) {
  body[data-landing='1'] .top-hero {
    padding-top: 20px;
  }
  body[data-landing='1'] .hero-h1 {
    margin-bottom: 12px;
  }
  body[data-landing='1'] .lede {
    font-size: 15px;
    line-height: 1.6;
  }
  body[data-landing='1'] .top-start {
    margin-top: 20px;
    padding-top: 12px;
  }
  body[data-landing='1'] .top-start .hero-pair {
    margin-bottom: 10px;
  }
}
/* 320px 級の電話（SE 第 1 世代・アプリ内ブラウザ）でも、開始ボタンを最初の 1 画面に入れる。 */
@media (max-width: 359px) {
  body[data-landing='1'] .hero-sub {
    font-size: 30px;
  }
  body[data-landing='1'] .lede {
    font-size: 14.5px;
  }
  body[data-landing='1'] .top-start-cap {
    display: none;
  }
}

/* =========================================================
   マイクの確認の前の 1 行（#micNote・2026-10-24）
   開始ボタンの真下。初めての人に「次にブラウザが聞いてくる → 許可」を押す前に言う。
   許可済みなら app.js が hidden にし、ブロック済みなら .is-blocked（直し方の 1 行）にする。
   ========================================================= */
.mic-note {
  display: none;
}
body[data-landing='1'] .mic-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--dim);
  text-align: left;
  text-wrap: pretty;
}
body[data-landing='1'] .mic-note[hidden] {
  display: none;
}
body[data-landing='1'] .mic-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
/* ブロック済み: 文字は本文の色（読める濃さ）、印だけ注意の色。枠で「押す前に直すこと」と分かるように。 */
body[data-landing='1'] .mic-note.is-blocked {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  background: color-mix(in srgb, var(--accent-a) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-a) 35%, transparent);
}
body[data-landing='1'] .mic-note.is-blocked svg {
  color: var(--accent-a);
}
/* 開始の塊の 2 列（720〜959px）では、但し書きの行の上に全幅で置く。 */
@media (min-width: 720px) and (max-width: 959px) {
  body[data-landing='1']:not([data-resume='1']):not([data-ready='1']) .top-start {
    grid-template-areas:
      'cap cap'
      'pair act'
      'mic mic'
      'note note'
      'link link';
  }
  body[data-landing='1']:not([data-resume='1']):not([data-ready='1']) .top-start .mic-note {
    grid-area: mic;
  }
}

/* =========================================================
   すぐ話せる画面（body[data-ready='1']・2026-10-24）
   言語ペアの着地面の「無料で試す」から来た人。売り文句は読み終えているので、
   ここでは主張を「押したら、あとは話すだけ」に替え、ペア → 開始 → マイクの 1 行だけを中央の 1 列に置く。
   デモ・続きの節・料金への口は出さない（押す前に読むものを増やさない）。ヘッダーとフッターは残す。
   ========================================================= */
/* .hero-sub は着地面で display: block を持つので、ふだんの画面で隠す側の詳細度をそれより上げる。 */
body:not([data-ready='1']) .hero-sub.hero-ready,
body:not([data-ready='1']) .lede.lede-ready {
  display: none;
}
body[data-landing='1'][data-ready='1'] .hero-std,
body[data-landing='1'][data-ready='1'] #heroLede,
body[data-landing='1'][data-ready='1'] .kicker,
body[data-landing='1'][data-ready='1'] .top-demo,
body[data-landing='1'][data-ready='1'] .top-more,
body[data-landing='1'][data-ready='1'] .past,
body[data-landing='1'][data-ready='1'] .hint,
body[data-landing='1'][data-ready='1'] #pricingLink {
  display: none;
}
body[data-landing='1'][data-ready='1'] #heroClaim,
body[data-landing='1'][data-ready='1'] .hero-ready,
body[data-landing='1'][data-ready='1'] .lede-ready {
  display: block;
}
body[data-landing='1'][data-ready='1'] .top-hero {
  text-align: center;
  padding-top: clamp(28px, 7vh, 88px);
  padding-bottom: 56px;
}
body[data-landing='1'][data-ready='1'] .top-hero-copy,
body[data-landing='1'][data-ready='1'] #heroBlock {
  display: block;
}
body[data-landing='1'][data-ready='1'] .hero-sub {
  font-size: clamp(32px, 8.4vw, 60px);
}
body[data-landing='1'][data-ready='1'] .lede {
  margin: 0 auto;
  max-width: 32em;
}
body[data-landing='1'][data-ready='1'] .top-start {
  display: block;
  max-width: 440px;
  margin: 28px auto 0;
  text-align: left;
}
body[data-landing='1'][data-ready='1'] .top-start .hero-pair {
  margin: 0 auto 14px;
  justify-content: center;
}
body[data-landing='1'][data-ready='1'] .top-start-cap {
  text-align: center;
}
body[data-landing='1'][data-ready='1'] .free-note {
  justify-content: center;
  margin-bottom: 14px;
}
body[data-landing='1'][data-ready='1'] .mic-escape {
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 720px) {
  body[data-landing='1'][data-ready='1'] .top-start {
    margin-top: 36px;
    padding: 22px 24px 8px;
    border: 0;
    border-radius: 20px;
    background: var(--surface);
    box-shadow:
      0 0 0 1px var(--line),
      0 24px 48px -36px rgba(0, 0, 0, 0.35);
  }
}
@media (min-width: 960px) {
  body[data-landing='1'][data-ready='1'] #heroBlock > .hero-h1 {
    margin: 0 0 16px;
  }
  body[data-landing='1'][data-ready='1'] .lede {
    font-size: 18px;
  }
}
@media (max-width: 560px) {
  body[data-landing='1'][data-ready='1'] .top-hero {
    padding-top: 28px;
  }
  body[data-landing='1'][data-ready='1'] .top-start {
    margin-top: 24px;
    padding-top: 16px;
  }
}
