/* =====================================================
   証券カレッジ — メインスタイルシート
   2026年最新版 ネット証券ランキング
   ===================================================== */

/* ===== CSS Variables ===== */
:root {
  /* Brand Colors */
  --c-primary:        #e05a00;
  --c-primary-dark:   #b84400;
  --c-primary-light:  #fff5f0;
  --c-accent:         #ff6600;
  --c-accent-dark:    #e55a00;
  --c-accent-light:   #fff3e0;
  --c-success:        #1E8449;
  --c-success-light:  #E9F7EF;

  /* Neutral */
  --c-bg:             #f4f4f0;
  --c-bg-subtle:      #F5F7FA;
  --c-text:           #1A1A2E;
  --c-text-muted:     #4A5568;
  --c-text-subtle:    #718096;
  --c-border:         #E2E8F0;

  /* Rank Colors */
  --c-rank-1:         #F5A623;
  --c-rank-2:         #9AA5B1;
  --c-rank-3:         #CD7F32;

  /* Layout */
  --max-w:            1120px;
  --max-w-narrow:     760px;

  /* Spacing */
  --sp-section:       112px;
  --sp-group:         64px;
  --sp-elem:          24px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadow */
  --sh-card:   0 2px 12px rgba(0,0,0,.08);
  --sh-hover:  0 8px 32px rgba(0,0,0,.12);
  --sh-header: 0 2px 8px rgba(0,0,0,.08);

  /* Transition */
  --tr: .2s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== Accessibility ===== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--max-w-narrow); }

.section { padding: var(--sp-section) 0; }
.section--alt { background: var(--c-bg-subtle); }

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-group);
}
.section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: .8125rem;
  font-weight: 700;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}
.section-badge--green  { background: var(--c-success-light); color: var(--c-success); }
.section-badge--orange { background: var(--c-accent-light);  color: var(--c-accent-dark); }

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 10px;
}
.section-sub {
  font-size: 1rem;
  color: var(--c-text-muted);
  max-width: 540px;
  margin: 0 auto 14px;
}
.section-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.section-meta__item {
  font-size: .8125rem;
  color: var(--c-text-subtle);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  font-size: .9375rem;
  font-weight: 700;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  transition: background-color var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline:hover { background: var(--c-primary-light); }

.btn--accent {
  background: var(--c-accent);
  color: #1a1a1a;
  border-color: var(--c-accent);
}
.btn--accent:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
}

.btn--white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--white-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn--lg  { padding: 15px 34px; font-size: 1rem; }
.btn--sm  { padding: 7px 18px;  font-size: .875rem; }

/* ===== Tags ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
}
.tag--blue   { background: #fff5f0; color: #e05a00; }
.tag--green  { background: #DCFCE7; color: #15803D; }
.tag--orange { background: #FEF3C7; color: #B45309; }

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ===== Rank Badges ===== */
.rank-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-weight: 900;
  flex-shrink: 0;
}
.rank-badge--lg { width: 64px; height: 64px; }

.rank-badge__num   { font-size: 1.375rem; line-height: 1; }
.rank-badge--lg .rank-badge__num { font-size: 1.625rem; }
.rank-badge__label { font-size: .625rem; line-height: 1.2; }

