/* demo-tokens.css: nantoka.AI のデザイン・トークン（LP および体験ブロック共通）。
   カラーパレット、タイポグラフィ、レイアウト・リズム、セマンティック・ロールを一元管理する。 */
:root {
  /* 1. プリミティブ（確定パレット） */
  --navy: #102A43;
  --navy-dark: #0E2740;
  --navy-darker: #0B2036;

  --blue: #1B6FB3;
  --blue-light: #2C7FC0;
  --blue-sky: #8FC9F5;

  --amber: #F2B705;
  --orange: #E8722C;
  --green: #3EA874;
  --lime: #6FA92C;

  --ink: #2E2E2E;
  --muted: #5A6B7C;
  --white: #FFFFFF;

  --surface: #F7F9FB;
  --surface-2: #F4F7FA;
  --surface-3: #F0F4F7;

  --line: #E2E8EE;
  --line-strong: #DCE4EC;
  --line-soft: #E8EDF2;

  --on-navy: #C6D3E0;
  --on-navy-2: #D2DEEA;

  /* RGB channels for shadow and glow */
  --navy-rgb: 16 42 67;
  --blue-rgb: 27 111 179;
  --amber-rgb: 242 183 5;
  --orange-rgb: 232 114 44;
  --green-rgb: 62 168 116;
  --danger-rgb: 185 28 28;

  /* 2. 派生カラー（WCAG AA 適合テキスト用、色味混合） */
  --orange-text: #9C5934;
  --green-text: #2E7C63;
  --amber-deep: #A3861B;
  --danger: #B91C1C;
  --danger-tint: #FEE2E2;
  --amber-tint: #FEF3C7;
  --green-tint: #DCFCE7;
  --blue-tint: #EBF4FC;

  /* 3. セマンティック・ロール */
  --text: var(--ink);
  --heading: var(--navy);
  --link: var(--blue);
  --focus: var(--blue);
  --control-border: var(--muted);
  --card: var(--white);

  /* ロボット識別カラー */
  --r1: var(--blue);
  --r2: var(--orange);
  --r3: var(--green);
  --r1-text: var(--blue);
  --r2-text: var(--orange-text);
  --r3-text: var(--green-text);
  --r1-on: var(--white);
  --r2-on: var(--navy);
  --r3-on: var(--navy);

  /* 4. フォントとリズム */
  --font-main: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --content-max: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(40px, 7vw, 100px);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.40, 0, .20, 1);

  /* 5. エレベーション・角丸・装飾 */
  --shadow-xs: 0 1px 2px rgb(var(--navy-rgb) / .05);
  --shadow-sm: 0 2px 8px -1px rgb(var(--navy-rgb) / .08), 0 1px 4px -1px rgb(var(--navy-rgb) / .04);
  --shadow-md: 0 8px 24px -4px rgb(var(--navy-rgb) / .08), 0 4px 12px -2px rgb(var(--navy-rgb) / .04);
  --shadow-lg: 0 20px 48px -8px rgb(var(--navy-rgb) / .12), 0 8px 20px -4px rgb(var(--navy-rgb) / .06);
  --shadow-dark: 0 20px 50px -12px rgb(0 0 0 / .55);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 999px;
}

/* AMR 体験ページ用スタイル。トークン（demo-tokens.css）を参照する。 */
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--surface-3); color: var(--ink); line-height: 1.6;
  font-family: var(--font-body);
}
.demo {
  max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding: 16px; display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-areas: "head head" "stage panel";
}
.demo__console { display: contents; } /* PC: 子要素がそのまま .demo のグリッドに並ぶ */
.demo__head { grid-area: head; display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.demo__stage {
  grid-area: stage; align-self: start; display: grid; gap: 10px; align-content: start; /* align-self: khung không bị kéo giãn theo panel (kết quả + nút CTA làm panel cao hơn) */
  --map-w: max(640px, calc((100vh - 240px) * 1.714)); /* PC: 地図 + 札 + 一言（約 240px 分）が画面の高さに収まる幅。広い画面では効かない */
}
.demo__panel {
  grid-area: panel; align-self: start;
  background: var(--card); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-strong);
}
h1 { margin: 0; font-size: 22px; line-height: 1.3; }
h2 { margin: 0 0 8px; font-size: 15px; }
h3 { margin: 0 0 8px; font-size: 14px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .08em; color: var(--blue); font-weight: 700; }
.lead { margin: 4px 0 0; font-size: 14px; }
.note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.map-credit { margin: 0 4px; font-size: 12px; color: var(--muted); text-align: right; }

#floor { display: block; width: min(100%, var(--map-w)); height: auto; margin-inline: auto; border-radius: var(--radius-lg); border: 2px solid var(--line-strong); box-shadow: var(--shadow-md); }
.floor-bg { fill: var(--surface-2); }
.grid-line { fill: none; stroke: var(--line-soft); stroke-width: 1; }
.rack { fill: var(--surface-3); stroke: rgb(var(--navy-rgb) / .3); stroke-width: 2; } /* 棚 A〜D（行き先）より薄く */
.rack-line { stroke: rgb(var(--navy-rgb) / .22); stroke-width: 2; }
.rack--post { fill: rgb(var(--navy-rgb) / .3); stroke: rgb(var(--navy-rgb) / .5); }
.pad { fill: var(--white); stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 5; }
.pad--charge { fill: var(--amber-tint); stroke: var(--amber-deep); }
.pad--refuge { fill: rgb(255 255 255 / .6); stroke: var(--control-border); }
.assembly { fill: var(--muted); }
.zone-label, .station-label, .amr-label { font-size: 13px; fill: var(--muted); font-weight: 600; }
.zone-label--light { fill: var(--white); }
.amr-label { font-size: 12px; fill: var(--ink); paint-order: stroke; stroke: var(--white); stroke-width: 3px; stroke-linejoin: round; transition: opacity .15s; } /* 白いふち: 箱や線に重なっても読める */
.amr.is-swerving .amr-label { opacity: 0; } /* 箱の横を通り抜けている間は名前を隠す（傾けた車体と箱に重なるため） */

.shelf { fill: var(--line); stroke: var(--control-border); stroke-width: 2; }
.shelf-line { stroke: var(--control-border); stroke-width: 2; }
.station-node { fill: var(--white); stroke: var(--blue); stroke-width: 3; }
.line-frame { fill: none; stroke: none; }
/* いま向かっている先（棚・ライン・待機場所）: 青く縁取り、節点がふくらむ */
.station.is-target .shelf { fill: var(--blue-tint); stroke: var(--blue); stroke-width: 4; }
.station.is-target .station-node { fill: var(--blue); transform-box: fill-box; transform-origin: center; animation: target-pulse 1.1s ease-in-out infinite; }
.station--line.is-target .line-frame { fill: rgb(var(--blue-rgb) / .25); stroke: var(--blue); stroke-width: 4; } /* 白い「組立ライン」の字が隠れないよう、透ける色 */
.pad.is-target { stroke: var(--blue); stroke-width: 3; stroke-dasharray: none; fill: var(--blue-tint); }
@keyframes target-pulse { 50% { transform: scale(1.35); } }

