/* ============================================================
   ファクタリング研究室 LP - styles
   Color system: deep navy + accent gold + clear blue
   ============================================================ */

:root {
  /* Brand blue (matches logo) */
  --navy-900: #073b66;
  --navy-800: #0a5a99;
  --navy-700: #1276c4;
  --navy-600: #147bbf;
  --navy-500: #1f8ed4;
  --navy-100: #d5ecfa;
  --navy-50:  #eaf5fc;

  /* Accent gold (richer for blue contrast) */
  --gold-600: #b6852b;
  --gold-500: #e2a83a;
  --gold-400: #f3c25a;
  --gold-100: #fdf2d8;

  /* CTA — warm orange complements clear blue */
  --cta-600: #e25b14;
  --cta-500: #f57021;
  --cta-400: #fb8a45;

  /* Neutrals */
  --ink-900: #0d1729;
  --ink-700: #2e3a52;
  --ink-500: #5b6478;
  --ink-400: #8089a0;
  --ink-300: #c8cdd9;
  --ink-200: #e3e6ee;
  --ink-100: #eef0f6;
  --ink-50:  #f7f8fb;
  --white: #ffffff;

  /* Status */
  --ok: #1f9d6b;
  --ng: #c43a3a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(13,23,41,.06), 0 1px 3px rgba(13,23,41,.04);
  --shadow-md: 0 4px 14px rgba(13,23,41,.08), 0 2px 6px rgba(13,23,41,.05);
  --shadow-lg: 0 16px 40px rgba(13,23,41,.12), 0 4px 12px rgba(13,23,41,.06);

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink-900);
  background: var(--ink-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--ink-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
}
.brand-logo { height: 76px; width: auto; display: block; }
.brand-text { line-height: 1.1; }
.brand-name { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 16px; color: var(--navy-900); }
.brand-tag { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.header-nav { display: flex; gap: 22px; align-items: center; font-size: 15px; color: var(--ink-700); }
.header-nav a:hover { color: var(--navy-700); }
.header-cta {
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(238,106,47,.45);
  transition: transform .15s ease, box-shadow .15s ease;
  letter-spacing: .02em;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(238,106,47,.55); }
@media (max-width: 760px){
  .header-nav { display: none; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(233,193,112,.16), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(20,123,191,.55), transparent 60%),
    linear-gradient(180deg, #0a4775 0%, #084a85 50%, #0a5a99 100%);
  color: white;
  overflow: hidden;
  padding: 80px 0 100px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  opacity: .3;
}
.hero-inner {
  position: relative;
  display: block;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: var(--gold-400);
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  padding: 9px 18px; border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--gold-500); border-radius: 50%; }

.hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(42px, 7.5vw, 96px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 0 0 24px;
  text-wrap: balance;
  text-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.hero-prelude {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: rgba(255,255,255,.92);
  margin: 0 0 18px;
  letter-spacing: .04em;
}
.hero-prelude .pop {
  background: linear-gradient(180deg, #fff5d4, var(--gold-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 900;
}
.hero-title .accent { color: var(--gold-400); }
.hero-title .num {
  display: inline-block;
  font-size: 1.4em;
  background: linear-gradient(180deg, #ffe49a, #d49b2b);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-style: italic;
  padding: 0 .04em;
  text-shadow: none;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,.86);
  margin: 0 auto 32px;
  max-width: 720px;
  line-height: 1.9;
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 0 auto 32px;
  justify-content: center;
}
.hero-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
.hero-badge .icon { color: var(--gold-400); width: 16px; height: 16px; flex: none; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 32px;
  margin: 0 auto 36px;
  max-width: 720px;
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
}
.hero-stat-num {
  font-family: "Manrope", sans-serif;
  font-size: 38px; font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
}
.hero-stat-num small { font-size: 16px; color: rgba(255,255,255,.75); margin-left: 2px; }
.hero-stat-label { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 8px; letter-spacing: .06em; }

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin: 0 auto 0;
  justify-content: center;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 12px 28px rgba(212,84,28,.5), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 0 rgba(245,112,33,.45); }
  60%       { box-shadow: 0 12px 28px rgba(212,84,28,.5), inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 10px rgba(245,112,33,0); }
}

.hero-cta .btn-primary { padding: 20px 44px; font-size: 18px; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white;
  box-shadow: 0 12px 28px rgba(212,84,28,.5), inset 0 1px 0 rgba(255,255,255,.25);
  animation: btn-pulse 2.4s ease-in-out infinite;
  letter-spacing: .03em;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(212,84,28,.6);
  animation: none;
}
.btn-secondary {
  background: rgba(255,255,255,.14);
  color: white;
  border: 2px solid rgba(255,255,255,.35);
  font-size: 16px;
}
.btn-secondary:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* Scroll indicator removed in centered hero */
.hero-scroll { display: none; }
.hero-portrait { display: none; }

/* ===================== Supervisor ===================== */
.supervisor {
  background: white;
  padding: 56px 0;
  border-bottom: 1px solid var(--ink-200);
}
.supervisor-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
}
.supervisor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.supervisor-photo {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
  position: relative; overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 42, 92, .18);
  border: 4px solid white;
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}
.supervisor-eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: .2em;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 8px;
}
.supervisor-name {
  font-family: "Noto Serif JP", serif;
  font-size: 32px; font-weight: 700;
  margin: 0 0 4px;
  color: var(--navy-900);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.supervisor-name .role { font-size: 15px; color: var(--ink-500); font-weight: 500; font-family: inherit; }
.supervisor-bio {
  font-size: 16px;
  color: var(--ink-700);
  margin: 12px 0 16px;
  max-width: 620px;
}
.supervisor-creds {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cred {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  background: var(--navy-50);
  color: var(--navy-700);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--navy-100);
}
.cred .icon { width: 16px; height: 16px; color: var(--gold-600); }
@media (max-width: 760px){
  .supervisor-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .supervisor-photo { margin: 0 auto; width: 180px; height: 180px;}
  .supervisor-name { justify-content: center; }
  .supervisor-creds { justify-content: center; }
}

/* ===================== Section base ===================== */
.section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: .25em; color: var(--gold-600);
  font-weight: 700; margin-bottom: 10px;
}
.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--navy-900);
  line-height: 1.3;
}
.section-title .deco {
  display: inline-block; width: 20px; height: 20px; vertical-align: -2px;
  margin: 0 6px; color: var(--gold-500);
}
.section-sub { font-size: 16px; color: var(--ink-500); }