.rank-badge--1     { background: var(--c-rank-1); color: #fff; }
.rank-badge--2     { background: var(--c-rank-2); color: #fff; }
.rank-badge--3     { background: var(--c-rank-3); color: #fff; }
.rank-badge--other { background: #E5E7EB; color: #374151; }

/* Small rank badge (table) */
.rank-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: .8125rem;
  font-weight: 700;
  background: #E5E7EB;
  color: #374151;
  flex-shrink: 0;
}
.rank-badge-sm--1 { background: var(--c-rank-1); color: #fff; }
.rank-badge-sm--2 { background: var(--c-rank-2); color: #fff; }
.rank-badge-sm--3 { background: var(--c-rank-3); color: #fff; }

/* ===== Stars ===== */
.stars { display: flex; gap: 2px; }
.star  { font-size: 1.125rem; color: #D1D5DB; line-height: 1; }
.star--on   { color: var(--c-accent); }
.star--half { color: var(--c-accent); opacity: .55; }

.stars--sm .star { font-size: .875rem; }
.stars--xs .star { font-size: .75rem; }

.rating-score {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-text);
  margin-left: 4px;
}
.rating-score--sm { font-size: .9375rem; }

/* ===== Logo Box ===== */
.logo-box {
  width: 80px;
  height: 80px;
  background: var(--c-primary-light);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--c-primary);
  text-align: center;
  line-height: 1.4;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-box--lg { width: 96px; height: 96px; font-size: .875rem; }
.logo-box--md { width: 72px; height: 72px; }
.logo-box--sm { width: 56px; height: 56px; font-size: .6875rem; }

/* ===== Highlight list items ===== */
.highlight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .9375rem;
  color: var(--c-text);
}
.highlight__icon {
  color: var(--c-success);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
  font-style: normal;
}

/* ==============================================
   HEADER
   ============================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #e05a00;
  border-bottom: 3px solid #b84400;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.header__logo-icon { color: #fff; flex-shrink: 0; }

.header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.header__nav-link {
  padding: 7px 11px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--tr), background var(--tr);
}
.header__nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
}
.header__cta { margin-left: auto; flex-shrink: 0; }

.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr);
}

.header__mobile-nav {
  display: none;
  flex-direction: column;
  background: #e05a00;
  border-top: 1px solid #b84400;
}
.header__mobile-nav.is-open { display: flex; }
.header__mobile-link {
  padding: 14px 24px;
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: background var(--tr);
}
.header__mobile-link:hover { background: rgba(255,255,255,0.12); }
.header__mobile-link:last-child { border-bottom: none; }

/* Hamburger open state */
.header__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================================
   HERO
   ============================================== */
.hero {
  background:
    linear-gradient(135deg, rgba(80,30,0,.90) 0%, rgba(110,45,0,.84) 55%, rgba(60,20,0,.88) 100%),
    url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=1920&auto=format&fit=crop') center/cover no-repeat;
  color: #fff;
  padding: var(--sp-section) 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Content side */
.hero__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: .8125rem;
  font-weight: 700;
}
.badge--update {
  background: rgba(245,166,35,.2);
  color: var(--c-accent);
  border: 1px solid rgba(245,166,35,.35);
}
.badge--expert {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.2);
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 20px;
  color: #fff;
}
.hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero__stats {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 36px;
  backdrop-filter: blur(4px);
}
.hero__stat { flex: 1; text-align: center; }
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}
.hero__stat-num {
  display: block;
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-label {
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Visual side (rank preview) */
.rank-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rank-preview__card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  backdrop-filter: blur(8px);
  transition: background var(--tr);
}
.rank-preview__card:hover { background: rgba(255,255,255,.16); }
.rank-preview__card--1 {
  background: rgba(245,166,35,.15);
  border-color: rgba(245,166,35,.3);
  padding: 18px 22px;
}
.rank-preview__logo-box {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: var(--r-md);
  flex-shrink: 0;
  overflow: hidden;
}
.rank-preview__logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rank-preview__card--1 .rank-preview__logo-box { width: 52px; height: 52px; }
.rank-preview__info { flex: 1; min-width: 0; }
.rank-preview__name {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.rank-preview__card--1 .rank-preview__name { font-size: 1.0625rem; }

/* ==============================================
   TRUST BAR
   ============================================== */
.trust-bar {
  background: var(--c-bg-subtle);
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-bar__label {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--c-text-subtle);
  white-space: nowrap;
}
.trust-bar__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-bar__logo {
  padding: 5px 13px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
.trust-bar__logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==============================================
   QUICK NAV
   ============================================== */
.quick-nav {
  background: #fff;
  border-bottom: 2px solid var(--c-border);
  position: sticky;
  top: 64px;
  z-index: 90;
}
.quick-nav__tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-nav__tabs::-webkit-scrollbar { display: none; }

.quick-nav__tab {
  padding: 15px 18px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-text-muted);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color var(--tr), border-color var(--tr);
  cursor: pointer;
}
.quick-nav__tab:hover             { color: var(--c-primary); }
.quick-nav__tab--active           { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 700; }

/* ==============================================
   RANKING CARDS
   ============================================== */

/* 1位 Featured */
.rank-card--featured {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 24px;
  align-items: start;
  background: #fff;
  border: 2px solid var(--c-rank-1);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(245,166,35,.12);
  position: relative;
  overflow: hidden;
}
.rank-card--featured::before {
  content: '編集部おすすめ No.1';
  position: absolute;
  top: 0; right: 0;
  background: var(--c-rank-1);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-bottom-left-radius: var(--r-md);
}

/* 2〜5位 */
.rank-list { display: flex; flex-direction: column; gap: 14px; }

.rank-card {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 20px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--sh-card);
  transition: box-shadow var(--tr), transform var(--tr);
}
.rank-card:hover {
  box-shadow: var(--sh-hover);
  transform: translateY(-2px);
}

/* Logo column */
.rank-card__logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 96px;
}

/* Body */
.rank-card__name {
  font-size: 1.375rem;
  font-weight: 900;
  margin-bottom: 5px;
}
.rank-card--featured .rank-card__name { font-size: 1.625rem; }

.rank-card__tagline {
  font-size: .9375rem;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}
.rank-card__highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.rank-card__highlights--compact {
  gap: 6px;
  margin-bottom: 0;
}

/* Specs row */
.rank-card__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--c-bg-subtle);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
.spec__label { font-size: .75rem; color: var(--c-text-subtle); font-weight: 500; }
.spec__value { font-size: .9375rem; font-weight: 700; color: var(--c-text); }
.spec__value--good { color: var(--c-success); }
.spec__value--yes  { color: var(--c-success); }

/* Action column */
.rank-card__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 180px;
}
.rank-card__action--compact { min-width: 160px; }
.rank-card__cta { width: 100%; text-align: center; }
.rank-card__more-link {
  font-size: .875rem;
  color: var(--c-primary);
  font-weight: 500;
  text-align: center;
  text-decoration: underline;
}
.rank-card__note {
  font-size: .75rem;
  color: var(--c-text-subtle);
  text-align: center;
}

/* ==============================================
   CATEGORY RANKINGS
   ============================================== */
.cat-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: var(--sh-card);
  transition: box-shadow var(--tr), transform var(--tr);
}
.cat-card:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); }
.cat-card--featured {
  border: 2px solid var(--c-rank-1);
  box-shadow: 0 4px 20px rgba(245,166,35,.1);
}
.cat-card__name { font-size: 1.125rem; font-weight: 900; }
.cat-card__reason {
  font-size: .875rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  flex: 1;
}

