/* =========================================================================
   谷町研究所 デザインシステム
   構成: 1.トークン 2.リセット 3.基本要素 4.部品(ボタン/カード/フォーム)
         5.ナビ 6.ヒーロー 7.LP各セクション 8.申込フロー 9.会員ページ
         10.法定ページ 11.フッター 12.アニメーション 13.レスポンシブ 14.管理画面
   方針: ダークファースト。素のCSSのみ（ビルドツール不使用）。
   ========================================================================= */

/* ---- 1. デザイントークン ------------------------------------------------ */
:root {
  /* 背景 */
  --bg0: #07080c;            /* ページ地 */
  --bg1: #0c0e14;            /* 持ち上げたセクション */
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.055);

  /* 罫線 */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* 文字 */
  --text: #edeff5;
  --text-2: #a6adc0;
  --text-3: #697084;

  /* アクセント: 藍(主) と 金(報告書ブランド) */
  --indigo: #6371f2;
  --indigo-bright: #8b96ff;
  --indigo-soft: rgba(99, 113, 242, 0.14);
  --gold: #c8a96a;
  --gold-soft: rgba(200, 169, 106, 0.12);
  --teal: #2dd4bf;
  --danger: #f0655f;

  /* 書体 */
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-latin: "Inter", "Noto Sans JP", sans-serif;

  /* 角丸・影 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.35);
  --glow-indigo: 0 0 0 1px rgba(99, 113, 242, 0.45), 0 8px 32px rgba(99, 113, 242, 0.28);

  /* レイアウト */
  --container: 1120px;
  --nav-h: 68px;
}

/* ---- 2. リセット -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }

/* ---- 3. 基本要素 -------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; letter-spacing: 0.01em; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-alt { background: var(--bg1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-latin); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--indigo-bright);
  margin-bottom: 16px;
}
.section-label::before { content: ""; width: 24px; height: 1px; background: var(--indigo); }
.section-label.gold { color: var(--gold); }
.section-label.gold::before { background: var(--gold); }

.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 700; margin-bottom: 16px; }
.section-title.sm { font-size: 24px; }
.section-lead { color: var(--text-2); max-width: 640px; font-size: clamp(15px, 1.6vw, 17px); }
.section-lead.sm { font-size: 14px; }

.text-gradient {
  background: linear-gradient(120deg, #dfe4ff 0%, var(--indigo-bright) 55%, var(--teal) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- 4. 部品 ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, #4d5ae8 100%);
  color: #fff; box-shadow: 0 4px 20px rgba(99, 113, 242, 0.35);
}
.btn-primary:hover { box-shadow: var(--glow-indigo); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--indigo-bright); background: var(--indigo-soft); }
.btn-gold {
  background: linear-gradient(135deg, #d9bc82 0%, var(--gold) 100%);
  color: #14100a; box-shadow: 0 4px 20px rgba(200, 169, 106, 0.25);
}
.btn-gold:hover { box-shadow: 0 0 0 1px rgba(200,169,106,.5), 0 8px 32px rgba(200,169,106,.3); }
.btn-lg { padding: 16px 34px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--indigo-soft); color: var(--indigo-bright);
  border: 1px solid rgba(99, 113, 242, 0.3);
}
.badge.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(200, 169, 106, 0.35); }

/* フォーム */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.field input.invalid { border-color: var(--danger); }
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.field .field-error { font-size: 12.5px; color: var(--danger); margin-top: 6px; display: none; }
.field input.invalid ~ .field-error { display: block; }

.alert {
  padding: 14px 18px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 20px;
  background: rgba(240, 101, 95, 0.1); border: 1px solid rgba(240, 101, 95, 0.35); color: #ffb4b0;
}
.alert.gold { background: var(--gold-soft); border-color: rgba(200, 169, 106, 0.35); color: var(--gold); }
.hint-center { font-size: 12px; color: var(--text-3); margin-top: 8px; text-align: center; }
.notice {
  padding: 14px 18px; border-radius: var(--r-sm); font-size: 13.5px; margin: 20px 0 0;
  background: var(--gold-soft); border: 1px solid rgba(200, 169, 106, 0.3); color: var(--gold);
}

