/*
 * llocana.jp のトップ（LP）の見た目。index.html だけが読む。
 * 提案：llocana_app docs/proposal/flow-13-lp.html（2026-11-07・改訂 2026-11-10 は 0 章：アプリを前に出す）。
 *
 * 色は llocana_app のデザインシステム（seed #1A8589）の値を写したもの。LP は独立したページで
 * 変数のファイルを読めないため、値を書き写している。アプリの色を変えたら、ここも合わせる。
 *   出どころ：design-system/generated/signature.css・bridge.css（AA）、Core の semantic.css
 *
 * 余白（2026-11-10 に直したところ）は FIG Core の決まりに乗せている：
 *   ・component-contract 第 3 条：余白は 8 の倍数を基本に、4 を補助に使う
 *   ・primitives.css のアイソレーション：ブランド要素のまわりは 上・左・右 0.3A（A＝要素の高さ）
 *   ・legibility-guideline ①：文字のまわりに文字の高さの 1.0 倍以上の空き
 *   直していない古い値（14px・18px など）はまだ残っている。
 *
 * 旧 LP の style.css・vars.css は読まない（外から直接張られている恐れがあるので、ファイルは残している）。
 */

:root {
  color-scheme: light;

  /* ブランド（signature.css・bridge.css AA） */
  --brand: #1A8589;           /* signature-base */
  --brand-200: #74D2D6;       /* signature-200 */
  --brand-300: #59B8BB;       /* signature-300 */
  --brand-dark: #106C6F;      /* signature-dark（白地で AA） */
  --brand-tint: #F4F6F6;      /* signature-tint */
  --brand-shadow: #1A494B;    /* signature-shadow */
  --text-brand: #006A6E;      /* bridge：文字に使うブランド色（白地 6.39:1） */
  --accent-border: #CCD9DA;   /* bridge：ブランド色の枠線 */

  /* 文字・面・線（Core semantic） */
  --text-primary: #1E293B;
  --text-secondary: #334155;
  --text-tertiary: #475569;
  --text-muted: #64748B;
  --surface: #FFFFFF;
  --surface-container: #F1F5F9;
  --surface-container-low: #F8FAFC;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text-disabled: #94A3B8;   /* 停留所の線（実線・点線）の灰。カタログ「D. 停留所の印」の disabled */

  /* 広告（ポスター・動画）の色。絵のための色で、状態の色（エラー・注意など）や押せる場所の色には使わない。
     出どころ：llocana_app docs/ad-assets/poster-b3.svg */
  --ad-mint: #E2EFEC;         /* ポスターの地。最初の画面の背景（絵の腕がこの色に溶ける） */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  /* 書体はアプリと同じ Noto Sans JP（index.html で読み込む）。字間 .04em は A1ゴシックの
     ゆったりした並びに寄せるための LP だけの味付け（アプリの本文は 0）。llocana_app docs/v2-font.md */
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul { margin: 0; }
/* 見出しは palt（かな・約物を詰める）＋字間 .04em。太さは 700 まで（800 は A1 B より重く見える） */
h2, h3 { font-feature-settings: "palt"; letter-spacing: .04em; }
/* 見た目からは隠し、読み上げ・検索には残す */
.lp-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; border-radius: 6px; }

