/*==================================
 * lp.css - ecoledefx.xyz LP刷新版
 * 自立型静的LP（ranking.cssに依存しない）
 * モバイルファースト、PC breakpoint: 1200px
 * 更新日: 2026-02-12
 *==================================*/

/* 1. CSS Custom Properties（ranking.cssから移植）
 *==================================*/
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #93c5fd;
  --color-primary-bg: #eff6ff;
  --color-text: #263238;
  --color-text-sp: #33363D;
  --color-text-light: #808080;
  --color-link: #337fcc;
  --color-link-sp: #0077b3;
  --color-bg-light: #f9f9f9;
  --color-bg-gray: #f7f7f7;
  --color-bg-dark: #333;
  --color-border: #e9e9e9;
  --color-border-light: #ccc;
  --color-blue: #177ade;
  --color-blue-dark: #0866c4;
  --color-gray-text: #7d8aa3;
  --font-family-base: -apple-system, 'BlinkMacSystemFont', 'Hiragino Kaku Gothic ProN', 'Noto Sans Japanese', sans-serif;
  --shadow-sm: 0 1px 1px rgba(0,0,0,.2);
  --shadow-md: 0 1px 1px 1px rgba(153,153,153,.3);
  --shadow-lg: 0 1px 3px 0 rgba(0,0,0,.25);
  --width-container: 1200px;
  --width-content: 1120px;
  --header-height: 56px;
  --header-height-sp: 46px;
}

/* 2. リセット & ベース
 *==================================*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-family-base);
  -webkit-font-feature-settings: 'palt';
  font-feature-settings: 'palt';
  color: var(--color-text-sp);
  background: #fff;
  line-height: 1.7;
  font-size: 14px;
}
a { color: var(--color-link-sp); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { list-style: none; }
.pc-only { display: none !important; }
.sp-only { display: block !important; }

@media (min-width: 1200px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 15px; color: var(--color-text); }
  a { color: var(--color-link); }
  .pc-only { display: block !important; }
  .sp-only { display: none !important; }
}

/* 3. レイアウト
 *==================================*/
.lp-main {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 40px;
  padding: 0;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  padding: 12px 16px;
  margin: 0 -16px 20px;
  background: var(--color-bg-light);
  border-left: 4px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title .icon { font-size: 20px; }

@media (min-width: 1200px) {
  .lp-main { padding: 0; }
  .section { margin-bottom: 56px; }
  .section-title {
    font-size: 22px;
    padding: 14px 20px;
    margin: 0 0 24px;
    border-radius: 4px;
  }
}

/* 4. ヘッダー（白ベース + ネイビー文字 + 信頼感）
 *==================================*/
.ranking-header {
  background: #fff;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height-sp);
  padding: 0 12px;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.header-top-brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #1a202c;
  text-decoration: none;
  min-width: 0;
}
.header-top-brand:hover { text-decoration: none; color: #1a202c; }
.header-brand {
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  letter-spacing: .3px;
  white-space: nowrap;
}
.header-since {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 400;
  white-space: nowrap;
}

/* ハンバーガー（CSS-only） */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-label span {
  display: block;
  width: 22px; height: 2px;
  background: #1a202c;
  transition: transform .3s, opacity .3s;
}
.nav-toggle:checked ~ .header-top .nav-toggle-label span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .header-top .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked ~ .header-top .nav-toggle-label span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ナビ（モバイル: ドロップダウン） */
.header-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: #fff;
  position: fixed;
  top: var(--header-height-sp);
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border-bottom: 1px solid #e2e8f0;
}
.nav-toggle:checked ~ .header-nav {
  max-height: 300px;
}
.header-nav ul {
  display: flex;
  flex-direction: column;
}
.header-nav a {
  display: block;
  padding: 12px 16px;
  color: #1a202c;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.header-nav a:hover { text-decoration: none; background: #f8fafc; }

@media (min-width: 1200px) {
  .ranking-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 0 24px;
    height: var(--header-height);
  }
  .header-top {
    position: static;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
  }
  .header-brand { font-size: 1.4rem; }
  .header-since { font-size: 11px; }
  .nav-toggle-label { display: none; }
  .header-nav {
    position: static;
    max-height: none !important;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    border: none;
    flex: 1;
  }
  .header-nav ul {
    flex-direction: row;
    justify-content: flex-end;
  }
  .header-nav a {
    padding: 10px 20px;
    color: #1a202c;
    border-bottom: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    transition: border-color .2s, color .2s;
  }
  .header-nav a:hover {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
  }
}

/* 5. ヒーロー（信頼ヘッダー + タイプ診断）
 *==================================*/
.hero {
  background: #eef2f7;
  color: var(--color-text);
  padding: 32px 16px 36px;
  padding-top: calc(var(--header-height-sp) + 32px);
  text-align: center;
}
.hero-trust {
  font-size: 12px;
  color: var(--color-text-light);
  margin-bottom: 12px;
  letter-spacing: .5px;
}
.hero h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--color-text);
}
.hero-sub {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.pr-notice {
  display: inline-block;
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 16px;
}

/* タイプ診断 2x2 グリッド */
.type-diagnosis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto 16px;
}
.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, border-color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.type-btn:hover {
  background: var(--color-primary-bg);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.type-btn__icon { display: flex; align-items: center; justify-content: center; }
.type-btn__icon svg { width: 28px; height: 28px; stroke: var(--color-primary); fill: none; }
.type-btn__label { font-size: 12px; line-height: 1.3; }

@media (min-width: 1200px) {
  .hero { padding: 48px 24px 52px; padding-top: calc(var(--header-height) + 48px); }
  .hero-trust { font-size: 14px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 15px; }
  .type-diagnosis { max-width: 480px; gap: 16px; }
  .type-btn { padding: 20px 12px; font-size: 15px; }
  .type-btn__icon svg { width: 32px; height: 32px; }
  .type-btn__label { font-size: 14px; }
}

/* 6. グループセクション
 *==================================*/
.group-section { margin-bottom: 40px; padding-top: 32px; }
.group-header {
  padding: 16px;
  margin: 0 -16px 16px;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-light);
}
.group-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.group-header h2 .icon { font-size: 22px; }
.group-sub {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 6px;
  line-height: 1.6;
}