/* ===================== Ranking table ===================== */
.ranking { background: white; }
.ranking .container { max-width: 1280px; }
.ranking-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.ranking-updated {
  font-size: 14px; color: var(--ink-500);
  display: inline-flex; align-items: center; gap: 6px;
}
.density-toggle {
  display: inline-flex; background: var(--ink-100); border-radius: 999px; padding: 3px;
  font-size: 14px; font-weight: 600;
}
.density-toggle button {
  padding: 6px 14px; border-radius: 999px; color: var(--ink-500);
  transition: all .2s ease;
}
.density-toggle button.active {
  background: white; color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.table-wrap {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
}

.rtable { width: 100%; border-collapse: collapse; font-size: 15px; }
.rtable thead th {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 10px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.rtable thead th:last-child { border-right: 0; }
.rtable thead th .sub { display: block; font-size: 12px; opacity: .7; font-weight: 500; margin-top: 2px;}

.rtable tbody td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--ink-200);
  border-right: 1px solid var(--ink-200);
  vertical-align: middle;
  text-align: center;
  background: white;
}
.rtable tbody td:last-child { border-right: 0; }
.rtable tbody tr:last-child td { border-bottom: 0; }
.rtable tbody tr:hover td { background: var(--navy-50); }

/* compact */
.rtable.compact tbody td { padding: 10px 8px; }
.rtable.compact .reason-cell { display: none; }
.rtable.compact thead th.col-reason { display: none; }

