/* =========================================================
   FXブローカー比較ナビ — 共通スタイル
   ========================================================= */
:root {
  --navy: #0e2340;
  --navy-700: #16335c;
  --blue: #1f6feb;
  --blue-dark: #1557c0;
  --gold: #c9a227;
  --green: #1a8754;
  --red: #c0392b;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #1c2733;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --shadow: 0 2px 10px rgba(14, 35, 64, .08);
  --shadow-lg: 0 10px 30px rgba(14, 35, 64, .12);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; 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,.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); font-size: .95rem; font-weight: 600; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-700) 60%, #1d4a86 100%);
  color: #fff; padding: 56px 0 64px;
}
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); line-height: 1.4; margin: 0 0 16px; letter-spacing: .01em; }
.hero p.lead { font-size: 1.05rem; color: #cdd9ea; max-width: 720px; margin: 0 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero-badges span {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  padding: 7px 14px; border-radius: 999px; font-size: .85rem; color: #e8eef7;
}
.hero-shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.15); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 700;
  font-size: .98rem; text-align: center; cursor: pointer; border: 0; transition: .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #2a2200; box-shadow: 0 6px 16px rgba(201,162,39,.35); }
.btn-primary:hover { background: #d8b231; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Sections ---------- */
main section { padding: 54px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 0 34px; }
.section-head .eyebrow { color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); line-height: 1.45; margin: 0 0 14px; color: var(--navy); }
h3 { font-size: 1.25rem; color: var(--navy); margin: 0 0 12px; line-height: 1.5; }
h4 { font-size: 1.05rem; color: var(--navy); margin: 0 0 8px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.lead-text { font-size: 1.05rem; }

/* ---------- Ranking cards ---------- */
.ranking { display: grid; gap: 22px; }
.rank-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden; display: grid;
  grid-template-columns: 90px 1fr 230px;
}
.rank-card.top { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.rank-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; background: var(--navy); color: #fff; padding: 20px 8px;
}
.rank-card.top .rank-badge { background: linear-gradient(160deg, var(--gold), #a8841a); color: #241c00; }
.rank-badge .num { font-size: 2rem; font-weight: 800; line-height: 1; }
.rank-badge .label { font-size: .68rem; letter-spacing: .08em; }
.rank-body { padding: 22px 24px; }
.rank-body .broker-name { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.rank-body .broker-name h3 { margin: 0; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef4ff; color: var(--blue); }
.pill.best { background: #fff4d6; color: #8a6d00; }
.rating { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }
.score { font-weight: 700; color: var(--navy); }
.spec-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); margin: 10px 0 0; padding: 0; list-style: none; }
.spec-row li strong { color: var(--ink); }
.rank-cta { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px 22px; background: #fafbfe; border-left: 1px solid var(--line); }
.rank-cta .price-note { font-size: .78rem; color: var(--muted); text-align: center; }

/* ---------- Generic cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.1rem; }
.card .ico { width: 44px; height: 44px; margin-bottom: 14px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: .92rem; }
table.cmp thead th { background: var(--navy); color: #fff; font-weight: 600; }
table.cmp tbody th { text-align: left; background: #f7f9fc; color: var(--navy); font-weight: 600; white-space: nowrap; }
table.cmp tr.highlight td, table.cmp tr.highlight th { background: #fffaf0; }
table.cmp .yes { color: var(--green); font-weight: 700; }
table.cmp .no { color: var(--muted); }
table.cmp caption { caption-side: bottom; font-size: .8rem; color: var(--muted); padding: 10px; text-align: left; }

/* ---------- Figure / interface shots ---------- */
figure.shot { margin: 24px 0; }
figure.shot .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background:#fff;
}
figure.shot figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- Pros / cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.proscons .box { border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.proscons .pros { background: #f0faf4; border-color: #c7ead4; }
.proscons .cons { background: #fdf3f2; border-color: #f2d4d0; }
.proscons h4 { display: flex; align-items: center; gap: 8px; }
.proscons ul { margin: 6px 0 0; padding-left: 20px; }
.proscons li { margin-bottom: 8px; }

/* ---------- Content prose ---------- */
.prose { max-width: 820px; }
.prose h2 { margin-top: 44px; }
.prose h3 { margin-top: 30px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 22px 0; padding: 16px 22px; border-left: 4px solid var(--blue);
  background: #f4f8ff; border-radius: 0 10px 10px 0; color: var(--navy);
}
.callout {
  background: #fffaf0; border: 1px solid #f0e2bd; border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin: 24px 0;
}
.toc { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 0 0 30px; }
.toc p { font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden;
}
details.faq summary {
  cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; font-size: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "＋"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-weight: 700;
}
details.faq[open] summary::after { content: "－"; }
details.faq .faq-body { padding: 0 22px 20px; color: var(--ink); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .83rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy), #1d4a86); color: #fff; text-align: center; border: 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd9ea; max-width: 640px; margin: 0 auto 24px; }

/* ---------- Author / meta ---------- */
.article-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; margin: 10px 0 0; flex-wrap: wrap; }
.article-meta .avatar { width: 40px; height: 40px; border-radius: 50%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c2cedd; padding: 50px 0 26px; margin-top: 10px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h5 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.site-footer a { color: #c2cedd; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 12px; }
.footer-brand .logo { width: 32px; height: 32px; }
.disclaimer { font-size: .78rem; color: #8ea0b6; line-height: 1.7; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8ea0b6; font-size: .82rem; }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow); }
.stat .big { font-size: 1.9rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat .cap { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-30 { margin-top: 30px; } .mt-40 { margin-top: 40px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 40px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; inset: 66px 0 auto 0; flex-direction: column; background: #fff;
          border-bottom: 1px solid var(--line); padding: 14px 20px; gap: 4px; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 10px; }
  .nav-toggle { display: block; }
  .rank-card { grid-template-columns: 64px 1fr; }
  .rank-cta { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .rank-cta .btn { flex: 1; }
  .proscons { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  main section { padding: 40px 0; }
  .hero { padding: 40px 0 46px; }
  .rank-cta { flex-direction: column; }
}
