/* ======================================================================
 * Home page styles — 名古屋地下鉄リアルタイム直感マップ
 * Light / Dark テーマ。Hero（キャンバス）+ コンテンツセクション + フッター。
 * ====================================================================== */

:root {
  /* Light (default) */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-sub: #f3f5f8;
  --fg: #1a1a1a;
  --fg-muted: #5c5c5c;
  --fg-faint: #8a8a8a;
  --border: #dfe3e8;
  --border-strong: #c9cfd6;
  --accent: #22c55e;
  --accent-ink: #ffffff;

  /* Line colors (公式) */
  --line-higashiyama: #F39700;
  --line-meijo: #CD7C0C;
  --line-meiko: #CD7C0C;
  --line-sakuradori: #B5347C;
  --line-tsurumai: #009BBF;
  --line-kamiiida: #E5468B;

  --container: 1200px;
  --header-h: 64px;
}

body.dark {
  --bg: #0a0b0d;
  --bg-elev: #15171b;
  --bg-sub: #101216;
  --fg: #e8e8e6;
  --fg-muted: #a8a8a6;
  --fg-faint: #6a6a68;
  --border: #24272d;
  --border-strong: #353941;
  --accent: #4ade80;
  --accent-ink: #0a0b0d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Helvetica Neue", Helvetica, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Yu Gothic", "Yu Gothic UI", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex; align-items: center;
  padding: 0 28px;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.site-header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand-mark {
  display: flex; align-items: center; gap: 12px;
}
.brand-logo {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  font-weight: 800; font-size: 13px;
  letter-spacing: -0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .ja { font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.brand-text .en { font-size: 10px; color: var(--fg-muted); letter-spacing: 0.18em; text-transform: uppercase; }

.site-nav {
  display: flex; gap: 6px; align-items: center;
}
.site-nav a {
  font-size: 13px; color: var(--fg-muted);
  padding: 8px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--fg); background: color-mix(in oklab, var(--fg) 6%, transparent); }
.site-nav .cta {
  margin-left: 6px;
  background: var(--fg);
  color: var(--bg);
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.site-nav .cta:hover { background: var(--fg); opacity: .9; }
.lang-select {
  margin-left: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  background: var(--bg-sub);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  cursor: pointer;
  max-width: 9.5em;
}
.lang-select:hover { color: var(--fg); }
.nav-burger { display: none; }

@media (max-width: 760px) {
  .site-header { padding: 0 18px; }
  .site-header-inner { gap: 12px; }
  .site-nav a:not(.cta) { display: none; }
  /* CTAは絶対に折り返さない（縦書きに潰れるのを防ぐ） */
  .site-nav .cta { white-space: nowrap; flex-shrink: 0; margin-left: 0; }
  .lang-select { margin-left: 4px; max-width: 8em; flex-shrink: 0; }
}

@media (max-width: 620px) {
  /* ロゴのみ表示にしてCTA・言語切替の幅を確保 */
  .brand-text { display: none; }
  .site-nav .cta { padding: 8px 12px; font-size: 12px; }
  .lang-select { font-size: 12px; padding: 6px; max-width: 7em; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  height: calc(70vh + var(--header-h));
  min-height: 560px;
  padding-top: var(--header-h);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-canvas {
  position: absolute;
  inset: var(--header-h) 0 0 0;
  width: 100%;
}
.hero-canvas-frame {
  position: absolute;
  inset: var(--header-h) 0 0 0;
  width: 100%;
  height: calc(100% - var(--header-h));
  border: 0;
  display: block;
}
.hero-canvas .map-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-canvas .route-map {
  display: block;
  width: 100%;
  height: 100%;
}

/* RouteMap 内蔵の zoom コントロール（ホームではホバー時のみ薄く出す） */
.hero-canvas .zoom-controls {
  position: absolute;
  right: 24px; bottom: 80px;
  z-index: 5;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transition: opacity .25s;
}
.hero-canvas:hover .zoom-controls { opacity: 1; }
.hero-canvas .zoom-controls button {
  width: 36px; height: 36px;
  background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 16px; font-family: inherit;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  backdrop-filter: blur(12px);
}
.hero-canvas .zoom-controls button:hover { border-color: var(--border-strong); }
.hero-canvas .zoom-level {
  position: absolute;
  right: 24px; bottom: 200px;
  z-index: 5;
  background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 4px 10px;
  font-size: 11px; color: var(--fg-muted);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  text-align: center; min-width: 48px;
  opacity: 0; transition: opacity .25s;
  font-family: "SF Mono", "Menlo", monospace;
}
.hero-canvas:hover .zoom-level { opacity: 1; }
.hero-canvas .zoom-hint { display: none; } /* ヒントはホームでは表示しない */

/* Clock (top-left of hero canvas) */
.hero-clock {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 5;
  background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px 12px;
  min-width: 248px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 32px -12px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
}
body.dark .hero-clock {
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 16px 48px -12px rgba(0,0,0,0.6);
}
.hero-clock-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--fg-faint);
  text-transform: uppercase;
}
.hero-clock-time {
  display: flex; align-items: baseline; gap: 1px;
  font-family: "SF Mono", "Menlo", "Consolas", "Roboto Mono", monospace;
  font-size: 44px; font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.hero-clock-sep { color: var(--fg-faint); }
.hero-clock-sec { font-size: 22px; color: var(--fg-muted); margin-left: 4px; }
.hero-clock-date {
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11px; color: var(--fg-muted);
  margin-top: 4px; letter-spacing: 0.05em;
}
.hero-clock-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--fg-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.hero-clock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: pulse-dot 1.8s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* Actions (top-right of hero canvas) */
.hero-actions {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 5;
  display: flex; gap: 8px;
}
.hero-icon-btn {
  background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  backdrop-filter: blur(12px);
  transition: background .15s, border-color .15s;
}
.hero-icon-btn:hover { border-color: var(--border-strong); }
.hero-icon-btn.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Settings popover */
.hero-settings {
  position: absolute;
  top: 72px; right: 24px;
  z-index: 6;
  width: 260px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 12px 40px -8px rgba(0,0,0,0.18);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px;
}
body.dark .hero-settings { box-shadow: 0 4px 24px rgba(0,0,0,0.5), 0 16px 60px -8px rgba(0,0,0,0.7); }
.hero-settings h3 {
  margin: 0; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 700;
}
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-row label { color: var(--fg-muted); }
.hero-row select, .hero-row input[type="range"] {
  background: var(--bg-sub);
  border: 1px solid var(--border);
  color: var(--fg);
  border-radius: 6px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 12px;
  width: 110px;
}
.hero-toggle {
  width: 38px; height: 22px; border-radius: 11px; border: none;
  background: var(--border-strong); cursor: pointer; position: relative;
  transition: background .2s;
}
.hero-toggle.on { background: var(--accent); }
.hero-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
.hero-toggle.on::after { transform: translateX(16px); }
.hero-note {
  font-size: 10px; color: var(--fg-faint);
  border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 2px;
  line-height: 1.5;
}

/* Legend */
.hero-legend {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 5;
  background: color-mix(in oklab, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  backdrop-filter: blur(12px);
}
.hero-legend-row { display: flex; align-items: center; gap: 8px; }
.hero-legend-swatch { display: inline-block; }
.hero-swatch-train { width: 18px; height: 8px; border-radius: 2px; background: var(--accent); }
.hero-swatch-station {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-elev);
  border: 2px solid var(--accent);
}
.hero-legend-note { color: var(--fg-faint); font-size: 10px; margin-top: 4px; }

/* Scroll cue (bottom-right) — 70vh では下のコンテンツが見えているので非表示 */
.hero-scroll-cue {
  display: none;
  position: absolute;
  right: 28px; bottom: 28px;
  z-index: 5;
  flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.25em; color: var(--fg-faint);
  pointer-events: none;
}
.hero-scroll-line {
  display: block; width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--fg-faint), transparent);
  animation: cue-fade 2.2s ease-in-out infinite;
}
@keyframes cue-fade {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(6px); }
}

@media (max-width: 760px) {
  .hero-clock { min-width: 0; padding: 10px 12px; }
  .hero-clock-time { font-size: 32px; }
  .hero-clock-sec { font-size: 16px; }
  .hero-actions { top: 16px; right: 16px; }
  .hero-clock { top: 16px; left: 16px; }
  .hero-legend, .hero-scroll-cue { display: none; }
  .hero-settings { top: 64px; right: 16px; width: calc(100% - 32px); max-width: 320px; }
}

/* ----- Section primitives ----- */
.section { padding: 112px 28px; }
.section-inner { max-width: var(--container); margin: 0 auto; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 600;
  margin-bottom: 22px;
}
.section-eyebrow::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--accent);
}
.section-title {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 24px;
  text-wrap: balance;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--fg-muted);
  max-width: 720px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* Intro band right under hero */