/* ==============================================
   COMPARISON TABLE
   ============================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-card);
  margin-bottom: 14px;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 700px;
}
.comp-table thead {
  background: var(--c-primary);
  color: #fff;
}
.comp-table th {
  padding: 13px 14px;
  font-size: .8125rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.comp-table td {
  padding: 14px;
  font-size: .875rem;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody tr:hover { background: var(--c-bg-subtle); }
.comp-table__row--highlight { background: #FFFBF0; }
.comp-table__row--highlight td { font-weight: 600; }
.comp-table__col-company { text-align: left !important; min-width: 160px; }

.comp-company { display: flex; align-items: center; gap: 8px; }
.comp-company__name { font-weight: 700; }

.fee-best { font-weight: 900; color: var(--c-success); }
.status-ok { color: var(--c-success); font-weight: 900; font-size: 1.125rem; }
.table-note { font-size: .8125rem; color: var(--c-text-subtle); }

/* ==============================================
   EVALUATION CRITERIA
   ============================================== */
.eval-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.eval-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--sh-card);
}
.eval-card__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--c-primary-light);
  border-radius: var(--r-md);
  margin: 0 auto 12px;
  color: var(--c-primary);
}
.eval-card__title {
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.eval-card__desc {
  font-size: .8125rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.eval-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.eval-bar__track {
  flex: 1;
  height: 6px;
  background: var(--c-border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.eval-bar__fill {
  height: 100%;
  background: var(--c-primary);
  border-radius: var(--r-full);
}
.eval-bar__pct {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--c-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==============================================
   FAQ
   ============================================== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-card);
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--c-text);
  list-style: none;
  transition: background var(--tr);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: var(--c-bg-subtle); }

.faq-q__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 900;
  flex-shrink: 0;
}
.faq-q__text { flex: 1; }
.faq-q__arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--c-text-subtle);
  border-bottom: 2px solid var(--c-text-subtle);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform var(--tr);
  margin-bottom: 4px;
}
details[open] .faq-q__arrow {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}