.amr-hull { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.amr-hull--charge { fill: var(--amber-tint); }
.amr-led { fill: var(--green); }
.amr-cargo { display: none; fill: var(--blue-sky); stroke: var(--navy); stroke-width: 2; } /* 積んでいる荷物（箱の障害物は琥珀色、荷物は青） */
.amr.has-cargo .amr-cargo { display: block; }
.amr-shadow { fill: rgb(var(--navy-rgb) / .18); }
.amr-sense { display: none; pointer-events: none; fill: rgb(var(--blue-rgb) / .07); stroke: rgb(var(--blue-rgb) / .35); stroke-dasharray: 5 6; }
.amr.is-moving .amr-sense { display: block; }
.amr.is-moving .amr-led { fill: var(--blue); }
.amr.is-alert .amr-sense { fill: rgb(var(--danger-rgb) / .12); stroke: rgb(var(--danger-rgb) / .7); }
.amr.is-alert .amr-led { fill: var(--danger); }
.route { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 8; opacity: .85; }

.obstacle { pointer-events: none; }
.obstacle-box { fill: var(--amber); stroke: var(--navy-darker); stroke-width: 2; }
.obstacle-stripe { stroke: var(--navy-darker); stroke-width: 2; }
.obstacle.is-known .obstacle-box { stroke: var(--danger); stroke-width: 4; }
.robot-overlay { pointer-events: none; }
.replan-blocked { fill: none; stroke: var(--danger); stroke-width: 4; stroke-dasharray: 3 9; stroke-linecap: round; }
.replan-candidate { fill: none; stroke: var(--muted); stroke-width: 4; stroke-dasharray: 10 8; stroke-linecap: round; }
.replan-hit { fill: rgb(var(--danger-rgb) / .1); stroke: var(--danger); stroke-width: 4; } /* 通れなかった側で、車体が近づきすぎる物（棚・ロボットなど） */
.replan-chosen { fill: none; stroke: var(--green-text); stroke-width: 6; stroke-linecap: round; opacity: .9; }
.robot-bubble rect { fill: var(--ink); opacity: .92; }
.robot-bubble text { fill: var(--white); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease-soft), box-shadow .15s var(--ease-soft), background .15s, border-color .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--ghost { background: var(--white); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn--ghost:hover:not(:disabled) { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.result { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--surface); border: 2px solid var(--green); }
.result p { margin: 0 0 8px; font-weight: 700; color: var(--green-text); }
.result .btn { width: 100%; padding-inline: 8px; text-align: center; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 手順の札（場面ごとに並びが変わる）: いまの札が青、済んだ札が緑、詰まりなどの札が赤 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips:empty { display: none; } /* 場面を選ぶ前は札の行ごと出さない */
.chips li { flex: 1 1 0; min-width: 64px; padding: 6px 8px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 13px; text-align: center; }
.chips li.is-current { background: var(--blue); color: var(--white); font-weight: 700; }
.chips li.is-done { background: var(--green-tint); color: var(--green-text); }
.chips li.is-failed { background: var(--danger-tint); color: var(--danger); font-weight: 700; }
/* いまの一言（地図のすぐ下）と、その担当 */
.caption { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.caption__actor { flex: none; margin: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.caption__actor[data-actor="robot"] { background: var(--blue-tint); color: var(--blue); }
.caption__actor[data-actor="software"] { background: var(--amber-tint); color: var(--navy); }
.caption__text { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.55; text-wrap: balance; } /* 1 文字だけの行（「た。」）を残さない */
/* 場面のボタン */
.scenes { display: grid; gap: 10px; }
.scene-btn {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; width: 100%; padding: 14px 16px;
  text-align: left; font: inherit; color: var(--ink); cursor: pointer; background: var(--white); border: 2px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs); transition: transform .15s var(--ease-soft), box-shadow .15s var(--ease-soft), border-color .15s, background .15s;
}
.scene-btn:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.scene-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); }
.scene-btn__icon { grid-row: 1 / span 2; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--blue-tint); color: var(--blue); }
.scene-btn[aria-pressed="true"] .scene-btn__icon { background: var(--blue); color: var(--white); }
.scene-btn__label { font-size: 15px; font-weight: 700; line-height: 1.4; }
.scene-btn__sub { font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (min-width: 861px) and (max-width: 1100px) { /* 2 列のまま地図が縮む幅: 地図内の文字を少し大きくする */
  .zone-label, .station-label { font-size: 17px; }
  .zone-label--light { font-size: 12px; }
  .amr-label { font-size: 16px; }
}
@media (max-width: 860px) {
  /* 1 列（地図・手順の札・一言 → ボタン） */
  .demo { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
  .demo__console { display: flex; flex-direction: column; gap: 12px; } /* 下の sticky はこの枠の中だけ */
  .demo__stage { align-self: stretch; padding: 4px 0 2px; gap: 6px; --map-w: max(480px, calc((100vh - 240px) * 1.714)); }
  .demo__panel { align-self: stretch; } /* 1 列では、地図・一言と同じ幅にする（start のままだと中身の幅に縮む） */
  .chips li { min-width: 0; padding: 5px 4px; font-size: 12px; }
  .caption { min-height: 64px; padding: 8px 12px; } /* 一言が 1〜2 行で変わっても高さが動かない（固定した地図の下のボタンがずれない）ように、2 行分を確保 */
  .caption__text { font-size: 14px; }
  .map-credit { font-size: 11px; }
  h1 { font-size: 18px; }
  .zone-label, .station-label { font-size: 24px; }
  .zone-label--light { font-size: 16px; }
  .amr-label { font-size: 22px; }
}
@media (max-width: 480px) { .caption { min-height: 84px; } } /* 幅がせまいと一言が 3 行になる（2 行分では高さが揺れる） */
@media (max-width: 380px) { /* 小さいスマホ: 札を 1 行に収め、担当を一言の上の行に出す（横並びだと一言が 4〜5 行になり、高さが一言ごとに揺れる） */
  .chips { gap: 4px; }
  .chips li { padding-inline: 2px; }
  .caption { flex-wrap: wrap; gap: 6px; min-height: 96px; }
  .caption__text { flex: 1 1 100%; }
}
@media (max-width: 860px) and (min-height: 600px) {
  /* 地図などを画面上部に固定し、下のボタンを押しながらロボットの動きを見られるようにする。
     背の低い画面（横向きのスマホ）では、固定すると地図が画面を埋めてボタンに届かなくなるので固定しない。
     地図は高さが画面の 32% までになる幅（55vh = 32vh × 1.714）に抑える（タブレットで大きくなりすぎないように）。 */
  .demo__stage { position: sticky; top: 0; z-index: 10; background: var(--surface-3); --map-w: 55vh; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* 場面で使う、ロボットごとの色分けと、全台調整の計画のルート。色・ボタン・カードなどの基本部品は demo.css を共用する。
   --r1〜--r3 は demo-tokens.css（ロボット識別カラー）。 */
.route--r1 { stroke: var(--r1); }
.route--r2 { stroke: var(--r2); }
.route--r3 { stroke: var(--r3); }
.wait-mark { font-size: 13px; font-weight: 700; paint-order: stroke; stroke: var(--white); stroke-width: 4px; stroke-linejoin: round; }
.wait-mark--r1 { fill: var(--r1-text); }
.wait-mark--r2 { fill: var(--r2-text); }
.wait-mark--r3 { fill: var(--r3-text); }
/* ロボットごとの色分け（常に有効）。2 台以上が動いているときは #demo に is-multi が付き（demo-world-loop.js）、センサーの円は 1 台だけ出す */
#demo .amr-hull { stroke-width: 4; }
#demo [data-amr="AMR-01"] .amr-hull { stroke: var(--r1); }
#demo [data-amr="AMR-02"] .amr-hull { stroke: var(--r2); }
#demo [data-amr="AMR-03"] .amr-hull { stroke: var(--r3); }
#demo.is-multi .amr:not(.is-focus) .amr-sense { display: none; }
@media (max-width: 860px) {
  .wait-mark { font-size: 22px; }
  #demo.is-multi .amr-label { font-size: 26px; }
}

/* SINH RA bởi scripts/sync-fonts.mjs; đừng sửa tay. Phông: SIL Open Font License 1.1 (xem public/fonts/LICENSE-*.txt). */
@font-face{font-family:'Zen Kaku Gothic New';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/zen-kaku-gothic-new-400.a8c0c5a8.woff2) format('woff2')}
@font-face{font-family:'Zen Kaku Gothic New';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/zen-kaku-gothic-new-500.136a79e9.woff2) format('woff2')}
@font-face{font-family:'Zen Kaku Gothic New';font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/zen-kaku-gothic-new-700.9754977f.woff2) format('woff2')}
@font-face{font-family:'Zen Kaku Gothic New';font-style:normal;font-display:swap;font-weight:900;src:url(/fonts/zen-kaku-gothic-new-900.e51d22ef.woff2) format('woff2')}
@font-face{font-family:'Noto Sans JP';font-style:normal;font-display:swap;font-weight:400;src:url(/fonts/noto-sans-jp-400.814a6d84.woff2) format('woff2')}
@font-face{font-family:'Noto Sans JP';font-style:normal;font-display:swap;font-weight:500;src:url(/fonts/noto-sans-jp-500.8bc4288f.woff2) format('woff2')}
@font-face{font-family:'Noto Sans JP';font-style:normal;font-display:swap;font-weight:700;src:url(/fonts/noto-sans-jp-700.2227209e.woff2) format('woff2')}

/* LP プレビュー: 基本（色・文字・ボタン・見出し・目印）。demo-tokens.css の後に読み込む。
   ページ側の見出しは必ずクラス（.lp-*）で装飾する。 */
:root {
  --lp-line-dark: rgba(255, 255, 255, .16);
  --lp-header-h: 64px;
  --lp-font: var(--font-main);
  --lp-mono: var(--font-main);
  --lp-hazard: repeating-linear-gradient(135deg, var(--amber) 0 9px, var(--navy-darker) 9px 18px); /* 床の注意テープ: amber + navy */
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--lp-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.lp { background: var(--surface); color: var(--ink); font-family: var(--font-main); line-height: 1.8; -webkit-font-smoothing: antialiased; }
.lp a { color: inherit; }
.lp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--white); border-radius: 6px; font-weight: 700; }
.lp-skip:focus { left: 12px; }
.lp-container { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.lp-section { position: relative; padding: var(--section-y) 0; }
.lp-section--white { background: var(--white); }
.lp-section--paper { background: var(--surface); }
.lp-section--air { padding: clamp(40px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); background: var(--surface-3); }
.lp-section--navy {
  background: radial-gradient(900px 480px at 85% 0%, rgb(var(--blue-rgb) / .28), transparent 60%), var(--navy);
  color: var(--white);
}
.lp-head { max-width: 1040px; margin-bottom: clamp(32px, 5vw, 56px); }

/* 見出し・目印: 各ブロックの頭に「地図の駅」（丸いノード＋破線の走路）を置く */
.lp-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 12px/1.4 var(--lp-mono); font-variant-numeric: tabular-nums; letter-spacing: .16em; color: var(--blue); }
.lp-eyebrow::before {
  content: ""; flex: none; width: 58px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='12' viewBox='0 0 58 12'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%231B6FB3' stroke-width='2'/%3E%3Cpath d='M13 6h45' stroke='%231B6FB3' stroke-width='2' stroke-dasharray='5 5'/%3E%3C/svg%3E") no-repeat;
}
.lp-eyebrow--dark, .lp-section--navy .lp-eyebrow { color: var(--blue-sky); }
.lp-eyebrow--dark::before, .lp-section--navy .lp-eyebrow::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='12' viewBox='0 0 58 12'%3E%3Ccircle cx='6' cy='6' r='4.5' fill='none' stroke='%238FC9F5' stroke-width='2'/%3E%3Cpath d='M13 6h45' stroke='%238FC9F5' stroke-width='2' stroke-dasharray='5 5'/%3E%3C/svg%3E");
}
.lp-title { margin: 16px 0 0; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.3; font-weight: 900; letter-spacing: -.02em; font-feature-settings: "palt"; }
.lp-title span { display: block; }
.lp-lead { max-width: 44em; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.85; font-family: var(--font-body); }
.lp-section--navy .lp-lead { color: var(--on-navy); }
.demo-heading { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; font-weight: 900; }
.lp-nb { display: inline-block; }
@media (max-width: 860px) { .demo__stage { top: var(--lp-header-h); } }
.lp-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); font-family: var(--font-body); }

/* ボタン: 現代的なインダストリアル SaaS ボタン */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm); font: 700 15.5px/1.3 var(--font-main); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease-soft), box-shadow .15s var(--ease-soft), background .15s, border-color .15s;
}
.lp-btn--primary {
  background: linear-gradient(180deg, #FFCE33 0%, var(--amber) 100%); color: var(--navy);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 4px 14px -2px rgb(var(--amber-rgb) / .45), 0 2px 4px rgb(var(--navy-rgb) / .12);
}
.lp a.lp-btn--primary { color: var(--navy); }
.lp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 8px 22px -3px rgb(var(--amber-rgb) / .55), 0 3px 6px rgb(var(--navy-rgb) / .16);
}
.lp-btn--primary:active { transform: translateY(1px); box-shadow: inset 0 1px 2px rgb(0 0 0 / .2), 0 2px 6px rgb(var(--amber-rgb) / .4); }
.lp-btn--ghost { border-color: rgba(255, 255, 255, .4); color: var(--white); background: rgb(255 255 255 / .06); backdrop-filter: blur(8px); }
.lp-btn--ghost:hover { background: rgb(255 255 255 / .16); border-color: var(--white); transform: translateY(-2px); }
.lp-btn--ghost:active { transform: translateY(1px); }
.lp-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 3px 10px -2px rgb(var(--amber-rgb) / .4); }
.lp a:focus-visible, .lp button:focus-visible, .lp summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* 未確認・ロードマップの目印（LP md の確認待ちの印と【ロードマップ／対応予定】をそのまま見せる） */
.lp-flag, .lp-tag-road {
  display: inline-block; margin-left: .4em; padding: 1px 10px; border: 1.5px dashed var(--amber-deep); border-radius: 4px;
  background: var(--amber-tint); color: var(--navy); font: 700 12px/1.8 var(--font-main); vertical-align: .05em; white-space: nowrap;
}
.lp-flag--dark { background: rgb(var(--amber-rgb) / .14); border-color: rgb(var(--amber-rgb) / .75); color: var(--amber); }
.lp-tag-road { position: relative; padding-left: 28px; }
.lp-tag-road::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 19px; background: var(--lp-hazard); border-radius: 2px 0 0 2px; }

/* LP プレビュー: FAQ・お問い合わせフォーム・フッター。 */
.lp-split.lp-split--faq { align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.lp-faq { display: grid; gap: 12px; }
.lp-faq__item { border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; }
.lp-faq__item:hover { border-color: rgb(var(--blue-rgb) / .35); box-shadow: var(--shadow-sm); }
.lp-faq__item[open] { border-color: var(--blue); }
.lp-faq__item summary { position: relative; padding: 20px 52px 20px 20px; font-size: 17px; font-weight: 700; line-height: 1.6; cursor: pointer; list-style: none; }
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__q { display: inline; margin: 0; font: inherit; letter-spacing: inherit; color: inherit; } /* <h3> câu hỏi: hiện y như chữ trơn của summary (ô "Q" ::before đứng cùng dòng) */
.lp-faq__item summary::before { content: "Q"; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 14px; background: rgb(var(--blue-rgb) / .1); border-radius: 6px; color: var(--blue); font: 700 14px var(--font-main); font-variant-numeric: tabular-nums; vertical-align: middle; }
.lp-faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; margin-top: -14px; font: 400 26px/28px var(--font-main); color: var(--blue); }
.lp-faq__item[open] summary::after { content: "−"; }
.lp-faq__item summary:hover { color: var(--blue); }
.lp-faq__item p { max-width: 46em; margin: 0 20px 24px 62px; color: var(--muted); line-height: 1.8; font-family: var(--font-body); }