@media (min-width: 1200px) {
  .group-section { margin-bottom: 56px; }
  .group-header {
    margin: 0 0 20px;
    padding: 18px 24px;
    border-radius: 4px;
  }
  .group-header h2 { font-size: 22px; }
  .group-sub { font-size: 14px; }
}

/* 7. ブローカーカード
 *==================================*/
.group-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.broker-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
  position: relative;
}
.broker-card:hover { box-shadow: var(--shadow-lg); }
.broker-card--featured { border-color: #1b3a5c; border-width: 2px; }
.broker-card--featured::before {
  content: '迷ったらコレ';
  position: absolute;
  top: 0; left: 0;
  background: #1b3a5c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 0;
  z-index: 1;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
}
.card-head .card-logo {
  width: 80px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.card-head .card-logo a { display: block; }
.card-head .card-logo img {
  width: 80px;
  height: 40px;
  object-fit: contain;
}
.card-info { flex: 1; min-width: 0; }
.card-company {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}
.card-company a { color: inherit; }
.card-catch {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* 3メトリクス */
.card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.metric {
  text-align: center;
  padding: 10px 4px;
}
.metric:not(:last-child) { border-right: 1px solid var(--color-border); }
.metric-label {
  font-size: 10px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}
.metric-value i {
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-light);
}

/* こんな人向け */
.card-target {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--color-text);
  background: var(--color-bg-light);
}
.card-target::before {
  content: '▶';
  color: var(--color-primary);
  margin-right: 6px;
  font-size: 10px;
}

/* アコーディオン詳細（CSS-only） */
.card-detail-input { display: none; }
.card-detail-label {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: var(--color-link-sp);
  cursor: pointer;
  border-top: 1px solid var(--color-border);
  transition: background .2s;
}
.card-detail-label::after { content: ' ▼'; font-size: 10px; }
.card-detail-input:checked ~ .card-detail-label::after { content: ' ▲'; }
.card-detail-label:hover { background: var(--color-bg-light); }
.card-feature {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text);
}
.card-detail-input:checked ~ .card-feature {
  max-height: 500px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
}

