@charset "UTF-8";

/* =====================================================================
   TRADEIQ FX — Design tokens
   REPUTIQ AI と共通の「IQ」ブランドファミリー。
   仕様書 §9 デザインシステムに準拠。
   ===================================================================== */

:root {
  /* Core palette */
  --ink-navy:   #0B1220;
  --deep-navy:  #111C33;
  --cloud:      #F7F9FC;
  --white:      #FFFFFF;
  --cyan:       #27C2FF;
  --purple:     #7457FF;
  --success:    #15A879;
  --warning:    #E59B32;
  --risk:       #D9505E;
  --body:       #334155;

  /* Derived neutrals */
  --line:        #E2E8F0;
  --line-soft:   #EDF1F7;
  --muted:       #64748B;
  --muted-light: #94A3B8;
  --navy-line:   rgba(255, 255, 255, .14);
  --navy-muted:  rgba(226, 235, 247, .68);

  /* Tinted surfaces */
  --cyan-wash:    rgba(39, 194, 255, .10);
  --purple-wash:  rgba(116, 87, 255, .10);
  --risk-wash:    rgba(217, 80, 94, .09);
  --warning-wash: rgba(229, 155, 50, .11);
  --success-wash: rgba(21, 168, 121, .10);

  /* Type */
  --font-en: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font: var(--font-en), var(--font-ja);

  /* Layout */
  --wrap: 1180px;
  --wrap-narrow: 760px;
  --gutter: 24px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  /* 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);

  /* Elevation — restrained */
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05);
  --shadow:    0 2px 8px rgba(11, 18, 32, .06);
  --shadow-lg: 0 18px 48px -22px rgba(11, 18, 32, .28);
}

/* =====================================================================
   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(--cloud);
  color: var(--body);
  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(--ink-navy);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  /* 日本語を文節境界で折り返す（Chrome 119+ / 非対応ブラウザは無視）。
     text-wrap: balance と併用し、「〜してくださ／い」のような分断を防ぐ。 */
  word-break: auto-phrase;
  text-wrap: balance;
}

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

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.28; letter-spacing: -.026em; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.1rem); line-height: 1.34; letter-spacing: -.02em; }
h3 { font-size: clamp(1.125rem, 1.7vw, 1.3rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink-navy); text-decoration-color: var(--cyan); text-underline-offset: .22em; }
a:hover { color: var(--purple); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }

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

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

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

/* Focus — always visible */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
.on-navy :focus-visible { outline-color: #7FDCFF; }

::selection { background: rgba(39, 194, 255, .24); color: var(--ink-navy); }

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--ink-navy);
  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, 104px); }
.section-tight { padding-block: clamp(40px, 5.5vw, 68px); }
.section-navy { background: var(--ink-navy); color: var(--navy-muted); }
.section-white { background: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy a { color: #fff; }

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.92;
  max-width: 62ch;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Section marker — the recurring "data line" motif.
   A thin rule whose leading segment is the brand gradient. */
.marker {
  display: block;
  width: 68px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  margin-bottom: 20px;
}
.center .marker { margin-inline: auto; }
.section-navy .marker { background: linear-gradient(90deg, var(--cyan), #B9A8FF); }

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

/* =====================================================================
   Buttons
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 700;
  line-height: 1.25;
  padding: 14px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t-fast);
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

/* 狭い画面では、長い日本語ラベルを折り返す。
   nowrap のままだと 320px 幅で横溢れを起こす。 */
@media (max-width: 560px) {
  .btn { white-space: normal; }
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(116, 87, 255, .55);
}
.btn-primary:hover { color: #fff; filter: saturate(1.06) brightness(1.04); }

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

.btn-ghost {
  background: transparent;
  color: var(--ink-navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink-navy); background: var(--white); color: var(--ink-navy); }

.on-navy .btn-ghost, .section-navy .btn-ghost {
  color: #fff;
  border-color: var(--navy-line);
}
.on-navy .btn-ghost:hover, .section-navy .btn-ghost:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

.btn-sm { padding: 10px 18px; font-size: .9rem; }
.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(247, 249, 252, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.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-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.022em;
  color: var(--ink-navy);
}
.brand-sub {
  font-size: .66rem;
  color: var(--muted);
  letter-spacing: .04em;
  font-weight: 600;
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.site-nav a:hover { background: rgba(11, 18, 32, .05); color: var(--ink-navy); }
.site-nav a[aria-current="page"] {
  color: var(--ink-navy);
  background: rgba(39, 194, 255, .12);
}

.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(--line);
  border-radius: 9px;
  cursor: pointer;
  color: var(--ink-navy);
}

@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: var(--white);
    border-bottom: 1px solid var(--line);
    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(--line);
  }
}
@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(--ink-navy);
  color: var(--navy-muted);
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 116px);
}

/* Restrained gradient field — no neon, no animation */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 78% 8%,  rgba(116, 87, 255, .30), transparent 62%),
    radial-gradient(640px 460px at 12% 92%, rgba(39, 194, 255, .19), transparent 60%);
  pointer-events: none;
}