/* 罫線区切りの定義テーブル（法人概要・特商法） */
.def-table { width: 100%; border-collapse: collapse; }
.def-table th, .def-table td { padding: 18px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.def-table th { width: 220px; color: var(--text-3); font-weight: 500; font-size: 14px; white-space: nowrap; }
.def-table td { color: var(--text); font-size: 15px; }

/* ---- 5. ナビゲーション --------------------------------------------------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(9, 10, 15, 0.72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; letter-spacing: 0.06em; }
.brand-sub { font-family: var(--font-latin); font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; color: var(--text-3); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color 0.15s ease; }
.nav-links > a:hover { color: var(--text); }
.nav-mobile-actions { display: none; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--text-2); }
.nav-login:hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---- 6. ヒーロー --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(64px, 12vh, 120px)) 0 clamp(72px, 10vw, 110px);
}
/* グラデーションメッシュ + 罫線グリッド + ノイズの三層背景 */
.hero::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -2;
  background:
    radial-gradient(42% 55% at 18% 8%, rgba(99, 113, 242, 0.22) 0%, transparent 70%),
    radial-gradient(38% 48% at 85% 12%, rgba(45, 212, 191, 0.1) 0%, transparent 70%),
    radial-gradient(50% 60% at 55% 105%, rgba(200, 169, 106, 0.07) 0%, transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 20%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 70% at 50% 20%, #000 0%, transparent 100%);
}
.hero-inner { max-width: 860px; }
.hero-badge { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(34px, 6.4vw, 66px); font-weight: 900; line-height: 1.22;
  letter-spacing: 0.015em; margin-bottom: 24px;
}
.hero-lead {
  font-size: clamp(15.5px, 1.9vw, 18px); color: var(--text-2);
  max-width: 620px; margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vw, 72px); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; max-width: 860px;
}
.stat { background: rgba(12, 14, 20, 0.85); padding: 22px 24px; }
.stat-value {
  font-family: var(--font-latin); font-size: clamp(22px, 2.8vw, 30px); font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.stat-value .unit { font-size: 0.55em; font-weight: 700; color: var(--text-2); margin-left: 2px; }
.stat-label { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

/* ---- 7. LPセクション ----------------------------------------------------- */
/* 調査手法: 3ステップ */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.method-card { position: relative; padding: 32px 28px; overflow: hidden; }
.method-num {
  font-family: var(--font-latin); font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--indigo-bright); margin-bottom: 18px; display: block;
}
.method-card h3 { font-size: 19px; margin-bottom: 12px; }
.method-card p { font-size: 14.5px; color: var(--text-2); }
.method-card::after {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px;
  background: linear-gradient(90deg, var(--indigo), transparent);
}

.method-flow {
  margin-top: 28px; padding: 22px 28px; border-radius: var(--r-md);
  border: 1px dashed var(--line-strong); color: var(--text-3); font-size: 13.5px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.method-flow b { color: var(--text-2); font-weight: 700; }
.method-flow .arrow { color: var(--indigo-bright); }

/* 報告書セクション: CSSで組む表紙モック */
.report-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: 48px; }
.report-cover-wrap { perspective: 1200px; }
.report-cover {
  aspect-ratio: 210 / 297; max-width: 340px; margin: 0 auto;
  background: linear-gradient(160deg, #12141c 0%, #0a0b10 100%);
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 9%; display: flex; flex-direction: column;
  box-shadow: 24px 32px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.report-cover:hover { transform: rotateY(-3deg); }
.report-cover .rc-label { font-family: var(--font-latin); font-size: 10px; letter-spacing: 0.3em; color: var(--gold); }
.report-cover .rc-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.35; margin-top: 14px; }
.report-cover .rc-issue { font-family: var(--font-latin); font-size: 13px; color: var(--text-2); margin-top: 8px; }
.report-cover .rc-chart { margin-top: auto; display: flex; align-items: flex-end; gap: 6%; height: 26%; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.report-cover .rc-chart i { flex: 1; background: linear-gradient(to top, rgba(200,169,106,0.85), rgba(200,169,106,0.25)); border-radius: 2px 2px 0 0; }
.report-cover .rc-foot { font-family: var(--font-latin); font-size: 9px; letter-spacing: 0.18em; color: var(--text-3); margin-top: 10px; display: flex; justify-content: space-between; }

.report-points { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 16px; }
.report-points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.report-points .pt-icon {
  flex: none; width: 26px; height: 26px; margin-top: 2px; border-radius: 8px;
  background: var(--gold-soft); border: 1px solid rgba(200, 169, 106, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 13px; font-weight: 700;
}
.report-points b { color: var(--text); }

/* 料金 */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; margin-top: 56px; }
.price-card { position: relative; padding: 36px 34px; display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(99, 113, 242, 0.5); background: linear-gradient(180deg, rgba(99, 113, 242, 0.07) 0%, var(--panel) 45%); }
.price-card .plan-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.price-card .plan-note { font-size: 13px; color: var(--text-3); margin-bottom: 22px; }
.price-amount { font-family: var(--font-latin); font-weight: 800; font-size: 44px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-amount .yen { font-size: 0.5em; font-weight: 700; margin-right: 2px; color: var(--text-2); }
.price-amount .per { font-size: 0.34em; font-weight: 600; color: var(--text-3); margin-left: 6px; letter-spacing: 0; }
.price-features { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; flex: 1; }
.price-features li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); align-items: flex-start; }
.price-features li::before { content: "✓"; color: var(--teal); font-weight: 700; flex: none; }
.price-badge { position: absolute; top: -13px; right: 24px; }
/* プランカード内の契約条件明記（定期購読である旨） */
.plan-terms {
  margin: 0 0 22px; padding: 12px 14px;
  border: 1px solid var(--line); border-left: 2px solid var(--indigo);
  border-radius: 8px; background: rgba(255, 255, 255, 0.02);
  font-size: 12.5px; line-height: 1.7; color: var(--text-2);
}
.plan-terms b { color: var(--text); }

/* News */
.news-list { margin-top: 40px; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 24px 8px; border-bottom: 1px solid var(--line); }
.news-date { font-family: var(--font-latin); font-size: 13.5px; color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.news-title { font-size: 15.5px; font-weight: 700; }
.news-body { font-size: 14px; color: var(--text-2); margin-top: 6px; }

/* 法人概要 */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 72px); margin-top: 48px; align-items: start; }
.about-statement { font-size: clamp(17px, 2vw, 20px); font-weight: 700; font-family: var(--font-display); line-height: 2; }
.about-statement em { font-style: normal; color: var(--gold); }

/* CTAバンド */
.cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(72px, 9vw, 110px) 0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 90% at 50% 110%, var(--indigo-soft) 0%, transparent 70%);
}
.cta-band h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; margin-bottom: 14px; }
.cta-band p { color: var(--text-2); margin-bottom: 36px; }