.lp-in { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* ── ヘッダー ── */
.lp-head { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.lp-head img { height: 26px; width: auto; display: block; }
/* ナビ：スマホは出さない、PC は全部（ヘッダーの「ブラウザ版」は 2026-11-17 に削除＝改修前のブラウザ版へ人を呼び込まないため） */
.lp-head nav { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--text-secondary); }
.lp-head nav a { display: none; }
.lp-head nav a:hover { color: var(--text-brand); }

/* ── 最初の画面 ── */
/* スマホ：上 40px・左 32px（見出し 32px の 1.0 倍以上の空き）。左は ページの端 20px＋文字の塊 12px */
.lp-hero { background: var(--ad-mint); padding: 40px 0 0; }
.lp-hero-grid { display: grid; gap: 16px; }
.lp-hero-grid > div:first-child { padding-left: 12px; }
/* A1ゴシック B の字形を図形にした文字（scripts/lp-heading-svg.py）。1 行が 1 つの svg で、高さ 1em＝font-size */
.lp-svgtext-line { display: block; height: 1em; width: auto; max-width: 100%; }
.lp-svgtext-line .ink { fill: var(--text-primary); }
.lp-svgtext-line .brand { fill: var(--text-brand); }
/* 前置き（見出しの上・1 行）。見出しの「乗」「い」は字の左の空きが多いので、目で見てそろうよう右へ 0.15em 寄せる
   （字の形に合わせる補正。余白の刻みの外の値） */
.lp-eyebrow { font-size: 16px; line-height: 1; margin-bottom: 16px; }
.lp-eyebrow .lp-svgtext-line { margin-left: .15em; }
/* 最初の見出し。ページで一番大きい文字（アプリの枠の「あと3分」より大きく）。スマホは 2 行 */
.lp-h1 { display: flex; flex-direction: column; align-items: flex-start; row-gap: .4em; padding-block: .2em; font-size: 32px; line-height: 1; }
/* 最初の画面の絵（scripts/lp-ad-assets.py がポスターから切り出す） */
.lp-hero-art { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.lp-hero .lead { margin-top: 8px; color: var(--text-secondary); }
/* スマホだけ、説明文の下にストアのバッジ（端末に合う 1 つ）。PC は出さない */
.lp-badges.lp-hero-store { margin-top: 24px; padding-block: 0; }

/* 絵＋ボトムシート（串刺しリスト）を、灰色の 1 つの枠（＝アプリの 1 画面）に収める。
   スマホ：上に地図、下にボトムシート／PC：地図を枠いっぱいに敷き、リストを枠の中の左に浮かせる */
.lp-visual { position: relative; display: flex; flex-direction: column; background: var(--brand-tint); border: 1px solid var(--border-strong); border-radius: 20px; overflow: hidden; }
/* スマホ：絵（viewBox 幅 720）を 1.2 倍の幅にして左へずらす */
.lp-art { width: 120%; margin-left: -20%; aspect-ratio: 720 / 260; height: auto; display: block; }
.art-block { fill: var(--surface-container); }
.art-road { fill: none; stroke: var(--surface); stroke-width: 14; stroke-linecap: round; }
/* 停留所の印・線・バスは llocana_app のカタログ Stop Timeline Row「D. 停留所の印」（2026-11-11）と同じ形にする。
   絵はおよそ 0.5 倍で表示されるので、値は画面上の大きさの 2 倍（印 16／12／8px・線 3px・点 直径 3px を 10px おき・バス 24px）。
   状態は形で分け、色は添えるだけ：次に着く＝teal の塗りに白い穴 ＞ これから＝白抜きの輪 ＞ 通過済み＝灰の小さい点 */
.art-route { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.art-route.passed { stroke: var(--text-disabled); stroke-dasharray: 0 20; }   /* 通った区間：丸い点の点線 */
.art-stop { fill: var(--surface); stroke: var(--brand); stroke-width: 4; }     /* これから：白抜きの輪 */
.art-stop.next { stroke-width: 10; }                                            /* 次に着く：teal の塗り＋白い穴 */
.art-stop.passed { fill: var(--text-muted); stroke: none; }                     /* 通過済み：灰の点 */
/* バスは丸い背景を付けず、バスの形だけ。白い縁取りで地図と線から浮かせる（線の上＝停留所の間を走っている） */
.art-bus { color: var(--brand); stroke: var(--surface); stroke-width: 4; stroke-linejoin: round; paint-order: stroke; }

.lp-sheet {
  position: relative; margin: -28px 10px 0; padding: 8px 16px 14px;
  background: var(--surface); border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 12px rgba(26, 73, 75, .12);
}
.lp-sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 12px; }
.lp-sheet .sh-h { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.lp-sheet .t1 { width: 40%; height: 9px; border-radius: 5px; background: var(--brand-200); }
.lp-sheet .t2 { width: 64%; height: 6px; border-radius: 3px; background: var(--border-strong); }
.sh-list { list-style: none; padding: 0; }
.sh-list li { position: relative; display: flex; align-items: center; gap: 10px; height: 30px; padding-left: 24px; }
/* 線は印の後ろ。印の中心（15px）から次の行の印の中心まで（行の高さ 30px）通す */
/* 左の 24px はバスの列（カタログの tl-bus と同じく、バスがいなくても幅を取る）。印の列は 24〜40px（中心 32px） */
.sh-list li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; left: 31px; top: 15px; height: 30px; border-left: 2px solid var(--brand); }
/* 通過済みの行の下線は丸い点の点線（直径 3px を 10px おき）。SVG の円で型抜きする（カタログと同じ描き方） */
.sh-list li.passed:not(:last-child)::after {
  left: 30px; width: 4px; border-left: 0; background: var(--text-disabled);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='10'%3E%3Ccircle cx='2' cy='5' r='1.5'/%3E%3C/svg%3E") center 5px / 4px 10px repeat-y;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='10'%3E%3Ccircle cx='2' cy='5' r='1.5'/%3E%3C/svg%3E") center 5px / 4px 10px repeat-y;
}
.sh-list i { display: block; flex: none; }
.sh-list .nm { flex-shrink: 1; min-width: 0; }   /* 幅が狭いときは停留所名の帯が縮む（時刻の帯を枠の外へ押し出さない） */
/* 枠を小さく見せるため、リストは 3 行だけ（4 行目から下は出さない。3 行目から下へ線を伸ばさない） */
.sh-list li:nth-child(n+4) { display: none; }
.sh-list li:nth-child(3)::after { content: none; }
/* 印は 16px の枠の中央に描く（3 状態とも中心をそろえ、線がまっすぐ通るように） */
.sh-list .mk { position: relative; z-index: 1; width: 16px; height: 16px; display: grid; place-items: center; }
.sh-list .mk::before { content: ""; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.sh-list .next .mk::before { width: 16px; height: 16px; border-width: 5px; }
.sh-list .passed .mk::before { width: 8px; height: 8px; border: 0; background: var(--text-muted); }
/* バスは行と行の境目（2 つの印の中点）に置く。「次に着く」停留所へ向かって走っている */
.sh-list .sh-bus { position: absolute; left: 2px; top: -10px; width: 20px; height: 20px; color: var(--brand); }
.sh-list .no { width: 10px; height: 6px; border-radius: 3px; background: var(--border-strong); }
.sh-list .nm { height: 7px; border-radius: 4px; background: var(--text-tertiary); opacity: .55; }
.sh-list .tm { margin-left: auto; width: 28px; height: 6px; border-radius: 3px; background: var(--border-strong); }
.sh-list .passed .nm, .sh-list .passed .no, .sh-list .passed .tm { opacity: .35; }

/* ── アプリの枠（最初の画面のすぐ下・1 枚） ──
   スマホ：文字 → 図 → ストア／PC：左に文字とストア、右に図。
   内側はコピー（支給 SVG）のアイソレーション：高さ A＝スマホ約 85px → 0.3A を 8 の倍数に切り上げて 32px */
.lp-gates { padding-block: 16px 8px; }
.lp-gate { display: grid; grid-template-areas: "txt" "vis" "store"; gap: 24px; padding: 32px; border: 1px solid var(--brand-300); border-radius: 16px; background: var(--surface);
           box-shadow: 0 1px 2px rgba(26, 73, 75, .10), 0 10px 24px rgba(26, 73, 75, .08); }
.lp-gate-txt { grid-area: txt; display: flex; flex-direction: column; gap: 8px; }
.lp-gate .lp-visual { grid-area: vis; }
.lp-store { grid-area: store; display: flex; flex-direction: column; gap: 8px; }
.lp-copy { line-height: 0; }
.lp-copy img { display: block; width: 100%; max-width: 260px; height: auto; }
.lp-gate ul { margin-top: 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.lp-gate li { display: flex; gap: 8px; align-items: flex-start; }
.lp-gate li .ic { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 3px; }

/* アプリの枠：運行状況の画面を抽象化した図（区間 → 「あと◯分」のカードが並ぶ）。分数だけは文字で見せる */
.lp-visual.is-app { position: relative; height: 236px; }
.ap-screen { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: min(280px, 84%);
             display: flex; flex-direction: column; gap: 8px; }
.ap-screen .l1 { display: block; height: 7px; border-radius: 4px; background: var(--text-tertiary); opacity: .55; }
.ap-screen .l2 { display: block; height: 6px; border-radius: 3px; background: var(--border-strong); }
.ap-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 4px; }
.ap-head .l1 { width: 26%; height: 10px; border-radius: 5px; opacity: .8; }
.ap-head .l2 { width: 22%; }
.ap-arrow { width: 10px; height: 2px; border-radius: 1px; background: var(--text-muted); }
.ap-card { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px 12px; border-radius: 14px; background: var(--surface);
           box-shadow: 0 1px 3px rgba(26, 73, 75, .10); }
.ap-row { display: flex; align-items: flex-start; justify-content: space-between; }
/* 「あと◯分」は DS カタログの Time Block（llocana_app docs/design-system/shared/catalog-components.css の
   .tb-main / .tb-rel .num / .tb-rel .unit / .tb-rel.is-normal）と同じ値。800 を出すため Noto は 400..800 を読む */
.ap-min { display: flex; align-items: baseline; gap: 5px; margin: 0; line-height: 1; letter-spacing: 0; color: var(--text-muted); font-size: 15px; font-weight: 700; }
.ap-min b { font-size: 36px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.ap-chip { width: 26%; height: 16px; margin-top: 2px; border-radius: 8px; background: var(--brand-tint); border: 1px solid var(--accent-border); }
.ap-sched { width: 30%; }
.ap-route { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; }
.ap-route > .l1 { width: 50%; }
.ap-route > .l2 { width: 24%; }
.ap-line { display: flex; align-items: center; gap: 6px; }
.ap-line .l1 { width: 22%; }
.ap-badge { width: 22px; height: 12px; border-radius: 4px; background: var(--text-primary); opacity: .85; }

/* ストアの公式バッジ。中身は変えない。高さをそろえ（40px 以上）、まわりに高さの 1/4 以上の余白を空ける */
.lp-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-block: 12px; }
.lp-badge { display: block; line-height: 0; border-radius: 8px; }
.lp-badge img { height: 48px; width: auto; display: block; }
.is-ios .only-android, .is-android .only-ios { display: none; }
.show-all .only-android, .show-all .only-ios { display: block; }

.lp-qr { display: none; gap: 12px; align-items: center; font-size: 12px; color: var(--text-secondary); }
.lp-qr img { width: 88px; height: 88px; flex: none; border: 1px solid var(--border); border-radius: 6px; }
.lp-note { font-size: 11.5px; color: var(--text-muted); }
.lp-note button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
html:not(.is-ios):not(.is-android) .os-hint { display: none; }

.lp-btns { display: grid; gap: 8px; }
.lp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-align: center; background: var(--surface); }
.lp-btn .ic { width: 18px; height: 18px; flex: none; }
.lp-btn span { word-break: keep-all; }   /* 1 文字だけ次の行に落とさない。改行は「、」の後ろ（<wbr>）だけ */
.lp-btn.outline { border: 1.5px solid var(--accent-border); color: var(--text-brand); }
.lp-btn.line { border: 1.5px solid var(--border); color: var(--text-primary); }
.lp-btn:hover { background: var(--brand-tint); }

/* ── できること・使い方・おしらせ ──
   3 つとも同じ「見えない枠」に乗せる：内側 24px・アイコン／番号の列 48px・列と文字の間 16px。
   アイコン・番号・リンクのアイコンが縦の 1 本の線に、文字の書き出しがもう 1 本の線にそろう */
.lp-sec { padding-block: 32px 8px; scroll-margin-top: 12px; }
.lp-sec h2 { margin-bottom: 4px; font-size: 20px; font-weight: 700; }
.lp-sec .sub { margin-bottom: 16px; color: var(--text-secondary); font-size: 13px; }
/* 「4 つのステップで…」は先頭の数字「4」の左の空きが小さく、見出し「アプリの使い方」の「ア」より 1.25〜1.5px 左に出て見える。
   この行だけ右へ .1em（約 1.3px）寄せて字面をそろえる（字の形に合わせる補正。余白の刻みの外の値）。
   ほかの見出しと説明文（「ブラウザで使う」など、先頭がかな）は、測ってずれが 0.25px 以下なので触らない */
#howto .sub { padding-left: .1em; }

/* できること：アイコン 48px に対して内側 24px（アイコンの半分以上の空き） */
.lp-feats { display: grid; gap: 16px; }
.lp-feat { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 24px; border-radius: 16px; background: var(--surface-container-low); }
.lp-feat-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); border: 1px solid var(--accent-border); color: var(--brand); display: grid; place-items: center; }
.lp-feat-ic .ic { width: 28px; height: 28px; }
.lp-feat h3 { font-size: 15px; font-weight: 700; }
.lp-feat p { margin-top: 2px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

/* 使い方：番号はアイコンの列の真ん中（スマホ）・左端（PC） */
.lp-steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: st; }
.lp-steps li { counter-increment: st; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding-inline: 24px; }
.lp-steps li::before { content: counter(st); justify-self: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-dark); color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: 0; }
.lp-steps b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.lp-steps b .ic { width: 18px; height: 18px; color: var(--brand); flex: none; }
.lp-steps span { font-size: 12.5px; color: var(--text-secondary); }
.lp-howto-note { margin-top: 16px; padding-inline: 24px; font-size: 12.5px; color: var(--text-secondary); }