/* Thin data lines — the brand motif, very low contrast */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 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;
  color: var(--navy-muted);
  max-width: 54ch;
  margin-bottom: 30px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 600;
  color: #A9E5FF;
  background: rgba(39, 194, 255, .10);
  border: 1px solid rgba(39, 194, 255, .26);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 26px;
}

.hero-note {
  margin-top: 24px;
  font-size: .86rem;
  line-height: 1.8;
  color: rgba(226, 235, 247, .58);
  border-left: 2px solid rgba(217, 80, 94, .55);
  padding-left: 14px;
  max-width: 48ch;
}

/* Hero side panel — the fee structure, stated plainly.
   Chosen over a fake performance chart: we have no verified data. */
.hero-panel {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(8px);
}
.hero-panel h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}
.hero-panel .panel-sub {
  font-size: .82rem;
  color: rgba(226, 235, 247, .55);
  margin-bottom: 20px;
}
.hero-cost {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--navy-line);
}
.hero-cost:last-of-type { border-bottom: 0; }
.hero-cost dt { font-size: .89rem; color: rgba(226, 235, 247, .72); }
.hero-cost dd {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.hero-cost dd small {
  font-size: .74rem;
  font-weight: 600;
  color: rgba(226, 235, 247, .55);
  margin-left: 4px;
}
.hero-panel-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--navy-line);
  font-size: .8rem;
  line-height: 1.75;
  color: rgba(226, 235, 247, .55);
}

/* Page hero (sub-pages) */
.page-hero {
  background: var(--ink-navy);
  color: var(--navy-muted);
  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(116, 87, 255, .26), 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(--navy-muted);
  max-width: 60ch;
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  line-height: 1.9;
}