/* ---- 8. 申込フロー -------------------------------------------------------- */
.flow-page { padding: calc(var(--nav-h) + 48px) 0 96px; min-height: 100vh; }
.flow-shell { max-width: 560px; margin: 0 auto; }
.flow-shell.wide { max-width: 880px; }

.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 40px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); font-weight: 500; }
.step-dot {
  width: 26px; height: 26px; border-radius: 999px; flex: none;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-latin); font-size: 12.5px; font-weight: 700;
}
.step.active { color: var(--text); }
.step.active .step-dot { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.step.done .step-dot { background: var(--indigo-soft); border-color: var(--indigo); color: var(--indigo-bright); }
.step-line { flex: 1; height: 1px; background: var(--line-strong); min-width: 16px; }

.flow-title { font-size: clamp(24px, 3.2vw, 32px); font-weight: 900; margin-bottom: 10px; }
.flow-lead { color: var(--text-2); font-size: 14.5px; margin-bottom: 36px; }

/* プラン選択カード（申込ステップ1） */
.plan-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* 注文サマリー */
.order-summary { padding: 20px 24px; border-radius: var(--r-md); background: var(--panel-2); border: 1px solid var(--line); margin-bottom: 28px; }
.order-summary .os-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; font-size: 14px; color: var(--text-2); }
.order-summary .os-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; color: var(--text); font-weight: 700; font-size: 15px; }
.order-summary .os-amount { font-family: var(--font-latin); font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; }
.order-summary .os-change { font-size: 12.5px; color: var(--indigo-bright); }
.order-summary .os-note { padding-top: 10px; }