.lp-contact { overflow: hidden; }
.lp-contact::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--lp-hazard); }
.lp-contact__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 76px); align-items: start; padding-bottom: 12px; }
.lp-form { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-xl); background: var(--white); color: var(--ink); box-shadow: var(--shadow-dark); border: 1px solid rgb(255 255 255 / .12); }
.lp-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.lp-form .lp-form__topic { display: grid; gap: 10px; margin-bottom: 24px; }
.lp-contact .lp-title { font-size: clamp(24px, 2.8vw, 34px); }
.lp-topic { position: relative; display: block; cursor: pointer; }
.lp-topic input { position: absolute; opacity: 0; }
.lp-topic span { display: block; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); font-weight: 700; text-align: center; transition: border-color .15s, background-color .15s; }
.lp-topic:hover span { border-color: var(--muted); }
.lp-topic input:checked + span { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 0 0 1px var(--blue); color: var(--navy); }
.lp-topic input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.lp-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-field { display: grid; gap: 6px; align-content: start; font-size: 13.5px; font-weight: 700; }
.lp-field--wide { grid-column: 1 / -1; }
.lp-field input[type="text"], .lp-field input[type="email"], .lp-field input[type="tel"], .lp-field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 400 15px/1.5 var(--font-body);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.lp-field input:focus, .lp-field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgb(var(--blue-rgb) / .16); }
.lp-field legend { padding: 0; margin-bottom: 6px; }
.lp-field__choices { display: flex; gap: 22px; margin-bottom: 8px; font-weight: 500; font-size: 15px; }
.lp-field small { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.lp-consent { display: flex; gap: 10px; margin: 22px 0 18px; font-size: 14.5px; }
.lp-consent input { flex: none; width: 20px; height: 20px; margin-top: 4px; }
.lp-consent a { color: var(--blue); }
#nantoka-turnstile { min-height: 65px; margin-bottom: 18px; }
.lp-form__submit { width: 100%; }
.lp-form__submit:disabled { opacity: .6; cursor: not-allowed; }
.lp-form .lp-field [aria-invalid="true"] { border-color: var(--danger); } /* viền đỏ, vẫn giữ vòng focus xanh của ô đang focus */
.lp-form .lp-consent [aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }
.lp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* ô mồi: ngoài màn hình, người dùng không thấy, bot điền */
.lp-form__status { min-height: 1.6em; margin: 14px 0 0; font-size: 14px; font-weight: 700; color: var(--blue); }
.lp-form__status[data-kind="error"] { color: var(--danger); }
.lp-form__note { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.75; font-family: var(--font-body); }
.lp-form .lp-flag--dark { background: var(--amber-tint); color: var(--navy); border-color: var(--amber-deep); }

.lp-footer { padding: 52px 0 28px; background: var(--navy-darker); color: var(--on-navy); }
.lp-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 32px; background: linear-gradient(var(--lp-line-dark), var(--lp-line-dark)) 16px 100% / calc(100% - 32px) 1px no-repeat; }
.lp-footer__note { margin: 12px 0 0; font-size: 13.5px; }
.lp-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-content: start; font-size: 14px; }
.lp-footer__nav a { color: var(--on-navy); text-decoration: none; }
.lp-footer__nav a:hover { color: var(--amber); }
/* padding-block (không phải `padding: 28px 0`): giữ lề hai bên của .lp-container, nếu không khối địa chỉ dính sát mép màn hình và lệch với logo. Đường kẻ dưới vẽ thụt vào 16px như .lp-footer__grid. */
.lp-footer__offices { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 32px; padding-block: 28px; background: linear-gradient(var(--lp-line-dark), var(--lp-line-dark)) 16px 100% / calc(100% - 32px) 1px no-repeat; font-size: 13px; line-height: 1.6; }
.lp-footer__office-title { font-weight: 700; color: var(--amber); margin-bottom: 8px; font-size: 13px; }
.lp-footer__office-addr { margin: 0 0 6px; color: var(--on-navy); }
.lp-footer__office-contact { margin: 0 0 2px; color: var(--on-navy); }
.lp-footer__office-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-footer__office-list li { color: var(--on-navy); }
.lp-footer__office-list strong { color: var(--white); font-weight: 600; }

.lp-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; font-size: 12.5px; }
.lp-footer__legal p { margin: 0; }
.lp-footer__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 12px; color: var(--on-navy); }
.lp-footer__meta cite { font-style: normal; }
.lp-footer__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lp-footer__meta a:hover { color: var(--white); }

@media (max-width: 960px) {
  .lp-split.lp-split--faq, .lp-contact__grid { grid-template-columns: minmax(0, 1fr); } /* cùng độ ưu tiên với rule 2 cột ở dòng 2, nếu không FAQ không về 1 cột */
  .lp-footer__offices { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .lp-form__grid { grid-template-columns: minmax(0, 1fr); }
  .lp-topic span { padding: 14px 8px; font-size: 14px; }
  .lp-faq__item summary { padding-right: 40px; font-size: 16.5px; }
  .lp-faq__item p { margin-left: 20px; } /* bỏ thụt 62px theo ô "Q" nhưng vẫn cách viền thẻ như câu hỏi (padding 20px) */
}

/* LP プレビュー: ヘッダー・ヒーロー（運用画面のモック）・左端のレール。 */
.lp-header {
  position: sticky; top: 0; z-index: 50; height: var(--lp-header-h); color: var(--white);
  background: rgb(var(--navy-rgb) / .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgb(255 255 255 / .1);
}
.lp-header__bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.lp-logo { display: inline-flex; align-items: center; color: var(--white); text-decoration: none; }
.lp-logo__svg { display: block; } /* cỡ lấy từ width/height của <svg> (px CSS ở cỡ chữ 30, logo A0 ≈ 208 × 41 px trong header 64 px), nên chưa tải CSS cũng không nhảy bố cục */
.lp-logo__fg { fill: var(--white); } /* trắng cố định: `.lp a { color: inherit }` khiến link thừa màu xám xanh của footer, đo thấy chữ logo ở footer ngả xám nếu dùng currentColor */
.lp-logo__ac { fill: var(--amber); } /* lõi giữa lục giác + ".AI" */
.lp-logo__body { fill: var(--blue); } /* thân lục giác (bản nền tối của nam) */
.lp-logo__sky { fill: var(--blue-sky); } /* nhánh + nút */
.lp-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.lp-nav a { padding: 6px 0; border-bottom: 2px solid transparent; color: var(--on-navy); text-decoration: none; transition: color .15s, border-color .15s; }
.lp-nav a:hover, .lp-nav a.is-active { color: var(--white); border-color: var(--amber); }
.lp-nav a.is-active { font-weight: 700; }
.lp-nav a.lp-nav__cta { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-sm); background: var(--amber); color: var(--navy); font-weight: 700; border-bottom: 0; transition: background .15s; }
.lp-nav a.lp-nav__cta:hover { background: #fbbf24; color: var(--navy); }
/* menu xổ (製品・技術, ソリューション): rê chuột hoặc focus bàn phím vào nhóm thì hiện; .lp-nav kéo cao bằng header để không có khe giữa chữ và menu con (rê chuột qua khe sẽ làm menu tắt). Chỉ ≥1041px: ≤1040px menu con luôn hiện trong burger. */
.lp-nav { align-self: stretch; align-items: center; }
.lp-nav__group { position: relative; display: flex; align-self: stretch; align-items: center; }
.lp-subnav { margin: 0; padding: 0; list-style: none; }
@media (min-width: 1041px) {
  .lp-nav__group > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .7; }
  .lp-subnav { position: absolute; top: 100%; left: -18px; min-width: 100%; padding: 8px 0; background: var(--navy); border: 1px solid var(--lp-line-dark); border-top: 0; border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-dark); visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
  .lp-nav__group:hover > .lp-subnav, .lp-nav__group:focus-within > .lp-subnav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .lp-nav__group.is-dismissed > .lp-subnav { visibility: hidden; opacity: 0; } /* Esc đóng menu con (WCAG 1.4.13); mở lại khi chuột/focus rời nhóm */
  .lp-subnav a { display: block; padding: 10px 18px; border-bottom: 0; white-space: nowrap; }
  .lp-subnav a:hover, .lp-subnav a:focus-visible { background: rgb(255 255 255 / .08); }
}
.lp-subnav a.is-active { border-left: 3px solid var(--amber); }
.lp-header a:focus-visible, .lp-header button:focus-visible { outline-color: var(--amber); } /* vòng focus xanh (--focus) trên nền navy chỉ đạt 2,8:1; vàng đạt WCAG 1.4.11 */
.lp-burger { display: none; width: 44px; height: 44px; margin-left: auto; /* ≤1040px .lp-nav ra khỏi luồng (absolute) ⇒ auto đẩy nút menu về mép phải */ border: 0; background: transparent; color: var(--white); cursor: pointer; }
.lp-burger i, .lp-burger i::before, .lp-burger i::after { display: block; width: 22px; height: 2px; margin: auto; background: currentColor; content: ""; }
.lp-burger i { position: relative; }
.lp-burger i::before { position: absolute; top: -7px; left: 0; }
.lp-burger i::after { position: absolute; top: 7px; left: 0; }

.lp-hero {
  position: relative; overflow: hidden; color: var(--white); padding: clamp(48px, 6.5vw, 92px) 0 clamp(64px, 7vw, 100px);
  background:
    linear-gradient(rgb(143 201 245 / .05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgb(143 201 245 / .05) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(1000px 600px at 80% 20%, rgb(var(--blue-rgb) / .38), transparent 68%),
    var(--navy);
}
.lp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--lp-hazard); } /* 床の注意テープ */
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: center; }
.lp-hero__title { margin: 20px 0 24px; font-weight: 900; line-height: 1.25; font-feature-settings: "palt"; }
/* Tiêu đề là 3 cụm: 「搬送から始める、」 / 「現場が自ら走り出す」 / em 「スマートファクトリーへ」 (katakana 11 ký tự, nowrap). keep-all: không bẻ chữ Nhật giữa cụm (không để 「走り / 出す」 tách dòng), chỉ xuống dòng ở ranh giới cụm; cỡ chữ vừa để em nằm gọn một dòng trong cột. Tiêu đề giữ 「、」 nhưng không có 「。」. */
.lp-hero__main { display: block; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.02em; word-break: keep-all; }
.lp-hero__main, .lp-hero__sub { word-spacing: -.3em; } /* component chèn ' ' giữa các cụm sau 「、」: thu lại cho khỏi thành lỗ hổng */
.lp-hero__main .lp-nb, .lp-hero__sub .lp-nb { display: inline; }
.lp-hero__main em { display: inline-block; white-space: nowrap; font-style: normal; color: var(--amber); border-bottom: 3.5px solid var(--amber); padding-bottom: 2px; text-shadow: 0 0 24px rgb(var(--amber-rgb) / .4); }
.lp-hero__sub { display: block; margin-top: 18px; color: var(--blue-sky); font-size: clamp(17px, 1.9vw, 23px); font-weight: 700; line-height: 1.55; word-break: auto-phrase; text-wrap: pretty; } /* ngắt theo cụm từ, không để 「に、」 hay 「まる/ごと」 bị tách (đã so wrap/balance/pretty trên Chrome 156: pretty sạch nhất) */
.lp-hero__text { max-width: 37em; margin: 0 0 14px; color: var(--on-navy); font-size: 15.5px; line-height: 1.8; font-family: var(--font-body); }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.lp-checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--on-navy-2); font-size: 14.5px; }
.lp-checks li { position: relative; padding-left: 28px; }
.lp-checks li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 13px; height: 7px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }

/* ảnh Hero (AI, đã loại logo/chữ): AMR chạy trong khu kho tự động */
.lp-hero__stage { display: grid; }
.lp-hero__scene {
  position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-xl); background: var(--navy);
  border: 1px solid rgb(143 201 245 / .24);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08) inset, var(--shadow-dark);
}
.lp-hero__scene img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lp-rise { animation: lp-rise .75s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes lp-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* 左端のレール: ページ全体を 1 本の走路に見立て、小さな AMR が読んでいる位置を示す（広い画面のみ） */
.lp-rail { position: fixed; z-index: 40; left: 22px; top: var(--lp-header-h); bottom: 0; width: 16px; display: none; pointer-events: none; }
.lp-rail::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; border-left: 2px dashed rgb(var(--blue-rgb) / .5); }
.lp-rail__bot { position: absolute; left: 0; top: 0; width: 16px; height: 24px; border: 2.5px solid var(--ink); border-radius: 5px; background: var(--white); transform: translateY(var(--y, 0px)); translate: var(--dx, 0px) 0; box-shadow: 0 0 0 3px rgb(var(--amber-rgb) / .55); } /* --y và --dx do reading-rail.js đặt: --dx là độ lách ngang (né vật cản, rẽ vào kệ / trạm sạc) */
.lp-rail__bot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--blue); }
.lp-rail__stop { position: absolute; left: 3px; top: 0; width: 10px; height: 10px; border: 2px solid rgb(var(--blue-rgb) / .5); border-radius: 50%; background: var(--surface); transform: translateY(var(--y, 0px)); transition: background-color .2s, border-color .2s; } /* trạm = section có id; reading-rail.js đặt --y */
.lp-rail__stop.is-passed { background: var(--amber); border-color: var(--amber-deep); }
/* Việc của AMR ở trạm (data-task do reading-rail.js gắn). Mọi thứ vẽ thêm nằm trong dải lề trái: tới tối đa 37px tính từ mép trái của ray (nội dung bắt đầu từ ~70px ở 1380px, ~62px nếu có thanh cuộn cổ điển 15px). */
/* avoid: vật cản (hộp amber sọc navy như trong khối thể nghiệm) nằm ngay trên ray, AMR lách sang phải */
.lp-rail__stop[data-task="avoid"], .lp-rail__stop[data-task="avoid"].is-passed { border: 2px solid var(--navy-darker); border-radius: 2px; background-image: repeating-linear-gradient(135deg, var(--amber) 0 3px, var(--navy-darker) 3px 6px); }
/* pickup / drop: kệ bên phải ray (::after), hộp hàng trên kệ (::before): kệ lấy hàng có hộp tới khi AMR đi qua, kệ giao hàng nhận hộp sau khi AMR đi qua */
.lp-rail__stop[data-task="pickup"]::after, .lp-rail__stop[data-task="drop"]::after { content: ""; position: absolute; left: 13px; top: -5px; width: 20px; height: 16px; border: 2px solid rgb(var(--blue-rgb) / .55); border-radius: 3px; background: var(--surface); box-sizing: border-box; }
.lp-rail__stop[data-task="pickup"]::before, .lp-rail__stop[data-task="drop"]::before { content: ""; position: absolute; z-index: 1; left: 18px; top: 0; width: 10px; height: 6px; border: 1.5px solid var(--navy); border-radius: 1px; background: var(--blue-sky); box-sizing: border-box; transition: opacity .3s; }
.lp-rail__stop[data-task="pickup"].is-passed::before, .lp-rail__stop[data-task="drop"]:not(.is-passed)::before { opacity: 0; }
/* AMR đang chở hàng: hộp nhỏ trên nóc; có / mất hàng chạy theo thời gian */
.lp-rail__bot::before { content: ""; position: absolute; left: 50%; top: -12px; width: 14px; height: 8px; margin-left: -7px; border: 1.5px solid var(--navy); border-radius: 2px; background: var(--blue-sky); box-sizing: border-box; transform: scale(0); transform-origin: 50% 100%; transition: transform .3s var(--ease-out); }
.lp-rail__bot.has-cargo::before { transform: scale(1); }
/* Trạm sạc ở đầu và cuối ray: bệ + tia sét vẽ bằng CSS (không chữ, không phông). AMR rẽ vào bệ khi tới gần (reading-rail.js, --dx); bệ vừa khít AMR + viền sáng nên tia sét chỉ lộ khi AMR rời bệ, còn lúc đang sạc thì đồng hồ pin (ngoài thân AMR) nhấp nháy */
.lp-rail__dock { position: absolute; left: 15px; width: 22px; height: 30px; border: 2px solid var(--amber-deep); border-radius: 5px; background: var(--amber-tint); box-sizing: border-box; }
.lp-rail__dock--start { top: 0; }
.lp-rail__dock--end { bottom: 0; }
.lp-rail__dock::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 14px; margin: -7px 0 0 -4px; background: var(--amber-deep); clip-path: polygon(60% 0, 10% 55%, 45% 55%, 35% 100%, 90% 40%, 55% 40%); }
@keyframes lp-rail-charge { from { opacity: .3; } to { opacity: 1; } }
/* Đồng hồ pin bên trái AMR: tụt dần theo tỉ lệ cuộn (--bat); vào trạm sạc cuối ray thì đầy lên trong 1,2 giây */
.lp-rail__bat { position: absolute; left: -10px; top: 3px; width: 5px; height: 16px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--white); box-sizing: border-box; overflow: hidden; }
.lp-rail__bat::before { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleY(var(--bat, 1)); transform-origin: 50% 100%; }
.lp-rail__bot.is-charged .lp-rail__bat::before { background: var(--amber-deep); transform: scaleY(1); transition: transform 1.2s var(--ease-out); animation: lp-rail-charge .45s ease-in-out 5 alternate; } /* 5 nhịp (số lẻ nên dừng ở độ sáng đầy) rồi thôi, không nhấp nháy vô hạn */
@media (min-width: 1380px) { .lp-rail { display: block; } }

@media (max-width: 1040px) {
  .lp-nav { position: absolute; top: var(--lp-header-h); left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: var(--navy); border-bottom: 1px solid var(--lp-line-dark); }
  .lp-nav.is-open { display: flex; }
  .lp-nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--lp-line-dark); }
  .lp-nav a.lp-nav__cta { margin-top: 10px; padding: 12px 16px; border-radius: var(--radius-sm); text-align: center; justify-content: center; }
  .lp-nav { align-items: stretch; } /* cột: mỗi mục rộng hết khung (align-items: center ở trên là của menu ngang) */
  .lp-nav__group { display: block; border-bottom: 1px solid var(--lp-line-dark); }
  .lp-nav__group > a { display: block; border-bottom: 0; }
  .lp-subnav a { display: block; padding: 8px 0 8px 18px; font-size: 14.5px; color: var(--on-navy-2); border-bottom: 0; }
  .lp-subnav li:last-child a { padding-bottom: 14px; }
  .lp-subnav a.is-active { padding-left: 15px; }
  .lp-burger { display: inline-flex; align-items: center; }
  .lp-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .lp-hero__main { font-size: clamp(22px, 6.6vw, 40px); } /* một cột: em (12 ký tự) phải vừa cột hẹp ở 320–390px */
  .lp-hero__stage { max-width: 640px; margin-top: 56px; }
}
@media (max-width: 640px) {
  .lp-cta-row .lp-btn { width: 100%; }
}
/* 概要・市場データ帯 (KeyFactsStrip): Hero 直下に要点と数値・出典を配置し視認性と GEO 引用性を高める */
.lp-summary { padding: clamp(28px, 4vw, 48px) 0; background: var(--white); border-bottom: 1px solid var(--line-strong); }
.lp-summary__head { max-width: 820px; margin-bottom: 24px; }
.lp-summary__title { margin: 10px 0 10px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.35; font-weight: 900; color: var(--navy); }
.lp-summary__lead { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink); font-family: var(--font-body); }
.lp-summary__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; }
.lp-summary__card { display: flex; flex-direction: column; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.lp-summary__label { order: 2; margin: 0 0 6px; font-size: 13.5px; font-weight: 700; line-height: 1.45; color: var(--navy); }
.lp-summary__value { order: 1; margin: 0 0 6px; font-size: clamp(20px, 2vw, 26px); font-weight: 900; line-height: 1.2; color: var(--blue); font-variant-numeric: tabular-nums; }
.lp-summary__note { order: 3; margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); font-family: var(--font-body); }
.lp-summary__source { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.lp-summary__source cite { font-style: normal; }
.lp-summary__source a { color: var(--blue); text-decoration: underline; }

/* LP プレビュー: 課題カード・概要（構成図）・5 つの改善・選定理由。 */
.lp-grid { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.lp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-card { position: relative; padding: 32px 30px; border-radius: var(--radius-lg); }
.lp-card__num { position: absolute; top: 18px; right: 24px; font: 700 38px/1 var(--font-main); font-variant-numeric: tabular-nums; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); opacity: .7; }
/* Số 01–04 của thẻ 課題 là hình trang trí (nét viền trên nền trắng; <ol> đã đánh số): in bằng nội dung CSS, aria-hidden, không phải chữ cần đọc nên axe không tính. */
.lp-card--challenge .lp-card__num::before { content: attr(data-no); }
.lp-card__icon { display: inline-flex; width: 48px; height: 48px; padding: 8px; margin-bottom: 20px; border-radius: var(--radius-md); background: rgb(var(--blue-rgb) / .08); stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lp-card__title { margin: 0 0 10px; font-size: 19px; line-height: 1.55; font-weight: 700; }
.lp-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; font-family: var(--font-body); }
.lp-card--challenge {
  background: var(--white); border: 1px solid var(--line-soft); border-top: 3.5px solid var(--blue);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-soft), box-shadow .2s var(--ease-soft), border-color .2s;
}
.lp-card--challenge:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgb(var(--blue-rgb) / .3); }
.lp-card--dark {
  background: linear-gradient(180deg, rgb(255 255 255 / .07) 0%, rgb(255 255 255 / .02) 100%);
  border: 1px solid rgb(255 255 255 / .12); border-top: 3.5px solid var(--amber); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark); transition: transform .2s var(--ease-soft), border-color .2s, box-shadow .2s;
}
.lp-card--dark:hover { transform: translateY(-4px); border-color: rgb(143 201 245 / .35); border-top-color: var(--amber); box-shadow: 0 24px 48px -12px rgb(0 0 0 / .6); }
.lp-card--dark .lp-card__num { position: static; display: block; margin-bottom: 12px; font-size: 34px; font-weight: 900; color: var(--amber); -webkit-text-stroke: 0; opacity: 1; }
.lp-card--dark p { color: var(--on-navy); }