.rank-cell { width: 78px; }
.rank-medal {
  width: 56px; height: 56px; margin: 0 auto;
  display: grid; place-items: center;
  position: relative;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: white;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.4);
}
.rank-medal::after {
  content: "";
  position: absolute; inset: -8px;
  border: 2px solid; border-radius: 50%;
  opacity: .25;
}
.rank-1 { background: linear-gradient(135deg, #f5cf5b, #b58730); }
.rank-1::after { border-color: #d4a149; }
.rank-2 { background: linear-gradient(135deg, #d6dde6, #8e9aac); }
.rank-2::after { border-color: #aab4c1; }
.rank-3 { background: linear-gradient(135deg, #d8a778, #8a5a30); }
.rank-3::after { border-color: #b07b46; }
.rank-default {
  background: linear-gradient(135deg, var(--navy-100), var(--navy-50));
  color: var(--navy-700);
  font-size: 18px;
}
.rank-medal .crown {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 18px; color: var(--gold-500);
}
.rank-medal sup { font-size: 12px; margin-left: 1px; }

.company-cell { text-align: left !important; min-width: 200px; }

/* 【広告】バッジ */
.pr-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  background: var(--ink-200); color: var(--ink-500);
  padding: 1px 5px; border-radius: 3px;
  margin-bottom: 4px; letter-spacing: .05em;
}

/* 会社名アフィリエイトリンク（M列コードそのまま）*/
.company-name-link { margin: 4px 0 6px; }
.company-name-link a {
  font-weight: 700; font-size: 15px;
  color: var(--navy-900);
  text-decoration: none; line-height: 1.4;
  display: inline-block;
  overflow-wrap: break-word;
}
.company-name-link a:hover { color: var(--navy-700); text-decoration: underline; }

.company-tag {
  display: inline-block;
  font-size: 12px; padding: 2px 8px; border-radius: 4px;
  background: var(--gold-100); color: var(--gold-600); font-weight: 700;
}

/* 公式サイトボタン */
.btn-row-wrap { text-align: center; }
.btn-row-wrap a {
  display: inline-block;
  text-decoration: none !important;
  transition: opacity .15s ease;
}
/* バナー画像はサイズそのまま表示（タグ変更不可） */
.btn-row-wrap a img:not([width="1"]):not([height="1"]) {
  display: block;
  margin: 0 auto;
}
.btn-row-wrap a:hover { opacity: .8; }
/* テキストリンクのみオレンジボタン */
.btn-row-wrap a.text-btn {
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white !important;
  padding: 10px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 700;
  white-space: normal; word-break: keep-all;
  text-align: center; line-height: 1.4;
  box-shadow: 0 6px 14px rgba(238,106,47,.42);
  opacity: 1; max-width: 110px;
}
.btn-row-wrap a.text-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(238,106,47,.55);
  opacity: 1;
}

.fee-num { font-family: "Manrope", sans-serif; font-weight: 700; font-size: 17px; color: var(--navy-900); }
.fee-num small { font-weight: 500; opacity: .7; font-size: 13px; }

.speed-pill {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  background: var(--gold-100); color: var(--gold-600);
}
.speed-pill.normal {
  background: var(--navy-50); color: var(--navy-700);
}

.amount-range { font-size: 14px; color: var(--ink-700); white-space: nowrap; }

.dot-yes, .dot-no {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 14px; font-weight: 800;
}
.dot-yes { background: rgba(31,157,107,.12); color: var(--ok); }
.dot-no { background: var(--ink-100); color: var(--ink-400); }

.reason-cell { text-align: left !important; width: 190px; max-width: 190px; font-size: 13px; color: var(--ink-700); line-height: 1.6; overflow-wrap: break-word; }

.cta-cell { width: 150px; min-width: 150px; text-align: center !important; }
.btn-row {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white;
  padding: 12px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 18px rgba(238,106,47,.42);
  transition: all .15s ease;
  letter-spacing: .02em;
}
.btn-row:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(238,106,47,.55); }
.btn-row .icon { width: 14px; height: 14px; }

.rank-row-1 td { background: linear-gradient(180deg, #fffbf0, #ffffff); }
.rank-row-1 td:first-child { box-shadow: inset 4px 0 0 var(--gold-500); }
.rank-row-1:hover td { background: var(--navy-50) !important; }

.table-foot {
  font-size: 13px; color: var(--ink-500);
  margin-top: 12px;
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.table-foot .legend { display: inline-flex; align-items: center; gap: 6px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rtable { min-width: 1060px; }

/* ===================== About factoring ===================== */
.about-factoring { background: var(--ink-50); }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.flow-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1px solid var(--ink-200);
  position: relative;
  text-align: center;
}
.flow-num {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-700); color: white;
  display: grid; place-items: center;
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 8px rgba(15,42,92,.3);
}
.flow-icon {
  width: 56px; height: 56px; margin: 8px auto 14px;
  border-radius: 14px;
  background: var(--navy-50);
  display: grid; place-items: center;
  color: var(--navy-700);
}
.flow-icon svg { width: 28px; height: 28px; }
.flow-title { font-weight: 700; font-size: 16px; color: var(--navy-900); margin-bottom: 4px; }
.flow-desc { font-size: 14px; color: var(--ink-500); }
.flow-arrow {
  position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-300); z-index: 2;
  width: 16px; height: 16px;
}
.flow-card:last-child .flow-arrow { display: none; }
@media (max-width: 760px){
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-card:nth-child(2) .flow-arrow { display: none; }
}

.facts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
}
.fact-card {
  background: white;
  border: 1px solid var(--ink-200);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.fact-q { font-weight: 700; color: var(--navy-900); font-size: 16px; margin-bottom: 6px; }
.fact-q .q-mark { color: var(--gold-500); font-family: "Manrope"; font-weight: 800; margin-right: 6px;}
.fact-a { font-size: 15px; color: var(--ink-700); }
@media (max-width: 760px){ .facts-grid { grid-template-columns: 1fr; } }

/* ===================== 2 vs 3 ===================== */
.two-three { background: white; }
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.compare-card {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  position: relative;
  background: white;
}
.compare-card.recommended {
  border: 2px solid var(--gold-500);
  background: linear-gradient(180deg, #fffaee, white 30%);
}
.compare-card .ribbon {
  position: absolute; top: -12px; left: 24px;
  background: var(--gold-500); color: white;
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  letter-spacing: .1em;
}
.compare-title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px; font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 4px;
  display: flex; align-items: baseline; gap: 8px;
}
.compare-title .num {
  font-family: "Manrope"; font-size: 28px; color: var(--gold-500);
}
.compare-sub { font-size: 14px; color: var(--ink-500); margin-bottom: 18px;}
.compare-attrs {
  display: grid; gap: 10px;
  font-size: 15px;
}
.compare-attr {
  display: grid; grid-template-columns: 100px 1fr; gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--ink-200);
}
.compare-attr:first-child { border-top: 0; padding-top: 0;}
.compare-attr dt { color: var(--ink-500); font-weight: 600; font-size: 14px; }
.compare-attr dd { margin: 0; color: var(--ink-900); font-weight: 600; }
.compare-attr dd .pos { color: var(--ok); font-weight: 700; }
.compare-attr dd .neg { color: var(--ng); font-weight: 700; }
.compare-attr dd .meh { color: var(--ink-700); }
@media (max-width: 760px){ .compare-wrap { grid-template-columns: 1fr; } }

/* ===================== Recommend by need ===================== */
.recommend-by-need { background: var(--ink-50); }
.need-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.need-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  padding: 24px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  transition: all .2s ease;
}
.need-card:hover {
  border-color: var(--navy-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.need-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--navy-50);
  color: var(--navy-700);
  display: grid; place-items: center;
}
.need-icon svg { width: 28px; height: 28px; }
.need-pill {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  background: var(--gold-100); color: var(--gold-600);
  padding: 2px 8px; border-radius: 4px;
  margin-bottom: 4px;
}
.need-title { font-weight: 700; color: var(--navy-900); font-size: 17px; line-height: 1.4; margin-bottom: 4px;}
.need-rec { font-size: 14px; color: var(--ink-500); }
.need-rec strong { color: var(--navy-700); }
.need-cta {
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white;
  padding: 12px 20px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  white-space: nowrap;
  transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 8px 18px rgba(238,106,47,.4);
  letter-spacing: .02em;
}
.need-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(238,106,47,.55); }
.need-cta .icon { width: 14px; height: 14px; }

/* ニーズ別 アフィリエイトボタン（M列タグそのまま） */
.need-affiliate-btn a {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white !important;
  padding: 12px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(238,106,47,.42);
  transition: all .15s ease;
  text-decoration: none !important;
  white-space: normal; word-break: keep-all;
  text-align: center; line-height: 1.4;
}
.need-affiliate-btn a:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(238,106,47,.55); }

@media (max-width: 760px){
  .need-grid { grid-template-columns: 1fr; }
  .need-card { grid-template-columns: 48px 1fr; }
  .need-card .need-cta { grid-column: 2; justify-self: start; }
}

/* ===================== Why us ===================== */
.why-us { background: white; }
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.why-card {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-50), white 60%);
}
.why-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy-700);
  color: white;
  display: grid; place-items: center;
  box-shadow: 0 8px 16px rgba(15,42,92,.2);
}
.why-icon svg { width: 30px; height: 30px; }
.why-title { font-weight: 700; color: var(--navy-900); font-size: 17px; margin-bottom: 6px;}
.why-desc { font-size: 14px; color: var(--ink-500); line-height: 1.7; }
@media (max-width: 760px){ .why-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===================== Final CTA ===================== */
.final-cta {
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(212,161,73,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: white;
  text-align: center;
  padding: 80px 0;
}
.final-cta h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 14px;
  font-weight: 700;
}
.final-cta p { color: rgba(255,255,255,.78); max-width: 580px; margin: 0 auto 30px; font-size: 16px;}
.final-cta .btn-primary { font-size: 16px; padding: 18px 36px; }

/* ===================== Footer ===================== */
.site-footer {
  background: #06122c;
  color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand-name { color: white; }
.footer-brand .brand-tag { color: rgba(255,255,255,.6); }
.footer-brand p { margin-top: 14px; line-height: 1.8;}
.footer-col h4 { color: white; font-size: 14px; margin: 0 0 12px; letter-spacing: .1em;}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;}
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.5);
}
.disclaimer {
  font-size: 13px; color: rgba(255,255,255,.45);
  line-height: 1.7;
  background: rgba(255,255,255,.04);
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 24px;
}
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===================== Floating CTA ===================== */
.floating-cta {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 40;
  display: flex; align-items: center; gap: 12px;
  background: white;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(13,23,41,.2), 0 4px 12px rgba(13,23,41,.1);
  border: 1px solid var(--ink-200);
  transition: all .3s ease;
}
.floating-cta.hidden { transform: translate(-50%, 120%); opacity: 0; pointer-events: none; }
.floating-cta-text { font-size: 14px; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.floating-cta-text small { display: block; font-size: 12px; color: var(--ink-500); font-weight: 500; }
.floating-cta .btn-primary { padding: 13px 22px; font-size: 15px; animation: btn-pulse 2.4s ease-in-out infinite; }
@media (max-width: 480px){
  .floating-cta { left: 8px; right: 8px; transform: none; padding: 8px 8px 8px 14px;}
  .floating-cta.hidden { transform: translateY(120%); }
}

/* ===================== FAQ ===================== */
.faq-section { background: var(--ink-50); }
.faq-wrap { display: grid; gap: 32px; }
.faq-cat-label {
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  color: var(--gold-600);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s ease;
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item.open { border-color: var(--navy-700); }
.faq-q {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px;
}
.faq-mark-q {
  flex-shrink: 0; align-self: flex-start;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-700); color: var(--white);
  display: grid; place-items: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 900; font-size: 16px;
  margin-top: 0;
}
.faq-q-text { font-weight: 700; font-size: 16px; color: var(--ink-900); flex: 1; line-height: 1.6; }
.faq-toggle {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--ink-100);
  display: grid; place-items: center;
  font-size: 20px; color: var(--ink-500); font-weight: 300;
  margin-top: 2px; line-height: 1;
}
.faq-item.open .faq-toggle { background: var(--navy-50); color: var(--navy-700); }
.faq-a {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 0 22px 20px;
  border-top: 1px solid var(--ink-100);
  padding-top: 16px;
}
.faq-mark-a {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold-100); color: var(--gold-600);
  display: grid; place-items: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 900; font-size: 16px;
}
.faq-a-text { font-size: 15px; color: var(--ink-700); line-height: 1.85; flex: 1; }
.faq-more { text-align: center; margin-top: 28px; }
.faq-more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700;
  color: var(--navy-700);
  padding: 12px 24px;
  border: 2px solid var(--navy-700);
  border-radius: 999px;
  transition: all .15s;
}
.faq-more-link:hover { background: var(--navy-700); color: var(--white); }