.intro {
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border);
  padding: 72px 28px;
}
.intro-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
.intro h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.intro p { color: var(--fg-muted); font-size: 16px; line-height: 1.8; margin: 0; }
.intro-right { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.intro-app-icon {
  width: 88px; height: 88px; border-radius: 20px;
  background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
  box-shadow: 0 4px 16px rgba(243,151,0,0.3);
  display: flex; align-items: center; justify-content: center;
}
.intro-app-icon::after {
  content: "N"; font-size: 40px; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
}
.intro-store-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.intro-store-link img { height: 44px; display: block; border-radius: 8px; }
.intro-store-link:hover img { opacity: 0.85; }
/* リリース前: ストアボタンは非リンクの見本表示にして「準備中」を明示 */
.app-actions-soon { align-items: center; }
.intro-store-link.is-soon { display: block; cursor: default; }
.intro-store-link.is-soon img { opacity: 0.42; filter: grayscale(1); }
.store-soon-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
@media (max-width: 860px) { .intro-inner { grid-template-columns: 1fr; gap: 24px; } }

.intro-features {
  max-width: var(--container); margin: 0 auto;
  padding-top: 40px;
}
.intro-features .usecase-grid { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .intro-features .usecase-grid { grid-template-columns: 1fr; } }

/* ----- Pictograms (usecase) ----- */
.usecase-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--accent) 14%, var(--bg-elev));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
body.dark .usecase-icon { background: color-mix(in oklab, var(--accent) 16%, var(--bg-sub)); }
.usecase-icon svg { width: 30px; height: 30px; }

