/* mobile-order ルートランディング (Phase 5 続: 2026-05-28) */
* { box-sizing: border-box; }
:root {
  color-scheme: light dark;
  --bg: #f7f7f9;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --ok: #065f46;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --ng: #991b1b;
  --ng-bg: #fef2f2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d1f;
    --surface: #2d2d2f;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --border: #3a3a3c;
  }
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  color: var(--text);
  line-height: 1.55;
}
/* topnav header */
header.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topnav .logo { font-size: 1.25rem; font-weight: 700; text-decoration: none; color: var(--text); white-space: nowrap; }
.topnav nav { display: flex; gap: 1.25rem; align-items: center; }
.topnav nav a {
  text-decoration: none;
  color: var(--text); /* muted → text にしてダーク背景でもコントラスト確保 */
  font-size: 0.95rem;
  white-space: nowrap; /* 「料金」「FAQ」の折り返し防止 */
  opacity: 0.75;
  transition: opacity 0.15s;
}
.topnav nav a:hover { color: var(--accent); opacity: 1; }
.topnav nav a.cta-link {
  padding: 0.4rem 0.95rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  opacity: 1;
}
.topnav nav a.cta-link:hover { background: var(--accent-dark); color: white; }

/* hero */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, var(--surface) 100%);
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: 2.2rem;
  font-weight: 700;
}
.hero-sub {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta__primary, .hero-cta__secondary {
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.hero-cta__primary {
  background: var(--accent);
  color: white;
}
.hero-cta__primary:hover { background: var(--accent-dark); }
.hero-cta__secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.hero-cta__secondary:hover { background: var(--accent); color: white; }
.hero-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* 3 大悩み */
.pain-points {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.pain-points h2 {
  text-align: center;
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.pain {
  text-align: center;
  padding: 1.25rem;
}
.pain__icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.pain h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.pain__solution {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0;
}

/* 成長ループ (集客→新規→前払い→リピート→利益) */
.growth {
  background: linear-gradient(135deg, #eff6ff 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.growth h2 {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}
.growth-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
}
.growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.gstage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-top: 3px solid var(--accent);
  padding: 1.1rem 1rem;
  text-align: center;
}
.gstage__icon { font-size: 2rem; line-height: 1; margin-bottom: 0.4rem; }
.gstage__step { font-weight: 700; font-size: 0.98rem; margin-bottom: 0.5rem; }
.gstage__feat {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}
.gstage__benefit {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}
@media (prefers-color-scheme: dark) {
  .growth { background: linear-gradient(135deg, rgba(37,99,235,0.12) 0%, var(--surface) 100%); }
}

.section-title {
  text-align: center;
  margin: 2rem 0 1.25rem;
  font-size: 1.3rem;
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
}
.browser-warning {
  max-width: 700px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1.2rem;
  background: var(--ng-bg);
  color: var(--ng);
  border: 1px solid #fecaca;
  border-radius: 8px;
  display: block;
  font-size: 0.9rem;
}
.browser-warning > * { display: inline-block; margin-right: 0.5rem; }
.suggest-banner {
  max-width: 700px;
  margin: 0 auto 1.5rem;
  padding: 0.85rem 1.2rem;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 0.95rem;
}
.suggest-banner strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.card {
  display: block;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}
.card__icon { font-size: 2rem; line-height: 1; margin-bottom: 0.5rem; }
.card__title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.35rem; }
.card__desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.card__rec { color: var(--accent); font-size: 0.8rem; font-weight: 500; margin-top: 0.5rem; }
/* デバイス自動推奨カードはハイライト */
.card.is-suggested {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface), #e0f2fe);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}
.card.is-suggested::before {
  content: "👈 おすすめ";
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  border-radius: 12px;
  font-weight: 600;
}

/* ブラウザ一覧 */
.browsers {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.browsers h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}
.browser-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.5rem;
}
.browser {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.browser--ok { background: var(--ok-bg); color: var(--ok); }
.browser--maybe { background: var(--warn-bg); color: var(--warn); }
.browser--ng { background: var(--ng-bg); color: var(--ng); }
.browser__name { display: block; font-weight: 600; }
.browser__detail { display: block; font-size: 0.8rem; opacity: 0.85; margin-top: 0.1rem; }
.note { margin: 1rem 0 0; }

footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid var(--border);
}
footer p { margin: 0.25rem 0; }
.muted { color: var(--muted); }
.muted a { color: var(--muted); }
.small { font-size: 0.8rem; }

/* モバイル微調整 */
@media (max-width: 600px) {
  header h1 { font-size: 1.6rem; }
  .card { padding: 1.2rem; }
  .browsers { padding: 1.2rem; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 0.95rem; }
  .pain-points { padding: 1.5rem; }
  .pain-points h2 { font-size: 1.2rem; }
  /* topnav 折返し防止 (logo + 3 リンク) */
  .topnav { padding: 0.75rem 1rem; gap: 0.5rem; }
  .topnav .logo { font-size: 1rem; }
  .topnav nav { gap: 0.85rem; }
  .topnav nav a { font-size: 0.85rem; }
  .topnav nav a.cta-link { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
}
@media (max-width: 380px) {
  .topnav nav { gap: 0.5rem; }
  .topnav nav a { font-size: 0.8rem; }
}
/* ダークモードで ok 系の見にくさ調整 (ランディング用) */
@media (prefers-color-scheme: dark) {
  .suggest-banner { color: #6ee7b7; background: rgba(110, 231, 183, 0.12); border-color: rgba(110, 231, 183, 0.3); }
  .browser--ok { color: #6ee7b7; background: rgba(110, 231, 183, 0.12); }
  .browser--maybe { color: #fbbf24; background: rgba(251, 191, 36, 0.12); }
  .browser--ng { color: #fca5a5; background: rgba(252, 165, 165, 0.12); }
}

/* ───────── 導入相談 お問い合わせ ポップアップ ───────── */
.inquiry-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
  cursor: pointer;
}
.inquiry-fab:hover { filter: brightness(1.05); }
/* display を持つ要素は [hidden] (UA の display:none) を上書きしてしまうため明示で打ち消す。
   これが無いと overlay が常に全画面を覆い、ページのクリックを横取りする。 */
.inquiry-overlay[hidden],
.inquiry-fab[hidden] { display: none !important; }

.inquiry-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.55);
}
.inquiry-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.inquiry-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
}
.inquiry-modal__title { margin: 0 0 6px; font-size: 1.35rem; }
.inquiry-modal__lead { margin: 0 0 16px; line-height: 1.5; font-size: 0.92rem; }

.inquiry-field { display: block; margin-bottom: 12px; }
.inquiry-field > span { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.inquiry-field em { color: #ef4444; font-style: normal; }
.inquiry-field input,
.inquiry-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
}
.inquiry-field textarea { resize: vertical; }

.inquiry-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  cursor: pointer;
}
.inquiry-submit:disabled { opacity: 0.6; cursor: default; }

.inquiry-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}
.inquiry-success { text-align: center; padding: 16px 0 4px; }
.inquiry-success__icon { font-size: 2.4rem; margin: 0 0 8px; }

/* honeypot: 画面外へ。bot だけが埋める */
.inquiry-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ステップ1: 価値訴求パネル */
.inquiry-modal__eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ea580c;
}
.inquiry-modal__fine { margin: 12px 0 0; font-size: 0.78rem; line-height: 1.4; }
.inquiry-points {
  list-style: none;
  margin: 14px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inquiry-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.inquiry-points__ic { font-size: 1.25rem; line-height: 1.2; flex: 0 0 auto; }
.inquiry-cta { display: flex; flex-direction: column; gap: 10px; }

/* .inquiry-submit を <a> でもボタン同様に見せる */
.inquiry-submit {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}
.inquiry-submit--ghost {
  background: #fff;
  color: #ea580c;
  border: 2px solid #ea580c;
}
