/* ============================================================
   stripe-top.css  |  政策AI LP スタイル (Stripe風)
   ============================================================ */

/* ── スキップリンク（アクセシビリティ） ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  padding: 10px 18px;
  background: #b91c1c;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top .1s;
}
.skip-link:focus { top: 0; }

/* ── リセット・ベース ── */
*, *::before, *::after { box-sizing: border-box; }

.lp-page {
  background: #fff;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── ナビバー ── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.07);
}

.lp-nav-left { display: flex; align-items: center; gap: 10px; }
.lp-nav-logo {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -.4px;
}
.lp-nav-tagline {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.lp-nav-right { display: flex; align-items: center; gap: 8px; }

.lp-nav-btn {
  /* 最小タップターゲット 44×44px (WCAG 2.5.5) */
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  transition: background .15s;
}
.lp-nav-btn:hover { background: #f1f5f9; }
.lp-nav-btn img { width: 20px; height: 20px; object-fit: contain; }

/* ── ヒーロー ── */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 20px 50px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 40%, #f0f7ff 70%, #f5f3ff 100%);
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 80% -10%, rgba(185,28,28,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 110%, rgba(124,58,237,.06) 0%, transparent 60%);
  pointer-events: none;
}

.lp-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;  /* mobile: 縦積み */
  align-items: stretch;
  gap: 28px;
}

.lp-hero-text { flex: 1; min-width: 0; }

.lp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(185,28,28,.08);
  border: 1px solid rgba(185,28,28,.15);
  font-size: 11px;
  font-weight: 800;
  color: #b91c1c;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.lp-hero-title {
  font-size: clamp(36px, 8vw, 64px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin: 0 0 12px;
}

.lp-hero-catch {
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  letter-spacing: -.02em;
  margin: 0 0 16px;
}

.lp-hero-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  max-width: 520px;
  margin: 0 0 28px;
}

.lp-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #b91c1c;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(185,28,28,.3);
  transition: transform .15s, box-shadow .15s;
}
.lp-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(185,28,28,.35); }
.lp-btn-primary:active { transform: translateY(0); }

.lp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .15s, border-color .15s;
}
.lp-btn-secondary:hover { transform: translateY(-1px); border-color: #cbd5e1; }

/* ヒーローモックアップ */
.lp-hero-mockup {
  width: 100%;        /* mobile: 全幅 */
  position: relative;
  display: block;     /* mobile: 表示 */
}

.lp-mock-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(15,23,42,.08);
  margin-bottom: 10px;
}

/* mobile では回転なし・重ね合わせなし（読みやすさ優先） */
.lp-mock-card:first-child {
  transform: none;
  margin-bottom: 10px;
  z-index: 1;
  position: relative;
}

.lp-mock-card:last-child {
  transform: none;
  margin-top: 0;
}

.lp-mock-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lp-mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  color: #0f172a;
}
.lp-mock-row:last-child { border-bottom: none; }