/* Breadcrumb */
.crumbs {
  font-size: .84rem;
  color: rgba(226, 235, 247, .55);
  margin-bottom: 16px;
}
.crumbs a { color: rgba(226, 235, 247, .8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin-inline: 8px; opacity: .5; }

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

.trust-strip {
  background: var(--deep-navy);
  border-top: 1px solid var(--navy-line);
  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 rgba(39, 194, 255, .5);
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(226, 235, 247, .85);
}
.trust-list b { display: block; color: #fff; font-weight: 700; font-size: .95rem; }
.trust-list small { color: rgba(226, 235, 247, .5); 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/flex アイテムが内容に押し広げられるのを防ぐ */
.grid > *, .legal-layout > *, .hero-grid > * { min-width: 0; }
.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; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-navy {
  background: rgba(255, 255, 255, .045);
  border-color: var(--navy-line);
  color: var(--navy-muted);
}

/* Step list — genuinely sequential, so numbering is meaningful */
.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(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.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-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-navy);
  background: var(--white);
  border: 2px solid var(--cyan);
}
.steps h3 { margin-bottom: .35em; font-size: 1.1rem; }
.steps p { margin-bottom: 0; }

/* Feature list with check marks */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: .7em;
  line-height: 1.75;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  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: .78em;
  width: 5px; height: 8px;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(42deg);
}
.check-list.on-dark li::before { background: rgba(21, 168, 121, .2); }

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: .02em;
  line-height: 1.5;
}
.badge-demo   { background: var(--warning-wash); color: #8A5A12; border: 1px solid rgba(229, 155, 50, .42); }
.badge-locked { background: rgba(100, 116, 139, .1); color: var(--muted); border: 1px solid var(--line); }
.badge-risk   { background: var(--risk-wash); color: #9B2D39; border: 1px solid rgba(217, 80, 94, .35); }
.badge-plan   { background: var(--cyan-wash); color: #0F5F82; border: 1px solid rgba(39, 194, 255, .35); }
.badge-pro    { background: var(--purple-wash); color: #4B2FD1; border: 1px solid rgba(116, 87, 255, .32); }

/* Risk note — appears adjacent to every rate/target figure */
.risk-note {
  display: flex;
  gap: 11px;
  background: var(--risk-wash);
  border: 1px solid rgba(217, 80, 94, .28);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: .86rem;
  line-height: 1.78;
  color: #7F2530;
}
.risk-note strong { color: #7F2530; }
.risk-note svg { flex-shrink: 0; margin-top: 3px; }
.risk-note p:last-child { margin-bottom: 0; }

.note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: .9rem;
  line-height: 1.8;
}
.note-warning { border-left-color: var(--warning); background: var(--warning-wash); border-color: rgba(229, 155, 50, .3); }

/* Empty state — used wherever real data is not yet connected */
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(36px, 6vw, 60px) 28px;
  text-align: center;
}
.empty-state .empty-title {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-navy);
  margin-bottom: 10px;
}
.empty-state p {
  color: var(--muted);
  font-size: .92rem;
  max-width: 52ch;
  margin-inline: auto;
}
.empty-icon {
  width: 46px; height: 46px;
  margin: 0 auto 18px;
  color: var(--muted-light);
}

/* =====================================================================
   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(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.plan-featured {
  border-color: rgba(116, 87, 255, .4);
  box-shadow: var(--shadow-lg);
}
.plan-name {
  font-family: var(--font-en);
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--ink-navy);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.plan-audience {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 20px;
  min-height: 2.6em;
}
.plan-price {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-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(--muted); }
.price-figure {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-navy);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.price-figure small { font-size: .7rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.plan-summary { font-size: .9rem; line-height: 1.8; margin-bottom: 20px; }
.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(--line-soft);
  margin: 0;
  line-height: 1.6;
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features .f-label { color: var(--muted); flex-shrink: 0; }
.plan-features .f-value { text-align: right; font-weight: 600; color: var(--ink-navy); }
.plan-features li.is-excluded .f-value { color: var(--muted-light); font-weight: 500; }
.plan .btn { margin-top: auto; }

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

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 620px;
}
caption {
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--ink-navy);
  border-bottom: 1px solid var(--line);
}
th, td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.7;
}
thead th {
  background: var(--cloud);
  color: var(--ink-navy);
  font-weight: 700;
  font-size: .85rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
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(--muted); }

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

.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.accordion details { border-bottom: 1px solid var(--line-soft); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer;
  padding: 20px 54px 20px 22px;
  font-weight: 700;
  color: var(--ink-navy);
  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(--cloud); }
.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;
}

/* =====================================================================
   Fee calculator (high-water mark)
   ===================================================================== */

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

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

/* auto-fit だと項目数によって最終行に空セルが残るため、
   4列を明示する（実績8項目=2行、シミュレーター4項目=1行で割り切れる） */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--white);
  padding: 22px 20px;
}
.metric-label {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 7px;
  line-height: 1.5;
}
.metric-value {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink-navy);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.metric-value.is-empty { color: var(--muted-light); font-size: 1.15rem; font-weight: 600; }
.metric-hint { font-size: .76rem; color: var(--muted-light); margin-top: 5px; line-height: 1.6; }

@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .metric-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Policy cards (Pro strategies)
   ===================================================================== */

.policy {
  background: var(--white);
  border: 1px solid var(--line);
  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-en); font-size: 1.16rem; font-weight: 800; color: var(--ink-navy); }
.policy-name small { display: block; font-family: var(--font-ja); font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.policy-target {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.policy-target small { font-size: .68rem; font-weight: 600; color: var(--muted); display: block; text-align: right; letter-spacing: 0; }
.policy p { font-size: .9rem; margin: 0; }

/* =====================================================================
   Market analysis card
   ===================================================================== */

.analysis {
  background: var(--white);
  border: 1px solid var(--line);
  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(--line);
}
.analysis-pair {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink-navy);
  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(--line-soft);
  background: var(--cloud);
  font-size: .8rem;
  color: var(--muted);
}
.analysis-meta div b { display: block; color: var(--ink-navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.analysis-disclaimer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: var(--risk-wash);
  font-size: .82rem;
  color: #7F2530;
  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(--muted); }
.dir-down { color: var(--risk); }

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

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

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  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: 700;
  color: var(--ink-navy);
  margin-bottom: 7px;
  line-height: 1.6;
}
.field-hint {
  font-size: .82rem;
  color: var(--muted);
  margin-top: -3px;
  margin-bottom: 9px;
  line-height: 1.7;
}
.req {
  color: var(--risk);
  font-size: .78rem;
  font-weight: 700;
  margin-left: 5px;
}
.optional {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  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: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color var(--t), box-shadow var(--t);
}
input:hover, select:hover, textarea:hover { border-color: var(--muted-light); }
input:focus, select:focus, textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(39, 194, 255, .16);
  outline: none;
}
input[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--risk);
  box-shadow: 0 0 0 3px rgba(217, 80, 94, .13);
}
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='%2364748B' 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;
}

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