/* CTA */
.card-cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--color-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s;
  margin-top: auto;
}
.card-cta:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}
.card-cta::after { content: ' →'; }

@media (min-width: 1200px) {
  .group-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }
  .broker-card {
    flex: 1 1 calc(33.333% - 14px);
    min-width: 280px;
    max-width: calc(33.333% - 14px);
  }
  .card-head { padding: 20px 20px 14px; }
  .card-head .card-logo, .card-head .card-logo img { width: 100px; height: 50px; }
  .card-company { font-size: 15px; }
  .metric-value { font-size: 20px; }
  .card-cta { font-size: 15px; padding: 16px; }
}

/* 8. タブ切替比較表
 *==================================*/
.tab-section { margin-bottom: 40px; }
.tab-container { position: relative; }
.tab-input { display: none; }
.tab-labels {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab-label {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.tab-label:hover { color: var(--color-text); }

/* タブのアクティブ状態 */
#tab-spread:checked ~ .tab-labels label[for="tab-spread"],
#tab-swap:checked ~ .tab-labels label[for="tab-swap"],
#tab-unit:checked ~ .tab-labels label[for="tab-unit"],
#tab-total:checked ~ .tab-labels label[for="tab-total"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* タブパネル */
.tab-panel { display: none; padding: 16px 0; }
#tab-spread:checked ~ #panel-spread,
#tab-swap:checked ~ #panel-swap,
#tab-unit:checked ~ #panel-unit,
#tab-total:checked ~ #panel-total { display: block; }

/* テーブル共通 */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th,
.compare-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  vertical-align: middle;
}
.compare-table th {
  background: var(--color-bg-light);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
}
.compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.compare-table .value {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
.compare-table .value i {
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  color: var(--color-text-light);
}
.compare-table tr:hover { background: var(--color-primary-bg); }
.table-note {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 12px;
  line-height: 1.6;
}

@media (min-width: 1200px) {
  .tab-label { font-size: 14px; padding: 12px 16px; }
  .compare-table { font-size: 14px; }
  .compare-table td:first-child { font-size: 14px; }
  .compare-table .value { font-size: 18px; }
}

/* 8b. 全社比較テーブル（単一テーブル版）
 *==================================*/
.compare-full-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}
.compare-full { min-width: 560px; }
.compare-full td:first-child {
  min-width: 100px;
}
.compare-full td:first-child a {
  color: var(--color-link-sp);
  font-weight: 600;
}
.compare-full td:first-child a:hover {
  text-decoration: underline;
}
@media (min-width: 1200px) {
  .compare-full-wrap { margin: 0; padding: 0; overflow: visible; }
  .compare-full td:first-child a { color: var(--color-link); }
  .compare-full td:first-child { min-width: 130px; }
}

/* 9. 口座開設の流れ
 *==================================*/
.flow-steps {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.flow-content { padding-top: 6px; }
.flow-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.flow-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 10. FAQ
 *==================================*/
.faq-list { margin: 0; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item dt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 24px;
}
.faq-item dt .q-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #e2c636;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--color-text-light);
  transition: transform .3s;
}
.faq-item.is-open .faq-arrow { transform: translateY(-50%) rotate(180deg); }

.faq-item dd {
  display: none;
  padding: 0 0 16px 34px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text);
}
.faq-item dd .a-icon {
  display: inline-flex;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #0370dd;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 8px;
  vertical-align: middle;
}
.faq-item.is-open dd { display: block; }
.faq-link {
  display: block;
  font-size: 12px;
  color: var(--color-link-sp);
  margin-top: 8px;
}

@media (min-width: 1200px) {
  .faq-item dt {
    font-size: 15px;
    cursor: default;
    padding-right: 0;
  }
  .faq-arrow { display: none; }
  .faq-item dd { display: block; font-size: 14px; }
}

/* 11. FXを学ぶ（記事カードグリッド）
 *==================================*/
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.article-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  transition: background .2s, box-shadow .2s;
}
.article-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--color-text);
}
.article-card .card-icon { font-size: 24px; }
.article-card .card-label { line-height: 1.4; }
.article-card .coming-soon {
  font-size: 10px;
  color: var(--color-text-light);
  font-weight: 400;
}

@media (min-width: 1200px) {
  .article-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
  .article-card { padding: 20px 16px; font-size: 14px; }
}