/* ===================== Glossary ===================== */
.glossary-section { background: var(--white); }
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.gloss-card {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  background: var(--ink-50);
  transition: box-shadow .15s, border-color .15s;
}
.gloss-card:hover { border-color: var(--navy-500); box-shadow: var(--shadow-sm); }
.gloss-header { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.gloss-tag {
  flex-shrink: 0;
  font-size: 10px; font-weight: 700;
  background: var(--gold-100); color: var(--gold-600);
  padding: 2px 7px; border-radius: 4px;
  margin-top: 3px;
}
.gloss-tag-alert { background: rgba(196,58,58,.1); color: var(--ng); }
.gloss-name { font-weight: 700; font-size: 15px; color: var(--navy-900); line-height: 1.4; }
.gloss-yomi { font-size: 11px; color: var(--ink-500); font-weight: 400; display: block; }
.gloss-desc { font-size: 13px; color: var(--ink-700); line-height: 1.75; }
@media (max-width: 900px){ .glossary-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .glossary-grid { grid-template-columns: 1fr; } }

/* ===================== Testimonials ===================== */
.testimonials-section { background: var(--ink-50); }
.voices-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-bottom: 16px;
}
.voice-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.voice-head { display: flex; align-items: center; justify-content: space-between; }
.voice-industry {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--navy-700);
  background: var(--navy-50);
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--navy-100);
}
.voice-stars { display: flex; gap: 2px; }
.voice-company { font-size: 13px; color: var(--ink-500); }
.voice-name { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.voice-stats {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--navy-50);
  border-radius: var(--radius-md);
}
.voice-stat { display: flex; flex-direction: column; gap: 2px; }
.voice-stat-label { font-size: 10px; color: var(--ink-500); font-weight: 600; letter-spacing: .08em; }
.voice-stat-val { font-size: 15px; font-weight: 800; color: var(--navy-800); font-family: "Manrope", sans-serif; }
.voice-tag {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  background: var(--gold-100); color: var(--gold-600);
  padding: 3px 10px; border-radius: 4px;
}
.voice-block { display: flex; flex-direction: column; gap: 5px; }
.voice-block-label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  padding: 2px 8px; border-radius: 3px; display: inline-block; width: fit-content;
}
.voice-block-label.before { background: rgba(196,58,58,.1); color: var(--ng); }
.voice-block-label.after { background: rgba(31,157,107,.12); color: var(--ok); }
.voice-text { font-size: 14px; color: var(--ink-700); line-height: 1.8; margin: 0; }
.voices-note { font-size: 12px; color: var(--ink-400); text-align: center; margin-top: 8px; }
@media (max-width: 900px){ .voices-grid { grid-template-columns: 1fr; } }

