@charset "UTF-8";

/* =====================================================================
   TRADEIQ FX — Design tokens
   REPUTIQ AI（www.reputiq-ai.com）と同一の「IQ」ブランドファミリーとして
   ダークテーマ・配色・タイポグラフィを揃えている。
   ===================================================================== */

:root {
  /* Ground — REPUTIQ の実測値に準拠 */
  --bg:        #04060C;  /* ページ既定背景（REPUTIQ body bg） */
  --bg-raised: #080C16;  /* セクションの明暗リズム用（やや明るい階調） */
  --bg-deep:   #020308;  /* 強調セクション（最終CTA等）用の最深部 */
  --surface:       rgba(255, 255, 255, .025); /* カード既定塗り（ほぼ透明） */
  --surface-hover: rgba(255, 255, 255, .05);
  --border:        #1B2740; /* REPUTIQ panel border */
  --border-soft:   rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .18);

  /* Text */
  --text:       #EAF0FC; /* REPUTIQ body text */
  --text-dim:   rgba(234, 240, 252, .72);
  --text-muted: #6C7C9C; /* REPUTIQ eyebrow / muted */
  --text-faint: rgba(234, 240, 252, .42);

  /* Brand accents — REPUTIQ 実測値 */
  --blue:        #2E6BFF; /* REPUTIQ btn-primary */
  --blue-bright: #5B8CFF;
  --purple:      #7C5CFF; /* REPUTIQ card/panel アクセント */
  --orange:      #FF7A45; /* REPUTIQ "AI INSIGHT" ラベル色 */
  --cyan:        #27C2FF; /* データライン・フォーカスリング用 */

  /* Semantic（ダーク背景での可読性を優先し、原色よりやや明るく調整） */
  --success: #22C58D;
  --warning: #F0A93E;
  --risk:    #FF6B78;

  --success-wash: rgba(34, 197, 141, .12);
  --warning-wash: rgba(240, 169, 62, .12);
  --risk-wash:    rgba(255, 107, 120, .10);
  --blue-wash:    rgba(46, 107, 255, .14);
  --purple-wash:  rgba(124, 92, 255, .14);

  /* Typography — REPUTIQ 実測値 */
  --font-heading: "Archivo", "IBM Plex Sans JP", sans-serif;
  --font-body:    "IBM Plex Sans JP", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font: var(--font-body);

  /* Layout — REPUTIQ 実測値 */
  --wrap: 1240px;
  --wrap-narrow: 760px;
  --gutter: 24px;
  --radius:    14px; /* REPUTIQ card/panel */
  --radius-lg: 18px;
  --radius-sm: 8px;  /* REPUTIQ button */

  /* Motion — 150〜250ms */
  --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
  --t:      200ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 250ms cubic-bezier(.4, 0, .2, 1);

  --shadow:    0 2px 10px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px -22px rgba(0, 0, 0, .6);
  --glow-blue:   0 8px 26px -10px rgba(46, 107, 255, .55);
  --glow-purple: 0 8px 26px -10px rgba(124, 92, 255, .5);
}

/* =====================================================================
   Reset & base
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  word-break: auto-phrase;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.24; letter-spacing: -.022em; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); line-height: 1.3; letter-spacing: -.016em; }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.28rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.lede, .hero-lede { text-wrap: pretty; }

p { margin: 0 0 1.15em; color: var(--text-dim); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-bright); text-decoration-color: rgba(91, 140, 255, .4); text-underline-offset: .22em; }
a:hover { color: var(--cyan); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; color: var(--text-dim); }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--text); }

hr { border: 0; border-top: 1px solid var(--border-soft); margin: 2.4rem 0; }

.num, table, .stat-value, .price-figure, .metric-value, time, .tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(46, 107, 255, .38); color: #fff; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top var(--t);
}
.skip-link:focus { top: 16px; color: #fff; }

/* =====================================================================
   Layout primitives
   ===================================================================== */

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(56px, 8vw, 108px); background: var(--bg); border-top: 1px solid var(--border-soft); }
.section:first-of-type { border-top: 0; }
.section-tight { padding-block: clamp(40px, 5.5vw, 68px); }

/* リズム用の階調セクション（旧: section-white）。もはや「白」ではないが、
   16ページのマークアップを変更しないためクラス名は維持する。 */
.section-white { background: var(--bg-raised); }