.lp-links { display: grid; gap: 16px; }
/* 対応しているバス会社（AdSense 審査対策の文章 #10・#11）。説明は本文の大きさで読ませる */
.lp-area-lead { max-width: 46em; margin-bottom: 16px; color: var(--text-secondary); }   /* PC で 1 行が長くなりすぎないように */
/* 県と会社の表（案 A）。うすい灰色の面 1 枚に県の行を線で区切って並べる。県ごとのアイコンは付けない。
   県名の書き出しは「できること」のアイコン・「使い方」の番号と同じ縦の線（内側 24px）。
   スマホ：「県名｜会社名」の 2 列／PC：県名の下に会社名を置いた行を 2 列に流す。
   線は各行の上に引き、面の上端に来る線は overflow で隠す（PC で列の先頭の行にも線が出ないように） */
.lp-area { margin: 0; padding: 0 24px; border-radius: 16px; background: var(--surface-container-low); overflow: hidden; }
.lp-area-row { display: grid; grid-template-columns: 4.5em 1fr; gap: 16px; padding-block: 16px; border-top: 1px solid var(--border); margin-top: -1px; }
.lp-area-row dt { font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--text-primary); white-space: nowrap; }
.lp-area-row dd { margin: 0; font-size: 13px; line-height: 1.8; color: var(--text-secondary); }
.lp-area-row .co { white-space: nowrap; }   /* 会社名の途中で折らない。折り返すのは「・」の後ろ（<wbr>）だけ */
/* 表の続きとして読ませる文字のリンク（掲載バス会社一覧） */
.lp-text-link { display: inline-flex; align-items: center; gap: 2px; margin: 16px 0 0 24px; color: var(--text-brand); font-weight: 600; font-size: 14px;
                text-decoration: underline; text-underline-offset: 3px; }
