/* Stellaorie public site — shared stylesheet
 *
 * Scope: index.html (page-home) / order.html (page-order)
 * 各ページの差分は body.page-home / body.page-order でスコーピングしている。
 * 視覚調整はこの 1 ファイルで完結させる。HTML 構造は src/stellaorie/{landing_page,order_form_html}.py。
 *
 * 凡例
 *   :root                — 共通 design tokens（色 / 余白 / 角丸）
 *   生 element selector  — 全ページ共通の typography / リセット
 *   .wrap .topbar など   — 全ページ共通の primitive
 *   body.page-home {...} — トップページ固有
 *   body.page-order {...} — 申込ページ固有
 */

:root {
  /* color */
  --ink: #111827;
  --muted: #4b5563;
  --subtle: #f3f4f6;
  --line: #e5e7eb;
  --paper: #ffffff;
  --field: #f9fafb;
  --soft: #f9fafb;
  --brand: #1f2a37;
  --brand-2: #6b7280;
  --accent: #2563eb;
  --gold: #6b7280;

  /* neutral B2B surfaces — logo 起点の構造的な report desk tone */
  --surface-0: #ffffff;
  --surface-1: #f9fafb;
  --surface-2: #f3f4f6;
  --surface-edge: #e5e7eb;

  /* typography */
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface-0);
}

a { color: var(--brand-2); }

p { line-height: 1.8; margin: 0 0 16px; }

ul, ol { padding-left: 20px; line-height: 1.8; margin: 0; }

h1, h2 { font-family: var(--font-display); font-weight: 850; }

h3 { font-size: 20px; line-height: 1.45; letter-spacing: 0; margin: 0 0 10px; }


.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ================================================================
   Header / footer
   ================================================================ */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-left: 24px; padding-right: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--brand); font-weight: 850; text-decoration: none; font-size: 18px; }
.brand img { display: block; width: 174px; height: auto; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-links .nav-cta { background: var(--brand); color: white; padding: 10px 14px; border-radius: 6px; }

footer { margin-top: 80px; padding: 56px 0 40px; background: var(--brand); color: rgba(255,255,255,.78); }
footer .footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; align-items: start; }
footer .footer-brand { margin: 0 0 14px; }
footer .footer-brand img { display: block; width: 190px; height: auto; }
footer .footer-brand-sub { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.52); margin: 0 0 12px; }
footer .footer-promise { color: rgba(255,255,255,.86); line-height: 1.8; margin: 0 0 12px; max-width: 38ch; }
footer .links { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 12px; }
footer .links a { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 700; font-size: 14px; }
footer .links a:hover { color: #fff; text-decoration: underline; }
footer .micro,
footer p { color: rgba(255,255,255,.6); font-size: 13px; margin: 0 0 8px; line-height: 1.7; }
footer .footer-rule { height: 1px; background: rgba(255,255,255,.12); margin: 28px 0 20px; border: 0; }

@media (max-width: 900px) {
  footer .footer-inner { grid-template-columns: 1fr; gap: 22px; }
  footer { padding: 44px 0 32px; }
}

/* ================================================================
   Shared primitives — eyebrow / lead / micro / button / card / badge
   ================================================================ */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--accent); font-size: 13px; font-weight: 850; }