/* 強調セクション（旧: section-navy）。最も暗い階調で締める。 */
.section-navy { background: var(--bg-deep); }

.grid > *, .legal-layout > *, .hero-grid > * { min-width: 0; }

.lede { font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.92; max-width: 62ch; color: var(--text-dim); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* データライン・モチーフ：REPUTIQ の "—— LABEL" と同系統の細い罫線 */
.marker {
  display: block;
  width: 44px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  margin-bottom: 20px;
}
.center .marker { margin-inline: auto; }

.section-head { max-width: 66ch; margin-bottom: clamp(32px, 4vw, 52px); }
.center .section-head { margin-inline: auto; }

/* Entry無料訴求の大きな数字表示 */
.stat-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 64px);
  margin: clamp(28px, 4vw, 44px) 0;
}
.stat-duo-figure {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--text-dim));
  -webkit-background-clip: text;
  background-clip: text;
}
.stat-duo-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.stat-duo-sep {
  width: 1px;
  height: 52px;
  background: var(--border);
}
@media (max-width: 560px) {
  .stat-duo { gap: 28px; }
  .stat-duo-sep { height: 40px; }
}

/* =====================================================================
   Buttons — REPUTIQ 実測値：単色ブルー、角丸8px
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast), box-shadow var(--t);
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}
@media (max-width: 560px) { .btn { white-space: normal; } }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--glow-blue); }
.btn-primary:hover { background: var(--blue-bright); color: #fff; }

.btn-navy { background: var(--text); color: #060810; }
.btn-navy:hover { background: #fff; color: #060810; }

.btn-ghost { background: var(--surface); color: var(--text-dim); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(255, 255, 255, .32); color: var(--text); }

.btn-sm { padding: 9px 17px; font-size: .87rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }

/* =====================================================================
   Header
   ===================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 6, 12, .82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand-sub { font-family: var(--font-mono); font-size: .62rem; color: var(--text-muted); letter-spacing: .04em; font-weight: 500; }

/* REPUTIQ の "AI" バッジに相当。ここでは "FX" を表示する。 */
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 20px; padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .03em; color: var(--text-dim);
  margin-left: 2px;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) {
  display: block;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.site-nav a:not(.btn):hover { background: var(--surface-hover); color: var(--text); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--text); background: var(--blue-wash); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 72px;
    background: #05070E;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 22px;
    margin-left: 0;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 13px 14px; font-size: 1rem; }
  .header-actions .btn-login { display: none; }
  .site-nav .nav-mobile-actions {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border-soft);
  }
}
@media (min-width: 1041px) { .site-nav .nav-mobile-actions { display: none; } }
@media (max-width: 560px) { .header-actions .btn-entry { display: none; } .brand-sub { display: none; } }

/* =====================================================================
   Hero
   ===================================================================== */

.hero { position: relative; background: var(--bg-deep); color: var(--text-dim); overflow: hidden; padding-block: clamp(64px, 9vw, 116px); }

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(760px 420px at 82% 6%,  rgba(124, 92, 255, .22), transparent 62%),
    radial-gradient(640px 460px at 8% 96%,  rgba(46, 107, 255, .18), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 84px 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 70%, transparent);
}

.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .82fr); gap: clamp(32px, 5vw, 68px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: 22px; }
.hero-title span { display: inline-block; }
.hero-lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.94; max-width: 54ch; margin-bottom: 30px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: .74rem; font-weight: 500;
  color: var(--cyan);
  background: var(--blue-wash);
  border: 1px solid rgba(46, 107, 255, .3);
  border-radius: 999px;
  padding: 7px 15px 7px 13px;
  margin-bottom: 26px;
  letter-spacing: .01em;
}

.hero-note {
  margin-top: 24px;
  font-size: .86rem; line-height: 1.8;
  color: var(--text-faint);
  border-left: 2px solid rgba(255, 107, 120, .55);
  padding-left: 14px;
  max-width: 48ch;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-panel h2 { font-family: var(--font-heading); font-size: 1rem; color: #fff; margin-bottom: 4px; }
.hero-panel .panel-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 20px; }
.hero-cost { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); }
.hero-cost:last-of-type { border-bottom: 0; }
.hero-cost dt { font-size: .89rem; color: var(--text-dim); }
.hero-cost dd { margin: 0; font-size: 1.28rem; font-weight: 700; font-family: var(--font-heading); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hero-cost dd small { font-size: .72rem; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.hero-panel-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-soft); font-size: .8rem; line-height: 1.75; color: var(--text-muted); }