/* ===================== Selection Criteria ===================== */
.criteria-section { background: var(--white); }
.criteria-kase-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: linear-gradient(135deg, var(--navy-50), #fff);
  border: 1px solid var(--navy-100);
  border-left: 5px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 36px;
}
.criteria-kase-icon {
  flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-700); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(10,90,153,.25);
}
.criteria-kase-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: var(--gold-600); margin-bottom: 8px;
}
.criteria-kase-msg { font-size: 15px; color: var(--ink-700); line-height: 1.9; margin: 0; }
.criteria-kase-msg strong { color: var(--navy-800); }

.criteria-two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.criteria-col-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: 0;
}
.criteria-col-head.ok { background: rgba(31,157,107,.12); color: var(--ok); }
.criteria-col-head.ng { background: rgba(196,58,58,.1); color: var(--ng); }

.criteria-ok-wrap, .criteria-ng-wrap {
  border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden;
}
.criteria-ok-list { padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.criteria-ok-item { display: flex; gap: 12px; align-items: flex-start; }
.criteria-ok-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  background: rgba(31,157,107,.1); color: var(--ok);
  display: grid; place-items: center;
}
.criteria-ok-title { font-size: 14px; font-weight: 700; color: var(--ink-900); margin-bottom: 3px; }
.criteria-ok-desc { font-size: 13px; color: var(--ink-500); line-height: 1.7; }

