/* =========================================================
   FX比較ナビ — 共通スタイルシート
   Design: clean financial / navy + gold accent
   ========================================================= */

:root {
  --navy: #0d1b36;
  --navy-2: #13294e;
  --blue: #1d5fd1;
  --blue-dark: #164aa6;
  --gold: #c89b3c;
  --gold-soft: #f3e7c6;
  --ink: #1a2234;
  --muted: #5b6678;
  --line: #e4e8f0;
  --bg: #f6f8fc;
  --card: #ffffff;
  --green: #137a4b;
  --green-soft: #e3f4ea;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(13, 27, 54, .08);
  --shadow: 0 8px 28px rgba(13, 27, 54, .10);
  --maxw: 1140px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", "Meiryo", system-ui, -apple-system, 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;
  letter-spacing: .01em;
}

img { 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; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand .brand-name { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.brand .brand-name span { color: var(--gold); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: #fff; margin: 0 auto;
  position: relative; transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  color: #dfe6f3; font-size: .94rem; font-weight: 500;
  padding: 9px 13px; border-radius: 8px; display: block; white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--navy-2); color: #fff; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none; line-height: 1.3;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #e1b858, var(--gold)); color: #241a06; box-shadow: 0 6px 16px rgba(200,155,60,.35); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(200,155,60,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: #eef4ff; }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(29,95,209,.35), transparent),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 70%);
  color: #fff; padding: 56px 0 64px;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero .eyebrow {
  display: inline-block; background: rgba(200,155,60,.16); color: var(--gold-soft);
  border: 1px solid rgba(200,155,60,.4); padding: 5px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.35; margin: 0 0 18px; font-weight: 800; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { color: #c7d2e6; font-size: 1.06rem; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.1); }
.trust-row { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.trust-row .t-item { }
.trust-row .t-num { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.trust-row .t-lab { font-size: .82rem; color: #aebbd2; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head .kicker { color: var(--blue); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.4; margin: 10px 0 14px; font-weight: 800; color: var(--navy); }
h3 { font-size: 1.25rem; color: var(--navy); margin: 1.8em 0 .6em; font-weight: 700; }
h4 { font-size: 1.05rem; color: var(--navy-2); margin: 1.4em 0 .4em; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

.bg-white { background: #fff; }

/* ---------- Ranking cards ---------- */
.rank-list { display: grid; gap: 22px; }
.rank-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; display: grid;
  grid-template-columns: 76px 1.4fr 1fr; align-items: stretch;
}
.rank-card.is-top { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.rank-badge {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800; padding: 16px 6px; text-align: center;
}
.rank-card.is-top .rank-badge { background: linear-gradient(180deg, #e1b858, var(--gold)); color: #241a06; }
.rank-badge .r-no { font-size: 1.9rem; line-height: 1; }
.rank-badge .r-lab { font-size: .64rem; letter-spacing: .1em; margin-top: 4px; opacity: .85; }
.rank-main { padding: 22px 24px; }
.rank-main .broker-row { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.rank-main .broker-logo { height: 30px; width: auto; }
.rank-main .broker-name { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.rank-main .tag { font-size: .72rem; background: var(--gold-soft); color: #7a5a12; padding: 3px 9px; border-radius: 6px; font-weight: 700; }
.rank-main p { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.score-grid { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.score-grid .s { font-size: .82rem; color: var(--muted); }
.score-grid .s b { display: block; color: var(--navy); font-size: 1.05rem; }
.rank-aside {
  background: #fafbfe; border-left: 1px solid var(--line);
  padding: 22px 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.stars { color: var(--gold); font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; }
.stars small { color: var(--muted); font-weight: 600; margin-left: 4px; }

/* ---------- Generic cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card .icon-img { width: 54px; height: 54px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Feature / image split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.split-body h2 { text-align: left; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding: 7px 0 7px 32px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px;
  background: var(--green-soft); border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--green);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 15px; width: 5px; height: 9px;
  border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .93rem; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cmp thead th { background: var(--navy); color: #fff; font-weight: 600; position: sticky; top: 0; }
table.cmp tbody tr:nth-child(even) { background: #fafbfe; }
table.cmp .col-highlight { background: var(--gold-soft) !important; }
table.cmp th.col-highlight { background: var(--gold) !important; color: #241a06; }
table.cmp .broker-cell { font-weight: 700; color: var(--navy); white-space: nowrap; }
table.cmp .yes { color: var(--green); font-weight: 700; }
table.cmp .no { color: #b23; font-weight: 700; }

/* ---------- Pros/Cons ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pc-box { border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.pc-box.pros { background: var(--green-soft); border-color: #bfe3cd; }
.pc-box.cons { background: #fdecec; border-color: #f3c9c9; }
.pc-box h4 { margin-top: 0; }
.pc-box ul { margin: 0; padding-left: 20px; }
.pc-box li { margin: 7px 0; font-size: .95rem; }

/* ---------- Callout / breadcrumb ---------- */
.breadcrumb { font-size: .82rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "›"; margin-left: 6px; color: #aab; }
.breadcrumb li:last-child::after { content: ""; }

.callout {
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: var(--radius); padding: 38px 36px; text-align: center; box-shadow: var(--shadow);
}
.callout h2 { color: #fff; }
.callout p { color: #c7d2e6; max-width: 640px; margin: 0 auto 22px; }

.note {
  background: #fff8e9; border: 1px solid #f0dca6; border-left: 4px solid var(--gold);
  border-radius: 10px; padding: 16px 20px; font-size: .9rem; color: #6a5520; margin: 22px 0;
}

/* ---------- Article body ---------- */
.article { background: #fff; }
.article .container { max-width: 860px; }
.article p { margin: 1em 0; }
.article ul, .article ol { margin: 1em 0; padding-left: 1.4em; }
.article li { margin: .5em 0; }
.lead-para { font-size: 1.1rem; color: var(--navy-2); }
.toc {
  background: #fafbfe; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin: 26px 0;
}
.toc .toc-t { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc a { color: var(--ink); }

figure.shot { margin: 28px 0; }
figure.shot img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
figure.shot figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: .96rem; }

/* ---------- Star / rating chips ---------- */
.badge-pill { display: inline-block; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.updated { font-size: .82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c2ccde; padding: 48px 0 28px; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 7px 0; }
.footer-grid a { color: #aebbd2; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: .88rem; color: #92a1bd; margin: 10px 0 0; }
.footer-brand img { height: 32px; margin-bottom: 4px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 22px; font-size: .78rem; color: #8494b0; line-height: 1.7; }
.copyright { text-align: center; font-size: .8rem; color: #7585a3; margin-top: 18px; }

/* ---------- Risk bar ---------- */
.risk-bar { background: #0a1428; color: #8ea0c0; font-size: .74rem; text-align: center; padding: 8px 20px; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-l { margin-top: 36px; }
.inline-cta { margin: 28px 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .hero-figure { order: -1; max-width: 480px; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.rev .split-media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--navy-2);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 460px; border-top: 1px solid rgba(255,255,255,.1); }
  .main-nav ul { flex-direction: column; padding: 8px 14px 16px; gap: 2px; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; }

  .rank-card { grid-template-columns: 56px 1fr; }
  .rank-aside { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; align-items: center; justify-content: space-between; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .proscons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  section { padding: 42px 0; }
  .hero { padding: 40px 0 46px; }
  .callout { padding: 30px 22px; }
}

@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 18px; }
  .hero-cta .btn { width: 100%; }
}