/* 12. デモトレード誘導CTA
 *==================================*/
.demo-cta {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  color: #fff;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
}
.demo-cta h2 {
  font-size: 18px;
  margin-bottom: 12px;
}
.demo-cta p {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
  line-height: 1.7;
}
.demo-cta .check-list {
  text-align: left;
  max-width: 300px;
  margin: 0 auto 20px;
}
.demo-cta .check-list li {
  font-size: 13px;
  padding: 4px 0;
  color: rgba(255,255,255,.9);
}
.demo-cta .check-list li::before {
  content: '✔';
  color: #4ecdc4;
  margin-right: 8px;
  font-size: 12px;
}
.demo-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #4ecdc4;
  color: #1a1a2e !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.demo-btn:hover {
  background: #3dbdb5;
  transform: translateY(-2px);
  text-decoration: none;
}
.demo-btn::after { content: ' →'; }

@media (min-width: 1200px) {
  .demo-cta { padding: 48px 32px; border-radius: 16px; }
  .demo-cta h2 { font-size: 24px; }
  .demo-cta p { font-size: 15px; }
  .demo-btn { font-size: 16px; padding: 16px 48px; }
}

/* 13. キャンペーン
 *==================================*/
.campaign-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.campaign-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  transition: box-shadow .2s;
}
.campaign-item:hover { box-shadow: var(--shadow-md); }
.campaign-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.campaign-company {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.campaign-text {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.5;
}
.campaign-link {
  font-size: 12px;
  margin-top: 8px;
  display: inline-block;
}

@media (min-width: 1200px) {
  .campaign-list { flex-direction: row; gap: 20px; }
  .campaign-item { flex: 1; padding: 20px; }
  .campaign-company { font-size: 16px; }
}

/* 14. フッター
 *==================================*/
.ranking-footer {
  background: linear-gradient(to bottom, #2d3748, #1a202c);
  color: rgba(255,255,255,.7);
  padding: 32px 16px;
  margin-top: 40px;
}
.footer-notes { margin-bottom: 24px; }
.footer-notes .note {
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 4px;
}
/* フッターアコーディオン（CSS-only） */
.accordion-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.accordion-item input[type="checkbox"] { display: none; }
.accordion-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 12px;
  color: rgba(255,255,255,.8);
  cursor: pointer;
}
.accordion-item label i {
  font-style: normal;
  transition: transform .3s;
}
.accordion-item label i::before { content: '▶'; font-size: 8px; }
.accordion-item input:checked + label i { transform: rotate(90deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.accordion-item input:checked ~ .accordion-content { max-height: 500px; }
.accordion-content p {
  font-size: 11px;
  line-height: 1.7;
  padding: 0 0 12px;
}
.copyright {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  margin-top: 24px;
}

@media (min-width: 1200px) {
  .ranking-footer {
    padding: 40px 24px;
    margin-top: 56px;
  }
  .ranking-footer .footer-inner {
    max-width: var(--width-content);
    margin: 0 auto;
  }
  .accordion-item label { cursor: default; }
  .accordion-item label i { display: none; }
  .accordion-content { max-height: none; }
}

/* 15. Back-to-top
 *==================================*/
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .2s;
  z-index: 90;
  box-shadow: var(--shadow-lg);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top-icon { font-size: 12px; line-height: 1; }
.back-to-top-text { font-size: 9px; font-weight: 700; }

/* 16. 用語ツールチップ（glossary.js連携）
 *==================================*/
.Glossary {
  text-decoration: underline dotted;
  text-decoration-color: rgba(255,255,255,.5);
  text-underline-offset: 3px;
  cursor: help;
}
.Glossary__icon {
  font-style: normal;
  font-size: 0.75em;
  margin-left: 2px;
  opacity: .7;
}
.GlossaryTip {
  position: absolute;
  z-index: 1100;
  background: #1e293b;
  color: #f1f5f9;
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 280px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .15s;
  pointer-events: none;
}
.GlossaryTip__term {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 4px;
  color: #93c5fd;
  font-weight: 700;
}
.GlossaryTip__desc {
  font-size: 0.72rem;
  line-height: 1.6;
  color: #cbd5e1;
}