.lp-text-link .ic { width: 18px; height: 18px; flex: none; }
.lp-link { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; }
.lp-link > span { flex: 1; min-width: 0; word-break: keep-all; }   /* 1 文字だけ次の行に落とさない。折り返すのは <wbr> の位置だけ */
.lp-link .ic { width: 20px; height: 20px; color: var(--text-muted); flex: none; }
.lp-link .ic.lead { width: 22px; height: 22px; color: var(--brand); }
.lp-link:hover { border-color: var(--accent-border); background: var(--brand-tint); }

/* ── ブラウザで使う（フッターの上・最小限） ──
   スマホ：見出し → 絵 → ボタン／PC：左に見出しとボタン、右に絵 */
/* 列は minmax(0, 1fr)：中身（折り返せない文言など）に押し広げられて枠を突き抜けないように */
.lp-web-box { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "vis" "act"; gap: 16px; padding: 24px; border-radius: 16px; background: var(--surface-container-low); border: 1px solid var(--border); }
.lp-web-head { grid-area: head; }
.lp-web-head .sub { margin-bottom: 0; }
.lp-web-box .lp-visual { grid-area: vis; }
.lp-web-txt { grid-area: act; display: flex; flex-direction: column; gap: 8px; }

/* ── フッター ── */
.lp-foot { margin-top: 32px; padding: 20px 0 28px; background: var(--surface-container-low); font-size: 12px; color: var(--text-secondary); }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.lp-foot nav a { text-decoration: underline; text-underline-offset: 3px; }
.lp-foot .tm { margin-top: 10px; font-size: 10.5px; color: var(--text-muted); line-height: 1.6; }