/* Page hero（下層ページ） */
.page-hero { background: var(--bg-deep); color: var(--text-dim); padding-block: clamp(48px, 6.5vw, 84px); position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(720px 340px at 88% 0%, rgba(124, 92, 255, .18), transparent 60%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: var(--text-dim); max-width: 60ch; font-size: clamp(.98rem, 1.3vw, 1.08rem); line-height: 1.9; }

.crumbs { font-family: var(--font-mono); font-size: .78rem; color: var(--text-muted); margin-bottom: 18px; letter-spacing: .01em; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.crumbs span { margin-inline: 8px; opacity: .6; }

/* =====================================================================
   Trust strip
   ===================================================================== */

.trust-strip { background: #05070E; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding-block: 26px; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.trust-list li { margin: 0; padding-left: 15px; border-left: 2px solid var(--blue); font-size: .88rem; line-height: 1.6; color: var(--text-dim); }
.trust-list b { display: block; color: var(--text); font-weight: 600; font-size: .95rem; font-family: var(--font-heading); }
.trust-list small { color: var(--text-muted); font-size: .78rem; }
@media (max-width: 860px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .trust-list { grid-template-columns: 1fr; } }

/* =====================================================================
   Cards & grids
   ===================================================================== */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* REPUTIQ の w3-card / panel と同じ「透明塗り＋細罫」パターン */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color var(--t), background var(--t);
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
/* 旧ライトテーマの区別用クラス。ダーク統一のため .card と同一表示にする */
.card-navy { background: var(--surface); border-color: var(--border); color: var(--text-dim); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; margin: 0; padding: 26px 0 26px 68px; border-top: 1px solid var(--border-soft); }
.steps li:last-child { border-bottom: 1px solid var(--border-soft); }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 26px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--blue);
}
.steps h3 { margin-bottom: .35em; font-size: 1.08rem; }
.steps p { margin-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .7em; line-height: 1.75; color: var(--text-dim); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--success-wash); border: 1.5px solid var(--success);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: .76em;
  width: 5px; height: 8px;
  border-right: 2px solid var(--success); border-bottom: 2px solid var(--success);
  transform: rotate(42deg);
}