.faq-a {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-subtle);
}
.faq-a__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--c-success);
  color: #fff;
  border-radius: 50%;
  font-size: .875rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-a p {
  font-size: .9375rem;
  color: var(--c-text-muted);
  line-height: 1.8;
}

/* ==============================================
   CTA BANNER
   ============================================== */
.cta-banner {
  background: linear-gradient(135deg, #0D3366 0%, #1B4F8A 100%);
  padding: 80px 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-banner__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.cta-banner__sub { font-size: 1rem; color: rgba(255,255,255,.75); }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: #0D1B2E;
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer__inner { display: flex; flex-direction: column; gap: 48px; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
}
.footer__logo {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}
.footer__desc { font-size: .875rem; line-height: 1.8; margin-bottom: 10px; }
.footer__disclaimer { font-size: .8125rem; color: rgba(255,255,255,.4); line-height: 1.7; }

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.footer__nav-title { font-size: .875rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer__nav-link {
  display: block;
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  padding: 4px 0;
  transition: color var(--tr);
}
.footer__nav-link:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__legal { font-size: .8125rem; color: rgba(255,255,255,.4); line-height: 1.7; }
.footer__copy  { font-size: .8125rem; color: rgba(255,255,255,.4); }

/* ==============================================
   RESPONSIVE
   ============================================== */

/* Tablet wide (≤ 1024px) */
@media (max-width: 1024px) {
  .eval-grid { grid-template-columns: repeat(3, 1fr); }

  .rank-card--featured {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
  }
  .rank-card--featured .rank-card__badge-col { grid-row: 1; grid-column: 1; }
  .rank-card--featured .rank-card__logo-col  {
    grid-row: 1; grid-column: 2;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .rank-card--featured .rank-card__body   { grid-row: 2; grid-column: 1 / 3; }
  .rank-card--featured .rank-card__action {
    grid-row: 3; grid-column: 1 / 3;
    flex-direction: row;
    min-width: 0;
    align-items: center;
  }
  .rank-card--featured .rank-card__cta { flex: 1; }
  .rank-card__specs { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet narrow (≤ 900px) */
@media (max-width: 900px) {
  .header__nav  { display: none; }
  .header__cta  { display: none; }
  .header__hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .hero__title { font-size: clamp(1.75rem, 6vw, 2.75rem); }

  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }

  .cta-banner__inner { flex-direction: column; text-align: center; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --sp-section: 72px;
    --sp-group:   40px;
  }

  /* Ranking card — single column stack */
  .rank-card,
  .rank-card--featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    position: relative;
    padding-top: 42px;
  }
  .rank-card--featured::before { font-size: .6875rem; }

  .rank-card__badge-col {
    position: absolute;
    top: 14px; left: 16px;
  }
  .rank-card__logo-col {
    flex-direction: row;
    align-items: center;
    min-width: 0;
    gap: 12px;
  }
  .rank-card__action,
  .rank-card--featured .rank-card__action {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    gap: 10px;
  }
  .rank-card__cta { flex: 1; min-width: 140px; }
  .tag-list { flex-direction: row; flex-wrap: wrap; }

  .cat-grid { grid-template-columns: 1fr; }
  .eval-grid { grid-template-columns: repeat(2, 1fr); }

  .hero__stats { flex-direction: column; gap: 18px; }
  .hero__stat-divider { width: 60px; height: 1px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}

/* Mobile small (≤ 480px) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .eval-grid { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: 1fr; }
  .quick-nav__tab { padding: 13px 13px; font-size: .8125rem; }
  .rank-card__specs { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 56px 0; }
  .cta-banner__actions { flex-direction: column; }
  .cta-banner__actions .btn { width: 100%; }
}