.lp-split .lp-title { font-size: clamp(24px, 2.9vw, 36px); }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }

/* 構成図: 上位システム ⇄ 統合制御ソフトウェア ⇄ ロボット・設備（破線の走路でつなぐ） */
.lp-stack { display: grid; }
.lp-stack__node {
  position: relative; display: grid; gap: 4px; padding: 20px 24px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-soft), box-shadow .2s var(--ease-soft);
}
.lp-stack__node:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-stack__node strong { font-size: 18px; line-height: 1.4; color: var(--navy); }
.lp-stack__label { font: 700 11.5px/1.4 var(--font-main); letter-spacing: .14em; color: var(--blue); }
.lp-stack__node--core {
  padding: 28px 26px 26px; border: 1.5px solid rgb(143 201 245 / .45); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white);
  box-shadow: 0 0 32px -4px rgb(var(--blue-rgb) / .35), var(--shadow-lg);
}
.lp-stack__node--core strong { font-size: 24px; color: var(--white); }
.lp-stack__node--core .lp-stack__label { color: var(--amber); }
.lp-stack__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.lp-stack__chips li {
  padding: 4px 14px; border: 1px solid rgb(143 201 245 / .35); border-radius: var(--radius-pill);
  background: rgb(143 201 245 / .12); color: var(--blue-sky); font-size: 13px; font-weight: 500;
  box-shadow: 0 0 10px rgb(var(--blue-rgb) / .15);
}
.lp-stack__link { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; }
.lp-stack__link::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--blue); }
.lp-stack__link span {
  position: relative; z-index: 1; padding: 4px 18px; background: var(--white); border: 1.5px solid var(--blue);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); color: var(--navy); font: 700 12.5px var(--font-main); letter-spacing: .06em;
}
.lp-stack__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* 5 つの改善: 仕様書のような一覧。ロードマップの行は注意テープ柄 */
.lp-spec { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--line-strong); }
.lp-spec__row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 24px; padding: 30px 16px; border-bottom: 1px solid var(--line-soft); border-radius: var(--radius-md); transition: background-color .15s; }
.lp-spec__row:hover { background: rgb(var(--blue-rgb) / .025); }
.lp-spec__num { font: 700 42px/1 var(--font-main); font-variant-numeric: tabular-nums; color: var(--blue); }
.lp-spec__title { margin: 0; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.4; font-weight: 900; }
.lp-spec__sub { margin: 6px 0 12px; color: var(--blue); font-size: 14px; font-weight: 700; }
.lp-spec__body p:last-child { max-width: 46em; margin: 0; color: var(--muted); font-family: var(--font-body); }
.lp-spec__row.is-road { border-left: 3px solid var(--amber); background: rgb(var(--amber-rgb) / .05); padding-left: 13px; }
.lp-spec__row.is-road .lp-spec__num { color: var(--amber-deep); }
.lp-spec__row.is-road .lp-spec__sub { color: var(--muted); }

@media (max-width: 860px) {
  .lp-grid--2, .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-spec__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lp-spec__num { font-size: 34px; }
}
@media (max-width: 520px) {
  .lp-card { padding: 24px 22px 26px; }
  .lp-stack__row { grid-template-columns: minmax(0, 1fr); }
}

/* LP プレビュー: ロードマップ（走路）・提供内容・メリット表・導入の流れ。 */
.lp-route { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.lp-route::before { content: ""; position: absolute; left: 23px; right: calc((100% - 88px) / 5 - 23px); top: 23px; border-top: 3px dashed var(--blue); }
.lp-route::after { content: ""; position: absolute; top: 15px; left: 0; width: 26px; height: 17px; border: 2.5px solid var(--ink); border-radius: 5px; background: var(--white); box-shadow: var(--shadow-xs); }
.lp-route__stop { position: relative; z-index: 1; }
.lp-route__node { display: grid; place-items: center; width: 46px; height: 46px; border: 2.5px solid var(--blue); border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); font: 700 14px var(--font-main); font-variant-numeric: tabular-nums; }
.lp-route__stop--goal .lp-route__node { border-color: var(--amber-deep); background: linear-gradient(135deg, #FFCE33 0%, var(--amber) 100%); color: var(--navy); box-shadow: 0 0 0 4px rgb(var(--amber-rgb) / .2), 0 4px 14px -2px rgb(var(--amber-rgb) / .5); }
.lp-route__phase { margin: 16px 0 2px; color: var(--blue); font: 700 12px var(--font-main); letter-spacing: .14em; }
.lp-route__title { margin: 0 0 8px; font-size: 17px; line-height: 1.5; font-weight: 900; }
.lp-route__stop p:last-child { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; font-family: var(--font-body); }

/* 提供内容: hàng 1 = thẻ CORE rộng cả hàng (ảnh trái, chữ phải); hàng 2 = ROBOTS + EXTENSION cạnh nhau, CAO BẰNG NHAU (grid stretch mặc định) để đọc cùng lúc trong 1 màn hình.
   Đo ở 1440px: lưới 3 cột cũ cao 668 / 961 / 416px (thẻ ROBOTS dài hơn 1 màn hình, thẻ EXTENSION chỉ 1 câu); bố cục này hàng 2 cao ~635px, trong 726px (= màn hình 790px − header 64px). */
.lp-products { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; }
.lp-product { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 32px 28px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-soft), box-shadow .2s var(--ease-soft); }
.lp-product:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lp-product--core {
  border: 1.5px solid rgb(143 201 245 / .35); background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white); box-shadow: 0 0 24px -4px rgb(var(--blue-rgb) / .25), var(--shadow-lg);
}
.lp-product--core::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue-sky), var(--amber)); }
.lp-product--core { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 40px; align-items: center; } /* 2 ô: ảnh | khối chữ, căn giữa theo chiều dọc dù khối chữ có bao nhiêu mục */
.lp-product__body { min-width: 0; }
.lp-product__tag { margin: 0 0 8px; color: var(--blue); font: 700 12px var(--font-main); letter-spacing: .16em; }
.lp-product--core .lp-product__tag { color: var(--amber); }
.lp-product__title { margin: 0 0 18px; font-size: 21px; line-height: 1.5; font-weight: 900; }
.lp-product__title span { margin-right: 4px; font: 700 20px var(--font-main); font-variant-numeric: tabular-nums; color: var(--blue); }
.lp-product--core .lp-product__title span { color: var(--blue-sky); }
.lp-product__list { display: grid; margin: 0; padding: 0; list-style: none; }
.lp-product__list li { padding: 14px 0; border-top: 1px dashed var(--line); color: var(--muted); font-size: 14.5px; }
.lp-product--core .lp-product__list li { border-top-color: var(--lp-line-dark); color: var(--on-navy); }
.lp-product__list strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 15.5px; }
.lp-product--core .lp-product__list strong { color: var(--white); }
/* thẻ ROBOTS có 4 mục (dài nhất): chia danh sách 2 cột (cân tự động) để thấp xuống. Khối @media (max-width: 1040px) bên dưới trả về 1 cột khi thẻ xếp dọc: cùng một ngưỡng với lưới nên không có khe ở độ rộng lẻ (zoom 110% cho 1040,9px).
   Đo: hàng 2 cao 635px ở 1440, 661px ở 1200–1280, 687px ở 1041–1100 (đều ≤ 726px) */
.lp-product--robots .lp-product__list { display: block; columns: 2; column-gap: 32px; }
.lp-product--robots .lp-product__list li { break-inside: avoid; }