.lp-mock-rank {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-mock-pref { flex: 1; font-weight: 700; }
.lp-mock-score {
  font-size: 11px;
  font-weight: 800;
  color: #b36b00;
}

.lp-mock-ok {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.lp-mock-meta {
  font-size: 11px;
  color: #64748b;
  line-height: 1.6;
}

/* ── データ基盤セクション ── */
.lp-platform {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 60px 20px;
}

.lp-platform-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.lp-section-eyebrow.light { color: #b91c1c; }
.lp-section-eyebrow.dark  { color: #b91c1c; }

.lp-section-title {
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.lp-section-title.light { color: #0f172a; }
.lp-section-title.dark  { color: #0f172a; }

.lp-section-desc {
  font-size: 14px;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 0 36px;
}

.lp-section-desc.light { color: #475569; }
.lp-section-desc.dark  { color: #475569; }

.lp-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lp-platform-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
}

.lp-platform-card-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.lp-platform-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.lp-platform-card-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}

.lp-platform-meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 11px;
  color: #64748b;
}

.lp-platform-meta strong { color: #334155; }
.lp-platform-ok { color: #15803d; font-weight: 700; }

/* ── フローセクション ── */
.lp-flow {
  padding: 60px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.lp-flow-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  margin-top: 32px;
}
.lp-flow-steps::-webkit-scrollbar { display: none; }

.lp-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 100px;
  flex-shrink: 0;
}

.lp-flow-step-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}

.lp-flow-step-label {
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-align: center;
  line-height: 1.4;
}

.lp-flow-connector {
  flex: 1;
  min-width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
  margin-top: 27px;
  flex-shrink: 1;
}

.lp-flow-desc {
  margin-top: 24px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.75;
  max-width: 640px;
}

/* ── ランキングセクション ── */
.lp-rankings {
  padding: 60px 20px;
  background: #fff;
}

.lp-rankings-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-rankings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 32px;
}

.lp-ranking-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.lp-ranking-card:hover {
  border-color: #fca5a5;
  box-shadow: 0 4px 20px rgba(185,28,28,.08);
  transform: translateY(-2px);
}

.lp-ranking-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.lp-ranking-body { flex: 1; min-width: 0; }

.lp-ranking-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 5px;
}

.lp-ranking-sub {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 6px;
}

.lp-ranking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 11px;
  color: #64748b; /* #94a3b8 → コントラスト改善 */
  font-weight: 700;
}

.lp-ranking-arrow {
  font-size: 18px;
  color: #b91c1c;
  font-weight: 900;
  flex-shrink: 0;
}

/* ランキングカード背景色 */
.bg-red10   { background: #fff1f2; }
.bg-blue10  { background: #eff6ff; }
.bg-green10 { background: #f0fdf4; }
.bg-amber10 { background: #fffbeb; }
.bg-slate10 { background: #f8fafc; }

/* ── LIVEセクション ── */
.lp-live {
  padding: 60px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.lp-live-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-live-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.lp-live-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}

.lp-live-feature-icon { font-size: 20px; flex-shrink: 0; }
.lp-live-feature-text { font-size: 13px; color: #334155; font-weight: 600; }

.lp-live-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 10px;
  background: #b91c1c;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(185,28,28,.28);
  transition: transform .15s;
}
.lp-live-cta:hover { transform: translateY(-1px); }

/* ── Shortsセクション ── */
.lp-shorts {
  padding: 60px 20px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.lp-shorts-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-shorts-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.lp-shorts-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}

.lp-shorts-card-icon { font-size: 20px; margin-bottom: 6px; }
.lp-shorts-card-label { font-size: 12px; color: #334155; font-weight: 700; line-height: 1.4; }

.lp-shorts-example {
  margin-top: 20px;
  padding: 12px 16px;
  background: #f8fafc;
  border-left: 3px solid #b91c1c;
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

/* ── 都道府県セクション ── */
.lp-prefs {
  padding: 60px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.lp-prefs-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-prefs-groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.lp-pref-group { }

.lp-pref-group-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b; /* contrast improved from #94a3b8 */
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.lp-pref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lp-pref-link {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 最小タップターゲット確保: padding拡大 */
  padding: 12px 6px;
  min-height: 44px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  text-align: center;
  transition: border-color .12s, background .12s, color .12s;
}

.lp-pref-link:hover {
  border-color: #b91c1c;
  color: #b91c1c;
  background: #fff1f2;
}

/* ── レガシーセクション（既存コンテンツ） ── */
.lp-legacy {
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.lp-legacy .page {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.lp-legacy-notice {
  margin: 0 16px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 注意書き ── */
.lp-disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 0;
  font-size: 11px;
  color: #64748b; /* contrast improved from #94a3b8 */
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
}

/* ── フッター（他ページのフッターに合わせた白〜薄グレー） ── */
.lp-footer {
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,249,251,.98) 100%);
  border-top: 1px solid rgba(20,24,34,.07);
  padding: 32px 20px 24px;
  margin-top: 0;
}

.lp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.lp-footer-brand { }

.lp-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lp-footer-logo { width: 32px; height: 32px; border-radius: 8px; }
.lp-footer-title { font-size: 15px; font-weight: 900; color: #0f172a; }
.lp-footer-tagline { font-size: 11px; color: #64748b; }

.lp-footer-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
  max-width: 360px;
}

.lp-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.lp-footer-link {
  font-size: 12px;
  color: #475569; /* #64748b より濃く WCAA AA 合格 */
  text-decoration: none;
  font-weight: 600;
  transition: color .12s;
  /* タップターゲット確保 */
  padding: 6px 0;
  display: inline-block;
}
.lp-footer-link:hover { color: #0f172a; }

.lp-footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b; /* contrast improved from #94a3b8 */
}

/* ── ユーティリティ ── */
.lp-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0;
}

/* ── レスポンシブ（タブレット以上） ── */
@media (min-width: 640px) {
  .lp-platform-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-rankings-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-live-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-pref-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ── レスポンシブ（デスクトップ） ── */
@media (min-width: 900px) {
  .lp-hero-inner {
    flex-direction: row;   /* desktop: 横並び */
    align-items: center;
    gap: 60px;
  }
  .lp-hero-mockup {
    flex-shrink: 0;
    width: 340px;
  }
  /* desktop では回転・重ね合わせを復活 */
  .lp-mock-card:first-child {
    transform: rotate(-1.5deg);
    margin-bottom: -8px;
  }
  .lp-mock-card:last-child {
    transform: rotate(0.8deg);
    margin-top: 4px;
  }
  .lp-platform-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-rankings-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-live-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-pref-grid { grid-template-columns: repeat(7, 1fr); }
  .lp-hero { padding: 80px 40px 70px; }
  .lp-platform,
  .lp-flow,
  .lp-rankings,
  .lp-live,
  .lp-shorts,
  .lp-prefs { padding: 80px 40px; }
}

/* ── ドロワー（都道府県リンク版） ── */
.pref-drawer-link-group { margin-bottom: 20px; }

.pref-drawer-link-group-title {
  font-size: 11px; /* 10px → 11px（小さすぎるフォントを改善） */
  font-weight: 800;
  color: #475569; /* コントラスト改善 */
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #f1f5f9;
}

.pref-drawer-link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.pref-drawer-link {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: background .12s, color .12s, border-color .12s;
}

.pref-drawer-link:hover {
  background: #fff1f2;
  color: #b91c1c;
  border-color: #fca5a5;
}

.pref-drawer-link-all {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #b91c1c;
  text-decoration: none;
  border: 1.5px solid #fca5a5;
  background: #fff1f2;
}