.criteria-ng-list { list-style: none; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 10px; background: var(--white); }
.criteria-ng-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-700); line-height: 1.6;
}
.criteria-ng-mark { flex-shrink: 0; color: var(--ng); font-weight: 900; font-size: 16px; line-height: 1.3; }
.criteria-ng-note {
  margin: 0 16px 16px;
  font-size: 13px; color: var(--ink-500);
  background: rgba(196,58,58,.05);
  border: 1px solid rgba(196,58,58,.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px; line-height: 1.7;
}
@media (max-width: 760px){
  .criteria-two-col { grid-template-columns: 1fr; }
  .criteria-kase-card { flex-direction: column; }
}

/* ===================== 個人向けセクション ===================== */
.solo-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px dashed var(--ink-200);
}
.solo-head { text-align: center; margin-bottom: 28px; }
.solo-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700; color: var(--navy-900);
  margin: 0 0 8px;
}
.solo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.solo-card {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.solo-card-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.solo-rank {
  font-size: 12px; font-weight: 700;
  background: var(--navy-50); color: var(--navy-700);
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid var(--navy-100);
}
.solo-name { }
.solo-name a {
  font-weight: 700; font-size: 16px;
  color: var(--navy-900); text-decoration: none; line-height: 1.4;
}
.solo-name a:hover { color: var(--navy-700); text-decoration: underline; }
.solo-stats {
  display: flex; gap: 8px; flex-wrap: wrap;
  background: var(--navy-50);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.solo-stat { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 80px; }
.solo-stat-label { font-size: 10px; color: var(--ink-500); font-weight: 600; letter-spacing: .08em; }
.solo-stat-val { font-size: 15px; font-weight: 800; color: var(--navy-800); }
.solo-feature { font-size: 14px; color: var(--ink-700); line-height: 1.8; flex: 1; }
.solo-btn-wrap a {
  display: block; text-align: center;
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white !important;
  padding: 13px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(238,106,47,.42);
  transition: all .15s ease;
  text-decoration: none !important;
}
.solo-btn-wrap a:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(238,106,47,.55); }
@media (max-width: 760px) { .solo-grid { grid-template-columns: 1fr; } }

/* ===================== 診断コンテンツ ===================== */
.diag-section {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
}
.diag-section .section-eyebrow { color: var(--gold-400); }
.diag-section .section-title { color: var(--white); }
.diag-section .section-sub { color: rgba(255,255,255,.75); font-size: 16px; }

.diag-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 40px;
  box-shadow: var(--shadow-lg);
  color: var(--ink-900);
  min-height: 340px;
}