.lp-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-md); border: 1px solid var(--line-strong); }
.lp-table th { padding: 18px 24px; background: var(--navy-dark); color: var(--white); font: 700 14px var(--font-main); text-align: left; }
.lp-table th:nth-child(2) { background: var(--blue); }
.lp-table th:nth-child(3) { background: linear-gradient(180deg, #FFCE33 0%, var(--amber) 100%); color: var(--navy); }
.lp-table td { width: 33.33%; padding: 22px 24px; border-top: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.7; }
.lp-table td:nth-child(1) { background: var(--surface-3); color: var(--muted); }
.lp-table td:nth-child(2) { background: var(--blue-tint); color: var(--navy); font-weight: 700; border-left: 1px solid rgb(var(--blue-rgb) / .12); border-right: 1px solid rgb(var(--blue-rgb) / .12); }

.lp-split--flow { align-items: start; }
.lp-sticky { position: sticky; top: calc(var(--lp-header-h) + 36px); }
.lp-steps { position: relative; margin: 0; padding: 0; list-style: none; }
.lp-steps::before { content: ""; position: absolute; left: 23px; top: 26px; bottom: 26px; border-left: 3px dashed var(--blue); }
.lp-steps__item { position: relative; padding: 0 0 40px 80px; }
.lp-steps__item:last-child { padding-bottom: 0; }
.lp-steps__node { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 48px; height: 48px; border: 2.5px solid var(--blue); border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); font: 700 17px var(--font-main); font-variant-numeric: tabular-nums; }
.lp-steps__item:last-child .lp-steps__node { border-color: var(--amber-deep); background: linear-gradient(135deg, #FFCE33 0%, var(--amber) 100%); color: var(--navy); box-shadow: 0 4px 12px -2px rgb(var(--amber-rgb) / .4); }
.lp-steps__title { margin: 0 0 8px; font-size: 21px; line-height: 1.45; font-weight: 900; }
.lp-steps__title small { display: block; margin-bottom: 2px; color: var(--blue); font: 700 12px var(--font-main); letter-spacing: .16em; }
.lp-steps__item p { margin: 0; max-width: 40em; color: var(--muted); font-size: 15px; line-height: 1.8; font-family: var(--font-body); }

@media (max-width: 1040px) {
  .lp-products { grid-template-columns: minmax(0, 1fr); }
  .lp-product--core { display: flex; align-items: stretch; } /* trở về thẻ xếp dọc; align-items: center của bố cục rộng sẽ làm ảnh co về 0 */
  .lp-product--robots .lp-product__list { display: grid; columns: auto; }
  .lp-route { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lp-route::before { left: 23px; right: auto; top: 24px; bottom: 24px; border-top: 0; border-left: 3px dashed var(--blue); }
  .lp-route::after { display: none; }
  .lp-route__stop { padding: 0 0 30px 74px; }
  .lp-route__stop:last-child { padding-bottom: 0; }
  .lp-route__node { position: absolute; left: 0; top: 0; }
  .lp-route__phase { margin-top: 2px; }
}
@media (max-width: 860px) {
  .lp-sticky { position: static; }
  .lp-table, .lp-table tbody, .lp-table tr, .lp-table td { display: block; }
  .lp-table { background: transparent; box-shadow: none; }
  .lp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lp-table tr { margin-bottom: 16px; overflow: hidden; border-radius: 10px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
  .lp-table td { width: auto; padding: 14px 18px; border-top: 0; }
  .lp-table td + td { border-top: 1px solid var(--line); }
  .lp-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--blue); font: 600 12px var(--font-main); letter-spacing: .06em; }
}
@media (max-width: 520px) {
  .lp-steps__item { padding-left: 68px; }
  .lp-steps__node { width: 44px; height: 44px; }
  .lp-steps::before { left: 21px; }
}
@media (prefers-reduced-motion: reduce) { .lp-route::after { display: none; } }

/* ảnh minh hoạ (ROADMAP: dải rộng dưới các phase, có chú thích; PRODUCTS: 1 ảnh ở đầu mỗi thẻ, không chú thích) */
.lp-scene { --scene-focus: 50% 50%; margin: 52px 0 0; } /* điểm lấy nét mặc định; SceneFigure ghi đè bằng style nội tuyến khi ui-ja khai focus */
.lp-scene__frame { position: relative; overflow: hidden; border-radius: 12px; background: var(--surface-3); box-shadow: 0 0 0 1px var(--line); }
.lp-scene__frame img { display: block; width: 100%; height: auto; }
.lp-scene__cap { margin: 10px 2px 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.lp-product .lp-scene { margin: 0 0 22px; }
/* ảnh đầu thẻ, 3 kiểu theo vai trò: feature (CORE) giữ tỉ lệ 16:9 ở cột trái của thẻ rộng; band (ROBOTS) dải cao cố định, cover cắt theo khung;
   fill (EXTENSION) co giãn lấp phần cao dư để 2 thẻ hàng dưới bằng nhau (ảnh trong khung absolute nên không làm thẻ cao thêm). band và fill cắt ảnh bằng cover nên cùng lấy nét theo --scene-focus. Nền tối của thẻ CORE: viền ảnh dịu hơn. */
.lp-scene--feature .lp-scene__frame { aspect-ratio: 2752 / 1536; }
.lp-scene--band .lp-scene__frame { height: 172px; }
.lp-scene--band .lp-scene__frame img, .lp-scene--fill .lp-scene__frame img { height: 100%; object-fit: cover; object-position: var(--scene-focus); }
.lp-scene--fill { flex: 1 1 auto; display: flex; flex-direction: column; }
.lp-scene--fill .lp-scene__frame { flex: 1 1 auto; min-height: 172px; }
.lp-scene--fill .lp-scene__frame img { position: absolute; inset: 0; }
.lp-product--core .lp-scene { margin: 0; }
.lp-product--core .lp-scene__frame { box-shadow: 0 0 0 1px rgb(255 255 255 / .14); }
@media (max-width: 1040px) { /* thẻ xếp dọc: mọi ảnh trả về tỉ lệ 16:9 của ảnh */
  .lp-product--core .lp-scene { margin: 0 0 22px; }
  .lp-scene--band .lp-scene__frame, .lp-scene--fill .lp-scene__frame { height: auto; min-height: 0; flex: none; aspect-ratio: 2752 / 1536; }
  .lp-scene--fill { display: block; flex: none; }
}
/* 導入の流れ: cột trái chỉ có tiêu đề nên thêm 1 ảnh ngay dưới (cột sticky vẫn thấp hơn khung nhìn). ≤1040px cột này xếp dọc phía trên các bước ⇒ ẩn ảnh để các bước hiện ngay sau tiêu đề (ảnh lazy bị ẩn thì không tải) */
.lp-scene--flow { margin: 36px 0 0; max-width: 520px; }
@media (max-width: 1040px) { .lp-scene--flow { display: none; } }

/* Trang phụ (privacy, 404) và dấu 必須 của form. Chỉ dùng token đã có (demo-tokens.css). */
.lp-doc-back { margin-left: auto; padding: 6px 0; color: var(--on-navy); font-size: 14px; font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; }
.lp-doc-back:hover { color: var(--amber); border-color: var(--amber); }
.lp-doc { max-width: 820px; padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(48px, 8vw, 96px); font-family: var(--font-body); }
.lp-doc__title { margin: 0 0 24px; font: 900 clamp(26px, 3.6vw, 38px)/1.3 var(--font-main); }
.lp-doc__section { margin-top: 36px; }
.lp-doc h2 { margin: 0 0 10px; padding-left: 12px; border-left: 4px solid var(--amber); font: 700 20px/1.5 var(--font-main); }
.lp-doc p, .lp-doc li { margin: 0 0 12px; font-size: 15.5px; }
.lp-doc ul { margin: 0 0 12px; padding-left: 1.4em; }
.lp-doc .lp-flag { white-space: normal; } /* cờ dài không được đẩy trang tràn ngang ở 390 px */
.lp-doc p > .lp-flag:first-child { margin-left: 0; }
.lp-doc--notfound { text-align: center; }
.lp-doc--notfound .lp-btn { margin-top: 12px; }
.lp-req { margin-left: .6em; padding: 1px 7px; border-radius: 3px; background: var(--danger-tint); color: var(--danger); font-size: 11.5px; font-weight: 700; vertical-align: .08em; }

/* LP: trang con (tiêu đề trang, dải đầu sản phẩm/giải pháp, thẻ sản phẩm rộng, lưới chữ, khối chia đôi). Menu xổ nằm ở lp-hero.css cùng với .lp-nav. */
.lp-page-header { padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 3.6vw, 44px); background: var(--surface-3); border-bottom: 1px solid var(--line-soft); }
.lp-page-header__title { margin: 14px 0 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; font-weight: 900; letter-spacing: -.02em; font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: pretty; }
.lp-page-header__lead { max-width: 44em; margin: 14px 0 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.8; font-family: var(--font-body); word-break: auto-phrase; text-wrap: pretty; }
.lp-num-deco { font-size: 24px; font-weight: 800; color: var(--line-strong); } /* số trang trí (会社概要: 使命 01–03): in bằng nội dung CSS + aria-hidden như số của thẻ 課題, vì màu nhạt cố ý không đạt tương phản chữ và axe không tính nội dung CSS */
.lp-num-deco::before { content: attr(data-no); }
.lp-section--tight { padding: clamp(32px, 4.5vw, 64px) 0; }

.lp-scene--card .lp-scene__frame { aspect-ratio: 2752 / 1536; }
.lp-scene--card .lp-scene__frame img { height: 100%; object-fit: cover; object-position: var(--scene-focus); }

/* dải đầu mỗi sản phẩm / giải pháp khi nhiều mục xếp trong một trang: nền navy, là NEO của menu xổ (html scroll-padding-top chừa chỗ cho header dính) */
.lp-prodhead { border-top: 1px solid rgb(255 255 255 / .08); scroll-margin-top: -12px; } /* scroll-padding-top của html chừa 64 + 12px; -12px để dải navy chạm sát đáy header, không lộ 12px nền trắng của mục trước */
.lp-prodhead__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.lp-prodhead__grid--scene { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.lp-prodhead .lp-head { margin-bottom: 0; }
.lp-prodhead__no { display: block; margin: 0 0 10px; color: transparent; font: 900 clamp(44px, 6vw, 68px)/1 var(--font-main); letter-spacing: .02em; -webkit-text-stroke: 1.5px rgb(143 201 245 / .6); } /* số 01/02/03 viết bằng nội dung CSS + aria-hidden (trang trí; axe không tính nội dung CSS) */
.lp-prodhead__no::before { content: attr(data-no); }
.lp-prodhead__grid > * { min-width: 0; } /* ô lưới co được: tên katakana dài (スマートファクトリー向けソフトウェア) không đẩy trang rộng hơn màn hình */
.lp-prodhead .lp-title { font-size: clamp(18px, 4.9vw, 36px); word-break: auto-phrase; text-wrap: balance; overflow-wrap: anywhere; } /* 4.9vw: 18 ký tự katakana vừa một dòng ở 390px; anywhere = lưới an toàn cho màn nhỏ hơn */
.lp-prodhead .lp-scene { margin: 0; }
.lp-prodhead .lp-scene__frame { box-shadow: none; }

/* 3 điểm chính ngay dưới lead của trang (kiểu hàng số liệu đầu trang của terran.jp): từ khoá lớn + một dòng giải thích, ngăn bằng vạch dọc */
.lp-highlights { margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid var(--line-strong); }
.lp-highlights__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.lp-highlights__title { margin: 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; font-weight: 900; font-feature-settings: "palt"; }
.lp-highlights__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 0; padding: 0; list-style: none; }
.lp-highlights__item { min-width: 0; padding: 2px 28px 2px 28px; border-left: 1px solid var(--line-strong); }
.lp-highlights__item:first-child { padding-left: 0; border-left: 0; }
.lp-highlights__keyword { margin: 0 0 8px; color: var(--navy); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; font-weight: 900; font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: balance; overflow-wrap: anywhere; }
.lp-highlights__text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; font-family: var(--font-body); word-break: auto-phrase; text-wrap: pretty; }

/* ảnh toàn công ty ở trang Company: 1 ảnh lớn + 2 ảnh nhỏ cùng tỉ lệ 3:2 */
.lp-team-photos { display: grid; gap: 12px; margin-top: 16px; }
.lp-team-photos figure { margin: 0; overflow: hidden; border-radius: var(--radius-md); border: 1px solid var(--line-strong); }
.lp-team-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.lp-team-photos__main { position: relative; }
.lp-team-photos__caption { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 2px; padding: 44px 18px 14px; background: linear-gradient(to top, rgb(var(--navy-rgb) / .86), rgb(var(--navy-rgb) / 0)); color: var(--white); }
.lp-team-photos__eyebrow { font: 700 11px var(--font-main); letter-spacing: .2em; color: var(--amber); }
.lp-team-photos__text { font-size: clamp(13px, 1.5vw, 17px); line-height: 1.5; font-weight: 800; font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
.lp-team-photos__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* thẻ sản phẩm rộng (nền sáng): cùng bố cục với .lp-product--core (ảnh | chữ), xếp dọc ≤1040px */
.lp-product--wide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 40px; align-items: center; }
.lp-product--wide .lp-scene { margin: 0; }
@media (max-width: 1040px) {
  .lp-product--wide { display: flex; align-items: stretch; }
  .lp-product--wide .lp-scene { margin: 0 0 22px; }
}

/* lưới thẻ chữ của trang chi tiết */
.lp-features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lp-head + .lp-features { margin-top: 36px; }
.lp-features .lp-card__title { word-break: auto-phrase; text-wrap: balance; }
.lp-features .lp-card p { word-break: auto-phrase; text-wrap: pretty; }
.lp-card .lp-features__link { margin-top: 14px; font-weight: 700; }
.lp-icon-tile { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgb(var(--blue-rgb) / .08); color: var(--blue); } /* icon trong thẻ: cùng cỡ và màu với icon của trang 会社概要 */
.lp-card > .lp-icon-tile { margin-bottom: 16px; }

/* khối chia đôi: ảnh + danh sách mục có icon */
.lp-splitlist { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; margin-top: 36px; }
.lp-splitlist > .lp-scene { position: sticky; top: 96px; margin: 0; } /* header dính cao 64px; align-items:start để ảnh trượt theo danh sách dài */
.lp-splitlist--flip > .lp-scene { order: 2; }
.lp-splitlist__items { margin: 0; padding: 0; list-style: none; }
.lp-splitlist__item { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.lp-splitlist__item:first-child { padding-top: 0; border-top: 0; }
.lp-splitlist__title { margin: 2px 0 6px; font-size: 18px; line-height: 1.5; font-weight: 800; word-break: auto-phrase; text-wrap: balance; }
.lp-splitlist__item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; font-family: var(--font-body); word-break: auto-phrase; text-wrap: pretty; }
.lp-features__link a { color: var(--blue); }

@media (max-width: 1040px) {
  .lp-splitlist { grid-template-columns: minmax(0, 1fr); }
  .lp-splitlist > .lp-scene { position: static; }
  .lp-splitlist--flip > .lp-scene { order: 0; }
  .lp-prodhead__grid--scene { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .lp-features--3, .lp-features--2 { grid-template-columns: minmax(0, 1fr); }
  .lp-highlights__list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lp-highlights__item, .lp-highlights__item:first-child { padding: 0 0 0 18px; border-left: 3px solid var(--blue); }
}

/* CTA trong dải đầu sản phẩm / giải pháp */
.lp-prodhead__cta { margin-top: 20px; }
.lp-prodhead__cta .lp-btn { font-size: 14.5px; }

/* Khối CTA banner ở đáy trang */
.lp-cta-banner { border-top: 1px solid rgb(255 255 255 / .08); }
.lp-cta-banner__container { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.lp-cta-banner__copy { max-width: 48em; }
.lp-cta-banner__copy .lp-title { font-size: clamp(24px, 3.2vw, 40px); margin: 8px 0 16px; }
.lp-cta-banner__copy .lp-lead { font-size: clamp(15px, 1.4vw, 17px); color: var(--on-navy); }
.lp-cta-banner__actions { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.lp-cta-banner__note { margin: 0; font-size: 13px; color: var(--on-navy-2); }

/* Trang Resources (Danh sách White Paper / Blog) và trang chi tiết bài viết (Phase 3 GEO, phân tầng Master White Paper & 2 Chuyên đề chuyên sâu). */
.lp-res-tier { margin-top: 32px; }
.lp-res-tier__head { margin-bottom: 16px; }
.lp-res-tier__title { margin: 0 0 6px; font-size: clamp(18px, 2.1vw, 22px); font-weight: 800; color: var(--navy); }
.lp-res-tier__lead { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.lp-res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 18px; }
.lp-res-card { display: flex; flex-direction: column; justify-content: space-between; padding: 28px; background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); transition: border-color .2s, transform .2s; }
.lp-res-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.lp-res-card--master { padding: 32px; background: var(--white); border: 2px solid var(--blue); box-shadow: 0 12px 32px rgba(15, 29, 58, .07); }
.lp-res-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.lp-res-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(27, 111, 179, .1); color: var(--blue); font-weight: 700; font-size: 11px; letter-spacing: .06em; }
.lp-res-badge--master { background: var(--navy); color: var(--white); padding: 4px 12px; }
.lp-res-card__title { margin: 0 0 12px; font-size: 20px; line-height: 1.45; font-weight: 700; color: var(--navy); }
.lp-res-card__title--master { font-size: clamp(21px, 2.4vw, 25px); font-weight: 900; }
.lp-res-card__title a { text-decoration: none; }
.lp-res-card__title a:hover { color: var(--blue); }
.lp-res-card__quote { margin: 0 0 18px; padding: 0 0 0 14px; border-left: 3px solid var(--blue); }
.lp-res-card__desc { margin: 0 0 6px; font-size: 14.5px; line-height: 1.75; color: var(--ink); }
.lp-res-card__cite { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.lp-res-card__cite::before { content: "— "; }
.lp-res-card__cta { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
.lp-res-card__cta:hover { text-decoration: underline; }
.lp-res-card__cta--master { align-self: flex-start; padding: 9px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--blue); background: var(--white); color: var(--blue); }
.lp-res-card__cta--master:hover { background: var(--surface-3); text-decoration: none; }

.lp-res-includes { margin: 18px 0 6px; padding: 16px 18px; background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); }
.lp-res-includes__label { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--navy); }
.lp-res-includes__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.lp-res-includes__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 13.5px; line-height: 1.45; }
.lp-res-includes__list a { font-weight: 700; color: var(--blue); text-decoration: none; }
.lp-res-includes__list a:hover { text-decoration: underline; }
.lp-res-includes__time { flex-shrink: 0; font-size: 12px; color: var(--muted); white-space: nowrap; }

.lp-res-relation { margin: 0 0 28px; padding: 18px 20px; background: var(--surface-3); border-left: 4px solid var(--navy); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.lp-res-relation--master { border-left-color: var(--blue); }
.lp-res-relation__text { margin: 0 0 10px; font-size: 14px; line-height: 1.65; color: var(--ink); }
.lp-res-relation__cta { font-size: 13.5px; font-weight: 700; color: var(--blue); text-decoration: none; }
.lp-res-relation__cta:hover { text-decoration: underline; }

.lp-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.lp-breadcrumb a { color: var(--blue); text-decoration: none; }
.lp-breadcrumb a::after { content: "/"; margin-left: 8px; color: var(--muted); }
.lp-breadcrumb a:hover { text-decoration: underline; }
.lp-article__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.lp-wp-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; align-items: start; }
.lp-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 18px 20px; background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.lp-toc__title { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.lp-toc__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lp-toc__list a { display: block; font-size: 13px; line-height: 1.45; color: var(--ink); text-decoration: none; padding: 2px 0; }
.lp-toc__list a:hover { color: var(--blue); text-decoration: underline; }

.lp-article { min-width: 0; max-width: 820px; }
.lp-article__back { display: inline-block; margin-bottom: 20px; font-size: 13.5px; font-weight: 700; color: var(--blue); text-decoration: none; }
.lp-article__back:hover { text-decoration: underline; }

.lp-glossary { scroll-margin-top: 88px; margin: 36px 0 0; padding: 24px; background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); }
.lp-glossary__title { margin: 10px 0 18px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 900; color: var(--navy); }
.lp-glossary__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 0; }
.lp-glossary__card { padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.lp-glossary__card dt { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.lp-glossary__card dd { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink); }

.lp-article__body h2 { scroll-margin-top: 88px; margin: 40px 0 14px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; font-weight: 900; color: var(--navy); border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.lp-article__body h3 { margin: 28px 0 10px; font-size: 18px; line-height: 1.45; font-weight: 700; color: var(--navy); }
.lp-article__body p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.85; color: var(--ink); }
.lp-article__body em { font-style: normal; font-weight: 500; }
.lp-article__body ul, .lp-article__body ol { margin: 0 0 18px; padding-left: 22px; font-size: 15px; line-height: 1.8; color: var(--ink); }
.lp-article__body li { margin-bottom: 8px; }
.lp-article__body blockquote { margin: 22px 0; padding: 16px 20px; background: var(--surface-3); border-left: 4px solid var(--blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-size: 15px; line-height: 1.75; color: var(--navy); }
.lp-article__table-wrap { overflow-x: auto; margin: 20px 0 24px; }
.lp-article__table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.65; background: var(--white); }
.lp-article__table th, .lp-article__table td { padding: 12px 14px; border: 1px solid var(--line-strong); text-align: left; vertical-align: top; }
.lp-article__table th { background: var(--navy); color: var(--white); font-weight: 700; }
.lp-article__refs { scroll-margin-top: 88px; margin-top: 36px; padding: 20px 24px; background: var(--surface-3); border-radius: var(--radius-lg); border: 1px solid var(--line-strong); }
.lp-article__refs h2 { margin: 0 0 12px; font-size: 16px; border: 0; padding: 0; color: var(--navy); }
.lp-article__refs ul { margin: 0; padding-left: 20px; }
.lp-article__refs cite { font-style: normal; font-size: 14px; }
.lp-article__refs a { color: var(--blue); text-decoration: underline; word-break: break-word; }

@media (max-width: 1040px) {
  .lp-wp-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lp-toc { position: static; max-height: none; }
}

/* Ngôn ngữ ≠ ja (DP5). Zen Kaku Gothic New thiếu 100/134 chữ Việt ⇒ trang vi dùng Noto Sans JP cho mọi biến phông; en giữ stack JA. */
/* html:lang(vi) (độ đặc hiệu 0,1,1) thắng :root (0,1,0) bất kể thứ tự nạp; Noto chỉ có 400/500/700 nên tiêu đề 900 vẽ bằng mặt 700 (đã ghi ở bảng duyệt). */
html:lang(vi) { --font-main: "Noto Sans JP", sans-serif; --font-body: "Noto Sans JP", sans-serif; --lp-font: "Noto Sans JP", sans-serif; --lp-mono: "Noto Sans JP", sans-serif; }
/* lp-hero.css thu khoảng trắng chèn giữa cụm sau dấu phẩy Nhật; chữ Latin cần khoảng trắng thật giữa các từ */
html:not(:lang(ja)) .lp-hero__main, html:not(:lang(ja)) .lp-hero__sub { word-spacing: normal; }
/* Nhãn "(tiếng Nhật)" sau link tới trang chỉ có tiếng Nhật (DP4). Màu theo link chứa nó: --muted trên nền navy của header chỉ đạt tương phản thấp (G7 axe color-contrast đo 27/10) */
.lp-lang-tag { margin-left: .4em; font-size: .78em; font-weight: 500; color: inherit; white-space: nowrap; }

/* Bộ chuyển ngôn ngữ ở header & footer (AC5, AC13): link thuần, vùng chạm ≥ 24×24px, mỗi mục một dòng. */
/* Header: khung segmented pill (kiểu terran.jp/ja) hiện mã gọn JP / VI / EN mọi màn hình, giữ tên đầy đủ cho trình đọc màn hình. */
.lp-lang { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; white-space: nowrap; }
.lp-lang:not(.lp-lang--footer) { padding: 2px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); }
.lp-lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; min-width: 24px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1; color: var(--on-navy); text-decoration: none; white-space: nowrap; border-radius: 999px; transition: color .15s, background-color .15s; }
.lp-lang a:hover { color: var(--white); }
.lp-lang:not(.lp-lang--footer) a[aria-current="page"] { background: var(--blue); color: var(--white); }
.lp-lang__full, .lp-lang:not(.lp-lang--footer) .lp-lang-tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-lang__code { display: inline; }
/* Trang ja/en dùng Zen Kaku Gothic New thiếu glyph tiếng Việt ⇒ buộc Noto Sans JP cho nhãn lang="vi" ở footer để không rơi về phông hệ thống (G9 / fontRenderChecks). */
.lp-lang [lang="vi"] { font-family: "Noto Sans JP", sans-serif; }
.lp-lang--footer { margin: 0; flex-wrap: wrap; gap: 6px; }
.lp-lang--footer a { min-height: 28px; padding: 2px 4px; font-size: 13px; font-weight: 500; letter-spacing: 0; border-radius: 4px; }
.lp-lang--footer a[aria-current="page"] { color: var(--white); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lp-nav a { white-space: nowrap; }
.lp-nav__group > a { padding-right: 4px; }

@media (max-width: 1140px) and (min-width: 1041px), (max-width: 560px) {
  .lp-header__bar { gap: 10px; }
  .lp-doc-back { font-size: 12px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .lp-lang:not(.lp-lang--footer) a { padding: 4px 7px; font-size: 10.5px; }
  .lp-header:has(.lp-doc-back) { height: auto; }
  .lp-header__bar:has(.lp-doc-back) { flex-wrap: wrap; padding-block: 8px; row-gap: 4px; }
  .lp-header__bar:has(.lp-doc-back) > .lp-doc-back { margin-left: 0; order: 2; }
  .lp-header__bar:has(.lp-doc-back) > .lp-lang { margin-left: auto; }
}
@media (max-width: 380px) {
  .lp-header__bar { gap: 4px; padding-inline: 12px; }
  .lp-logo { max-width: 176px; min-width: 0; }
  .lp-logo svg, .lp-logo img { max-width: 100%; height: auto; }
  .lp-lang:not(.lp-lang--footer) a { padding: 4px 6px; font-size: 10.5px; }
}
@media (max-width: 1240px) and (min-width: 1041px) {
  .lp-header__bar { gap: 16px; }
  .lp-nav { gap: 14px; font-size: 13px; }
}
@media (max-width: 1040px) {
  .lp-header__bar > .lp-lang { margin-left: auto; }
  .lp-header__bar > .lp-burger { margin-left: 0; }
}

/* Hiệu ứng theo cuộn DUY NHẤT còn lại: xe roadmap chạy theo tiến độ cuộn (A3); ducna1 giữ để xem, bỏ nếu thấy tệ. Mọi hiệu ứng "hiện dần" khác đã chuyển sang kiểu thời gian ở lp-reveal-on-view.css.
   Luật (unit canh ở tests/lib/scroll-effect-css.integration.test.mjs): trạng thái gốc = đã hiện, trạng thái ẩn chỉ nằm trong @keyframes; animation lp-fx-* chỉ gắn trong @supports dưới đây;
   animation-timeline/animation-range khai SAU animation; ::before/::after cần luật reduce riêng (demo.css dùng * nên không bắt chúng). Hero KHÔNG có hiệu ứng cuộn. */
@supports (animation-timeline: view()) and (animation-range: entry 0% cover 50%) {
  .lp-route { view-timeline: --lp-route; }
  /* Điểm cuối = tâm trạm 05, tính bằng % bề rộng thanh (left của hộp định vị tuyệt đối), KHÔNG dùng đơn vị cqw: 5 cột cách 22 px ⇒ tâm 05 cách mép trái 0,8 × bề rộng + 40,6 px, trừ nửa xe (13 px) = 0,8 × bề rộng + 27,6 px.
     Phần trăm theo bố cục thật nên xe không thể chạy quá 05 dù bề rộng cửa sổ, thanh cuộn hay lần đổi cỡ nào (tests/headless/lp-scroll-timeline-checks.mjs canh: không bao giờ vượt tâm 05, lệch ≤ 1 px). */
  @keyframes lp-fx-drive { to { left: calc(80% + 27.6px); } }
  .lp-route::after { animation: lp-fx-drive auto linear both; animation-timeline: --lp-route; animation-range: contain 0% contain 100%; }
  @keyframes lp-fx-stop { from { border-color: var(--line-strong); background: var(--white); color: var(--muted); box-shadow: none; } }
  .lp-route__node { animation: lp-fx-stop auto steps(1, end) both; animation-timeline: --lp-route; animation-range: contain 0% contain 1%; }
  .lp-route__stop:nth-child(2) .lp-route__node { animation-range-end: contain 25%; }
  .lp-route__stop:nth-child(3) .lp-route__node { animation-range-end: contain 50%; }
  .lp-route__stop:nth-child(4) .lp-route__node { animation-range-end: contain 75%; }
  .lp-route__stop:nth-child(5) .lp-route__node { animation-range-end: contain 100%; }
  @media (max-width: 1040px) { .lp-route__node { animation: none; } }
}
@media print { *, ::before, ::after { animation: none !important; } }

/* A7 hover "tuyến AMR": gạch chân nét đứt chạy từ trái sang khi hover/focus-visible; ảnh thẻ teaser phóng nhẹ.
   Không theo cuộn nên không cần @supports. Giữ outline focus (lp-base.css:67) và kiểu nâng nút/thẻ hiện có.
   Gạch chân dùng transform: scaleX (không dùng `scale:`): luật chung coi `scale:` ngoài @keyframes là trạng thái ẩn của hiệu ứng cuộn (scroll-effect-css-rules.mjs), còn đây là nét trang trí chỉ hiện khi hover.
   Hover chỉ bật trong @media (hover: hover): màn cảm ứng bị "hover dính" sau khi chạm. Nút đang disabled (gửi form) không vẽ gạch chân.
   Link `.lp-features__link a` vốn có gạch chân liền của trình duyệt: khi hover/focus-visible làm mờ nó đi để nét đứt thay thế, không chồng hai nét.
   Cầu dao reduce ở demo.css dùng * nên không bắt ::after: luật reduce riêng ở cuối tệp. */
.lp .lp-btn, .lp-features__link a { position: relative; }
.lp .lp-btn::after, .lp-features__link a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
  transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease-soft);
}
.lp .lp-btn::after { left: 18px; right: 18px; bottom: 8px; }
.lp .lp-btn:not(:disabled):focus-visible::after, .lp-features__link a:focus-visible::after { transform: scaleX(1); }
.lp-features__link a { transition: text-decoration-color .35s var(--ease-soft); }
.lp-features__link a:focus-visible { text-decoration-color: transparent; }
:is(#solutions, #products) .lp-card img { transition: transform .35s var(--ease-soft); }
@media (hover: hover) {
  .lp .lp-btn:not(:disabled):hover::after, .lp-features__link a:hover::after { transform: scaleX(1); }
  .lp-features__link a:hover { text-decoration-color: transparent; }
  :is(#solutions, #products) .lp-card:hover img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .lp .lp-btn::after, .lp-features__link a::after { transition: none; } }

/* Hiện khi vào khung nhìn (kiểu nal.vn). reveal-on-view.js gắn `data-io="<variant>"` và bật/tắt class `is-in` bằng IntersectionObserver; animation ở đây chạy THEO THỜI GIAN, không theo cuộn.
   Luật (unit canh ở tests/lib/reveal-on-view.test.mjs): trạng thái ẩn (opacity 0, translate, clip-path, scale) chỉ nằm ở `[data-io]:not(.is-in)` BÊN TRONG @media screen + no-preference,
   nên tắt JS / "giảm chuyển động" / bản in ⇒ hiện đủ. Mọi animation `lp-fx-io-*` chạy 1 lần, thời lượng + độ trễ ≤ 2 s, viết số literal.
   Dùng `translate`/`scale` (không `transform`) để không đè hover nâng thẻ. `data-io-init` = đã trong khung nhìn lúc nạp: hiện sẵn, không chạy animation vào cảnh.
   Ngoại lệ có chủ ý: `lp-fx-io-solved*` (thẻ 課題 chuyển xanh "được giải") vẫn chạy cả với `data-io-init`. */
@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes lp-fx-io-rise { from { opacity: 0; translate: 0 24px; } }
  @keyframes lp-fx-io-scene { from { clip-path: inset(0 100% 0 0 round 12px); } to { clip-path: inset(0 0 0 0 round 12px); } }
  @keyframes lp-fx-io-grid { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes lp-fx-io-lines { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes lp-fx-io-line { from { scale: 1 0; } }
  @keyframes lp-fx-io-node { from { border-color: var(--line-strong); color: var(--muted); } }
  @keyframes lp-fx-io-solved { to { border-top-color: var(--green); } }
  @keyframes lp-fx-io-solved-icon { to { stroke: var(--green); } }

  [data-io="rise"]:not(.is-in) { opacity: 0; translate: 0 24px; }
  [data-io="rise"].is-in:not([data-io-init]) { animation: lp-fx-io-rise .7s var(--ease-out) 1 backwards; }
  [data-io="rise"]:nth-child(3n + 2).is-in:not([data-io-init]) { animation-delay: .08s; }
  [data-io="rise"]:nth-child(3n).is-in:not([data-io-init]) { animation-delay: .16s; }
  /* 課題: hiện lên rồi chuyển xanh "được giải" (viền trên thẻ + nét icon). Độ trễ 0,9 s = sau khi thẻ đã hiện xong. */
  #challenges .lp-card--challenge.is-in { animation: lp-fx-io-solved .6s var(--ease-out) .9s 1 both; }
  #challenges .lp-card--challenge.is-in:not([data-io-init]) { animation: lp-fx-io-rise .7s var(--ease-out) 1 backwards, lp-fx-io-solved .6s var(--ease-out) .9s 1 both; }
  #challenges .lp-card--challenge:nth-child(3n + 2).is-in:not([data-io-init]) { animation-delay: .08s, .98s; }
  #challenges .lp-card--challenge:nth-child(3n).is-in:not([data-io-init]) { animation-delay: .16s, 1.06s; }
  #challenges .lp-card--challenge.is-in .lp-card__icon { animation: lp-fx-io-solved-icon .6s var(--ease-out) .9s 1 both; }

  [data-io="scene"]:not(.is-in) { clip-path: inset(0 100% 0 0 round 12px); }
  [data-io="scene"].is-in:not([data-io-init]) { animation: lp-fx-io-scene .9s var(--ease-out) 1 backwards; }

  #floor[data-io="grid"]:not(.is-in) rect[fill^="url(#grid-"] { clip-path: inset(0 100% 0 0); }
  #floor[data-io="grid"].is-in:not([data-io-init]) rect[fill^="url(#grid-"] { animation: lp-fx-io-grid 1.1s var(--ease-out) 1 backwards; }

  [data-io="lines"]:not(.is-in) { clip-path: inset(0 0 100% 0); }
  [data-io="lines"].is-in:not([data-io-init]) { animation: lp-fx-io-lines .8s var(--ease-out) 1 backwards; }

  /* 導入の流れ: nét tô xanh (::after) chạy từ trên xuống đè lên nét đứt (::before) khi cả danh sách vào khung nhìn; nút bước nổi lên trên nét tô. */
  .lp-steps[data-io="line"]::after { content: ""; position: absolute; left: 23px; top: 26px; bottom: 26px; border-left: 3px solid var(--blue); transform-origin: top; }
  .lp-steps[data-io="line"]:not(.is-in)::after { scale: 1 0; }
  .lp-steps[data-io="line"].is-in:not([data-io-init])::after { animation: lp-fx-io-line 1.6s var(--ease-out) 1 backwards; }
  .lp-steps[data-io="line"] .lp-steps__node { z-index: 1; }
  .lp-steps__node[data-io="node"]:not(.is-in) { border-color: var(--line-strong); color: var(--muted); } /* cùng độ đặc hiệu với luật nút cuối (.lp-steps__item:last-child .lp-steps__node), đứng sau nên thắng */
  [data-io="node"].is-in:not([data-io-init]) { animation: lp-fx-io-node .5s var(--ease-out) 1 backwards; }

  /* Phần tử đang giữ focus (Tab tới liên kết trong thẻ còn ẩn) luôn hiện đủ. */
  [data-io]:focus-within { opacity: 1 !important; translate: none !important; clip-path: none !important; animation: none !important; }
}
@media screen and (prefers-reduced-motion: no-preference) and (max-width: 520px) { .lp-steps[data-io="line"]::after { left: 21px; } }