/* Choice controls */
.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--t), background var(--t);
  font-weight: 400;
  color: var(--body);
}
.choice:last-child { margin-bottom: 0; }
.choice:hover { border-color: var(--muted-light); }
.choice:has(input:checked) {
  border-color: var(--cyan);
  background: rgba(39, 194, 255, .05);
}
.choice input { margin: 4px 0 0; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--purple); }
.choice-text { flex: 1; font-size: .93rem; line-height: 1.72; }
.choice-text b { display: block; color: var(--ink-navy); font-weight: 700; }
.choice-text span { color: var(--muted); font-size: .85rem; }

/* Consent block — each document consented to separately, all default OFF */
.consent {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--cloud);
}
.consent .choice { background: var(--white); }
.consent-doc-link {
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Stepper */
.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(--muted);
  white-space: nowrap;
}
.stepper li::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--line);
  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(--white);
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.stepper li[aria-current="step"] { color: var(--ink-navy); font-weight: 700; }
.stepper li[aria-current="step"] .step-num {
  background: var(--ink-navy);
  border-color: var(--ink-navy);
  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(--line);
}

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

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

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

.site-footer {
  background: var(--ink-navy);
  color: rgba(226, 235, 247, .62);
  padding-block: clamp(44px, 6vw, 68px) 32px;
  font-size: .89rem;
}
.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(--navy-line);
}
@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-brand .brand-sub { color: rgba(226, 235, 247, .5); }
.footer-about {
  margin-top: 16px;
  font-size: .84rem;
  line-height: 1.85;
  color: rgba(226, 235, 247, .55);
  max-width: 38ch;
}
.footer-company {
  margin-top: 16px;
  font-size: .8rem;
  line-height: 1.8;
  color: rgba(226, 235, 247, .45);
}
.footer-col h4 {
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: rgba(226, 235, 247, .62);
  text-decoration: none;
  font-size: .86rem;
  transition: color var(--t);
}
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-risk {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid rgba(217, 80, 94, .3);
  background: rgba(217, 80, 94, .08);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  line-height: 1.85;
  color: rgba(255, 214, 218, .92);
}
.footer-risk b { color: #FFD6DA; }

.footer-bottom {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(226, 235, 247, .45);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: rgba(226, 235, 247, .58); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

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

.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 150;
  background: var(--white);
  border: 1px solid var(--line);
  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; }
/* flex-basis を広く取りすぎると 320px 幅で横溢れするため、min-width:0 を併用する */
.cookie-bar p { margin: 0; font-size: .87rem; line-height: 1.75; flex: 1 1 260px; min-width: 0; }
.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(--line);
  border-radius: var(--radius);
  background: var(--white);
  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: 8px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--body);
  text-decoration: none;
  line-height: 1.5;
}
.legal-nav a:hover { background: var(--cloud); color: var(--ink-navy); }
.legal-nav a[aria-current="page"] { background: rgba(39, 194, 255, .12); color: var(--ink-navy); }

/* min-width:0 が無いと、grid アイテムの既定値 auto により
   内部の広いテーブルがスクロールせず外側を押し広げてしまう */
.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(--line);
}
.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-size: .85rem;
  color: var(--muted);
  padding-bottom: 1.6em;
  margin-bottom: 2em;
  border-bottom: 1px solid var(--line);
  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(--white);
  border: 1px solid var(--line);
  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(--muted); margin-bottom: 28px; }
.auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  text-align: center;
  color: var(--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(--muted); }
.text-sm { font-size: .88rem; }
.text-xs { font-size: .8rem; line-height: 1.75; }

/* Tooltip — keyboard reachable */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1px solid var(--muted-light);
  color: var(--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;
  }
}

/* Single orchestrated page-load reveal, hero only */
@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; }
}
