/* ============================================================
   公開ページ（LP・ログイン・規約）
   白い 1 枚のページ。帯の色替えは最小限、罫線と余白で区切る。
   ============================================================ */
body.public { background: #fff; }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sp { display: none; }

/* ヘッダー */
.public-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line-200); }
.lp-header { display: flex; align-items: center; gap: 24px; height: 64px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-900); font-weight: 700; font-size: 17px; letter-spacing: .12em; }
.lp-brand:hover { text-decoration: none; }
.lp-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.lp-nav a:not(.btn) { color: var(--ink-700); font-size: 14px; }
.lp-nav a:not(.btn):hover { color: var(--ink-900); }

/* ヒーロー */
.lp-hero { padding: 56px 0 64px; }
.lp-hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.lp-eyebrow { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--accent-700); letter-spacing: .08em; margin: 0 0 12px; }
.lp-hero h1 { font-size: 40px; line-height: 56px; letter-spacing: .02em; margin-bottom: 20px; }
.lp-lead { font-size: 17px; line-height: 32px; color: var(--ink-700); letter-spacing: .04em; max-width: 34em; margin-bottom: 32px; }
.lp-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.lp-textlink { font-size: 15px; color: var(--accent-700); text-decoration: underline; text-underline-offset: 4px; }
/* 地図の枠: 細い線 1 本（飾りの罫や座標は付けない） */
.lp-sheet { margin: 0; }
.sheet-frame { position: relative; border: 1px solid var(--line-300); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.hero-map { height: 480px; background: #EEF1EF; }
.lp-sheet figcaption { font-size: 12px; line-height: 18px; color: var(--ink-600); margin-top: 14px; }
.hero-map .leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow-float) !important; }
.hero-map .leaflet-control-zoom a { width: 32px; height: 32px; line-height: 30px; color: var(--ink-700); }

/* セクション */
.lp-sec { padding: 96px 0; }
.lp-sec-tint { background: var(--bg); border-top: 1px solid var(--line-200); border-bottom: 1px solid var(--line-200); }
.lp-sec-head { max-width: 760px; margin-bottom: 48px; }
.lp-sec-head h2 { font-size: 28px; line-height: 40px; margin-bottom: 14px; }
.lp-sec-head p:not(.lp-eyebrow) { font-size: 16px; line-height: 30px; color: var(--ink-700); letter-spacing: .04em; margin: 0; }