/* =====================================================================
   Badges & callouts
   ===================================================================== */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: .7rem; font-weight: 500;
  padding: 4px 11px; border-radius: 999px; letter-spacing: .03em; line-height: 1.6;
}
.badge-demo   { background: var(--warning-wash); color: #FFC876; border: 1px solid rgba(240, 169, 62, .38); }
.badge-locked { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.badge-risk   { background: var(--risk-wash); color: #FF9AA3; border: 1px solid rgba(255, 107, 120, .35); }
.badge-plan   { background: var(--blue-wash); color: #8FB3FF; border: 1px solid rgba(46, 107, 255, .35); }
.badge-pro    { background: var(--purple-wash); color: #B9A7FF; border: 1px solid rgba(124, 92, 255, .38); }

.risk-note {
  display: flex; gap: 11px;
  background: var(--risk-wash);
  border: 1px solid rgba(255, 107, 120, .3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .86rem; line-height: 1.78;
  color: #FFC1C7;
}
.risk-note strong { color: #FFD3D7; }
.risk-note svg { flex-shrink: 0; margin-top: 3px; color: #FF8891; }
.risk-note p { color: inherit; }
.risk-note p:last-child { margin-bottom: 0; }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: .9rem; line-height: 1.8;
  color: var(--text-dim);
}
.note-warning { border-left-color: var(--warning); background: var(--warning-wash); border-color: rgba(240, 169, 62, .3); color: #FFDDA8; }

.empty-state { border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); padding: clamp(36px, 6vw, 60px) 28px; text-align: center; }
.empty-state .empty-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); font-size: .92rem; max-width: 52ch; margin-inline: auto; }
.empty-icon { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--text-faint); }

/* =====================================================================
   Plans
   ===================================================================== */

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 940px) { .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex; flex-direction: column; height: 100%;
  transition: border-color var(--t);
}
.plan-featured { border-color: rgba(124, 92, 255, .45); box-shadow: var(--glow-purple), var(--shadow-lg); position: relative; }
.plan-featured::before {
  content: "人気"; position: absolute; top: -12px; left: 26px;
  background: var(--purple); color: #fff;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 999px;
}

.plan-name { font-family: var(--font-heading); font-size: 1.24rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; margin-bottom: 4px; }
.plan-audience { font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; min-height: 2.6em; }
.plan-price { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 18px 0; margin-bottom: 20px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.price-row:last-child { margin-bottom: 0; }
.price-label { font-size: .87rem; color: var(--text-muted); }
.price-figure { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-figure small { font-size: .68rem; font-weight: 500; color: var(--text-muted); margin-left: 3px; }
.plan-summary { font-size: .9rem; line-height: 1.8; margin-bottom: 20px; color: var(--text-dim); }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px; font-size: .88rem; }
.plan-features li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); margin: 0; line-height: 1.6; }
.plan-features li:last-child { border-bottom: 0; }
.plan-features .f-label { color: var(--text-muted); flex-shrink: 0; }
.plan-features .f-value { text-align: right; font-weight: 600; color: var(--text); }
.plan-features li.is-excluded .f-value { color: var(--text-faint); font-weight: 500; }
.plan .btn { margin-top: auto; }

/* =====================================================================
   Tables
   ===================================================================== */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
caption { text-align: left; padding: 16px 18px; font-weight: 600; font-family: var(--font-heading); color: var(--text); border-bottom: 1px solid var(--border); }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; line-height: 1.7; color: var(--text-dim); }
thead th { background: rgba(255, 255, 255, .02); color: var(--text); font-weight: 600; font-size: .82rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th[scope="row"] { color: var(--text); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-pos { color: var(--success); font-weight: 700; }
.t-neg { color: var(--risk); font-weight: 700; }
.t-zero { color: var(--text-muted); }

/* 比較表: アイコン + テキストの横並び */
.feature-cell { display: flex; align-items: center; gap: 8px; }
.feature-cell.is-excluded { color: var(--text-faint); }
.feature-cell span { line-height: 1.4; }

/* =====================================================================
   Accordion (FAQ)
   ===================================================================== */

.accordion { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--border-soft); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer; padding: 20px 54px 20px 22px;
  font-weight: 600; color: var(--text);
  position: relative; list-style: none; line-height: 1.65;
  transition: background var(--t);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--surface-hover); }
.accordion summary::after {
  content: ""; position: absolute; right: 24px; top: 27px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg); transition: transform var(--t);
}
.accordion details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.accordion .acc-body { padding: 0 22px 22px; font-size: .93rem; line-height: 1.86; color: var(--text-dim); }

/* =====================================================================
   Fee calculator
   ===================================================================== */

.hwm { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hwm-head { padding: 20px 22px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.hwm-head h3 { margin-bottom: 4px; font-size: 1.05rem; }
.hwm-head p { margin: 0; font-size: .86rem; color: var(--text-muted); }
.hwm .hwm-foot { padding: 18px 22px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-muted); line-height: 1.8; }
.hwm table { min-width: 720px; }
.hwm .table-scroll { border: 0; border-radius: 0; }
.row-billable { background: var(--blue-wash); }

/* =====================================================================
   Metrics
   ===================================================================== */

.metric-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .metric-grid { grid-template-columns: 1fr; } }