/* ── 幅が広いとき（PC） ── */
@media (min-width: 720px) {
  .lp-in { padding-inline: 40px; }
  .lp-head nav a { display: inline; }
  .lp-hero { padding: 36px 0 0; }
  .lp-hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }   /* 左に文字、右に絵 */
  .lp-hero-grid > div:first-child { padding-left: 0; }
  .lp-eyebrow { font-size: 18px; }
  .lp-h1 { font-size: 44px; }
  .lp-hero-art { max-width: 460px; margin: 0 0 0 auto; }
  .lp-hero .lead { font-size: 16px; }
  .lp-badges.lp-hero-store { display: none; }   /* PC はアプリの枠のバッジと QR が最初の画面に入る */

  /* アプリの枠：左に文字とストア、右に図。内側はコピーの高さ A 約 99px → 0.3A を切り上げて 40px */
  .lp-gate { grid-template-columns: 1fr 1fr; grid-template-areas: "txt vis" "store vis"; gap: 16px 40px; align-items: start; padding: 40px; }
  .lp-copy img { max-width: 300px; }
  .lp-visual.is-app { height: 100%; min-height: 300px; }
  .is-pc .lp-qr { display: flex; }

  /* 地図とリストの絵（ブラウザで使う）：地図を枠いっぱいに敷き、リストを左に浮かせる */
  .lp-visual.is-web { height: auto; min-height: 240px; }
  .lp-art { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
  .lp-sheet { position: absolute; top: 12px; left: 12px; width: 44%; margin: 0; border-radius: 16px;
              box-shadow: 0 2px 14px rgba(26, 73, 75, .14); padding-top: 16px; }
  .lp-sheet .grab { display: none; }   /* PC の左の枠は引き出さないので、つまみは出さない */

  .lp-sec h2 { font-size: 24px; }
  .lp-feats { grid-template-columns: repeat(4, 1fr); }
  /* 県と会社の表：PC は行を 2 列に流す（県が 8 を超えたら見せ方を変える。landing/README.md のしきい値） */
  .lp-area { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .lp-area-row { grid-template-columns: 1fr; gap: 4px; }
  .lp-feat { grid-template-columns: 1fr; align-items: start; align-content: start; }
  .lp-steps { grid-template-columns: repeat(4, 1fr); }
  .lp-steps li { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
  .lp-steps li::before { justify-self: start; }
  .lp-links { grid-template-columns: 1fr 1fr; }

  .lp-web-box { gap: 16px 40px; padding: 40px; }
  /* 検索の 2 つのボタンは、文言が 1 行に収まる幅（1 つ 200px）が取れるときだけ横に並べる。
     取れないときは縦に積む（並べたまま 2 行に折り返させない） */
  .lp-web .lp-btns { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .lp-web .lp-btn.line { grid-column: 1 / -1; }
}

/* ブラウザで使う：左に文字とボタン・右に絵の 2 列は、左の列にボタンの文言が 1 行で収まる幅から（1024px 以上）。
   それより狭い幅（タブレットなど）は、スマホと同じ縦の並び（見出し → 絵 → ボタン） */
@media (min-width: 1024px) {
  .lp-web-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "head vis" "act vis"; }
}