.lead { font-size: 17px; color: #374151; max-width: 720px; }
.micro { margin-top: 14px; color: var(--muted); font-size: 13px; }
.small { color: var(--muted); font-size: 13px; margin: 0; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 6px; padding: 12px 17px; text-decoration: none; font-weight: 850; border: 1px solid transparent; transition: background 120ms ease, color 120ms ease, border-color 120ms ease; }
.button.primary { background: var(--brand); color: white; }
.button.primary:hover { background: #111827; }
.button.secondary { color: var(--brand); background: white; border-color: #d1d5db; }
.button.secondary:hover { background: var(--surface-1); border-color: var(--accent); }

.card { background: var(--paper); border: 1px solid var(--surface-edge); border-radius: 8px; padding: 24px; transition: border-color 120ms ease, box-shadow 120ms ease; }
.card p { color: var(--muted); }
.card.highlight { border-color: #bfdbfe; box-shadow: inset 0 3px 0 var(--accent); }

.tag { display: inline-block; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 850; padding: 5px 8px; border-radius: 4px; margin-bottom: 12px; }

.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }

main { padding: 80px 0 0; }
section { margin-bottom: 80px; }

.price { font-size: 30px; font-weight: 850; margin: 8px 0 10px; color: var(--brand); }

/* ================================================================
   page-home (index.html)
   ================================================================ */
body.page-home .eyebrow:before { content: ""; width: 22px; height: 1px; background: var(--accent); }
body.page-home .eyebrow { letter-spacing: 0.12em; text-transform: uppercase; }
body.page-home h1 { font-size: 48px; line-height: 1.26; letter-spacing: 0; margin: 0 0 22px; color: var(--brand); }
body.page-home h2 { font-size: 30px; line-height: 1.4; letter-spacing: 0; margin: 0 0 16px; }

body.page-home .hero-shell { background: var(--surface-1); border-bottom: 1px solid var(--surface-edge); }
body.page-home .hero { padding: 80px 24px 72px; }
body.page-home .hero-points { display: grid; gap: 10px; margin: 22px 0 28px; padding: 0; list-style: none; }
body.page-home .hero-points li { display: flex; gap: 10px; align-items: flex-start; color: #374151; line-height: 1.65; }
body.page-home .hero-points li:before { content: ""; width: 3px; height: 18px; flex: 0 0 auto; margin-top: 6px; background: var(--accent); }
body.page-home .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

body.page-home .proof-strip { background: var(--brand); color: white; }
body.page-home .proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); }
body.page-home .proof div { background: var(--brand); padding: 22px 24px; }
body.page-home .proof strong { display: block; font-size: 22px; margin-bottom: 6px; }

body.page-home .scope-band { background: var(--surface-2); border-bottom: 1px solid var(--surface-edge); }
body.page-home .scope { padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
body.page-home .scope-title { font-weight: 850; color: var(--brand); }
body.page-home .scope-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
body.page-home .scope-list span { border-left: 3px solid var(--accent); background: var(--field); padding: 10px 12px; font-weight: 750; line-height: 1.5; }

body.page-home .deliverable { background: var(--surface-1); border-top: 1px solid var(--surface-edge); border-bottom: 1px solid var(--surface-edge); padding: 80px 0; }
body.page-home .deliverable .card { background: white; }

body.page-home .plans .card { display: flex; flex-direction: column; min-height: 310px; }
body.page-home .plans .button { margin-top: auto; }

body.page-home .hero-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
body.page-home .hero-proof a, body.page-home .hero-proof span { display: block; min-height: 76px; padding: 14px; border: 1px solid var(--surface-edge); border-radius: 8px; background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color 120ms ease; }
body.page-home .hero-proof a:hover { border-color: var(--accent); }
body.page-home .hero-proof strong { display: block; font-size: 16px; color: var(--brand); margin-bottom: 4px; line-height: 1.4; }

body.page-home .compare-shell { margin-top: 18px; }
body.page-home .compare { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--surface-edge); border-radius: 8px; overflow: hidden; }
body.page-home .compare th, body.page-home .compare td { border-bottom: 1px solid var(--surface-edge); padding: 14px 16px; text-align: left; vertical-align: top; }
body.page-home .compare th { background: var(--surface-1); color: var(--brand); }
body.page-home .compare tr:last-child th, body.page-home .compare tr:last-child td { border-bottom: 0; }

body.page-home .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.page-home .step { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
body.page-home .step-num { color: var(--accent); font-size: 13px; font-weight: 850; margin-bottom: 8px; }

body.page-home .sample-band { background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
body.page-home .sample-band--inline { margin-top: 24px; }
body.page-home .sample-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
body.page-home .sample-reasons span { display: block; background: white; border: 1px solid var(--line); border-radius: 6px; padding: 10px; color: var(--muted); font-size: 13px; font-weight: 750; }

body.page-home details { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
body.page-home details + details { margin-top: 12px; }
body.page-home summary { cursor: pointer; font-weight: 850; }

/* ================================================================
   page-order (order.html)
   ================================================================ */
body.page-order { /* page-order shares :root, .topbar, .button, footer with page-home */ }
body.page-order .nav a { font-weight: 750; }
body.page-order h1 { font-size: 38px; line-height: 1.18; letter-spacing: 0; margin: 0 0 14px; }
body.page-order h2 { font-size: 22px; letter-spacing: 0; margin: 0 0 14px; }
body.page-order p { margin: 0 0 14px; }

body.page-order h1 { line-height: 1.26; }
body.page-order .eyebrow { letter-spacing: 0.12em; text-transform: uppercase; }
body.page-order .hero-shell { background: var(--surface-1); border-bottom: 1px solid var(--surface-edge); }
body.page-order .hero { padding: 56px 24px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
body.page-order .lead { color: #374151; font-size: 16px; }

body.page-order main { padding: 38px 0 58px; }

body.page-order .panel,
body.page-order .plan,
body.page-order .note { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
body.page-order .panel p,
body.page-order .plan p,
body.page-order .note p { color: var(--muted); }

body.page-order .summary { display: grid; gap: 10px; }
body.page-order .summary-row { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
body.page-order .summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
body.page-order .summary-row span:first-child { color: var(--muted); }
body.page-order .summary-row span:last-child { font-weight: 850; text-align: right; }

body.page-order .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.page-order .sample-panel { margin-bottom: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
body.page-order .sample-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
body.page-order .sample-points span { background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; font-size: 13px; font-weight: 750; }

body.page-order .plan { display: grid; gap: 12px; align-content: start; }
body.page-order .plan ul { padding-left: 18px; }
body.page-order .plan li { margin-bottom: 6px; }
body.page-order .plan.featured { border-color: #bfdbfe; box-shadow: inset 0 4px 0 var(--accent); }
body.page-order .price { font-size: 28px; font-weight: 850; color: var(--brand); margin: 0; }
body.page-order .badge { width: fit-content; border: 1px solid #bfdbfe; border-radius: 999px; padding: 4px 10px; color: #1d4ed8; background: #eff6ff; font-size: 12px; font-weight: 850; }

body.page-order .button { min-height: 48px; }
body.page-order .pending { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid #bfdbfe; border-radius: 6px; padding: 10px 12px; color: #1d4ed8; background: #eff6ff; font-weight: 850; }

body.page-order .section { margin-top: 24px; }
body.page-order .flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.page-order .step { background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
body.page-order .step strong { display: block; margin-bottom: 6px; }

body.page-order .notice { background: var(--field); border-left: 4px solid var(--accent); padding: 16px 18px; }

body.page-order .followup { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: center; }
body.page-order .intake { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.page-order .intake .step { background: white; }

body.page-order footer { padding: 24px 0; }
body.page-order footer { margin-top: 0; }

/* ================================================================
   Mobile breakpoint — page-home
   ================================================================ */
@media (max-width: 900px) {
  body.page-home .grid,
  body.page-home .grid.two,
  body.page-home .steps,
  body.page-home .proof { grid-template-columns: 1fr; }
  body.page-home .hero-proof { grid-template-columns: 1fr; }
  body.page-home .scope,
  body.page-home .scope-list { grid-template-columns: 1fr; }
  /* 比較表は mobile で行ごとのカード化。各行は属性名ヘッダ + 3 プラン値（data-plan ラベル付き）の縦並び */
  body.page-home .compare,
  body.page-home .compare thead,
  body.page-home .compare tbody,
  body.page-home .compare tr,
  body.page-home .compare th,
  body.page-home .compare td { display: block; }
  body.page-home .compare { background: transparent; border: 0; border-radius: 0; }
  body.page-home .compare thead { display: none; }
  body.page-home .compare tr { background: var(--paper); border: 1px solid var(--surface-edge); border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
  body.page-home .compare tr > th { background: transparent; padding: 0 0 10px 0; font-family: var(--font-display); color: var(--brand); font-size: 17px; font-weight: 850; border-bottom: 1px solid var(--surface-edge); margin-bottom: 8px; }
  body.page-home .compare tr > td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; }
  body.page-home .compare tr > td:before { content: attr(data-plan) "："; color: var(--muted); font-size: 13px; font-weight: 700; flex: 0 0 auto; }
  body.page-home .compare tr:last-child > td { border: 0; }
  body.page-home .hero { padding-top: 56px; padding-bottom: 48px; }
  body.page-home h1 { font-size: 36px; }
  body.page-home .sample-band { grid-template-columns: 1fr; }
  body.page-home .sample-reasons { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
}

/* ================================================================
   Mobile breakpoint — page-order
   ================================================================ */
@media (max-width: 860px) {
  body.page-order .hero,
  body.page-order .plans,
  body.page-order .flow,
  body.page-order .followup,
  body.page-order .intake,
  body.page-order .sample-panel,
  body.page-order .sample-points { grid-template-columns: 1fr; }
  body.page-order h1 { font-size: 31px; }
  body.page-order .plan { padding: 18px; }
  body.page-order .price { font-size: 24px; }
  body.page-order .button,
  body.page-order .pending { width: 100%; }
}
