:root {
  --ink:        #07111f;
  --ink-2:      #263241;
  --ink-3:      #5d6877;
  --ink-4:      #8a94a3;
  --blue:       #0969da;
  --green:      #008a55;
  --line:       #d9dee8;
  --line-soft:  #edf0f5;
  --paper:      #ffffff;
  --paper-2:    #fbfcfe;
  --paper-3:    #f5f7fb;
  --dark:       #07111f;

  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --w: 1280px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(243,246,251,0.92), rgba(255,255,255,0) 360px),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  line-height: 1.5;
}

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: 56px;
}
.nav .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--w);
}
.nav .brand {
  font-weight: 800; font-size: 20px; letter-spacing: -0.03em;
  color: var(--ink);
}
.nav-links { display: flex; gap: 42px; font-size: 12px; font-weight: 700; }
.nav-links a { color: var(--ink-2); text-decoration: none; cursor: pointer; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 700; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 2px;
}
.nav-right .lang {
  color: var(--ink-3);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 999px;
  padding: 4px 9px;
  font: inherit;
  font-weight: 800;
}
.nav-right .lang.on {
  color: var(--ink);
  background: #eef3fb;
}
.nav-right .sep { color: var(--line); }
.github-mark {
  width: 18px; height: 18px; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ============== TYPE ============== */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.04em; margin: 0; color: var(--ink); }
p { margin: 0; }

.eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--ink-3); margin-bottom: 6px;
}

/* ============== HERO ============== */
.hero { padding: 72px 0 26px; }
.hero-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 70px;
  align-items: center;
}
.hero-copy { padding-top: 12px; }
.hero h1 {
  font-size: clamp(48px, 5vw, 66px);
  line-height: 1.12;
  max-width: 420px;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; font-weight: 800; color: var(--ink-3); }