/* イントロ */
.diag-intro { text-align: center; }
.diag-intro-icon { font-size: 52px; margin-bottom: 16px; }
.diag-intro-title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px; font-weight: 700;
  color: var(--navy-900); margin-bottom: 14px;
}
.diag-intro-body {
  font-size: 16px; color: var(--ink-700); line-height: 1.9;
  margin-bottom: 28px;
}
.diag-intro-body strong { color: var(--navy-800); }
.diag-start-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white; font-size: 18px; font-weight: 700;
  padding: 18px 40px; border-radius: 999px;
  border: none; cursor: pointer;
  box-shadow: 0 12px 28px rgba(212,84,28,.45);
  transition: all .2s ease;
  animation: btn-pulse 2.4s ease-in-out infinite;
}
.diag-start-btn:hover { transform: translateY(-3px); animation: none; }

/* プログレスバー */
.diag-step-label {
  font-size: 13px; font-weight: 700; color: var(--ink-500);
  letter-spacing: .1em; margin-bottom: 8px;
}
.diag-progress {
  height: 6px; background: var(--ink-100);
  border-radius: 999px; margin-bottom: 28px; overflow: hidden;
}
.diag-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--navy-700), var(--gold-500));
  border-radius: 999px;
  transition: width .3s ease;
}