/* 仕組み（読む段に合わせて右の画面が替わる） */
.story { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 72px; align-items: start; }
.story-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.story-steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px; background: var(--line-300); }
.story-step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; min-height: 34vh; padding: 0 0 24px; position: relative; }
.story-time { font-size: 14px; color: var(--ink-600); background: #fff; position: relative; z-index: 1; padding: 6px 0; text-align: center; height: 34px; border: 1px solid var(--line-300); border-radius: var(--r-ctl); transition: color var(--t2) linear, border-color var(--t2) linear, background var(--t2) linear; }
.story-step.on .story-time { color: #fff; background: var(--nav); border-color: var(--nav); }
.story-who { font-size: 13px; line-height: 20px; color: var(--accent-700); font-weight: 700; margin: 6px 0 6px; letter-spacing: .04em; }
.story-step h3 { font-size: 20px; line-height: 32px; margin-bottom: 10px; }
.story-step p { font-size: 15px; line-height: 28px; color: var(--ink-700); letter-spacing: .04em; max-width: 30em; }
.story-step:not(.on) h3, .story-step:not(.on) p { color: var(--ink-600); }
.story-img-sm { display: none; }
.story-stage { position: sticky; top: 104px; }
.story-screen { position: relative; height: min(76vh, 760px); aspect-ratio: 390 / 844; margin: 0 auto; border: 6px solid var(--nav); border-radius: 28px; background: #fff; overflow: hidden; box-shadow: var(--shadow-pop); }
.story-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: translateY(8px); transition: opacity var(--t4) var(--ease), transform var(--t4) var(--ease); }
.story-screen img.on { opacity: 1; transform: none; }

/* 立場別: 1 枚の地図をタブで切り替える */
.role-view { display: grid; gap: 16px; }
.role-tabs { justify-self: start; }
.role-tabs button { height: 40px; padding: 0 18px; font-size: 14px; }
.role-panel { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.role-map { position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--line-300); border-radius: var(--r-card); background: #fff; overflow: hidden; }
.role-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t3) var(--ease); }
.role-map img.on { opacity: 1; }
.role-text dl { display: none; margin: 0; grid-template-columns: 72px minmax(0, 1fr); gap: 12px 16px; font-size: 15px; line-height: 26px; }
.role-text dl.on { display: grid; animation: fade-in var(--t3) var(--ease); }
.role-text dt { color: var(--ink-600); font-weight: 700; }
.role-text dd { margin: 0; color: var(--ink-900); }
.cmp-title { font-size: 18px; line-height: 28px; margin: 56px 0 0; }
.cmp { width: 100%; border-collapse: collapse; margin-top: 16px; background: #fff; font-size: 14px; }
.cmp th, .cmp td { border-bottom: 1px solid var(--line-200); padding: 12px; text-align: center; }
.cmp thead th { font-size: 13px; color: var(--ink-600); font-weight: 400; background: var(--fill-50); }
.cmp tbody th { text-align: left; font-weight: 700; }
.cmp tbody th small { display: block; font-weight: 400; color: var(--ink-600); font-size: 12px; }
.cmp td { font-size: 16px; color: var(--ink-900); }

/* AI の説明 */
.ai-explain { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px; align-items: start; }
.ai-explain figure { margin: 0; }
.ai-explain figcaption { font-size: 14px; line-height: 24px; color: var(--ink-700); margin-top: 12px; }
.ai-explain figcaption b { display: block; color: var(--ink-900); font-size: 15px; }
.ai-arrow { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-600); font-size: 13px; line-height: 20px; text-align: center; }
.ai-ground { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-300); background: #EEF1EF url("https://cyberjapandata.gsi.go.jp/xyz/pale/15/29263/12484.png") center / cover; overflow: hidden; }
.ai-ground .err { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px dashed var(--cat-drone); background: rgba(44,110,128,.10); }
.ai-ground .pin { position: absolute; left: 50%; top: 50%; }

/* 記号の見本 */
.specimen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-300); }
.specimen li { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line-200); }
.specimen li > .pin, .specimen li > .pin-wrap { grid-row: span 2; position: relative; left: auto; top: auto; margin: 0 auto; }
.specimen li > .pin-wrap .pin { position: absolute; }
.specimen b { font-size: 15px; line-height: 22px; }
.specimen span:last-child { font-size: 13px; line-height: 20px; color: var(--ink-600); }

/* 導入の流れ */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.flow li { border-top: 1px solid var(--ink-900); padding-top: 20px; }
.flow .flow-n { font-size: 15px; font-weight: 700; color: var(--accent-700); }
.flow h3 { font-size: 18px; line-height: 28px; margin: 8px 0 10px; }
.flow p { font-size: 15px; line-height: 28px; color: var(--ink-700); letter-spacing: .04em; margin: 0; }

/* デモ */
.demo-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-300); }
.demo-rows li { border-bottom: 1px solid var(--line-300); }
.demo-rows form { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; align-items: center; padding: 20px 0; }
.demo-rows .btn { width: 100%; justify-content: center; }
.demo-rows b { font-size: 17px; line-height: 26px; }
.demo-rows p { margin: 2px 0 0; font-size: 14px; line-height: 24px; color: var(--ink-700); }

/* フッター */
.lp-footer { border-top: 1px solid var(--line-200); padding: 40px 0; background: #fff; }
.lp-footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: start; }
.lp-footer-grid > p { grid-column: 1 / -1; }
.lp-footer-links { display: flex; gap: 20px; font-size: 13px; }
.lp-footer-links a { color: var(--ink-700); }