.hero .sub {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 410px;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
  text-wrap: balance;
}
.hero .cta-row {
  display: flex; gap: 22px; justify-content: flex-start; align-items: center;
  flex-wrap: wrap;
  margin-top: 30px; font-size: 15px; font-weight: 800;
}
.hero .cta-row a {
  color: #0066cc; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.hero .cta-row a:hover { text-decoration: underline; }
.hero .cta-row a.cta-primary {
  height: 44px; padding: 0 22px;
  background: var(--dark); color: var(--paper);
  border-radius: 999px;
}
.hero .cta-row a.cta-primary:hover { text-decoration: none; background: #16243a; }
.hero .hero-trust {
  margin: 22px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
  opacity: 0.78;
}

.hero-visual { min-width: 0; }
.app-window {
  background: var(--paper);
  border: 1px solid #b8c0cc;
  border-radius: 10px;
  box-shadow: 0 22px 66px rgba(8,20,37,0.1);
  overflow: hidden;
}
.app-topbar {
  height: 42px;
  background: #07111f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 800;
}
.app-chrome-meta { display: flex; gap: 18px; color: rgba(255,255,255,0.9); font-family: var(--font-sans); }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 578px; }
.app-sidebar {
  background: #fbfcff;
  border-right: 1px solid #c6ceda;
  padding: 18px 18px;
  font-size: 12px;
  font-weight: 700;
}
.app-menu-title { display: flex; justify-content: space-between; margin: 0 -18px 20px; padding: 0 18px 18px; border-bottom: 1px solid #c6ceda; font-size: 17px; }
.app-menu-group { margin: 18px 0 7px; color: var(--ink); font-size: 12px; }
.app-sidebar a { display: block; padding: 5px 0 5px 12px; color: #253247; text-decoration: none; font-size: 12px; font-weight: 600; }
.app-sidebar a.on { color: var(--blue); font-weight: 800; }
.dashboard { padding: 22px 28px 24px; background: #fff; }
.dashboard h3 { font-size: 21px; letter-spacing: -0.02em; }
.dashboard-sub { color: var(--ink-2); font-size: 13px; margin: 4px 0 18px; }
.metric-card, .chart-card, .challenge-card, .credential-card {
  border: 1px solid #b8c0cc;
  border-radius: 13px;
  background: #fff;
}
.metric-card { padding: 18px 22px 20px; margin-bottom: 20px; }
.metric-title { font-size: 17px; font-weight: 900; margin-bottom: 15px; }
.metric-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 18px; }
.metric-grid > div:not(:first-child) { border-left: 1px solid #c6ceda; padding-left: 24px; }
.metric-label { color: var(--ink); font-size: 12px; font-weight: 800; }
.metric-value { font-size: 27px; font-weight: 900; margin-top: 4px; letter-spacing: -0.03em; white-space: nowrap; }
.metric-value.green { color: #00a15f; }
.metric-value.blue { color: #0958d9; }
.chart-card { padding: 18px 22px 16px; margin-bottom: 20px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.chart-title { font-size: 17px; font-weight: 900; }
.chart-desc { font-size: 12px; color: var(--ink); margin: -8px 0 14px; }
.select-pill { border: 1px solid #9ca8b8; border-radius: 6px; color: var(--ink-3); font-size: 11px; padding: 7px 9px; min-width: 180px; text-align: right; }
.line-chart { display: block; width: 100%; height: auto; }
.chart-legend { display: flex; gap: 18px; font-size: 11px; color: var(--ink); margin-top: 7px; }
.challenge-card { padding: 18px 22px; }
.challenge-card h4 { font-size: 17px; letter-spacing: -0.01em; margin-bottom: 8px; }
.challenge-card p { font-size: 13px; color: var(--ink); margin-bottom: 12px; }
.tiny-button { background: var(--blue); color: #fff; border: 0; border-radius: 18px; height: 32px; padding: 0 18px; font-size: 13px; font-weight: 800; }

/* ============== SECTIONS ============== */
section { padding: 56px 0; }
section.alt { background: transparent; padding: 26px 0; }
section.alt .wrap {
  background: var(--paper-3);
  border-radius: var(--radius);
  padding-top: 34px;
  padding-bottom: 26px;
}
section .wrap { max-width: var(--w); }
section h2 {
  font-size: clamp(34px, 3.2vw, 46px);
  line-height: 1.18; max-width: 760px; margin: 0 0 12px;
  text-wrap: balance;
}
section .lead {
  font-size: 15px;
  color: var(--ink-2); max-width: 640px;
  line-height: 1.65; margin: 0 0 42px;
}
#modes .wrap > .eyebrow,
#modes .wrap > h2,
#modes .wrap > .lead,
.audience-intro { text-align: center; margin-left: auto; margin-right: auto; }
/* section h2 / .lead は左寄せ default なので、 audience-intro 内では明示的に
   margin 0 auto で中央寄せ (= max-width が効いた上で水平センター)。 */
.audience-intro h2,
.audience-intro .lead { margin-left: auto; margin-right: auto; }
.audience-intro .lead a { color: var(--ink); text-decoration: underline; }
.audience-intro .lead code {
  font-family: var(--font-mono); font-size: 0.92em;
  background: var(--paper-3); padding: 1px 6px; border-radius: 4px;
}
.extend-cta {
  margin-top: 12px; display: inline-flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}
.extend-cta .more { font-size: 13px; color: #0066cc; text-decoration: none; }
.extend-cta .more:hover { text-decoration: underline; }

/* ============== TWO-UP FEATURE ============== */
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; max-width: 980px; margin: 0 auto; }
.tile {
  background: transparent; border-radius: 0; padding: 0;
  min-height: 0; display: flex; flex-direction: column;
}
/* `.kicker` was a div; now `<h3>` for a11y. Reset h3 default margins to keep visual identical. */
.tile h3.kicker {
  margin: 0 0 8px;
  font-size: 17px; color: var(--ink); font-weight: 900;
  line-height: 1.3;
}
.tile p { font-size: 13px; line-height: 1.55; color: var(--ink-2); max-width: 350px; margin-bottom: 20px; font-weight: 600; }
.tile .demo { margin-top: 0; }

.portal-preview {
  background: #fff;
  border: 1px solid #b8c0cc;
  border-radius: 10px;
  box-shadow: 0 14px 42px rgba(8,20,37,0.08);
  padding: 20px;
  min-height: 0;
}
.portal-page-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.portal-page-desc {
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 14px;
}
.portal-container {
  border: 1px solid #b8c0cc;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}
.portal-container + .portal-container { margin-top: 12px; }
.portal-container-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}
.portal-chart {
  width: 100%;
  height: auto;
  display: block;
}
.score-events-preview .portal-chart { height: 152px; }
.portal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}
.portal-table th {
  text-align: left;
  color: var(--ink);
  font-weight: 900;
  padding: 7px 5px;
  border-bottom: 1px solid #dce2ec;
}
.portal-table td {
  padding: 7px 5px;
  border-bottom: 1px solid #eef1f5;
  color: var(--ink-2);
  vertical-align: middle;
}
.portal-table th:nth-child(1) { width: 56px; }
.portal-table th:nth-child(3) { width: 104px; }
.portal-table th:nth-child(4) { width: 58px; }
.portal-code {
  display: block;
  font-family: var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.portal-badge.green { background: #e9f7ee; color: #037f0c; }
.portal-badge.blue { background: #eaf3ff; color: var(--blue); }
.portal-badge.red { background: #fff0f0; color: #d91515; }
.portal-badge.grey { background: #f2f3f5; color: #5b6770; }
.portal-points.positive { color: #037f0c; font-weight: 900; }
.portal-points.negative { color: #d91515; font-weight: 900; }
.portal-tabs {
  display: inline-flex;
  gap: 0;
  margin-bottom: 14px;
  padding: 2px;
  border: 1px solid #b8c0cc;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.portal-tab {
  border-left: 1px solid #dce2ec;
  border-radius: 0;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 900;
  color: var(--ink);
}
.portal-tab:first-child { border-left: 0; }
.portal-tab.active {
  color: #fff;
  background: #e6f1ff;
  background: var(--blue);
}
.quest-card-list { display: grid; gap: 8px; }
.quest-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #dce2ec;
  border-radius: 8px;
  font-size: 10px;
  background: #fff;
}
.quest-card code {
  color: var(--blue);
  font-weight: 900;
  margin-right: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-collapsed {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #c8d0dc;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
}
.status-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.status-text::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #037f0c;
}
.status-text.pending::before {
  background: #87919f;
}
.quest-tabs { display: flex; gap: 8px; align-items: center; margin: 10px 0 18px; font-size: 11px; font-weight: 800; }
.quest-tab { padding: 5px 12px; border-radius: 999px; background: #eef5ff; color: var(--blue); }
.quest-list { display: grid; gap: 9px; }
.quest-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
}
.quest-badge { color: #fff; background: #ef4444; border-radius: 4px; padding: 3px 6px; font-size: 9px; }
.quest-badge.challenge { background: var(--blue); }
.quest-meta { color: var(--ink-3); font-size: 10px; }

/* ============== AUDIENCE 3-up ============== */
.aud {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; background: transparent;
  border: 0;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 28px;
}
.aud .col {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 28px 30px;
  display: flex; flex-direction: column;
  min-height: 178px;
}
.aud .col .role {
  font-size: 12px; color: var(--ink-3); font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 16px;
}
.aud .col h3 {
  font-size: 22px; line-height: 1.18; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 10px; text-wrap: balance;
}
.aud .col p { font-size: 12px; line-height: 1.65; color: var(--ink-2); margin: 0; flex: 1; font-weight: 500; }
.aud .col .more { margin-top: 24px; font-size: 13px; color: #0066cc; text-decoration: none; }
.aud .col .more:hover { text-decoration: underline; }

/* ============== STEPS ============== */
.onboard-layout { display: grid; grid-template-columns: 330px 1fr; gap: 48px; align-items: center; }
.onboard-layout .lead { margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step {
  background: #fff;
  border: 1px solid #dce2ec;
  border-radius: 10px;
  padding: 26px 22px 22px;
  min-height: 214px;
}
.step .n {
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  margin-bottom: 14px; font-family: var(--font-mono);
}
.step h4 {
  font-size: 15px; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.step p { font-size: 12px; line-height: 1.6; color: var(--ink-2); margin: 0; font-weight: 500; }
.step-icon {
  width: 64px; height: 64px; margin: 26px auto 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
}

/* ============== TRUST ============== */
.trust { display: grid; grid-template-columns: 1fr 520px; gap: 80px; align-items: center; }
.trust .copy h2 { font-size: clamp(30px, 3.8vw, 44px); margin-bottom: 16px; }
.trust ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.trust ul li {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  font-weight: 500;
}
.trust ul li::before {
  content: "✓";
  width: 16px; height: 16px;
  color: var(--green); margin-top: 0;
  background: transparent;
  font-weight: 900;
}
.trust ul li b { color: var(--ink); font-weight: 600; }

.flow {
  background: var(--paper);
  border: 1px solid #b8c0cc;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 12px 38px rgba(8,20,37,0.06);
}
.sso-preview {
  display: grid;
  gap: 14px;
}
.credential-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}
.credential-sub { color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.sso-alert {
  border: 1px solid #b6d7ff;
  border-radius: 10px;
  background: #f1f8ff;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.45;
}
.sso-alert b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 4px;
}
.credential-list { display: grid; gap: 12px; }
.credential-row {
  border: 1px solid #c8d0dc;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  font-size: 11px;
}
.credential-row-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.credential-row code {
  font-family: var(--font-mono);
  font-weight: 900;
  color: var(--ink);
}
.credential-row button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 18px;
  height: 30px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.credential-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid #eef1f5;
  padding-top: 11px;
}
.credential-kv span {
  display: block;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 3px;
}
.credential-kv code,
.credential-kv strong {
  font-size: 11px;
  font-weight: 800;
}

/* ============== STATS ============== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 0;
  background: var(--paper-3);
  border-radius: 8px;
  padding: 26px 0;
}
.stat { padding: 0 24px; border-right: 0; text-align: center; }
.stat:last-child { border-right: none; }
.stat .n {
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 900; letter-spacing: -0.05em;
  line-height: 1; color: var(--ink); margin-bottom: 8px;
}
.stat .n .u { font-size: 0.55em; color: var(--ink-3); margin-left: 2px; font-weight: 500; }
.stat .l { font-size: 12px; color: var(--ink-2); max-width: 200px; line-height: 1.45; margin: 0 auto; font-weight: 600; }

/* ============== PRICING ============== */
.pricing-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.pricing-head .eyebrow { color: var(--ink-3); margin-bottom: 12px; }
.pricing-head h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 600; letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.pricing-head p { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin: 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--w);
  margin: 0 auto;
}
.pricing-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.pricing-card.featured {
  background: var(--ink); color: var(--paper);
  border-color: var(--ink);
}
.pricing-card.featured .pricing-tier,
.pricing-card.featured .pricing-scope,
.pricing-card.featured .pricing-sub,
.pricing-card.featured .pricing-list,
.pricing-card.featured .pricing-list li { color: rgba(255,255,255,0.85); }
.pricing-card.featured .pricing-list li::before { background: rgba(255,255,255,0.55); }
.pricing-card.featured .pricing-price { color: var(--paper); }
.pricing-tier {
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-3);
}
.pricing-price {
  font-size: 40px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.1; color: var(--ink);
}
.pricing-price .pricing-unit {
  font-size: 14px; color: var(--ink-3); font-weight: 400; margin-left: 4px;
}
.pricing-card.featured .pricing-price .pricing-unit { color: rgba(255,255,255,0.55); }
.pricing-scope { font-size: 13px; color: var(--ink-3); }
.pricing-sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; margin: 4px 0 8px; }
.pricing-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pricing-list li {
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
  padding-left: 18px; position: relative;
}
.pricing-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--ink-3);
}
.pricing-fineprint { font-size: 11px; line-height: 1.5; color: var(--ink-3); margin: 4px 0 0; }
.pricing-card.featured .pricing-fineprint { color: rgba(255,255,255,0.55); }
.pricing-tail { text-align: center; margin: 32px 0 0; font-size: 13px; color: var(--ink-3); }
.pricing-tail a { color: var(--ink); text-decoration: underline; }
.pricing-cta {
  margin-top: auto;
  height: 44px; padding: 0 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent;
}
.pricing-cta.primary { background: var(--paper); color: var(--ink); }
.pricing-cta.secondary {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.pricing-card.featured .pricing-cta.primary {
  background: var(--paper); color: var(--ink);
}
.pricing-card.featured .pricing-cta.secondary {
  background: transparent; color: var(--paper);
  border-color: rgba(255,255,255,0.3);
}

/* ============== ENTERPRISE CTA ============== */
.ent-cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(58,75,98,0.35), rgba(7,17,31,0) 58%),
    var(--dark);
  color: var(--paper);
  border-radius: 10px; padding: 42px 36px; text-align: center;
  min-height: 188px;
}
.ent-cta .eyebrow { color: rgba(255,255,255,0.55); margin-bottom: 12px; }
.ent-cta h2 {
  color: var(--paper);
  font-size: clamp(28px, 3.2vw, 38px);
  margin: 0 auto 12px; max-width: 520px; text-wrap: balance;
}
.ent-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 13px; max-width: 500px;
  margin: 0 auto 24px; line-height: 1.65;
}
.ent-cta .btns { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.ent-cta .btn-primary {
  height: 35px; padding: 0 20px;
  background: var(--paper); color: var(--ink);
  border-radius: 999px;
  font-size: 12px; font-weight: 800; border: none; cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.ent-cta .btn-ghost {
  height: 35px; padding: 0 20px;
  background: transparent; color: var(--paper);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 12px; font-weight: 800;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ============== CONTACT FORM ============== */
.contact-form {
  max-width: 680px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 18px;
  text-align: left; color: var(--paper);
}
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.78); }
.contact-label em { color: #ff8b6b; font-style: normal; }
.contact-field input,
.contact-field select,
.contact-field textarea {
  background: rgba(255,255,255,0.06); color: var(--paper);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5;
  width: 100%;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 2px solid rgba(255,255,255,0.4); outline-offset: 1px;
}
.contact-fineprint { font-size: 11px; color: rgba(255,255,255,0.58); margin: 0; line-height: 1.6; }
.contact-fineprint a { color: rgba(255,255,255,0.86); text-decoration: underline; }
.contact-feedback { margin: 4px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.contact-feedback.success { background: rgba(76,175,80,0.18); color: #c6f3cb; }
.contact-feedback.error { background: rgba(252,77,117,0.18); color: #ffd3dd; }

/* ============== FOOTER ============== */
footer { padding: 28px 0 24px; background: var(--paper-3); color: var(--ink-3); }
footer .wrap {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 44px; max-width: var(--w);
}
footer h5 { font-size: 11px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
footer a { display: block; color: var(--ink-3); text-decoration: none; font-size: 11px; padding: 3px 0; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer .brand { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 12px; }
footer .tag { font-size: 10px; color: var(--ink-3); line-height: 1.6; max-width: 280px; }
footer .disclaimer {
  grid-column: 1 / -1;
  margin: 16px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 10px; color: var(--ink-4); line-height: 1.6;
}
footer .legal {
  grid-column: 1 / -1;
  margin-top: 8px; padding-top: 8px;
  border-top: 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  font-size: 10px; color: var(--ink-4);
}
footer .legal a { color: var(--ink-3); text-decoration: none; }
footer .legal a:hover { text-decoration: underline; }
footer .footer-legal-links { display: inline-flex; flex-wrap: wrap; gap: 0 6px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid, .twoup, .onboard-layout, .trust, .stats, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero-grid { gap: 40px; }
  .hero h1, .hero .sub { max-width: none; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .aud { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 24px; }
  .pricing-head { margin-bottom: 36px; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  section { padding: 46px 0; }
}
@media (max-width: 640px) {
  .wrap, .aud { padding-left: 18px; padding-right: 18px; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 38px; line-height: 1.18; }
  .hero .sub { font-size: 15px; line-height: 1.7; }
  .hero .cta-row { gap: 18px; flex-wrap: wrap; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .dashboard { padding: 12px; }
  /* 4 stat → 2x2 grid (= 横並びだと narrow で潰れる) */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; padding: 18px 0; }
  .stat { padding: 0 12px; }
  .stat .n { font-size: 36px; }
  .stat .l { font-size: 12px; }
  /* h2 / lead が narrow で巨大化するのを抑える */
  section h2 { font-size: clamp(26px, 7vw, 36px); }
  .pricing-head h2 { font-size: clamp(26px, 7vw, 36px); }
  .pricing-head p { font-size: 15px; }
  .pricing-card { padding: 28px 22px; }
  .pricing-price { font-size: 34px; }
  /* audience-intro / extend section の h2 が narrow で 1 行に収まらないケースの調整 */
  .audience-intro h2 { font-size: clamp(26px, 7vw, 36px); }
  /* footer 2-col → 1-col、 disclaimer の余白を縮める */
  footer .wrap { grid-template-columns: 1fr; gap: 24px; }
  footer .legal { flex-direction: column; align-items: flex-start; gap: 4px; }
  /* section の縦 padding を mobile で詰める */
  section { padding: 36px 0; }
  /* Contact form 2col → 1col stack */
  .contact-row { grid-template-columns: 1fr; gap: 12px; }
  .contact-form { gap: 14px; }
  .contact-field input, .contact-field select, .contact-field textarea { font-size: 16px; }
  /* iOS Safari の input zoom 防止に 16px を維持 */
  /* ent-cta inner padding を mobile で詰める */
  .ent-cta { padding: 28px 22px; }
  .ent-cta h2 { font-size: clamp(22px, 6vw, 30px); }
  /* hero CTA を横並びから縦並びへ (= タッチターゲット拡大) */
  .hero .cta-row a { width: 100%; justify-content: center; padding: 10px 16px; }
  /* nav-right brand 隠す (= ロゴはあるので冗長) */
  .nav-brand-sub { display: none; }
}
@media (max-width: 420px) {
  /* 最小幅 (iPhone SE 等) で最後の調整 — 横スクロール / 文字溢れ 防止 */
  .wrap, .aud { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 32px; }
  .hero .sub { font-size: 14px; }
  .stat .n { font-size: 30px; }
  .pricing-card { padding: 24px 18px; }
  .pricing-price { font-size: 30px; }
  .pricing-list li { font-size: 12px; }
  /* nav 右側を縮める (= ロゴと言語切替が干渉しない) */
  .nav-right .lang { padding: 0 8px; font-size: 11px; }
}
