/* Sitegraphy LP — Stripe(ネイビー×グラデーション×ピルボタン) × Airtable(カラフルな丸カード) */
:root {
  --navy: #0a2540;
  --slate: #425466;
  --muted: #556274; /* 白背景で4.5:1以上（WCAG AA・小サイズ文字対応） */
  --indigo: #4f46e5;
  --indigo-dark: #3f38c9;
  --bg: #f6f9fc;
  --surface: #ffffff;
  --border: #e6ebf1;
  --cyan: #06b6d4;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --green: #10b981;
  --violet: #8b5cf6;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 15px 45px rgba(10, 37, 64, 0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--slate);
  background: var(--surface);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ─ Nav ─ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 45px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; font-size: 0.9rem; font-weight: 500; }
.nav-links a { color: var(--slate); }
.nav-links a:hover { color: var(--navy); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-login { font-size: 0.9rem; font-weight: 600; color: var(--slate); padding: 8px 10px; white-space: nowrap; }

/* ─ Buttons (Stripe風ピル) ─ */
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-weight: 700; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.btn-primary { background: var(--indigo); color: #fff; padding: 10px 22px; font-size: 0.95rem; box-shadow: 0 2px 8px rgba(79,70,229,0.35); }
.btn-primary:hover { background: var(--indigo-dark); transform: translateY(-1px); }
.btn-primary::after { content: "→"; font-weight: 400; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-ghost { color: var(--navy); padding: 10px 18px; font-size: 0.95rem; border: 1px solid var(--border); background: #fff; }
.btn-ghost:hover { border-color: var(--muted); }
.btn-white { background: #fff; color: var(--indigo); padding: 14px 32px; font-size: 1.05rem; }
.btn-white::after { content: "→"; font-weight: 400; }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ─ Hero（斜めグラデーション帯） ─ */
.hero { position: relative; overflow: hidden; padding: 88px 0 40px; }
.hero-bg { position: absolute; inset: -20% -10% 32% -10%; transform: skewY(-6deg); transform-origin: top left;
  background: linear-gradient(100deg, #eef2ff 0%, #e0f2fe 30%, #ede9fe 62%, #fdf2f8 100%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--indigo); text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; color: var(--navy); line-height: 1.45; letter-spacing: -0.01em; }
/* 見出しはセグメント単位でのみ折り返す（文中で1〜2文字だけ落ちるのを防ぐ） */
.h1-seg { display: inline-block; }
.h1-seg:first-child { text-indent: -0.5em; } /* 行頭の「 をぶら下げ、左端を揃える */
@media (max-width: 360px) { h1 { font-size: 1.5rem; } }
.hero p.lead { margin: 18px 0 28px; font-size: 1.05rem; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

/* ヒーローのレポートモック（CSSのみ） */
.mock { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #fafbfc; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.mock-bar i:nth-child(1) { background: #fca5a5; } .mock-bar i:nth-child(2) { background: #fcd34d; } .mock-bar i:nth-child(3) { background: #86efac; }
.mock-body { padding: 20px; }
.mock-title { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 4px; }
.mock-sub { font-size: 0.75rem; color: #556274; margin-bottom: 14px; } /* 小サイズ文字はコントラスト4.5:1確保 */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.tile { border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; text-align: center; }
.tile b { display: block; font-size: 1.3rem; color: var(--navy); }
.tile span { font-size: 0.68rem; color: #556274; }
/* 数値は白背景でコントラスト3:1以上の濃色（a11y。装飾カードのアクセントより判読性優先） */
.tile.t1 b { color: #087f5b; } .tile.t2 b { color: #e11d48; } .tile.t3 b { color: #b45309; } .tile.t4 b { color: #0e7490; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid #f1f5f9; font-size: 0.78rem; }
.chip { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.chip.fact { background: #ecfdf5; color: #047857; }
.chip.est { background: #fffbeb; color: #b45309; }
.chip.ai { background: #eef2ff; color: var(--indigo); }
.mock-row p { color: var(--slate); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ─ セクション共通 ─ */
section { padding: 72px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sec-head.wide { max-width: 800px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy); line-height: 1.5; }
.sec-head p { margin-top: 12px; }
.alt { background: var(--bg); }

/* ─ ステップ ─ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.step .num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { color: var(--navy); font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; }

/* ─ 機能カード（Airtable風カラフル） ─ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 22px; transition: box-shadow .15s, transform .15s; }
.feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.f-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.f-indigo { background: #eef2ff; } .f-cyan { background: #ecfeff; } .f-amber { background: #fffbeb; }
.f-rose { background: #fff1f2; } .f-green { background: #ecfdf5; } .f-violet { background: #f5f3ff; }
.feature h3 { color: var(--navy); font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: 0.88rem; }

/* ─ ユースケース ─ */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.usecase { border-left: 3px solid var(--indigo); padding: 4px 0 4px 18px; }
.usecase h3 { color: var(--navy); font-size: 1rem; margin-bottom: 4px; }
.usecase p { font-size: 0.9rem; }

/* ─ 価格 ─ */
/* v3は3プラン（無料診断・チケット・月額）= 3カラム・センタリング */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 960px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--indigo); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured .flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--indigo); color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 3px 14px; white-space: nowrap; }
.plan h3 { color: var(--navy); font-size: 1rem; }
.price { margin: 10px 0 2px; color: var(--navy); font-weight: 800; font-size: 1.7rem; }
.price small { font-size: 0.8rem; font-weight: 500; color: #556274; }
.tax { font-size: 0.72rem; color: #556274; margin-bottom: 14px; }
.plan ul { list-style: none; font-size: 0.85rem; margin-bottom: 18px; flex: 1; }
.plan li { padding: 4px 0 4px 20px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.plan li.na { color: #64748b; } /* 「含まれない」項目も判読可能なコントラストに（4.5:1） */
.plan li.na::before { content: "—"; color: #cbd5e1; }
.plan .btn { justify-content: center; }
.plans-note { text-align: center; margin-top: 18px; font-size: 0.82rem; color: var(--muted); }

/* ─ FAQ ─ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 4px 18px; font-size: 0.9rem; }

/* ─ 最終CTA帯 ─ */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: 80px 0; color: #fff;
  background: linear-gradient(115deg, var(--indigo) 0%, #7c3aed 55%, #0ea5e9 120%); }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 14px 0 26px; color: rgba(255,255,255,0.85); }

/* ─ Footer ─ */
footer { background: var(--navy); color: #a3b2c7; font-size: 0.82rem; padding: 40px 0; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: #cdd8e8; }
footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps, .features, .usecases { grid-template-columns: 1fr; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-in { gap: 12px; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  /* 狭幅ナビの圧縮（CTAボタンの右端はみ出し防止） */
  .nav-in { gap: 8px; }
  .logo { font-size: 1.1rem; }
  .nav-login { padding: 8px 4px; font-size: 0.85rem; }
  .nav-cta .btn-primary { padding: 8px 14px; font-size: 0.85rem; }
}