/* 区切り線 (または) */
.divider { display: flex; align-items: center; gap: 16px; color: var(--text-3); font-size: 12.5px; margin: 24px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Googleボタン */
.btn-google { width: 100%; border: 1px solid var(--line-strong); background: var(--panel); font-weight: 600; font-size: 14.5px; gap: 10px; }
.btn-google .g-mark { width: 18px; height: 18px; }

/* モック決済のカードUI */
.mock-note { margin-bottom: 24px; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 完了画面 */
.done-icon {
  width: 72px; height: 72px; border-radius: 999px; margin: 0 auto 28px;
  background: var(--indigo-soft); border: 1px solid rgba(99, 113, 242, 0.4);
  display: flex; align-items: center; justify-content: center;
}
.done-icon svg { width: 32px; height: 32px; stroke: var(--indigo-bright); }
.done-center { text-align: center; }

/* ---- 9. 会員ページ -------------------------------------------------------- */
.member-page { padding: calc(var(--nav-h) + 48px) 0 96px; min-height: 100vh; }
.member-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.member-head h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 900; }
.member-head .hello { color: var(--text-3); font-size: 14px; margin-top: 6px; }

.sub-card { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; margin-bottom: 56px; }
.sub-card .sc-meta { display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.sub-card .sc-item .k { font-size: 12px; color: var(--text-3); letter-spacing: 0.05em; }
.sub-card .sc-item .v { font-size: 15.5px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }

.issues-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.issue-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.issue-cover {
  aspect-ratio: 16 / 10; padding: 18px 20px;
  background:
    radial-gradient(80% 120% at 15% 0%, rgba(99, 113, 242, 0.16) 0%, transparent 65%),
    linear-gradient(160deg, #141722 0%, #0b0c12 100%);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between;
}
.issue-cover .ic-label { font-family: var(--font-latin); font-size: 9px; letter-spacing: 0.26em; color: var(--gold); }
.issue-cover .ic-ym { font-family: var(--font-latin); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.issue-cover .ic-unit { font-size: 13px; font-weight: 600; color: var(--text-2); }
.issue-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.issue-title { font-size: 13.5px; font-weight: 700; color: var(--text-2); flex: 1; }
.issue-actions { display: flex; gap: 10px; }
.issue-actions .btn { flex: 1; padding: 10px 8px; font-size: 13px; }
.issue-card.locked { opacity: 0.55; }
.issue-card.locked .issue-cover { filter: grayscale(0.7); }
.locked-note { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

/* ---- 10. 法定ページ・ログイン ---------------------------------------------- */
.legal-page { padding: calc(var(--nav-h) + 56px) 0 96px; }
.legal-shell { max-width: 760px; margin: 0 auto; }
.legal-shell h1 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 900; margin-bottom: 8px; }
.legal-updated { color: var(--text-3); font-size: 13px; margin-bottom: 40px; }
.legal-shell h2 { font-size: 18px; margin: 40px 0 12px; }
.legal-shell p, .legal-shell li { font-size: 14.5px; color: var(--text-2); }
.legal-shell ol, .legal-shell ul { padding-left: 22px; display: grid; gap: 8px; }
.placeholder { color: var(--gold); }

.auth-page { padding: calc(var(--nav-h) + 64px) 0 96px; min-height: 100vh; display: flex; align-items: flex-start; }
.auth-card { width: 100%; max-width: 440px; margin: 0 auto; padding: 40px 36px; }
.auth-card h1 { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.auth-card .auth-lead { font-size: 13.5px; color: var(--text-3); margin-bottom: 30px; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--text-3); margin-top: 24px; }
.auth-foot a { color: var(--indigo-bright); font-weight: 600; }

/* エラーページ */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px; }
.error-code { font-family: var(--font-latin); font-size: 64px; font-weight: 800; color: var(--indigo-bright); }
.error-page p { margin: 16px auto 32px; }

/* ---- 11. フッター ---------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg1); padding: 64px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.footer-note { font-size: 13px; color: var(--text-3); max-width: 380px; }
.footer-head { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 13.5px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); font-family: var(--font-latin); }

/* ---- 12. アニメーション ----------------------------------------------------- */
/* .js クラス（base.htmlのheadで付与）がある時だけ初期非表示にする。
   JS無効環境・クローラではコンテンツが常に見える。 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- 13. レスポンシブ -------------------------------------------------------- */
@media (max-width: 960px) {
  .method-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .report-cover { max-width: 280px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* モバイルナビ: リンク群をドロワー化 */
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9, 10, 15, 0.97);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 4px; font-size: 15.5px; border-bottom: 1px solid var(--line); }
  .nav-mobile-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
  .nav-mobile-actions a { text-align: center; padding: 13px; }
  .nav-mobile-actions a:not(.btn) { border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-size: 14.5px; }
  .nav-actions .nav-login, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-choices { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 4px; padding: 20px 4px; }
  .card-row { grid-template-columns: 1fr; }
  .steps .step span.step-name { display: none; }
  .steps .step.active span.step-name { display: inline; }
  .sub-card { align-items: flex-start; }
  .def-table th { width: 130px; white-space: normal; }
  .auth-card { padding: 32px 24px; }
}

@media (max-width: 400px) {
  .hero-ctas .btn { width: 100%; }
  .issues-grid { grid-template-columns: 1fr; }
}

/* ---- 14. 管理画面（/admin。公開ページとトーンは合わせ、装飾は最小限） ---- */
.admin-body { background: var(--bg0); }
.admin-nav { border-bottom: 1px solid var(--line); background: var(--bg1); }
.admin-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 56px;
  display: flex; align-items: center; gap: 32px;
}
.admin-brand { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.admin-brand span { font-family: var(--font-latin); font-size: 10px; letter-spacing: 0.2em; color: var(--indigo-bright); margin-left: 6px; }
.admin-links { display: flex; gap: 4px; flex: 1; }
.admin-links a { padding: 6px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.admin-links a:hover { color: var(--text); background: var(--panel-2); }
.admin-links a.on { color: var(--text); background: var(--indigo-soft); }
.admin-me { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-3); }

.admin-main { max-width: 1280px; margin: 0 auto; padding: 32px 24px 96px; }
.page-offset { margin-top: 8vh; }
.admin-title { font-size: 24px; font-weight: 900; margin-bottom: 24px; }
.admin-sub { font-size: 13px; font-weight: 500; color: var(--text-3); }
.admin-h2 { font-size: 15px; font-weight: 700; margin: 28px 0 12px; }
.admin-panel { margin-bottom: 24px; }
.admin-panel h3 { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 18px 0 8px; }
.admin-panel h3:first-of-type { margin-top: 0; }

/* KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.kpi-card { padding: 20px 22px; }
.kpi-label { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.kpi-value { font-family: var(--font-latin); font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kpi-unit { font-size: 0.5em; font-weight: 700; color: var(--text-2); margin-left: 3px; }
.kpi-sub { font-size: 14px; font-weight: 700; }

/* テーブル */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 24px; }
.admin-table th {
  text-align: left; padding: 10px 12px; color: var(--text-3);
  font-size: 11.5px; letter-spacing: 0.06em; font-weight: 700;
  border-bottom: 1px solid var(--line-strong); white-space: nowrap;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table td.num { font-family: var(--font-latin); font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table a { color: var(--indigo-bright); }
.admin-table input[type="text"], .admin-table input[type="date"],
.admin-table input[type="datetime-local"], .admin-table input[type="email"] {
  width: 100%; min-width: 120px; padding: 7px 10px; font-size: 13px;
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--line); border-radius: 7px;
}
.admin-table input[type="file"] { font-size: 12px; color: var(--text-3); max-width: 200px; }
.admin-table .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* タグ・状態 */
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--text-2);
}
.tag.ok { background: rgba(45, 212, 191, 0.1); border-color: rgba(45, 212, 191, 0.35); color: var(--teal); }
.tag.warn { background: var(--gold-soft); border-color: rgba(200, 169, 106, 0.35); color: var(--gold); }

/* フォーム・フィルタ */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end; }
.form-grid .field { margin-bottom: 0; }
.form-grid .btn { justify-self: start; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select {
  padding: 8px 12px; font-size: 13.5px;
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.admin-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.admin-filter input, .admin-filter select {
  padding: 9px 12px; font-size: 13.5px;
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 8px;
}
.admin-filter input[type="text"] { min-width: 240px; }
.btn.danger { color: var(--danger); border-color: rgba(240, 101, 95, 0.4); }
.btn.danger:hover { background: rgba(240, 101, 95, 0.1); border-color: var(--danger); }

.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 960px) { .admin-cols { grid-template-columns: 1fr; } }