/* ----- Lines tabs ----- */
.lines-tabs {
  display: flex; align-items: center; gap: 4px;
  margin-top: 24px;
  border-bottom: 1px solid var(--border);
}
.lines-tab {
  background: none; border: none; font-family: inherit;
  padding: 14px 18px;
  font-size: 14px; font-weight: 600;
  color: var(--fg-faint);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.lines-tab:hover { color: var(--fg-muted); }
.lines-tab.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

/* Lines panel & list */
.lines-panel { margin-top: 24px; }
.lines-group {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.lines-group-name { font-size: 16px; font-weight: 700; }
.lines-group-detail {
  font-size: 13px; color: var(--fg-muted);
  margin-top: 4px; letter-spacing: 0.02em;
}
.lines-empty {
  color: var(--fg-faint); font-size: 14px;
  padding: 32px 0; text-align: center;
}

/* Request area */
.lines-request {
  margin-top: 40px; text-align: center;
  padding: 32px 0;
  border-top: 1px dashed var(--border);
}
.lines-request p {
  font-size: 14px; color: var(--fg-muted); line-height: 1.8;
  margin: 0 0 20px;
}
.btn.lines-request-btn { margin: 0 auto; background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.lines-request-btn:hover { opacity: 0.85; }

/* ----- Request modal ----- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.45);
  align-items: center; justify-content: center;
  animation: modalFadeIn 0.2s ease-out;
}
.modal-overlay.open { display: flex; }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 90%; max-width: 440px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  animation: modalSlideUp 0.25s ease-out;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 12px;
}
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-close {
  background: none; border: none; font-size: 22px; color: var(--fg-muted);
  cursor: pointer; padding: 4px 8px; border-radius: 6px;
}
.modal-close:hover { background: var(--bg-sub); color: var(--fg); }
.modal-body { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--fg-muted);
}
.modal-input, .modal-textarea {
  font-family: inherit; font-size: 14px;
  background: var(--bg-sub); color: var(--fg);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; outline: none;
  transition: border-color .15s;
}
.modal-input:focus, .modal-textarea:focus { border-color: var(--accent); }
.modal-textarea { resize: vertical; }
.modal-submit { align-self: stretch; }
.modal-note { font-size: 11px; color: var(--fg-faint); text-align: center; margin: 0; }

@media (max-width: 720px) {
  .lines-tab { padding: 12px 10px; font-size: 13px; }
}

/* ----- App section ----- */
.app-section { background: var(--bg-sub); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.app-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 80px; align-items: center;
}
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.app-note { font-size: 12px; color: var(--fg-faint); margin-top: 14px; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn-outline:hover { background: color-mix(in oklab, var(--fg) 6%, transparent); }

/* Phone mock */
.app-mock { display: flex; justify-content: center; }
.app-phone {
  width: 260px; height: 540px;
  background: linear-gradient(160deg, #2a2d33, #15171b);
  border-radius: 40px;
  padding: 10px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.35),
    0 12px 24px -12px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
body.dark .app-phone {
  box-shadow:
    0 30px 80px -10px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}
.app-phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 28px 20px 18px;
}
.app-phone-notch {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; border-radius: 12px;
  background: #15171b;
}
.app-phone-clock {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 38px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.app-phone-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 700;
  margin-top: 4px;
}
.app-phone-map {
  flex: 1; margin-top: 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 50%),
    radial-gradient(circle at 70% 70%, color-mix(in oklab, var(--line-sakuradori) 22%, transparent), transparent 55%),
    linear-gradient(180deg, var(--bg-sub), var(--bg-elev));
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}
.app-phone-map::before, .app-phone-map::after {
  content: "";
  position: absolute;
  height: 3px;
  border-radius: 2px;
  opacity: 0.85;
}
.app-phone-map::before {
  top: 38%; left: 12%; right: 12%;
  background: var(--line-higashiyama);
  transform: rotate(-8deg);
}
.app-phone-map::after {
  top: 60%; left: 18%; right: 8%;
  background: var(--line-sakuradori);
  transform: rotate(6deg);
}
.app-phone-dot {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2px solid var(--fg);
}
.app-phone-dot.d1 { top: 36%; left: 22%; border-color: var(--line-higashiyama); }
.app-phone-dot.d2 { top: 41%; left: 60%; border-color: var(--line-higashiyama); }
.app-phone-dot.d3 { top: 62%; left: 38%; border-color: var(--line-sakuradori); }

@media (max-width: 860px) {
  .app-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-phone { width: 220px; height: 460px; }
}

/* ----- Feature grid (仕組み) ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.feature {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.feature-num {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
  font-weight: 600;
}
.feature-title {
  margin: 14px 0 12px;
  font-size: 20px; font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.feature-body { color: var(--fg-muted); font-size: 14.5px; line-height: 1.75; margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ----- Use case cards ----- */
.usecases {
  background: var(--bg-sub);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.usecase {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s;
}
.usecase:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.usecase-screenshot {
  width: 100%; aspect-ratio: 1 / 1;
  background: var(--bg-sub);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-faint); font-size: 13px;
}
.usecase-screenshot::after { content: "スクリーンショット"; }
.usecase-text { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.usecase-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.usecase-title {
  font-size: 19px; font-weight: 700; letter-spacing: -0.005em;
  margin: 0; line-height: 1.4;
}
.usecase-body { color: var(--fg-muted); font-size: 14px; line-height: 1.75; margin: 0; }
@media (max-width: 860px) { .usecase-grid { grid-template-columns: 1fr; } }

/* ----- Lines coverage ----- */
.lines-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.line-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.line-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: white; font-weight: 800; font-size: 14px;
  letter-spacing: -0.02em;
}
.line-name { display: flex; flex-direction: column; line-height: 1.25; }
.line-name .ja { font-size: 16px; font-weight: 700; }
.line-name .en { font-size: 11px; color: var(--fg-muted); letter-spacing: 0.1em; }
.line-status {
  font-size: 11px;
  font-family: "SF Mono", monospace;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.line-status.live { color: #16a34a; }
.line-status.live::before {
  content: "●"; margin-right: 6px;
}
@media (max-width: 720px) { .lines-list { grid-template-columns: 1fr; } }

/* ----- Tech specs ----- */
.specs {
  background: var(--bg-sub);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.specs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.spec {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 22px;
}
.spec-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 600;
}
.spec-value {
  font-size: 16px; font-weight: 600; margin-top: 8px;
  line-height: 1.35;
}
.spec-sub { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }
@media (max-width: 860px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- CTA ----- */
.cta-section {
  text-align: left;
}
.cta-card {
  background: #101217;
  color: #ffffff;
  border-radius: 24px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card > * { position: relative; z-index: 2; }
.cta-card::after {
  content: "";
  position: absolute; top: -15px; right: -100px; bottom: 0;
  width: 32%; z-index: 1;
  background: url("../assets/browser_bg.png") center / cover no-repeat;
  transform: rotate(-30deg) scale(2.5);
  transform-origin: center center;
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.015em;
  margin: 0; text-wrap: balance;
}
.cta-card p {
  color: color-mix(in oklab, var(--bg) 70%, var(--fg));
  font-size: 15px; line-height: 1.7; margin: 16px 0 0;
}
.cta-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .15s, background .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: transparent; border-color: color-mix(in oklab, var(--bg) 40%, var(--fg)); color: var(--bg); }
.btn-ghost:hover { background: color-mix(in oklab, var(--bg) 12%, transparent); }
@media (max-width: 860px) {
  .cta-card { grid-template-columns: 1fr; padding: 40px 32px; }
  .cta-actions { justify-content: flex-start; }
}

/* ----- Sponsor section ----- */
.sponsor-section { background: var(--bg-sub); border-top: 1px solid var(--border); }
.sponsor-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 40px;
}
.sponsor-feature {
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.sponsor-feature strong {
  display: block; font-size: 14px; font-weight: 700;
  margin-bottom: 6px;
}
.sponsor-feature span {
  font-size: 13px; color: var(--fg-muted); line-height: 1.7;
}
.sponsor-contact-card {
  margin-top: 40px;
  padding: 36px 32px;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; text-align: center;
}
.sponsor-contact-card p {
  font-size: 14px; color: var(--fg-muted); line-height: 1.8; margin: 0;
}
.sponsor-mail-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fg); color: var(--bg); border: 1px solid var(--fg);
  padding: 14px 28px; border-radius: 10px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer;
  transition: opacity .15s;
}
.sponsor-mail-btn:hover { opacity: 0.85; }
.modal-required { font-size: 11px; color: var(--accent); font-weight: 700; margin-left: 4px; }
@media (max-width: 860px) {
  .sponsor-features { grid-template-columns: 1fr; }
}

/* ----- Footer ----- */
.site-footer {
  padding: 56px 28px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand-text .ja { font-size: 15px; }
.footer-brand p { color: var(--fg-muted); font-size: 13px; margin: 14px 0 0; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 700; margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--fg-muted); font-size: 13px; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: var(--fg-faint);
  letter-spacing: 0.05em;
}
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ----- Reveal on scroll ----- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-clock-dot { animation: none; }
  .hero-scroll-line { animation: none; }
  html { scroll-behavior: auto; }
}