/* ── 認証（ログイン・登録） ─────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-wrap.single { grid-template-columns: 1fr; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 24px; line-height: 36px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-600); font-size: 14px; margin-bottom: 24px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-top: 20px; flex-wrap: wrap; }
.auth-side { background: var(--bg); border-left: 1px solid var(--line-200); padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { font-size: 18px; line-height: 28px; margin-bottom: 6px; }
.auth-side > p { color: var(--ink-700); font-size: 14px; line-height: 24px; margin-bottom: 20px; max-width: 34em; }
.auth-side .demo-rows { max-width: 520px; }
.auth-side .demo-rows form { padding: 16px 0; gap: 16px; }
.auth-side .demo-rows b { font-size: 15px; }
.auth-side .demo-rows p { font-size: 13px; line-height: 20px; }
.auth-wide { max-width: 600px; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px; font-size: 15px; line-height: 28px; }
.legal h1 { font-size: 26px; margin-bottom: 20px; }
.legal h2 { font-size: 17px; margin: 28px 0 8px; }

/* ── レスポンシブ ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .story { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step { min-height: 0; padding-bottom: 48px; }
  .story-step:not(.on) h3, .story-step:not(.on) p { color: inherit; }
  .story-img-sm { display: block; width: 100%; max-width: 360px; border: 1px solid var(--line-200); border-radius: var(--r-card); margin-top: 8px; box-shadow: var(--shadow-float); }
  .role-panel { grid-template-columns: 1fr; gap: 20px; }
  .specimen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-explain { grid-template-columns: 1fr; }
  .ai-arrow { flex-direction: row; }
  .ai-arrow .icon { transform: rotate(90deg); }
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { border-left: 0; border-top: 1px solid var(--line-200); padding: 40px 16px; }
  .lp-nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 16px; }
  .sp { display: inline; }
  .lp-hero { padding: 40px 0 72px; }
  .lp-hero h1 { font-size: 28px; line-height: 40px; }
  .lp-lead { font-size: 16px; line-height: 30px; }
  .hero-map { height: 360px; }
  .lp-sec { padding: 72px 0; }
  .lp-sec-head { margin-bottom: 32px; }
  .lp-sec-head h2 { font-size: 22px; line-height: 32px; }
  .story-step { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
  .story-steps::before { left: 23px; }
  .specimen, .flow { grid-template-columns: 1fr; }
  .role-tabs { justify-self: stretch; overflow-x: auto; }
  .role-tabs button { flex: 1 0 auto; padding: 0 12px; }
  .demo-rows form { grid-template-columns: 1fr; gap: 12px; }
  .cmp th, .cmp td { padding: 10px 6px; font-size: 13px; }
  .lp-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .story-screen img { transition: none; }
}
/* ログイン: 左右の見出しの高さをそろえる。スマホはデモの入口を先に */
.auth-main { align-items: flex-start; padding-top: 96px; }
.auth-side { justify-content: flex-start; padding-top: 96px; }
@media (max-width: 900px) {
  .auth-main { padding-top: 32px; }
  .auth-side { order: -1; padding-top: 32px; border-top: 0; border-bottom: 1px solid var(--line-200); }
}
/* 制作クレジット（prod. by …）: ロゴの下に小さく、本文の邪魔をしない */
.lp-brand-name { display: inline-flex; flex-direction: column; line-height: 1.1; }
.lp-brand .credit { font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--ink-600); margin-top: 3px; text-transform: none; }
.credit-line { font-size: 12px; letter-spacing: .06em; color: var(--ink-600); margin-top: 6px; }
.lp-footer .copy { margin-left: 16px; }

/* ── 問い合わせ（LP の締めと、フォームのボット対策） ── */
.lp-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.lp-contact .lp-sec-head { margin-bottom: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-card .field input:not([type=checkbox]), .auth-card .field select { max-width: none; }
