/*
Theme Name: FX Compare Affiliate
Theme URI: https://example.com/
Author: ChatFlow
Description: FX・証券口座比較×AI診断×口コミ アフィリエイト特化WordPressテーマ
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --primary: #1e3a5f;
  --accent: #f59e0b;
  --accent2: #10b981;
  --danger: #ef4444;
  --radius: 20px;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; height: auto }

/* Layout */
.container { width: min(1140px, 92vw); margin: auto }
.container.narrow { width: min(780px, 92vw) }
.center { text-align: center }
.muted { color: var(--muted) }
.small { font-size: 13px }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(30,58,95,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between }
.brand { font-weight: 900; font-size: 20px; letter-spacing: -.04em; color: #fff }
.brand span { color: var(--accent) }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14px; color: rgba(255,255,255,.8) }
.nav-links a:hover { color: #fff }
.nav-cta { padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px }
.nav-cta:hover { background: #d97706 }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1e40af 100%);
  padding: 88px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(245,158,11,.12), transparent);
}
.hero .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; margin-bottom: 16px }
.hero h1 { font-size: clamp(32px, 5.5vw, 60px); line-height: 1.1; letter-spacing: -.05em; margin: 0 auto 20px; max-width: 900px; color: #fff; position: relative }
.hero p { color: rgba(255,255,255,.8); max-width: 680px; margin: 0 auto 36px; font-size: 17px; position: relative }
.hero-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; position: relative }
.hero-badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px }
.searchbox {
  max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.searchbox input { flex: 1; border: 0; outline: 0; font-size: 16px; background: transparent; color: #fff; min-width: 0 }
.searchbox input::placeholder { color: rgba(255,255,255,.5) }
.searchbox button { border: 0; border-radius: 999px; background: var(--accent); color: #fff; padding: 13px 22px; font-weight: 800; cursor: pointer; white-space: nowrap }
.hint { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 12px; position: relative }

/* Sections */
.section { padding: 72px 0 }
.section.alt { background: var(--soft) }
.section.dark { background: var(--primary); color: #fff }
.section-title { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 12px }
.section-lead { color: var(--muted); margin: 0 auto 40px; max-width: 680px }
.section.dark .section-title { color: #fff }
.section.dark .section-lead { color: rgba(255,255,255,.7) }

/* Broker Cards */
.brokers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }
.broker-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.broker-card:hover { box-shadow: 0 12px 40px rgba(15,23,42,.1); transform: translateY(-2px) }
.broker-rank { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: #f1f5f9; color: var(--muted) }
.broker-rank.gold { background: #fef3c7; color: #b45309 }
.broker-rank.silver { background: #f1f5f9; color: #475569 }
.broker-rank.bronze { background: #fff7ed; color: #c2410c }
.broker-logo { height: 44px; object-fit: contain; margin-bottom: 12px }
.broker-name { font-size: 17px; font-weight: 800; margin: 0 0 4px }
.broker-catch { font-size: 13px; color: var(--muted); margin: 0 0 14px }
.broker-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px }
.spec-item { background: var(--soft); border-radius: 10px; padding: 8px 10px }
.spec-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin-bottom: 2px }
.spec-value { font-size: 15px; font-weight: 800; color: var(--ink) }
.spec-value.accent { color: var(--accent2) }
.campaign-badge {
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 8px; padding: 8px 12px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; color: #92400e;
  display: flex; align-items: center; gap: 6px;
}
.campaign-badge::before { content: '🎁'; font-size: 14px }
.broker-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); font-weight: 800; cursor: pointer; font-size: 14px; transition: all .15s }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary) }
.btn-primary:hover { background: #162d4a }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent) }
.btn-accent:hover { background: #d97706 }
.btn-soft { background: var(--soft) }
.btn-soft:hover { background: #f1f5f9 }
.btn.block { width: 100% }

/* Type navigation */
.type-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px }
.type-chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s }
.type-chip:hover { border-color: var(--primary) }
.type-chip.active { background: var(--primary); color: #fff; border-color: var(--primary) }

/* Comparison Table */
.compare-table-wrap { overflow-x: auto; margin: 24px 0 }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px }
.compare-table th { background: var(--primary); color: #fff; padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em }
.compare-table th:first-child { border-radius: 12px 0 0 0 }
.compare-table th:last-child { border-radius: 0 12px 0 0 }
.compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle }
.compare-table tr:last-child td { border-bottom: none }
.compare-table tr:hover td { background: var(--soft) }
.compare-table .good { color: var(--accent2); font-weight: 800 }
.compare-table .highlight { background: #fffbeb }

/* Type Hero Banner */
.type-hero { padding: 64px 0 48px; text-align: center; position: relative; overflow: hidden }
.type-hero-icon { font-size: 52px; margin-bottom: 16px; display: block }
.type-hero h1 { font-size: clamp(28px,4vw,48px); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 12px; color: #fff }
.type-hero p { color: rgba(255,255,255,.85); font-size: 17px; margin: 0 auto 22px; max-width: 580px }
.type-hero-badge { display: inline-block; background: rgba(255,255,255,.2); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); margin-bottom: 20px }
.type-hero-cta { display: inline-flex; align-items: center; background: #fff; color: var(--ink); font-weight: 800; padding: 12px 26px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.15); font-size: 14px }
[data-type="fx"]     .type-hero { background: linear-gradient(135deg,#1e3a5f 0%,#1e40af 100%) }
[data-type="stock"]  .type-hero { background: linear-gradient(135deg,#065f46 0%,#059669 100%) }
[data-type="nisa"]   .type-hero { background: linear-gradient(135deg,#7c2d12 0%,#ea580c 100%) }
[data-type="crypto"] .type-hero { background: linear-gradient(135deg,#4c1d95 0%,#7c3aed 100%) }
@media(max-width:820px){
  .type-hero { padding: 48px 0 36px }
  .type-hero h1 { font-size: 26px }
}

/* Score / Stars */
.score-big { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1 }
.score-big small { font-size: 15px; color: var(--muted); font-weight: 600 }
.stars { display: inline-flex; gap: 1px; font-size: 18px; line-height: 1; color: #e5e7eb }
.stars.sm { font-size: 14px }
.stars.lg { font-size: 22px }
.stars .s.on { color: #f59e0b }
.stars .s.half { background: linear-gradient(90deg,#f59e0b 50%,#e5e7eb 50%); -webkit-background-clip: text; background-clip: text; color: transparent }

/* PR Notice */
.pr-notice { font-size: 12px; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 8px }
.pr-notice span { background: #fef3c7; color: #92400e; padding: 2px 7px; border-radius: 4px; font-weight: 800; font-size: 11px }

/* Single Broker */
.broker-hero { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; padding: 48px 0 }
.broker-title { font-size: clamp(28px,4vw,44px); letter-spacing: -.04em; margin: 8px 0 }
.broker-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start }
.broker-side { position: sticky; top: 82px }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px }
.spec-table th { text-align: left; width: 140px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); font-weight: 700 }
.spec-table td { padding: 12px 16px; border-bottom: 1px solid var(--line) }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 }
.pc-card { border-radius: 14px; padding: 16px }
.pc-card.good { background: #f0fdf4; border: 1px solid #bbf7d0 }
.pc-card.bad { background: #fff7ed; border: 1px solid #fed7aa }
.pc-head { font-size: 11px; letter-spacing: .1em; font-weight: 800; margin-bottom: 8px }
.pc-card.good .pc-head { color: #059669 }
.pc-card.bad .pc-head { color: #ea580c }
.pc-card ul { margin: 0; padding-left: 18px; font-size: 14px }
.cta-box { background: var(--primary); color: #fff; border-radius: var(--radius); padding: 36px; text-align: center; margin: 40px 0 }
.cta-box h3 { margin: 0 0 6px; color: #fff }
.cta-box .muted { color: rgba(255,255,255,.65) }
.cta-box .btn-accent { margin-top: 16px }
.banner-area { margin-top: 16px; text-align: center }
.banner-area img { max-width: 100%; border-radius: 10px }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px }
.step-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #eff6ff; color: #1d4ed8; font-weight: 900; margin-bottom: 12px }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px }
.review-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: #fff }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap }
.review-name { font-weight: 700; font-size: 14px }
.review-body { font-size: 14px; color: var(--ink); line-height: 1.6 }
.review-meta-link { font-size: 12px; color: var(--muted); margin-top: 8px }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 50; padding: 20px; overflow: auto }
.modal.open { display: flex; align-items: center; justify-content: center }
.modal-card { width: min(780px,100%); background: #fff; border-radius: 28px; padding: 36px; position: relative }
.modal-close { position: absolute; right: 18px; top: 18px; border: 0; background: #f1f5f9; border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 18px }
.question { display: none }
.question.active { display: block }
.question h3 { text-align: center; font-size: 22px; margin: 0 0 20px }
.options-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px }
.option-btn { border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; cursor: pointer; background: #fff; font-size: 14px; font-weight: 700; transition: all .15s }
.option-btn:hover, .option-btn.selected { border-color: var(--primary); background: #eff6ff; color: var(--primary) }
.progress-bar-wrap { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 16px 0 28px }
.progress-bar-inner { height: 100%; background: var(--accent); width: 0; transition: width .3s }
.diagnosis-result { display: none }
.diagnosis-result.open { display: block }

/* Footer */
.site-footer { background: #0f172a; color: rgba(255,255,255,.65); padding: 48px 0 28px; font-size: 13px }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px }
.footer-brand { font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 10px }
.footer-brand span { color: var(--accent) }
.footer-links { display: flex; flex-direction: column; gap: 8px }
.footer-links a { color: rgba(255,255,255,.6) }
.footer-links a:hover { color: #fff }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center }
.footer-legal { margin: 10px auto; max-width: 70ch; line-height: 1.9 }
.footer-legal a { color: rgba(255,255,255,.5) }

/* Type tag */
.type-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em }
.type-tag.fx     { background: #dbeafe; color: #1d4ed8 }
.type-tag.stock  { background: #d1fae5; color: #065f46 }
.type-tag.nisa   { background: #ffedd5; color: #c2410c }
.type-tag.crypto { background: #ede9fe; color: #6d28d9 }

/* Rating line */
.rating-line { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0 }
.rating-line.big { font-size: 15px }

/* Admin notice */
.fxc-seed-notice { background: #fef3c7; border-left: 4px solid var(--accent); padding: 12px 16px; margin: 8px 0 }

/* Responsive */
@media(max-width:900px) {
  .brokers, .reviews-grid { grid-template-columns: repeat(2,1fr) }
  .steps { grid-template-columns: 1fr }
  .footer-grid { grid-template-columns: 1fr 1fr }
}
@media(max-width:640px) {
  .nav-links { display: none }
  .hero { padding: 64px 0 52px }
  .brokers, .reviews-grid { grid-template-columns: 1fr }
  .broker-hero, .broker-grid { grid-template-columns: 1fr }
  .broker-side { position: static }
  .pros-cons { grid-template-columns: 1fr }
  .options-grid { grid-template-columns: 1fr }
  .compare-table-wrap { margin: 0 -4vw }
  .footer-grid { grid-template-columns: 1fr }
}

/* ===== 追加スタイル v1.0.0 ===== */

/* PR notice */
.pr-notice { font-size:12px; color:var(--muted); border-left:3px solid var(--line); padding:4px 8px; margin-bottom:16px }

/* Section */
.section { padding:64px 0 }
.section-head { text-align:center; margin-bottom:40px }
.section-title { font-size:clamp(22px,4vw,32px); font-weight:900; color:var(--primary); margin:0 0 8px }
.section-sub { color:var(--muted); margin:0 }
.center { text-align:center }
.muted { color:var(--muted) }
.small { font-size:13px }

/* Container */
.container { max-width:1080px; margin:0 auto; padding:0 20px }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:6px; padding:12px 24px; border-radius:999px; font-weight:700; font-size:15px; text-decoration:none; cursor:pointer; border:none; transition:all .15s }
.btn-primary { background:var(--primary); color:#fff }
.btn-primary:hover { background:#162d4a; transform:translateY(-1px) }
.btn-accent { background:var(--accent); color:#1a1a1a }
.btn-accent:hover { background:#e08c00; transform:translateY(-1px) }
.btn-soft { background:var(--soft); color:var(--primary); border:1px solid var(--line) }
.btn-soft:hover { background:#e8eef5 }
.btn-ghost { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.4) }
.btn-ghost:hover { background:rgba(255,255,255,.1) }
.btn-sm { padding:7px 16px; font-size:13px }
.btn.block { width:100%; justify-content:center }

/* Tags */
.tag { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; background:#eff6ff; color:#1e40af; margin:2px }
.tag-list { display:flex; flex-wrap:wrap; gap:4px; margin:8px 0 }

/* Header */
.site-header { position:sticky; top:0; z-index:100; background:#0f172a; box-shadow:0 1px 0 rgba(255,255,255,.06); transition:background .2s }
.site-header.scrolled { background:#0a1628 }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:60px }
.site-logo { text-decoration:none }
.logo-text { color:#fff; font-weight:900; font-size:18px }
.site-nav { display:flex }
.nav-list { list-style:none; margin:0; padding:0; display:flex; gap:4px; align-items:center }
.nav-list a { color:rgba(255,255,255,.75); text-decoration:none; font-size:14px; font-weight:500; padding:6px 12px; border-radius:8px; transition:all .15s }
.nav-list a:hover { color:#fff; background:rgba(255,255,255,.08) }
.nav-cta { background:var(--accent)!important; color:#1a1a1a!important; font-weight:700!important }
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; flex-direction:column; gap:5px }
.nav-toggle span { display:block; width:22px; height:2px; background:#fff; border-radius:2px; transition:all .2s }

/* Mobile Nav */
.mobile-nav { position:fixed; inset:60px 0 0 0; background:#0f172a; z-index:99; overflow-y:auto }
.mobile-nav-inner { padding:24px 20px }
.mobile-nav ul { list-style:none; margin:0; padding:0 }
.mobile-nav li a { display:block; color:#fff; text-decoration:none; font-size:16px; font-weight:600; padding:14px 0; border-bottom:1px solid rgba(255,255,255,.08) }

/* Hero */
.hero { background:linear-gradient(160deg,#0f172a 0%,#1e3a5f 50%,#1e2f5a 100%); padding:80px 0 64px; position:relative; overflow:hidden }
.hero-glow { position:absolute; top:-100px; right:-100px; width:600px; height:600px; background:radial-gradient(circle,rgba(245,158,11,.12) 0%,transparent 70%); pointer-events:none }
.hero-inner { display:grid; grid-template-columns:1fr 420px; gap:48px; align-items:center }
.hero-badge { display:inline-block; background:rgba(245,158,11,.15); color:var(--accent); border:1px solid rgba(245,158,11,.3); border-radius:999px; padding:6px 16px; font-size:13px; font-weight:700; margin-bottom:16px }
.hero-title { color:#fff; font-size:clamp(28px,5vw,48px); font-weight:900; line-height:1.2; margin:0 0 16px }
.hero-title .accent { color:var(--accent) }
.hero-sub { color:rgba(255,255,255,.7); font-size:16px; margin:0 0 28px; max-width:50ch }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:32px }
.hero-cta { font-size:17px; padding:14px 28px }
.hero-stats { display:flex; gap:24px }
.hero-stat { text-align:center; color:rgba(255,255,255,.6) }
.hero-stat strong { display:block; font-size:24px; font-weight:900; color:#fff }
.hero-stat span { font-size:12px }
.hero-visual { display:flex; justify-content:center }
.hero-card-demo { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.12); border-radius:20px; padding:28px; width:280px; backdrop-filter:blur(8px) }
.demo-rank { color:var(--accent); font-weight:800; font-size:14px; margin-bottom:8px }
.demo-name { color:#fff; font-weight:900; font-size:20px; margin-bottom:8px }
.demo-spread { color:rgba(255,255,255,.6); font-size:13px; margin-bottom:4px }
.demo-score { color:rgba(255,255,255,.6); font-size:13px; margin-bottom:16px }
.demo-score strong { color:var(--accent) }
.demo-btn { background:var(--accent); color:#1a1a1a; border-radius:999px; padding:10px 20px; font-weight:800; font-size:14px; text-align:center }

/* Type Nav */
.type-nav-section { background:#f8fafc; border-bottom:1px solid var(--line); padding:12px 0 }
.type-nav { display:flex; gap:8px; flex-wrap:wrap; align-items:center }
.type-chip { display:flex; align-items:center; gap:6px; padding:8px 16px; border-radius:999px; font-size:14px; font-weight:600; color:var(--muted); text-decoration:none; border:1px solid var(--line); background:#fff; transition:all .15s }
.type-chip:hover, .type-chip.active { background:var(--primary); color:#fff; border-color:var(--primary) }
.chip-icon { font-size:16px }
.chip { padding:7px 16px; border-radius:999px; font-size:13px; font-weight:600; text-decoration:none; color:var(--muted); border:1px solid var(--line); background:#fff; transition:all .15s }
.chip:hover, .chip.active { background:var(--primary); color:#fff; border-color:var(--primary) }

/* Type Filter */
.type-filter { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px }

/* Broker Cards */
.brokers-top, .brokers-grid { display:flex; flex-direction:column; gap:20px }

.broker-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px; position:relative; transition:box-shadow .15s }
.broker-card:hover { box-shadow:0 8px 32px rgba(0,0,0,.08) }
.broker-card.rank-gold { border-color:#f59e0b; border-width:2px }
.broker-card.rank-silver { border-color:#94a3b8; border-width:2px }
.broker-card.rank-bronze { border-color:#b45309; border-width:2px }

.rank-badge { position:absolute; top:-14px; left:20px; background:#f59e0b; color:#1a1a1a; border-radius:999px; padding:4px 12px; font-size:13px; font-weight:800 }
.rank-num { position:absolute; top:16px; right:20px; color:var(--muted); font-size:13px; font-weight:700 }
.campaign-badge { position:absolute; top:16px; right:20px; background:#fef3c7; color:#92400e; border-radius:8px; padding:4px 10px; font-size:12px; font-weight:700 }
.campaign-badge-sm { display:inline-block; background:#fef3c7; color:#92400e; border-radius:6px; padding:2px 8px; font-size:11px; font-weight:700 }

.broker-head { display:flex; gap:16px; align-items:flex-start; margin-bottom:16px; margin-top:8px }
.broker-logo { width:60px; height:60px; object-fit:contain; border-radius:12px; border:1px solid var(--line); flex-shrink:0 }
.broker-name { font-size:20px; font-weight:900; margin:0 0 4px }
.broker-name a { color:var(--ink); text-decoration:none }
.broker-name a:hover { color:var(--primary) }
.broker-excerpt { color:var(--muted); font-size:14px; margin:0 0 8px }
.broker-tags { display:flex; flex-wrap:wrap; gap:4px }

.broker-specs { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:16px; background:var(--soft); border-radius:12px; margin-bottom:16px }
.spec-item { text-align:center }
.spec-label { display:block; font-size:11px; color:var(--muted); margin-bottom:2px }
.spec-val { font-size:14px; font-weight:800; color:var(--primary) }
.score-inline { color:var(--accent) }

.broker-actions { display:flex; gap:10px; flex-wrap:wrap }

/* Archive Hero */
.archive-hero { background:linear-gradient(135deg,#0f172a,#1e3a5f); color:#fff; padding:48px 0 36px }
.archive-title { font-size:clamp(24px,4vw,36px); font-weight:900; margin:0 0 8px }
.archive-sub { color:rgba(255,255,255,.7); font-size:16px; margin:0 }

/* Type Hero */
.type-hero { padding:56px 0 44px; color:#fff }
.type-hero-inner { text-align:center }
.type-hero-icon { font-size:48px; margin-bottom:12px }
.type-hero-title { font-size:clamp(26px,5vw,40px); font-weight:900; margin:0 0 8px }
.type-hero-lead { font-size:16px; opacity:.85; margin:0 0 16px }
.type-hero-badge { display:inline-block; background:rgba(255,255,255,.15); border-radius:999px; padding:6px 16px; font-size:14px; font-weight:700; margin-bottom:16px }
.type-hero-points { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:24px }
.type-point { background:rgba(255,255,255,.12); border-radius:999px; padding:6px 14px; font-size:13px; font-weight:600 }
.type-hero-cta { display:inline-flex; align-items:center; background:var(--accent); color:#1a1a1a; border-radius:999px; padding:12px 24px; font-weight:800; text-decoration:none; font-size:15px }

/* Broker Single */
.broker-hero { display:grid; grid-template-columns:1fr 260px; gap:40px; align-items:start; margin-bottom:48px; padding:32px; background:var(--soft); border-radius:var(--radius) }
.eyebrow { margin-bottom:8px }
.eyebrow a { font-size:13px; font-weight:700; color:var(--primary); text-decoration:none; background:#dbeafe; padding:3px 10px; border-radius:999px }
.broker-hero-title { font-size:clamp(22px,4vw,34px); font-weight:900; margin:0 0 8px; color:var(--primary) }
.lead { font-size:16px; color:var(--muted); margin:12px 0 }
.campaign-hero-badge { display:inline-block; background:#fef3c7; color:#92400e; border-radius:12px; padding:8px 16px; font-weight:700; font-size:14px; margin:12px 0 4px }
.broker-hero-actions { margin-top:20px }
.broker-hero-thumb img { width:100%; border-radius:16px; object-fit:contain }

.broker-content-grid { display:grid; grid-template-columns:1fr 280px; gap:32px; align-items:start }
.broker-main { min-width:0 }
.broker-side { position:sticky; top:80px; display:flex; flex-direction:column; gap:16px }

.content-h2 { font-size:20px; font-weight:900; color:var(--primary); border-left:4px solid var(--accent); padding-left:12px; margin:32px 0 16px }
.spec-table-wrap { margin-bottom:24px }
.spec-table { width:100%; border-collapse:collapse; font-size:14px }
.spec-table th { text-align:left; padding:10px 12px; background:var(--soft); font-weight:700; width:35%; color:var(--primary); border-bottom:1px solid var(--line) }
.spec-table td { padding:10px 12px; border-bottom:1px solid var(--line) }

/* Pros/Cons */
.pros-cons { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:24px 0 }
.pc-card { border-radius:16px; padding:20px }
.pc-card.good { background:#f0fdf4; border:1px solid #bbf7d0 }
.pc-card.bad { background:#fffbeb; border:1px solid #fde68a }
.pc-head { font-weight:800; font-size:14px; margin-bottom:10px }
.pc-card.good .pc-head { color:#065f46 }
.pc-card.bad .pc-head { color:#92400e }
.pc-card ul { margin:0; padding:0 0 0 16px; font-size:14px; line-height:1.8 }

/* CTA Box */
.cta-box { background:linear-gradient(135deg,#1e3a5f,#2563eb); border-radius:var(--radius); padding:40px; text-align:center; color:#fff; margin:32px 0 }
.cta-box h2, .cta-box h3 { color:#fff; margin:0 0 8px }
.cta-box .muted { color:rgba(255,255,255,.75) }
.cta-box .btn { margin-top:16px }

/* Side Cards */
.side-card { text-align:center; padding:20px }
.side-score { font-size:48px; font-weight:900; color:var(--primary); line-height:1 }
.side-score small { font-size:16px; color:var(--muted) }
.side-action-card { padding:16px }
.side-spec-card { padding:16px; font-size:13px }
.side-spec-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--line) }
.side-spec-val { font-weight:700; color:var(--primary) }
.side-related a.related-broker { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink); padding:8px 0; border-bottom:1px solid var(--line); font-size:13px; font-weight:600 }
.side-related img { width:36px; height:36px; object-fit:contain; border-radius:8px; border:1px solid var(--line) }

/* Hero Score */
.hero-score-wrap { display:flex; align-items:center; gap:12px; margin:12px 0 }
.score-wrap { flex:1; height:8px; background:var(--line); border-radius:99px; overflow:hidden; max-width:160px }
.score-bar { height:100%; border-radius:99px; transition:width .8s cubic-bezier(.4,0,.2,1) }
.score-num { font-size:18px; font-weight:900; color:var(--primary) }
.score-num small { font-size:13px; color:var(--muted) }

/* Banner Area */
.banner-area { margin-top:8px }
.banner-area img { max-width:100%; border-radius:12px }

/* Compare Table */
.table-wrap { overflow-x:auto }
.compare-table { width:100%; border-collapse:collapse; font-size:14px; min-width:600px }
.compare-table th { background:var(--primary); color:#fff; padding:12px 14px; text-align:left; font-size:13px; white-space:nowrap }
.compare-table td { padding:12px 14px; border-bottom:1px solid var(--line) }
.compare-table tr:hover td, .compare-table tr.highlighted td { background:#f0f7ff }
.accent-text { color:var(--primary); font-weight:800 }

/* Diagnosis */
.diagnosis-section { background:#f8fafc }
.diagnosis-card { background:#fff; border-radius:var(--radius); padding:48px; text-align:center; box-shadow:0 4px 24px rgba(0,0,0,.06) }
.diagnosis-icon { font-size:48px; margin-bottom:12px }
.diagnosis-title { font-size:24px; font-weight:900; color:var(--primary); margin:0 0 8px }
.diagnosis-sub { color:var(--muted); margin:0 0 32px }

.diag-step { text-align:center }
.diag-step h3 { font-size:20px; font-weight:800; margin:0 0 20px }
.step-num { color:var(--muted); font-size:13px; font-weight:700; margin-bottom:8px }
.diag-options { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; max-width:480px; margin:0 auto }
.diag-opt { background:#fff; border:2px solid var(--line); border-radius:14px; padding:16px 12px; cursor:pointer; font-size:14px; font-weight:700; text-align:center; transition:all .15s; color:var(--ink) }
.diag-opt:hover, .diag-opt.selected { border-color:var(--primary); background:#eff6ff; color:var(--primary); transform:translateY(-2px) }

.diag-result-icon { font-size:48px; margin-bottom:12px }
.diag-result-list { display:flex; flex-direction:column; gap:12px; margin-top:16px; text-align:left }
.diag-result-item { display:flex; align-items:center; gap:12px; padding:16px; background:var(--soft); border-radius:16px; border:1px solid var(--line) }
.diag-rank { font-size:22px; flex-shrink:0 }
.diag-result-info { flex:1; min-width:0 }
.diag-result-info strong { display:block; font-size:15px; color:var(--primary) }
.diag-result-info p { font-size:13px; color:var(--muted); margin:2px 0 0 }

/* Type Cards */
.type-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:20px }
.type-card { display:flex; flex-direction:column; background:#fff; border-radius:16px; border:1px solid var(--line); padding:24px; text-decoration:none; color:var(--ink); transition:all .15s }
.type-card:hover { transform:translateY(-4px); box-shadow:0 8px 32px rgba(0,0,0,.1) }
.type-card-icon { font-size:32px; margin-bottom:12px }
.type-card-title { font-size:16px; font-weight:800; color:var(--primary); margin:0 0 6px }
.type-card-desc { font-size:13px; color:var(--muted); flex:1; margin:0 0 12px }
.type-card-cta { font-size:13px; font-weight:700; color:var(--primary) }

/* CTA Section */
.cta-section { background:var(--soft) }

/* Entry Content */
.entry-content { font-size:15px; line-height:1.85; margin:24px 0 }
.entry-content h2 { font-size:22px; font-weight:900; border-left:4px solid var(--accent); padding-left:12px; margin:32px 0 16px }
.entry-content h3 { font-size:18px; font-weight:800; margin:24px 0 10px }
.entry-content img { max-width:100%; border-radius:12px }
.entry-content a { color:var(--primary) }
.entry-content ul, .entry-content ol { padding-left:20px }
.entry-content li { margin-bottom:6px }
.entry-content p { margin:0 0 16px }

/* Card */
.card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px }

/* Widget */
.widget { margin-bottom:24px }
.widget-title { font-size:15px; font-weight:800; margin:0 0 12px; color:var(--primary) }
.widget-broker-list { list-style:none; margin:0; padding:0; font-size:14px }
.widget-broker-list li { padding:8px 0; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:8px }
.widget-broker-list a { color:var(--ink); text-decoration:none; font-weight:600 }

/* Ranking Section */
.ranking-section { background:#fff }

/* Footer Full */
.site-footer { background:#0f172a; color:rgba(255,255,255,.65); padding:56px 0 28px; font-size:14px }
.footer-inner { }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px }
.footer-brand { }
.footer-logo { color:#fff; text-decoration:none; font-size:18px; font-weight:900; display:block; margin-bottom:12px }
.footer-desc { color:rgba(255,255,255,.5); font-size:13px; margin:0 0 12px }
.footer-disclaimer { color:rgba(255,255,255,.4); font-size:11px; line-height:1.7; margin:0 }
.footer-links h4 { color:#fff; font-size:13px; font-weight:700; margin:0 0 12px; text-transform:uppercase; letter-spacing:.05em }
.footer-links ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px }
.footer-links a { color:rgba(255,255,255,.55); text-decoration:none; font-size:13px }
.footer-links a:hover { color:#fff }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding-top:24px; display:flex; flex-direction:column; gap:6px; align-items:center; text-align:center }
.footer-copy { margin:0; font-size:13px }
.footer-risk { margin:0; font-size:11px; color:rgba(255,255,255,.35) }

/* Responsive additions */
@media(max-width:960px) {
  .hero-inner { grid-template-columns:1fr; }
  .hero-visual { display:none }
  .type-cards { grid-template-columns:repeat(2,1fr) }
  .broker-specs { grid-template-columns:repeat(2,1fr) }
  .broker-content-grid { grid-template-columns:1fr }
  .broker-side { position:static }
  .broker-hero { grid-template-columns:1fr }
  .footer-grid { grid-template-columns:1fr 1fr }
}
@media(max-width:640px) {
  .site-nav { display:none }
  .nav-toggle { display:flex }
  .type-cards { grid-template-columns:1fr }
  .broker-specs { grid-template-columns:repeat(2,1fr) }
  .diag-options { grid-template-columns:1fr }
  .pros-cons { grid-template-columns:1fr }
  .section { padding:40px 0 }
  .diagnosis-card { padding:28px 20px }
  .footer-grid { grid-template-columns:1fr }
  .hero { padding:48px 0 40px }
  .broker-hero { padding:20px }
  .hero-actions { flex-direction:column }
  .hero-actions .btn { justify-content:center }
}
