/* aniwaffle 1126 · 日本語版（Larissa）
   ① 言語スイッチ（EN / 日本語）：英日どちらでも出る。首屏の Docs / Request access の行と、上のナビの右側。
   ② html[lang="ja"] のときだけ効く組版：書体、字間、行間、改行、各ブレークポイントの詰め。英語版には一切触れない。
   辞書と切替は js/aw-i18n-1126.js。 */

/* ====================================================================== ① 言語スイッチ
   1126 Larissa が option B に決定（lill-docs/aw-ja-langswitch-options.html の B をそのまま移植）：
   「もう一方の言語」を一語だけ出す（英語ページ = 日本語、日本語ページ = EN）。薬丸の地は無し。後ろのナビとは細い縦線（1 × 14、currentColor .3）で区切る。
   場所は元のまま：首屏は Docs / Request access の行の左端、スクロール後は上のナビの右の組の左端。縦線はどの幅でも出す。 */
.aw-lang { display: inline-flex; align-items: center; gap: 2px; flex: none; color: inherit; }
.aw-lang button {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; height: 30px; padding: 0 4px; border-radius: 999px;
  font: 500 14px/1 proxima-nova, "Noto Sans JP", "Hiragino Sans", sans-serif; letter-spacing: .025rem; white-space: nowrap;
  color: inherit; opacity: 1; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
  transition: text-decoration-color .4s;
}
.aw-lang button[lang="ja"] { letter-spacing: .04em; }
.aw-lang button:hover { text-decoration-color: currentColor; }
.aw-lang button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* 今の言語のボタンは出さない。html[lang] で決めるので JS を待たない */
html[lang="en"] .aw-lang button[data-lang-set="en"],
html[lang="ja"] .aw-lang button[data-lang-set="ja"] { display: none; }
.aw-lang-hair { width: 1px; height: 14px; background: currentColor; opacity: .3; flex: none; }
/* 首屏の行：Docs と同じ字色、Request access の薬丸と同じ中心線 */
.vx-links .aw-lang, .vx-links .aw-lang-hair { margin-top: -4px; color: #5780FF; }
.vx-links .aw-lang button { height: 34px; padding: 0 2px; font-size: 16px; }
/* 上のナビ：Docs の字色についていく（色は js が Docs から写す） */
#awNav .aw-lang { margin-right: -8px; }
#awNav .aw-lang-hair { margin-right: -8px; }
/* 1126 Larissa の五点（dev で見た直し）
   ① 縦線はどの幅でも出す（もとは 819 以下で消していた）。入らない幅は間を詰める。字から線、線から Docs の字までは同じ距離（≤819 は 11px ずつ）。
   ② 「日本語」は欧文の Docs より上に寄って見える（字面の上端が大文字の上端より 1.25px 上、下端はベースラインの 0.75px 下）
      → 上のナビは 0.5px 下げる（字面の中心の差 -0.25 / -0.42px → +0.25 / +0.08px）。首屏の行は薬丸の中心線（-4px）に合わせてあって Docs より 1.25px 高かった → 1.5px 下げる（+0.25px）。縦線も Docs の字の中心へ。
   ⑤ 左の組（logo）と右の組が触れる幅は logo を兎だけにする：英語 ≤519、日本語 ≤479（実測：玻璃の端から端まで 12px 以上）。
      それでも入らない幅（英語 ≤429）は Studio の短い言い方（日本語版と同じ）、≤379 / ≤339 は間と字をもう一段詰める。 */
@media (max-width: 819px) {
  #awNav .aw-lang { margin-right: -2px; }
  #awNav .aw-lang-hair { margin-right: -6px; }
  #awNav .aw-lang button { height: 34px; padding: 0 4px; font-size: 13px; }
}
@media (min-width: 820px) and (max-width: 1199px) { html[lang="ja"] #awNav .aw-lang { margin-right: -4px; } }   /* 日本語は右の組の gap が 10px：線の左右を 10px ずつに */
html[lang="en"] #awNav .aw-lang button[lang="ja"] { padding-top: 1px; }
html[lang="en"] .vx-links .aw-lang button[lang="ja"] { padding-top: 3px; }
html[lang="en"] .vx-links .aw-lang-hair { margin-top: -2px; }
#awNav .m12-pg .aw-nav-l { white-space: pre; }
@media (max-width: 519px) { html[lang="en"] body.ch6[data-jes-content] #awNav .aw-nav-logo { font-size: 0; gap: 0; } }
@media (max-width: 479px) { html[lang="ja"] body.ch6[data-jes-content] #awNav .aw-nav-logo { font-size: 0; gap: 0; } }
@media (max-width: 429px) { html[lang="en"] #awNav .m12-pg .aw-nav-l { display: none; } }
@media (max-width: 379px) {
  html[lang="en"] body.ch6 #awNav .aw-nav-right { gap: 6px; }
  html[lang="en"] body.ch6 #awNav .aw-nav-right .aw-pill { padding-inline: 8px; }
}
@media (max-width: 349px) {
  html[lang="ja"] body.ch6[data-jes-content] #awNav#awNav .aw-nav-right { gap: 5px; }   /* #awNav を重ねる：下の「≤1199 は gap 10px」より後ろに勝たせる */
  html[lang="ja"] body.ch6 #awNav .aw-nav-right .aw-pill { padding-inline: 7px; }
  html[lang="ja"] #awNav .aw-nav-right .m12-pg { padding-inline: 7px; }
}
@media (max-width: 360px) {
  html[lang="en"] body.ch6 #awNav .aw-nav-right { gap: 3px; }
  html[lang="en"] #awNav .aw-lang button { padding-inline: 3px; }
  html[lang="en"] #awNav .aw-nav-right .m12-pg { padding-inline: 7px; }
}
@media (max-width: 339px) {
  html[lang="en"] body.ch6 #awNav .aw-nav-right, html[lang="en"] body.ch6 #awNav .aw-nav-right .aw-pill, html[lang="en"] #awNav .aw-lang button { font-size: 12px; }
  html[lang="en"] #awNav .aw-nav-docs { font-size: 13px; }
  html[lang="en"] body.ch6 #awNav .aw-nav-right .aw-pill { padding-inline: 7px; }
}
/* 切替の瞬間：いったん沈めてから読み込み直す */
html.aw-lang-out body { opacity: 0; transition: opacity .16s cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { .aw-lang button, html.aw-lang-out body { transition: none; } }


/* ====================================================================== ② 日本語の組版（html[lang="ja"] のときだけ）
   既存 css は id を重ねた指定や !important が多い。ここは「J」＝ html[lang="ja"] body:not(#_):not(#_):not(#_) を頭に付けて必ず勝たせる（英語版には一切かからない）。
   方針（Larissa 1126）：
   · 色は英語版と同じ（どの段も上書きしない。computed color を EN / JA で突き合わせて差分 0）。
   · 書体の順番は欧文が先（proxima-nova → Noto Sans JP）。行内の欧文は英語版と同じ字形。
   · 見出し：行間 1.2 から 1.4、字間 0 から .02em、palt は見出しだけ。本文：行間 1.7 から 1.9、字間 .03 から .05em、palt なし。
   · 13px 未満の和文は置かない。眉題（小さい一行）は英語より一段大きく。
   · 眉題 / 見出し / 副文 / 操作 の縦の間は英語より 2 から 4 割広く（和文は字面が詰まって見えるため）。
   · 改行は文節（js が入れるゼロ幅スペース）でだけ。行頭禁則は line-break: strict。和欧の間は text-autospace。 */

/* ---------- 書体 ---------- */
html[lang="ja"] body,
html[lang="ja"] body :where(*:not(.vcat-w):not(.vcat-tag):not(.ch6-sp-script):not(.ch6-sp-script *):not(.vff-script):not(.jps-pol-cap)) {
  font-family: proxima-nova, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif !important;
}
/* 欧文は全站 proxima-nova、和文は Noto Sans JP（順番は欧文が先）。Aniwaffle / Studio / TTS / 数字は英語版と同じ字形で出る（kit 実測の指摘で、和文を先に置く指定は撤回）。 */
/* 既存の :lang(ja) ルール（aw-1022、日本語サンプル用）が <html lang="ja"> で全体に効くので、飾り文字の子に書体を戻す */
html[lang="ja"] .ch6-sp-script, html[lang="ja"] .ch6-sp-script * { font-family: "AW Vibes", cursive !important; }
html[lang="ja"] body { line-break: strict; overflow-wrap: anywhere; text-autospace: normal; }
html[lang="ja"] .ja-s { display: none; }
/* 文節の切れ目でだけ折り返す。text-wrap の一括指定は nowrap を外してしまうので style だけ */
html[lang="ja"] [data-ja-ph] { word-break: keep-all; overflow-wrap: anywhere; text-wrap-style: balance; }
/* 見出しの中の欧文（Aniwaffle）：和文より小さく見えるぶんを足す */
html[lang="ja"] .ja-latin { font-size: 1.06em; letter-spacing: -.03em; }

/* ---------- 首屏 ---------- */
/* 見出し：1126 Larissa が option A1 に決定（lill-docs/aw-ja-hero-options.html の A1 を移植）。
   「キャラクターに、／いちばん愛される声を」（句点なし）、Noto Sans JP 900（Black）、二行で版面いっぱい。
   · 字号は窓幅に比例（英語と同じやり方）。二行目の幅が英語の二行目と同じ割合（窓幅の 93%）になる値：--ja-hero-fs。
   · 字間 -.01em、行間 1.08、palt（A1 の値）。767 以下は三行（キャラクターに、／いちばん／愛される声を）、390 で 45px、行間 1.14、字間 0。
   · 文節の間の空白は flex で落とす。人物は見出しが高くなったぶん下げる（既存の --ch6-head に足すだけ。スクロール後の着地点は変わらない）。 */
html[lang="ja"] body { --ja-hero-fs: 9.84vw; --ja-hero-drop: 7.64vw; }   /* 1440 で 141.7px（二行目 = 窓幅の 93%、英語の二行目と同じ）/ 110px */
/* 英語版が 900 で組んでいる大見出し（首屏、白地の段頭、活用シーン、footer の呼びかけ）は、日本語でも 900：
   欧文は proxima-nova 900、和文は Noto Sans JP 900（fonts/external/noto-black-1126.css、日本語のときだけ読む）。欧文を先に置くので「Aniwaffle」は proxima のまま。
   青地の機能段の見出し（英語が細い 500）は対象外。 */
html[lang="ja"] body:not(#_):not(#_):not(#_) :is(#vxBrand, .ch6-pr-h, #use-cases .gk-usecases > h2, .vx5-contact-t), html[lang="ja"] body:not(#_):not(#_):not(#_) :is(#vxBrand, .ch6-pr-h, #use-cases .gk-usecases > h2, .vx5-contact-t) * { font-family: proxima-nova, "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif !important; font-weight: 900 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .vx-brand { font-weight: 900 !important; letter-spacing: -.01em !important; line-height: 1.08 !important; text-transform: none !important; font-feature-settings: "palt" !important; }
/* grid：文節の間の空白ノードは落ち、各語の箱は字の幅のまま（一行目を幅いっぱいの箱にすると、js がメニュー行の右端を合わせる相手が版面の端になってしまう） */
html[lang="ja"] .vx-brand > span { display: grid; grid-template-columns: repeat(3, max-content); justify-content: start; justify-items: start; }
html[lang="ja"] .vx-brand > span:not(:has(.vx-w)) { opacity: 0; }   /* 一語ずつに割られるまで（空白入りの素の文）は見せない */
html[lang="ja"] .vx-brand .vx-w { letter-spacing: inherit; white-space: nowrap; }
html[lang="ja"] .vx-brand .vx-w:first-child { grid-column: 1 / -1; }   /* 一行目は「キャラクターに、」で必ず切る */
html[lang="ja"] .vx-brand, html[lang="ja"] .vx-brand > span { max-width: 100%; min-width: 0; }
/* 字号：窓幅比例。二行目（10 字、palt で約 9.25em）が版面からはみ出さない上限も併せてかける */
@media (min-width: 768px) {
  html[lang="ja"] body:not(#_):not(#_):not(#_) .vx-brand { font-size: min(var(--ja-hero-fs), calc((100vw - 2 * clamp(20px, 2vw, 32px) - 8px) / 9.6)) !important; }
  html[lang="ja"] body.ch6 { --ch6-head: calc(max(26svh, calc(132px + 1.8 * var(--ch6-fs))) + var(--ja-hero-drop)); }
}
@media (max-width: 991px) {
  /* 991 以下（メニュー行なし、中央揃え）は flex：grid のままだと、列をまたぐ行の幅が各列に配られて、三行目の「愛される」と「声を」の間が空く */
  html[lang="ja"] .vx-brand > span { display: flex; flex-wrap: wrap; justify-content: center; }
  html[lang="ja"] .vx-brand .vx-w:first-child { flex-basis: 100%; text-align: center; }
}
@media (max-width: 767px) {
  html[lang="ja"] .vx-brand .vx-w:nth-child(2) { flex-basis: 100%; text-align: center; }
  html[lang="ja"] body:not(#_):not(#_):not(#_) .vx-brand { font-size: min(11.54vw, 64px, calc((100vw - 48px) / 7.5)) !important; line-height: 1.14 !important; letter-spacing: 0 !important; }
}
html[lang="ja"] .vx-links a { letter-spacing: .04em; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .vx-summary { letter-spacing: .02em !important; line-height: 1.55 !important; font-size: clamp(21px, 1.9vw, 29px) !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .prelaunch-status { line-height: 1.8 !important; letter-spacing: .02em !important; }
html[lang="ja"] .vx-pill, html[lang="ja"] .aw-pill { letter-spacing: .04em; }

/* ---------- 見出し ---------- */
html[lang="ja"] body:not(#_):not(#_):not(#_) :is(.ch6-pr-h, .ch6-vb-h, .heading-style-2, .vff-title, .gk-usecases > h2, .service-card-title, .fx6-card h3, .vx5-contact-t, .gk-usecase-card h3) {
  letter-spacing: .01em !important; font-feature-settings: "palt" !important; text-transform: none !important;
}
/* 白地の大見出し（900）：字号は英語版のまま、行間だけ開ける。長い二本（Pricing / Start）は入る大きさに */
html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-pr-h { line-height: 1.24 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #faq .ch6-pr-h { letter-spacing: -.04em !important; line-height: 1 !important; }   /* 「FAQ」は欧文のまま、英語版と同じ組み */
html[lang="ja"] body:not(#_):not(#_):not(#_) #pricing .ch6-pr-h { font-size: clamp(28px, 3.9vw, 56px) !important; line-height: 1.3 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #start .ch6-pr-h { font-size: clamp(30px, 5.2vw, 76px) !important; }
/* 青地の見出し（500） */
/* 青地の機能段の見出し（細い 500）：和文は同じ px で大きく重く見えるので、英語の約 87% に落として間を開ける（Larissa 1126） */
html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-vb-h { line-height: 1.3 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) :is(#attractive, #emotion) .ch6-vb-h { font-size: clamp(34px, 4vw, 70px) !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #long-form .ch6-vb-h { font-size: clamp(26px, 3.5vw, 52px) !important; line-height: 1.3 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-sp-title { font-size: clamp(28px, 2.9vw, 42px) !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .vff-title { line-height: 1.3 !important; font-size: clamp(30px, 3.15vw, 52px) !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #japanese .heading-style-2 { font-size: clamp(30px, 3.2vw, 46px) !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #developers .heading-style-2 { font-size: clamp(28px, 2.95vw, 42px) !important; }
@media (max-width: 991px) { html[lang="ja"] body:not(#_):not(#_):not(#_) #long-form .ch6-vb-h { font-size: clamp(26px, 4.8vw, 42px) !important; } }
@media (max-width: 520px) { html[lang="ja"] body:not(#_):not(#_):not(#_) #long-form .ch6-vb-h { font-size: clamp(24px, 7vw, 30px) !important; } }
html[lang="ja"] body:not(#_):not(#_):not(#_) .heading-style-2 { line-height: 1.32 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #use-cases .gk-usecases > h2 { line-height: 1.26 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .service-card-title { line-height: 1.3 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .fx6-card h3 { line-height: 1.4 !important; font-size: clamp(24px, 2.7vw, 38px) !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .vx5-contact-t { line-height: 1.3 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .gk-usecase-card h3 { line-height: 27px !important; }
@media (max-width: 767px) {
  html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-pr-h { font-size: clamp(28px, 8vw, 44px) !important; }
  html[lang="ja"] body:not(#_):not(#_):not(#_) #faq .ch6-pr-h { font-size: clamp(44px, 6.4vw, 108px) !important; }
  html[lang="ja"] body:not(#_):not(#_):not(#_) #pricing .ch6-pr-h { font-size: clamp(26px, 7.4vw, 40px) !important; }
  html[lang="ja"] body:not(#_):not(#_):not(#_) #start .ch6-pr-h { font-size: clamp(26px, 7.2vw, 40px) !important; }
  html[lang="ja"] body:not(#_):not(#_):not(#_) #use-cases .gk-usecases > h2 { font-size: clamp(28px, 7.8vw, 42px) !important; }
}

/* ---------- 本文 ---------- */
html[lang="ja"] body:not(#_):not(#_):not(#_) :is(.ch6-pr-sub, .ch6-vb-p, .vff-sub, .jes-stereo-sub, .jes-listen-note, .body-text-main, .jes-jp-note, .jes-developer-sub, .service-summary, .fx6-card p, .gk-usecase-card p, .uc5-d, .aw-price-note, .nf-acc-a p, .pr3-sev-rest, .aw-contact-dialog p, .prelaunch-consent p, .ch6-sp-hint, .aw-partners-note) {
  letter-spacing: .04em !important; line-height: 1.8 !important; font-feature-settings: normal !important;
}
/* 字号は英語版のまま（Larissa：導入文は今の大きさで、行数は英語と同じ二行に）。Intro は句点で二行に入る幅まで広げる */
html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-pr-sub { line-height: 1.8 !important; letter-spacing: .03em !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #ear-candy .ch6-pr-sub { max-width: min(100%, 42em) !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #start .ch6-pr-sub { max-width: min(100%, 35em) !important; }
@media (max-width: 991px) { html[lang="ja"] .ja-br-d { display: none; } }
/* 狭い幅：文節でしか折れないと英語より一行増える（390 で 5 行 / 英語 4 行）→ ここだけ通常の禁則つき折り返しに戻して 4 行に収める */
@media (max-width: 767px) { html[lang="ja"] body:not(#_):not(#_):not(#_) #ear-candy .ch6-pr-sub { word-break: normal !important; letter-spacing: .01em !important; text-wrap-style: pretty; } }
/* Intro の見出し：英語の二行と同じ見た目の量に（和文は一段上げる） */
html[lang="ja"] body:not(#_):not(#_):not(#_) #ear-candy .ch6-pr-h { font-size: clamp(34px, 7.2vw, 104px) !important; line-height: 1.2 !important; }
@media (max-width: 767px) { html[lang="ja"] body:not(#_):not(#_):not(#_) #ear-candy .ch6-pr-h { font-size: clamp(30px, 9.4vw, 48px) !important; } }
html[lang="ja"] body:not(#_):not(#_):not(#_) .jes-stereo-sub { font-size: clamp(16px, 1.4vw, 20px) !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .jes-developer-sub { font-size: clamp(17px, 1.7vw, 24px) !important; line-height: 1.75 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .service-summary { font-size: clamp(15px, 1.32vw, 19px) !important; line-height: 1.75 !important; letter-spacing: .03em !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .fx6-card p { font-size: clamp(16px, 1.35vw, 19px) !important; }
/* 浮いて動くカード（aw-usecase-float）：行の高さは必ず整数 px。14.5px × 1.75 = 25.375px のような端数だと、translate で動くたびに行の箱が 0.1px 単位で組み直され、文字が震えて見える（Larissa 1126「一直在抖动」の原因。英語は 14px × 1.5 = 21px で整数）。 */
html[lang="ja"] body:not(#_):not(#_):not(#_) .gk-usecase-card p { font-size: 14px !important; line-height: 25px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .nf-acc-a p { line-height: 1.85 !important; letter-spacing: .03em !important; max-width: 40em; text-wrap-style: pretty; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .nf-acc-q { line-height: 1.55 !important; letter-spacing: .02em !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) :is(.aw-price-note, .prelaunch-consent p) { text-wrap-style: pretty; }

/* ---------- 小さい文字：13px 未満を置かない。眉題は一段大きく ---------- */
html[lang="ja"] body:not(#_):not(#_):not(#_) :is(.subtitle-text, .jes-stereo-cue) { font-size: 14px !important; font-weight: 600 !important; letter-spacing: .14em !important; line-height: 1.5 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .lfr-title { font-size: 13px !important; letter-spacing: .08em !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .fx6-soon { font-size: 13px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .gk-usecase-card small { font-size: 13px !important; line-height: 21px !important; letter-spacing: .03em !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .aw-bars small { font-size: 13px !important; line-height: 1.6 !important; letter-spacing: .02em !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) :is(.aw-price-note, .pr3-sev-rest, .aw-partners-note) { font-size: 13.5px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .aw-more-k { font-size: 14px !important; letter-spacing: .06em !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .aw-pr2-cap { font-size: 14.5px !important; letter-spacing: .02em !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .JP-rt { font-size: 12px; }   /* ルビは例外（元のまま） */
/* ラベル・ボタン：負の字間を戻す */
html[lang="ja"] body:not(#_):not(#_):not(#_) :is(.fx6-go, .aw-link, .aw-btn, .fx6-tab, .aw-foot-cols a, .aw-foot-cols h4, .emo-cue-note span, .aw-vocal-more span, .pr3-tabs span, .primary-button-text, .ch6-sp-test, .vff-pick, .emo-chip, .aw-more-words li, .rail-mark span, .sp-np, .vff-listen-note > span, .prelaunch-legal a, .prelaunch-legal button) { letter-spacing: .03em !important; }

/* ---------- 縦の間：眉題 / 見出し / 副文 / 操作（英語より 2 から 4 割広く） ---------- */
/* 青地の段頭（Attractive / Emotion / Long-form）：英語 gap 4 + 眉題下 8 */
html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-vb-text { gap: 12px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-vb-text > .subtitle-text { margin-bottom: 12px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-vb-text > .ch6-vb-p { margin-top: 6px !important; }
/* Emotion：副文 → 「感情を選んで聴く」 → 薬丸 → 点線の枠（枠そのものは元のまま） */
html[lang="ja"] body:not(#_):not(#_):not(#_) #emotion .emo-click-cue.emo-cue-note { margin-top: 36px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #emotion .emo-chips.in-head { margin-top: 16px !important; gap: 10px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #emotion .aw-more-box { margin-top: 36px !important; padding: 12px 28px 22px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .aw-more-words { gap: 8px 22px !important; line-height: 1.7 !important; }
/* 声のリアクション：見出し → 副文 → 「選んで聴く」 → 薬丸 → 「ほかにもいろいろ」 */
html[lang="ja"] body:not(#_):not(#_):not(#_) #vocal .vff-title { margin-bottom: 20px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #vocal .vff-sub { line-height: 1.9 !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #voices-work #vocal .vff-listen-note { margin-top: 40px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #voices-work #vocal .vff-picks { margin-top: 18px !important; gap: 10px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #voices-work #vocal .aw-more-box { margin-top: 36px !important; }
/* Stereo：眉題 → 見出し → 副文 */
html[lang="ja"] body:not(#_):not(#_):not(#_) .jes-stereo-heading .jes-stereo-cue { margin-bottom: 14px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .jes-stereo-heading .jes-stereo-sub { margin-top: 16px !important; }
/* 白地の段頭（Intro / Products / Start）：英語 gap 28 */
html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-pr-text.is-sec-head, html[lang="ja"] body:not(#_):not(#_):not(#_) .ch6-pr.is-textonly .ch6-pr-text { gap: 36px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #ear-candy .ch6-pr-text { margin-bottom: 20px !important; }
/* Japanese / Developers の段頭 */
html[lang="ja"] body:not(#_):not(#_):not(#_) #japanese .section-header-block .heading-style-2 { margin-bottom: 20px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) #developers .service-summary-block .heading-style-2 { margin-bottom: 24px !important; }
/* Products のカード：見出し → 本文 → ボタン */
html[lang="ja"] body:not(#_):not(#_):not(#_) .fx6-card.jes-clone h3 { margin-bottom: 20px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .fx6-card.jes-clone p { margin-bottom: 32px !important; }
/* 活用シーンのカード */
html[lang="ja"] body:not(#_):not(#_):not(#_) .gk-usecase-card h3 { margin-bottom: 10px !important; }
html[lang="ja"] body:not(#_):not(#_):not(#_) .gk-usecase-card small { margin-top: 12px !important; }
/* FAQ */
html[lang="ja"] body:not(#_):not(#_):not(#_) .nf-acc-a-in { padding-bottom: 6px; }

/* ---------- css が直接出している英語（Japanese 段の注記とラベル） ---------- */
html[lang="ja"] body.ch6 #japanese .JP-ctl::after { content: "選んで聴く"; letter-spacing: .04em; font-family: proxima-nova, "Noto Sans JP", sans-serif; }
html[lang="ja"] body.jps-on #voices#voices #japanese .JP-stage > .JP-ctl::before { content: "テーマ"; }
html[lang="ja"] body.jps-on #voices#voices #japanese .JP-stage > .JP-pass::before { content: "セリフ"; }
html[lang="ja"] body.jps-on #voices#voices #japanese .JP-stage > .jps-reading::before { content: "読み"; }

/* ---------- 上のナビ：狭い幅は短い言い方（Docs / Studio。申請ボタンは全幅で「アクセス申請」）、折り返さない ---------- */
html[lang="ja"] #awNav .aw-nav-right :is(a, button) { white-space: nowrap; }
html[lang="ja"] #awNav .aw-nav-right :is(.aw-nav-docs, .m12-pg, .aw-pill) { letter-spacing: .03em; }
/* 1126 Larissa：840px 前後で右端の「招待をリクエスト」が窓の外に切れていた → 短い言い方に替える幅を 1199 まで広げ、右の一組は縮められるようにして窓から出さない */
@media (max-width: 1199px) {
  html[lang="ja"] #awNav .ja-l { display: none; }
  html[lang="ja"] #awNav .ja-s { display: inline; }
  html[lang="ja"] body.ch6[data-jes-content] #awNav .aw-nav-right { gap: 10px; }
}
@media (min-width: 820px) and (max-width: 1199px) { html[lang="ja"] #awNav .m12-pg { margin-right: -4px; padding: 0 12px; } }   /* 819 以下は元の薬丸の内余白（7px 10px）のまま：ここで潰すと高さが 19px に落ちる */
html[lang="ja"] #awNav { max-width: 100vw; box-sizing: border-box; }
html[lang="ja"] #awNav .aw-nav-right { min-width: 0; flex-shrink: 1; }

/* ---------- footer の列：和文は一語が長いので折り返さない。列が細くなる幅では、リンク列とお問い合わせを上下に積む ---------- */
html[lang="ja"] .aw-foot-cols a { white-space: nowrap; }
@media (max-width: 1100px) { html[lang="ja"].aw-light .ch6 .vx5-darkfoot .aw-foot-cols a { font-size: 14px; } }
@media (max-width: 991px) { html[lang="ja"].aw-light .ch6 .vx5-darkfoot .vx5-foot-top { grid-template-columns: 1fr; gap: 40px; } }

/* ====================================================================== ③ 英日共通の直し（言語に関係なく起きていた重なり）
   Emotion 段：下の小さい立ち絵の列が「More emotions」の点線枠に乗り上げていた（Larissa 1126、窓 840px 前後）。
   · ≥992：一段目の高さが固定（図の 54%）で、文字の束がそれより高いと二段目の立ち絵と重なる（英語は 1020px 前後で接触、日本語は束が高いぶん 1000 から 1100 で 80 から 100px 重なる）
     → 一段目を「最低 54%、中身が高ければ中身に合わせる」にして、束の下に 28px 空ける。
   · ≤991：立ち絵の列は大きい人物の膝あたりまで引き上げてある（-25.35vh - 16%）。窓が横長で低いと引き上げ量が人物の高さ（65vh）を超え、上の文字の束まで入り込む
     → 引き上げを「人物の頭より上には出ない」ところで止める（25.7% = 列の見かけの高さ 21.43% × 拡大 1.2）。 */
@media (min-width: 992px) {
  html body[data-jes-content] #voices-work #emotion { grid-template-rows: minmax(max(450px, calc(var(--jes-emo-height) * .54)), auto) 1fr; }
  html body[data-jes-content] #emotion > .ch6-vb-text { padding-bottom: 28px; }
}
@media (max-width: 991px) {
  html body[data-jes-content] #emotion .emo-lb {
    margin-top: min(0px, max(calc(-25.35vh - 16%), calc(-65vh + 25.7% + 12px)));
    margin-bottom: max(0px, min(calc(25.35vh + 16%), calc(65vh - 25.7% - 12px)));
  }
}

/* 首屏の行の「Request access / 招待をリクエスト」：上のナビの同じボタンと同じ形に（Larissa 1126「改成和这个圆角一样」。英日共通の意図した変更）。
   ナビのボタン = 角丸 12px、高さ 40px、左右 16px。色は首屏のまま。下の CTA 二つ（Listen to samples / Request access）は触っていない。 */
.aw-light .vx-links a[href^="mailto"] { height: 40px; padding: 0 16px; border-radius: 12px; }

/* Products のタブ：560 以下は短い言い方（読み上げ / クローン / デザイン）。面の中に三つ収まる */
@media (max-width: 560px) {
  html[lang="ja"] .fx6-tab .ja-l { display: none; }
  html[lang="ja"] .fx6-tab .ja-s { display: inline; }
}

/* 幅ごとの改行：.ja-br-d は 992 以上だけ、.ja-br-m は 767 以下だけ効く */
html[lang="ja"] .ja-br-m { display: none; }
@media (max-width: 767px) { html[lang="ja"] .ja-br-m { display: inline; } }

/* 活用シーンの浮くカード：文字の震えを止める（Larissa 1126「还是抖动，一直浮动往上」）。
   元の動き（aw-usecase-float：7 秒で 0 → -8px → 0、なめらか）は毎フレーム小数ピクセルの位置になり、そのたびに文字が描き直されて輪郭の濃さが揺れる。
   画数の多い和文で目立つ（逐フレーム計測：全フレームが小数位置、輪郭のエネルギーが 5% 前後ゆれる。英語も同じ仕組みだが字面が疎で目立たない）。
   → 日本語では 1px 刻みで動かす（steps(9, jump-none) = 0, -1, … -8px ちょうど）。文字は常に整数位置で描かれる。刻みが目につかないよう周期は 12 秒に延ばす。
   カードの幅や高さには依存しない。 */
html[lang="ja"] .gk-usecase-card { animation-timing-function: steps(9, jump-none) !important; animation-duration: 12s !important; }