/* 質問 */
.diag-q-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(18px, 2.8vw, 22px); font-weight: 700;
  color: var(--navy-900); margin-bottom: 8px; line-height: 1.5;
}
.diag-q-note {
  font-size: 14px; color: var(--ink-500); margin-bottom: 20px;
}
.diag-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.diag-option {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 16px 20px; border-radius: var(--radius-md);
  border: 2px solid var(--ink-200);
  background: var(--white); cursor: pointer;
  transition: all .15s ease; text-align: left;
}
.diag-option:hover {
  border-color: var(--navy-700);
  background: var(--navy-50);
  transform: translateX(4px);
}
.diag-option-label {
  font-size: 17px; font-weight: 700; color: var(--ink-900);
}
.diag-option-sub { font-size: 13px; color: var(--ink-500); margin-top: 2px; }
.diag-back {
  font-size: 14px; color: var(--ink-500); background: none;
  border: none; cursor: pointer; padding: 4px 0;
}
.diag-back:hover { color: var(--navy-700); }

/* 結果 */
.diag-result { text-align: center; }
.diag-result-badge {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.diag-result-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 3vw, 26px); font-weight: 900;
  color: var(--navy-900); margin-bottom: 14px;
}
.diag-result-body {
  font-size: 16px; color: var(--ink-700); line-height: 1.9;
  margin-bottom: 20px; text-align: left;
}
.diag-result-note {
  font-size: 14px; line-height: 1.8;
  padding: 12px 16px; border-radius: var(--radius-md);
  margin-bottom: 16px; text-align: left;
}
.diag-result-note.solo {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  color: var(--navy-700);
}
.diag-advice {
  background: var(--ink-50);
  border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 24px; text-align: left;
}
.diag-advice-title {
  font-size: 15px; font-weight: 700; color: var(--navy-800); margin-bottom: 10px;
}
.diag-advice ul { padding-left: 20px; margin: 0; }
.diag-advice li { font-size: 15px; color: var(--ink-700); line-height: 1.8; margin-bottom: 4px; }

.diag-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ff8c3a, var(--cta-600) 80%);
  color: white; font-size: 17px; font-weight: 700;
  padding: 18px 32px; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(212,84,28,.45);
  transition: all .2s ease; text-decoration: none;
  animation: btn-pulse 2.4s ease-in-out infinite;
  width: 100%; margin-bottom: 8px;
}
.diag-cta-btn:hover { transform: translateY(-3px); animation: none; }
.diag-cta-sub {
  font-size: 13px; color: var(--ink-500); margin-bottom: 20px;
}
.diag-retry {
  font-size: 14px; color: var(--ink-400); background: none;
  border: 1px solid var(--ink-200); border-radius: 999px;
  padding: 8px 20px; cursor: pointer; transition: all .15s;
}
.diag-retry:hover { color: var(--navy-700); border-color: var(--navy-700); }

@media (max-width: 600px) {
  .diag-card { padding: 28px 20px; }
  .diag-start-btn { font-size: 16px; padding: 16px 28px; }
}