.metric { background: var(--bg-raised); padding: 22px 20px; }
.metric-label { font-size: .8rem; color: var(--text-muted); margin-bottom: 7px; line-height: 1.5; }
.metric-value { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric-value.is-empty { color: var(--text-faint); font-size: 1.1rem; font-weight: 500; }
.metric-hint { font-size: .76rem; color: var(--text-faint); margin-top: 5px; line-height: 1.6; }

/* =====================================================================
   Policy cards（Pro 運用方針）
   ===================================================================== */

.policy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.policy-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.policy-name { font-family: var(--font-heading); font-size: 1.16rem; font-weight: 700; color: var(--text); }
.policy-name small { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; color: var(--text-muted); letter-spacing: .02em; }
.policy-target { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.policy-target small { font-family: var(--font-mono); font-size: .62rem; font-weight: 500; color: var(--text-muted); display: block; text-align: right; letter-spacing: .02em; }
.policy p { font-size: .9rem; margin: 0; color: var(--text-dim); }

/* =====================================================================
   Market analysis card（次フェーズ用コンポーネント）
   ===================================================================== */

.analysis { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.analysis-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.analysis-pair { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.analysis-body { padding: 22px; }
.analysis-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 18px 22px; border-top: 1px solid var(--border-soft); background: rgba(255, 255, 255, .02); font-size: .8rem; color: var(--text-muted); }
.analysis-meta div b { display: block; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.analysis-disclaimer { padding: 14px 22px; border-top: 1px solid var(--border); background: var(--risk-wash); font-size: .82rem; color: #FFC1C7; line-height: 1.7; }
.dir { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; }
.dir-up { color: var(--success); }
.dir-flat { color: var(--text-muted); }
.dir-down { color: var(--risk); }

.locked { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 30px 26px; text-align: center; }
.locked-icon { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--text-faint); }
.locked h3 { font-size: 1.02rem; margin-bottom: 8px; }
.locked p { font-size: .89rem; color: var(--text-muted); max-width: 44ch; margin-inline: auto; }

/* =====================================================================
   Forms
   ===================================================================== */

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); }

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }

label, .field-label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 7px; line-height: 1.6; }
.field-hint { font-size: .82rem; color: var(--text-muted); margin-top: -3px; margin-bottom: 9px; line-height: 1.7; }
.req { color: var(--risk); font-size: .78rem; font-weight: 600; margin-left: 5px; }
.optional { color: var(--text-muted); font-size: .78rem; font-weight: 500; margin-left: 5px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.6;
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); background: rgba(255, 255, 255, .045);
  box-shadow: 0 0 0 3px rgba(46, 107, 255, .22); outline: none;
}
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--risk); box-shadow: 0 0 0 3px rgba(255, 107, 120, .16); }
textarea { min-height: 130px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236C7C9C' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 42px;
}
select option { background: #0A0F1C; color: var(--text); }

.field-error { display: block; color: #FF9AA3; font-size: .84rem; font-weight: 600; margin-top: 6px; line-height: 1.6; }

.choice {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .02);
  transition: border-color var(--t), background var(--t);
  font-weight: 400; color: var(--text-dim);
}
.choice:last-child { margin-bottom: 0; }
.choice:hover { border-color: var(--border-strong); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); }
.choice input { margin: 4px 0 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--blue); }
.choice-text { flex: 1; font-size: .93rem; line-height: 1.72; }
.choice-text b { display: block; color: var(--text); font-weight: 600; }
.choice-text span { color: var(--text-muted); font-size: .85rem; }

.consent { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: rgba(255, 255, 255, .015); }
.consent .choice { background: rgba(255, 255, 255, .03); }
.consent-doc-link { font-size: .84rem; font-weight: 600; white-space: nowrap; }

.stepper { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stepper li { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
.stepper li::after { content: ""; width: 18px; height: 1px; background: var(--border); flex-shrink: 0; }
.stepper li:last-child::after { display: none; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  font-variant-numeric: tabular-nums; flex-shrink: 0; color: var(--text-muted);
}
.stepper li[aria-current="step"] { color: var(--text); font-weight: 600; }
.stepper li[aria-current="step"] .step-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper li.is-done .step-num { background: var(--success-wash); border-color: var(--success); color: var(--success); }

.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border-soft); }

.form-summary-error {
  background: var(--risk-wash); border: 1px solid rgba(255, 107, 120, .35);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px;
  color: #FFC1C7; font-size: .9rem;
}
.form-summary-error ul { margin: 8px 0 0; padding-left: 1.2em; }
.form-summary-error a { color: #FFC1C7; }

.fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.fieldset legend { font-family: var(--font-heading); font-size: 1.02rem; font-weight: 600; color: var(--text); margin-bottom: 6px; padding: 0; }
.fieldset .legend-hint { font-size: .87rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; }

/* =====================================================================
   Footer
   ===================================================================== */

.site-footer { background: var(--bg-deep); color: var(--text-muted); padding-block: clamp(44px, 6vw, 68px) 32px; font-size: .89rem; border-top: 1px solid var(--border-soft); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 34px; border-bottom: 1px solid var(--border-soft); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

.footer-brand .brand-name { color: #fff; }
.footer-about { margin-top: 16px; font-size: .84rem; line-height: 1.85; color: var(--text-muted); max-width: 38ch; }
.footer-company { margin-top: 16px; font-size: .8rem; line-height: 1.8; color: var(--text-faint); }
.footer-col h4 { font-family: var(--font-heading); color: var(--text); font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .86rem; transition: color var(--t); }
.footer-col a:hover { color: var(--text); text-decoration: underline; }

.footer-risk { margin-top: 30px; padding: 20px 22px; border: 1px solid rgba(255, 107, 120, .28); background: var(--risk-wash); border-radius: var(--radius-sm); font-size: .82rem; line-height: 1.85; color: #FFC1C7; }
.footer-risk b { color: #FFD3D7; }

.footer-bottom { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--text-faint); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); text-decoration: underline; }

/* =====================================================================
   Cookie consent
   ===================================================================== */

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  background: #0A0F1C; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 20px 22px; display: none; gap: 20px; align-items: center;
  max-width: 880px; margin-inline: auto;
}
.cookie-bar.is-visible { display: flex; flex-wrap: wrap; }
.cookie-bar p { margin: 0; font-size: .87rem; line-height: 1.75; flex: 1 1 260px; min-width: 0; color: var(--text-dim); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =====================================================================
   Legal pages
   ===================================================================== */

.legal-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 30px; } }

.legal-nav { position: sticky; top: 96px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 8px; }
@media (max-width: 900px) { .legal-nav { position: static; } }
.legal-nav ul { list-style: none; margin: 0; padding: 0; }
.legal-nav li { margin: 0; }
.legal-nav a { display: block; padding: 10px 13px; border-radius: var(--radius-sm); font-size: .87rem; font-weight: 500; color: var(--text-dim); text-decoration: none; line-height: 1.5; }
.legal-nav a:hover { background: var(--surface-hover); color: var(--text); }
.legal-nav a[aria-current="page"] { background: var(--blue-wash); color: var(--text); }

.legal-body { max-width: 74ch; min-width: 0; }
.legal-body h2 { font-size: 1.28rem; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--border-soft); }
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.03rem; margin-top: 1.8em; }
.legal-body ul, .legal-body ol { margin-bottom: 1.3em; }
.legal-body .meta { font-family: var(--font-mono); font-size: .8rem; color: var(--text-muted); padding-bottom: 1.6em; margin-bottom: 2em; border-bottom: 1px solid var(--border-soft); font-variant-numeric: tabular-nums; }

/* =====================================================================
   Auth pages
   ===================================================================== */

.auth-wrap { min-height: calc(100vh - 72px); display: grid; place-items: center; padding-block: clamp(40px, 7vw, 80px); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-card .auth-sub { font-size: .9rem; color: var(--text-muted); margin-bottom: 28px; }
.auth-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: .87rem; text-align: center; color: var(--text-muted); }

/* =====================================================================
   Utilities
   ===================================================================== */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 22px; } .mt-3 { margin-top: 34px; } .mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 22px; } .mb-3 { margin-bottom: 34px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .88rem; color: var(--text-dim); }
.text-xs { font-size: .8rem; line-height: 1.75; color: var(--text-muted); }

.tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--border-strong); color: var(--text-muted);
  font-size: .68rem; font-weight: 700; cursor: help;
  vertical-align: middle; margin-left: 5px; background: transparent; padding: 0;
  font-family: inherit; line-height: 1;
}
.tip:hover, .tip:focus-visible { border-color: var(--cyan); color: var(--cyan); }

/* =====================================================================
   Motion preferences
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-reveal > * { opacity: 0; transform: translateY(10px); animation: heroIn 250ms cubic-bezier(.4, 0, .2, 1) forwards; }
  .hero-reveal > *:nth-child(1) { animation-delay: 40ms; }
  .hero-reveal > *:nth-child(2) { animation-delay: 90ms; }
  .hero-reveal > *:nth-child(3) { animation-delay: 140ms; }
  .hero-reveal > *:nth-child(4) { animation-delay: 190ms; }
  .hero-reveal > *:nth-child(5) { animation-delay: 230ms; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
}

/* =====================================================================
   Print
   ===================================================================== */

@media print {
  .site-header, .site-footer, .cookie-bar, .btn-row, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero, .hero { background: #fff !important; color: #000 !important; }
  .page-hero h1, .hero h1 { color: #000 !important; }
}
