/* =====================================================
   style.css ? 共通スタイルシート
   対象ページ：search.html / sokujitsu.html / result.html（他ページでも利用可）
   ===================================================== */

/* ===== CSS変数 ===== */
:root {
  --red: #e8160c;
  --red-dark: #b80f08;
  --orange: #ff6b00;
  --yellow: #ffc107;
  --gold: #d4a017;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --light-gray: #f0f0f0;
  --mid-gray: #e0e0e0;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
  --text-light: #777777;
  --green: #1a9e4a;
  --rank1: #d4a017;
  --rank2: #9e9e9e;
  --rank3: #b87333;
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
}

/* ===== リセット・ベース ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Hiragino Kaku Gothic Pro', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--off-white);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--red-dark);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo { color: var(--white); font-size: 13px; font-weight: bold; }
.site-header .updated {
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
}

/* ===== FIRSTVIEW ===== */
.fv-badge-bar {
  background: var(--red);
  padding: 6px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--white);
  font-weight: bold;
}
.fv-badge-bar span {
  background: var(--yellow);
  color: var(--text-dark);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.fv-image-area {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0f3460 0%, #1a1a2e 100%);
  overflow: hidden;
  position: relative;
}
.fv-image-area img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.fv-image-area .img-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  gap: 8px;
}
.fv-catch { color: #222; font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
.fv-catch em { color: #c00; font-style: normal; font-weight: bold; }
.fv-headline { color: #1a1a1a; font-size: 22px; font-weight: bold; line-height: 1.3; margin-bottom: 14px; }
.fv-headline .yellow { color: #e8a000; }
.fv-headline .red { color: #ff4444; }
.fv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; justify-content: center; }
.fv-tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
}
.fv-quick-info {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.fv-quick-item { text-align: center; }
.fv-quick-item .label { color: rgba(255,255,255,0.6); font-size: 10px; margin-bottom: 2px; }
.fv-quick-item .value { color: var(--yellow); font-size: 16px; font-weight: bold; }
.fv-quick-item .value small { font-size: 11px; color: var(--white); }
.fv-date-bar {
  background: #fff8e1;
  border: 1px solid #e8c400;
  border-radius: 8px;
  padding: 12px 14px;
  color: #6b4c00;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
}
.fv-cta {
  background: linear-gradient(135deg, var(--red) 0%, #ff2200 100%);
  color: var(--white);
  text-align: center;
  padding: 13px 14px;
  border-radius: 6px;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 12px rgba(232,22,12,0.5);
  border: none;
  cursor: pointer;
  width: 100%;
  animation: ctaPulse 2.5s ease-in-out infinite;
}
.fv-cta .sub { font-size: 12px; font-weight: normal; opacity: 0.9; margin-top: 2px; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(232,22,12,0.5); }
  50%       { box-shadow: 0 4px 22px rgba(232,22,12,0.85); }
}

/* ===== POINT STRIP（sokujitsu.html） ===== */
.point-strip {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 14px 12px;
}
.point-strip-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-align: center;
}
.point-strip-title em { color: var(--red); font-style: normal; }
.point-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.point-item {
  background: var(--off-white);
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.point-item .p-num {
  font-size: 22px;
  font-weight: bold;
  color: var(--red);
  line-height: 1.1;
}
.point-item .p-num small { font-size: 12px; }
.point-item .p-label {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 3px;
  line-height: 1.4;
}

/* ===== FILTER FORM（search.html） ===== */
.filter-section {
  background: var(--white);
  padding: 14px 12px;
  border-bottom: 3px solid var(--red);
}
.filter-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-title svg { flex-shrink: 0; }
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.filter-item label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 3px;
  font-weight: bold;
}
.filter-item select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--mid-gray);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}
.filter-item.full { grid-column: 1 / -1; }

/* チェックボックス（その他の希望） */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 2px;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 12px;
  color: var(--text-dark);
  font-weight: normal;
  background: var(--off-white);
  border: 1px solid var(--mid-gray);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 0;
}
.checkbox-group input[type="checkbox"] { display: none; }
.checkbox-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--mid-gray);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  flex-shrink: 0;
  background: var(--white);
  transition: background 0.15s, border-color 0.15s;
}
.checkbox-group input[type="checkbox"]:checked ~ .checkbox-check {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.checkbox-group label:has(input:checked) {
  background: #fff0f0;
  border-color: #f5b8b8;
  color: var(--red);
  font-weight: bold;
}
.filter-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(232, 22, 12, 0.35);
  letter-spacing: 0.03em;
}

.filter-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(232, 22, 12, 0.25);
}
.filter-result-count {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 8px;
  display: none;
}
.filter-result-count.show { display: block; }
.filter-result-count strong { color: var(--red); }

/* ===== ANXIETY STRIP ===== */
.anxiety-strip { background: var(--text-dark); padding: 14px; }
.anxiety-strip .title { color: var(--yellow); font-size: 20px; font-weight: bold; text-align: center; margin-bottom: 10px; }
.anxiety-list { list-style: none; }
.anxiety-list li {
  color: var(--white);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
.anxiety-list li:last-child { border-bottom: none; }
.anxiety-list .q-icon {
  background: var(--red);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}
.anxiety-list .anxiety-q-text { flex: 1; line-height: 1.4; }
.anxiety-list .q-arrow { color: var(--yellow); font-size: 16px; flex-shrink: 0; transition: transform 0.2s; }
.anxiety-list li.open .q-arrow { transform: rotate(180deg); }
.anxiety-answer {
  display: none;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  padding: 10px;
  border-radius: 6px;
  margin-top: 6px;
  line-height: 1.6;
}
.anxiety-answer.open { display: block; }

/* ===== TAB（search.html） ===== */
.tab-wrap {
  background: var(--white);
  padding: 14px 12px 0;
  margin-top: 4px;
}
.tab-label {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.tabs { display: flex; border-bottom: 2px solid var(--red); }
.tab-btn {
  flex: 1;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: bold;
  background: var(--light-gray);
  border: none;
  color: var(--text-mid);
  cursor: pointer;
  margin-right: 2px;
  transition: background 0.2s;
  line-height: 1.3;
}
.tab-btn:last-child { margin-right: 0; }
.tab-btn.active { background: var(--red); color: var(--white); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== RANKING HEADER（sokujitsu.html） ===== */
/* sokujitsu.htmlでは .tab-wrap がタブなしのタイトル見出しとして使われる */
.tab-wrap.no-tabs {
  padding: 14px 12px 10px;
}
.tab-wrap.no-tabs .tab-label {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  margin-bottom: 0;
}

/* ===== RANKING ===== */
.ranking-wrap { padding: 8px 12px; background: var(--off-white); }

.rank-card.rank-1 { border-color: var(--rank1); }
.rank-card.rank-2 { border-color: var(--rank2); }
.rank-card.rank-3 { border-color: var(--rank3); }

/* 絞り込みで非表示になるカード（search.html） */
.rank-card.hidden { display: none; }

.rank-card-header {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-1 .rank-card-header { background: linear-gradient(90deg, #fff8e6, #fff3cc); }
.rank-2 .rank-card-header { background: linear-gradient(90deg, #f5f5f5, #eeeeee); }
.rank-3 .rank-card-header { background: linear-gradient(90deg, #fff0e8, #ffe8d6); }

.rank-badge { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.rank-badge .crown-icon { width: 20px; height: 20px; margin-bottom: 2px; }
.rank-badge .num { font-size: 22px; font-weight: bold; line-height: 1; }
.rank-badge .rank-text { font-size: 9px; font-weight: bold; }
.rank-1 .rank-badge .num,
.rank-1 .rank-badge .rank-text { color: var(--rank1); }
.rank-2 .rank-badge .num,
.rank-2 .rank-badge .rank-text { color: var(--rank2); }
.rank-3 .rank-badge .num,
.rank-3 .rank-badge .rank-text { color: var(--rank3); }

.rank-logo-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.rank-logo-img {
  height: 36px;
  max-width: 120px;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
}
.rank-logo-area .company-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.stars { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.star { color: #ccc; font-size: 14px; line-height: 1; }
.star.filled { color: var(--yellow); }
.stars .score { font-size: 13px; font-weight: bold; color: var(--text-dark); margin-left: 4px; }

.score-label {
  font-size: 9px;
  color: var(--text-light);
  margin-left: 2px;
  white-space: nowrap;
}
.score-link {
  background: none;
  border: none;
  font-size: 10px;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  white-space: nowrap;
  line-height: 1.6;
  display: block;
  margin-top: 1px;
  text-align: left;
}

/* ===== モーダル ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-sheet {
  background: var(--white);
  border-radius: 14px 14px 0 0;
  padding: 20px 16px 32px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal-title { font-size: 14px; font-weight: bold; }
.modal-close {
  background: var(--light-gray);
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-eval-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 10px;
}
.modal-eval-table th {
  background: var(--text-dark);
  color: var(--white);
  padding: 5px 8px;
  font-size: 10px;
  font-weight: bold;
  text-align: left;
}
.modal-eval-table th:last-child { text-align: center; width: 100px; }
.modal-eval-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: middle;
}
.modal-eval-table td:last-child { text-align: center; }
.modal-eval-table tr:last-child td { border-bottom: none; }
.modal-eval-table tr:nth-child(even) td { background: var(--off-white); }
.modal-eval-table .total-row td {
  background: #fff8e6;
  font-weight: bold;
  border-top: 2px solid var(--rank1);
}
.mini-stars { display: flex; gap: 1px; justify-content: center; align-items: center; }
.mini-star { color: #ddd; font-size: 11px; line-height: 1; }
.mini-star.filled { color: var(--yellow); }
.mini-star.half { position: relative; color: #ddd; font-size: 11px; }
.mini-star.half::before {
  content: '★'; position: absolute; left: 0; top: 0;
  width: 50%; overflow: hidden; color: var(--yellow);
}
.mini-score { font-size: 11px; font-weight: bold; color: var(--text-dark); margin-left: 3px; }
.modal-note { font-size: 10px; color: var(--text-light); line-height: 1.6; }

/* ===== RANK CARD BODY ===== */
.rank-card-body { padding: 12px; }

/* ===== special-badge ===== */
.special-badge {
  background: var(--red); color: var(--white); font-size: 11px; font-weight: bold;
  padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 6px;
}
.special-badge.green  { background: var(--green); }
.special-badge.orange { background: var(--orange); }
.special-badge.navy   { background: #1a3a6e; }
.special-badge.purple { background: #6b3fa0; }

/* ===== info-badge ===== */
/*
 * 使い方：<div class="info-badge TYPE">テキスト</div>
 * TYPE一覧：
 *   .orange … 無利息期間あり
 *   .green  … ATM手数料無料など利便性訴求
 *   .blue   … WEB完結・スマホ対応など利便性訴求
 *   .gold   … 低金利・特典など優位性訴求
 *   .gray   … 注意書き・補足情報（search.html）
 */
.info-badge {
  font-size: 11px; font-weight: bold; padding: 4px 10px;
  border-radius: 4px; display: inline-block; margin-bottom: 8px;
  margin-right: 4px;
}
.info-badge.orange {
  background: linear-gradient(135deg, var(--orange), #e65c00);
  color: var(--white);
}
.info-badge.green {
  background: linear-gradient(135deg, #1a9e4a, #0e7a38);
  color: var(--white);
}
.info-badge.blue {
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  color: var(--white);
}
.info-badge.gold {
  background: linear-gradient(135deg, #d4a017, #b8860b);
  color: var(--white);
}
.info-badge.gray {
  background: var(--light-gray);
  color: var(--text-mid);
  border: 1px solid var(--mid-gray);
}

/* no-interest は info-badge.orange の別名として残す */
.no-interest {
  background: linear-gradient(135deg, var(--orange), #e65c00);
  color: var(--white); font-size: 11px; font-weight: bold;
  padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 8px;
}

/* ===== バナーエリア ===== */
/*
 * .banner-header : ヘッダー内バナー
 *   スマホ → 表示（120×100px）
 *   PC    → 非表示
 *
 * .banner-body   : ボディ内バナー
 *   スマホ → 非表示
 *   PC    → 表示（300×250px）
 */
.banner-header { flex-shrink: 0; }
.banner-header .banner-inner {
  width: 120px;
  height: 100px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.banner-header .banner-inner > :not(.banner-placeholder) {
  width: 120px !important;
  height: 100px !important;
  display: block;
}
.banner-body {
  text-align: center;
  margin-bottom: 12px;
}
.banner-body .banner-inner {
  display: inline-block;
  width: 300px;
  height: 250px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--light-gray);
  position: relative;
}
.banner-body .banner-inner > :not(.banner-placeholder) {
  width: 300px !important;
  height: 250px !important;
  display: block;
}
.banner-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 10px;
  gap: 4px;
  position: absolute;
  top: 0; left: 0;
}
.banner-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-header .banner-placeholder {
  position: static;
  font-size: 9px;
  width: 120px;
  height: 100px;
}
.banner-header .banner-placeholder img {
  width: 120px;
  height: 100px;
  display: block;
  object-fit: cover;
}
@media (max-width: 480px) {
  .banner-header { display: block; }
  .banner-body   { display: none; }
}
@media (min-width: 481px) {
  .banner-header { display: none; }
  .banner-body   { display: block; }
}

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--mid-gray);
  border: 1px solid var(--mid-gray);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 11px;
}
.info-cell { background: var(--white); padding: 8px 6px; text-align: center; }
.info-cell .cell-label { font-size: 10px; color: var(--text-light); margin-bottom: 3px; }
.info-cell .cell-value { font-size: 12px; font-weight: bold; color: var(--text-dark); line-height: 1.2; }
.info-cell .cell-value .big { color: var(--red); }

/* ===== POINTS LIST ===== */
.points-list { list-style: none; margin-bottom: 12px; }
.points-list li {
  font-size: 14px;
  color: var(--text-mid);
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  border-bottom: 1px solid var(--light-gray);
  line-height: 1.5;
  word-spacing: 0;
}
.points-list li:last-child { border-bottom: none; }
.points-list li .check { color: var(--green); font-weight: bold; flex-shrink: 0; margin-top: 1px; }
.points-list li span.pt {
  font-style: normal;
  color: var(--red);
  font-weight: bold;
  display: inline;
  margin: 0;
  padding: 0;
  letter-spacing: inherit;
  word-spacing: 0;
}

/* ===== COUNTDOWN BAR ===== */
.countdown-bar {
  background: #fff3cd;
  border: 1px solid #ffe082;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-dark);
}
.countdown-bar .timer { font-size: 18px; font-weight: bold; color: var(--red); }
.countdown-bar.off-hours {
  background: var(--off-white);
  border-color: var(--mid-gray);
  color: var(--text-mid);
}

/* ===== RANK CTA ===== */
.rank-cta {
  display: block;
  background: linear-gradient(135deg, var(--red) 0%, #cc0000 100%);
  color: var(--white);
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(232,22,12,0.4);
  position: relative;
}
.rank-cta .arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; opacity: 0.8; }
.rank-cta .sub { font-size: 13px; opacity: 0.90; font-weight: normal; margin-top: 2px; }
.rank-cta:active { opacity: 0.90; }
.rank-1 .rank-cta { box-shadow: 0 4px 14px rgba(232,22,12,0.5); }

.cta-note {
  margin-top: 6px;
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== COMPARE TABLE（sokujitsu.html） ===== */
.compare-section { padding: 16px 12px; background: var(--white); margin-top: 4px; }
.compare-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th {
  background: var(--text-dark);
  color: var(--white);
  padding: 8px 6px;
  text-align: center;
  font-size: 11px;
}
.compare-table th:first-child { width: 25%; }
.compare-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--light-gray); }
.compare-table tr:nth-child(even) td { background: var(--off-white); }
.compare-table td:first-child { font-size: 13px; color: var(--text-light); text-align: left; font-weight: bold; }
.compare-table .highlight { color: var(--red); font-weight: bold; }
.compare-table .badge-yes {
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}
.compare-cta {
  display: block;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  padding: 6px 4px;
  border-radius: 4px;
  text-decoration: none;
}
.compare-cta-arrow { margin-left: 2px; font-size: 10px; }

/* ===== STEP FLOW（sokujitsu.html） ===== */
/* .step-section { background: var(--text-dark); padding: 16px 12px; margin-top: 4px; } テキスト版*/
.step-section { padding: 16px 12px; margin-top: 4px; }
/* .step-title { color: var(--white); text-align: center; font-size: 20px; font-weight: bold; margin-bottom: 14px; } テキスト版*/
.step-title { color: var(--text-dark); text-align: center; font-size: 20px; font-weight: bold; margin-bottom: 14px; }
.step-title .accent { color: var(--yellow); }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  background: var(--red);
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}
.step-body .step-head { color: var(--white); font-size: 16px; font-weight: bold; margin-bottom: 3px; }
.step-body .step-desc { color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.5; }
.step-arrow { text-align: center; color: var(--yellow); font-size: 20px; padding: 4px 0; }

.step-section img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ===== DEADLINE INFO（sokujitsu.html） ===== */
.deadline-section {
  background: var(--white);
  padding: 14px 12px;
  margin-top: 4px;
}
.deadline-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.deadline-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.deadline-table th {
  background: var(--text-dark);
  color: var(--white);
  padding: 7px 8px;
  text-align: center;
  font-size: 11px;
}
.deadline-table td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid var(--light-gray);
  font-size: 13px;
}
.deadline-table tr:nth-child(even) td { background: var(--off-white); }
.deadline-table .highlight { color: var(--red); font-weight: bold; }
.deadline-note {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 8px;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-section { background: var(--off-white); padding: 16px 12px; margin-top: 4px; }
.faq-title {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-dark);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
.faq-item { background: var(--white); border-radius: 8px; margin-bottom: 8px; overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.4;
}
.faq-q .q-mark {
  background: var(--red);
  color: var(--white);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}
.faq-q .faq-arrow { margin-left: auto; color: var(--red); font-size: 18px; flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 10px 12px 12px 42px; font-size: 14px; color: var(--text-mid); line-height: 1.7; border-top: 1px solid var(--light-gray); }
.faq-a.open { display: block; }
.faq-a .a-mark { color: var(--green); font-weight: bold; margin-right: 4px; }

/* ===== FINAL CTA ===== */
.final-cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  padding: 20px 14px;
  margin-top: 4px;
  text-align: center;
}
.final-cta-section .title { color: var(--white); font-size: 16px; font-weight: bold; margin-bottom: 6px; }
.final-cta-section .sub { color: rgba(255,255,255,0.7); font-size: 12px; margin-bottom: 16px; }
.final-cta-section .cta-btn {
  display: block;
  background-image: linear-gradient(
    90deg,
    #cc0000 0%, #e8160c 30%, #ff5533 50%, #e8160c 70%, #cc0000 100%
  );
  background-size: 300% auto;
  animation: shimmer 3s linear infinite;
  color: var(--white);
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(232,22,12,0.5);
  margin-bottom: 10px;
}
.final-cta-section .cta-btn .sub-text { font-size: 12px; font-weight: normal; opacity: 0.85; margin-top: 2px; }
.final-cta-section .note { color: rgba(255,255,255,0.5); font-size: 10px; line-height: 1.6; }

/* ===== FOOTER ===== */
footer { background: var(--text-dark); padding: 16px 14px; color: rgba(255,255,255,0.5); font-size: 10px; line-height: 1.8; }
footer a { color: rgba(255,255,255,0.5); }
.footer-title {
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 6px;
}
.copyright {
  background: #111;
  color: rgba(255,255,255,1);
  font-size: 10px;
  text-align: center;
  padding: 10px 14px;
}
.copyright a {
  color: #fff;
  text-decoration: none;
}

/* ===== STICKY CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: bold;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
/* =.sticky-spacer { height: 52px; } */

/* ===== MISC ===== */
.divider { height: 6px; background: var(--light-gray); }
.intro-text {
  background: var(--white);
  padding: 14px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
  border-left: 3px solid var(--red);
  margin: 10px 12px;
  border-radius: 0 6px 6px 0;
}
.no-result-msg {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-light);
  font-size: 13px;
  display: none;
  background: var(--white);
  border-radius: 8px;
  margin: 0 0 14px;
}
.no-result-msg.show { display: block; }

/* ===== SITELINK BAND ===== */
.sitelink-band {
  background: var(--white);
  padding: 14px 12px;
  margin-top: 4px;
}
.sitelink-band-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sitelink-band-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 28px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.sitelink-band-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sitelink-band-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--off-white);
  border: 1px solid var(--mid-gray);
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-dark);
  transition: border-color 0.15s;
}
.sitelink-band-item:hover { border-color: var(--red); }
.sitelink-band-item .sbi-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.sitelink-band-item .sbi-body { flex: 1; min-width: 0; }
.sitelink-band-item .sbi-title {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 2px;
  line-height: 1.3;
}
.sitelink-band-item .sbi-desc {
  font-size: 10px;
  color: var(--text-light);
  line-height: 1.5;
}
.sitelink-band-item .sbi-arrow {
  color: var(--red);
  font-size: 14px;
  flex-shrink: 0;
}

/* =====================================================
   result.html 固有スタイル
   ===================================================== */

/* ===== RESULT HEADER ===== */
.result-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 14px 12px 12px;
  position: relative;
}

.result-header .pr-badge {
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 10px;
  font-weight: bold;
  color: var(--text-light);
  border: 1px solid var(--text-light);
  border-radius: 2px;
  padding: 2px 4px 1px 4px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.result-header-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.result-header-title svg { flex-shrink: 0; }

/* 選択条件タグ */
.condition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.condition-tag {
  background: #fff0f0;
  border: 1px solid #f5b8b8;
  color: var(--red);
  font-size: 11px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
}
.condition-tag.all {
  background: var(--light-gray);
  border-color: var(--mid-gray);
  color: var(--text-mid);
}

/* 件数バー */
.result-count-bar {
  background: var(--off-white);
  border: 1px solid var(--mid-gray);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-count-bar .count-num { font-size: 18px; font-weight: bold; color: var(--red); margin-right: 2px; }

/* 条件変更リンク */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid var(--mid-gray);
  border-radius: 4px;
  padding: 4px 10px;
  background: var(--white);
}

/* ===== ソートバー ===== */
.sort-bar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.sort-label {
  font-size: 10px;
  color: var(--text-light);
  margin-right: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sort-btn {
  font-size: 11px;
  color: var(--text-light);
  background: none;
  border: 1px solid var(--mid-gray);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sort-btn.active {
  color: var(--red);
  border-color: #f5b8b8;
  background: #fff0f0;
  font-weight: bold;
}

/* ===== ランクカード（result.html版上書き） ===== */
/*
 * result.htmlでは順位バッジを非表示にし、
 * カードのborderをデフォルトでmid-grayにする。
 * 共通CSSの .rank-card / .rank-badge をページ固有クラスで上書き。
 */
.result-page .rank-card {
  border-color: var(--mid-gray);
}
.result-page .rank-badge {
  display: none;
}
.result-page .rank-card-header {
  background: var(--off-white);
}

/* ===== NO RESULT（result.html版） ===== */
/*
 * 共通CSSの .no-result-msg を拡張。
 * result.htmlでは「戻るボタン」付きのより詳細なデザイン。
 */
.result-page .no-result-msg {
  padding: 32px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  line-height: 2;
}
.no-result-msg .back-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  background: var(--text-dark);
  color: var(--white);
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

/* ===== FOOTER（result.html版追加要素） ===== */
footer .note { margin-top: 10px; font-size: 10px; }
/* =====================================================
   FV 画像重ねるパターン
   対象ページ：画像の上にテキストを重ねるFVを使うページ全般
   ===================================================== */

/* ===== FV 画像ラップ（テキスト重ねる用） ===== */
/*
 * .fv-image-wrap：画像とテキストを重ねるコンテナ。
 * position:relative で内部要素を絶対配置の基準にする。
 * min-height で画像の高さを確保（テキスト量に応じて調整）。
 *
 * 【変更箇所】なし（新規追加）
 */
.fv {
  background: #f0ede8;
  padding: 0;
}
.fv-image-wrap {
  position: relative;   /* PRバッジの基点としてだけ使用 */
  width: 100%;
  line-height: 0;       /* img下の謎の隙間を消す */
}
.fv-image-wrap img {
  width: 100%;
  height: auto;         /* 画像比率をそのまま維持 */
  display: block;
  object-fit: unset;    /* 比率維持なのでcoverは不要 */
}

/* PRバッジは引き続き右上に */
.fv-pr-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 3;
}
/* .fv-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(240,237,232,0.08);
  background-image: linear-gradient(
    to right,
    rgba(240,237,232,0.72) 0%,
    rgba(240,237,232,0.50) 40%,
    rgba(240,237,232,0.10) 65%,
    rgba(240,237,232,0.00) 100%
  );
  z-index: 1;
} */
.fv-main {
  position: static;
  padding: 16px 14px 20px;
  background: #f0ede8;
}

/* ===== テキスト可読性（重ねる用） ===== */
/*
 * キャッチコピー・ヘッドラインに影を追加して
 * 背景画像に関わらず読みやすくする。
 *
 * 【変更箇所】なし（新規追加）
 * 既存の .fv-catch / .fv-headline はそのまま維持し、
 * .fv-image-wrap 内に入った場合のみ影を追加する。
 */
.fv-image-wrap .fv-catch    { text-shadow: none; }
.fv-image-wrap .fv-headline { text-shadow: none; }
.fv-image-wrap .fv-tag      { text-shadow: none; }
.fv-image-wrap .fv-quick-info {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.fv-image-wrap .fv-quick-item .value {
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.fv-image-wrap .fv-cta {
  box-shadow: 0 4px 14px rgba(232,22,12,0.6);
}

/* ===== CVR向上施策：申込ボタン直上マイクロコピー ===== */
.cta-microcopy {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.cta-microcopy strong { color: var(--red); font-weight: bold; }

/* ===== CVR向上施策：1位人気バッジ ===== */
.popular-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff3cd;
  border: 1px solid #f5c518;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: bold;
  color: #7a5800;
  margin-bottom: 10px;
}
.popular-badge::before { content: '??'; font-size: 13px; }

/* ===== パターンB：切り替えテキスト ===== */
.fv-typeswitch {
  height: 28px;
  overflow: hidden;
  margin-bottom: 10px;
}
.fv-typeswitch-inner {
  display: flex;
  flex-direction: column;
  animation: switchText 9s infinite;
}
.fv-typeswitch-item {
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fv-typeswitch-icon {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: bold;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
}
.fv-typeswitch-text {
  font-size: 13px;
  color: #333;
  font-weight: bold;
  white-space: nowrap;
}
@keyframes switchText {
  0%   { transform: translateY(0); }
  28%  { transform: translateY(0); }
  33%  { transform: translateY(-28px); }
  61%  { transform: translateY(-28px); }
  66%  { transform: translateY(-56px); }
  94%  { transform: translateY(-56px); }
  99%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}

/* ===== パターンC：タグのフェードイン ===== */
@keyframes fadeBadgeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fv-tag.active {
  background: var(--red);
  border-color: var(--red);
  opacity: 0;
  animation: fadeBadgeIn 0.5s ease forwards;
}
.fv-tags .fv-tag:nth-child(1) { animation-delay: 0.2s; }
.fv-tags .fv-tag:nth-child(2) { animation-delay: 0.5s; }
.fv-tags .fv-tag:nth-child(3) { animation-delay: 0.8s; }

/* ===== ゴールドバッジ（「3選」「4選」用） ===== */
/*
 * .fv-headline 内の「3選」「4選」に使用するバッジクラス。
 * ゴールド背景で赤の連続を避けつつ視認性を確保。
 *
 * 【調整内容】
 *   - padding を 4px 10px 2px に変更（旧: 1px 10px 4px）
 *     上を厚く・下を薄くして文字を下方向に寄せる
 *   - vertical-align を bottom に変更（旧: middle）
 *     隣接テキストの下端に高さを合わせる
 *   - line-height:1 で余分な行間を詰める
 *
 * 【変更箇所】padding・vertical-align を変更
 */
.badge-count {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 4px 10px 2px;   /* 変更：1px 10px 4px → 4px 10px 2px（文字を下寄せ） */
  border-radius: 5px;
  font-size: 24px;
  line-height: 1;
  vertical-align: bottom;  /* 変更：middle → bottom（隣接テキストの下端に揃える） */
  margin-left: 2px;
  box-shadow: 0 2px 8px rgba(212,160,23,0.7), 0 1px 3px rgba(0,0,0,0.5);
  text-shadow: none;
}

#page-top-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

#page-top-btn.visible {
  display: flex;
}

#page-top-btn.pos-high {
  bottom: 60px;
}

/* ===== 診断エントリー（FV内） ===== */
.fv-shindan-entry {
  background: rgba(255,248,225,0.85);
  border: 1px solid rgba(232,196,0,0.6);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.entry-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7a5800;
  font-size: 14px;
  font-weight: bold;
  padding: 3px 4px;
  margin-bottom: 2px;
  letter-spacing: 0.04em;
}
.entry-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 4px;
}
.entry-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 12px;
}

/* ===== 診断オーバーレイ ===== */
.overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.72);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}
.sheet {
  background: var(--white);
  border-radius: 22px 22px 0 0;
  width: 100%;
  max-width: 480px;
  padding: 0 0 40px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.overlay.open .sheet { transform: translateY(0); }
.sheet-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 5;
  border-bottom: 1px solid var(--light-gray);
}
.sheet-hd-title { font-size: 15px; font-weight: bold; color: var(--text-mid); display: flex; align-items: center; gap: 6px; }
.close-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--light-gray); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.close-btn:active { background: var(--mid-gray); }

.prog-wrap { padding: 14px 16px 12px; }
.prog-meta  { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-light); margin-bottom: 7px; }
.prog-track { height: 5px; background: var(--light-gray); border-radius: 99px; overflow: hidden; }
.prog-fill  { height: 100%; background: linear-gradient(90deg, var(--red), #ff4422); border-radius: 99px; transition: width 0.4s cubic-bezier(0.22,1,0.36,1); }

.q-wrap { padding: 0 16px; animation: qIn 0.26s ease; }
@keyframes qIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
.q-label { font-size: 11px; font-weight: bold; color: var(--red); letter-spacing: 0.06em; margin-bottom: 8px; }
.q-text  { font-size: 19px; font-weight: bold; color: var(--text-dark); line-height: 1.4; margin-bottom: 6px; }
.q-hint  { font-size: 12px; color: var(--text-light); line-height: 1.6; margin-bottom: 22px; padding: 8px 11px; background: var(--off-white); border-radius: 6px; border-left: 3px solid var(--mid-gray); }

.age-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.age-btn  { padding: 16px 10px; border: 2px solid var(--mid-gray); border-radius: 12px; background: var(--white); font-size: 16px; font-weight: bold; color: var(--text-dark); cursor: pointer; text-align: center; transition: all 0.15s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.age-btn .aicon { font-size: 0; line-height: 0; }
.age-btn:active { background: #fff0f0; border-color: var(--red); transform: scale(0.97); }

.yn-list { display: flex; flex-direction: column; gap: 10px; }
.yn-btn  { width: 100%; padding: 16px; border: 2px solid var(--mid-gray); border-radius: 12px; background: var(--white); font-size: 15px; font-weight: bold; color: var(--text-dark); cursor: pointer; text-align: left; display: flex; align-items: center; gap: 12px; transition: all 0.15s; line-height: 1.4; }
.yn-btn:active { transform: scale(0.98); }
.yn-btn.yn-yes:active { background: #f0fff4; border-color: var(--green); }
.yn-btn.yn-no:active  { background: #fff5f5; border-color: #cc4444; }
.yn-ico { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.yn-ico.ico-yes { background: #e8f5ee; }
.yn-ico.ico-no  { background: #fdf0f0; }

.wish-list { display: flex; flex-direction: column; gap: 10px; }
.wish-btn  { width: 100%; padding: 14px; border: 2px solid var(--mid-gray); border-radius: 12px; background: var(--white); font-size: 14px; font-weight: bold; color: var(--text-dark); cursor: pointer; text-align: left; display: flex; align-items: center; gap: 12px; transition: all 0.15s; line-height: 1.4; }
.wish-btn:active { background: #fff8f0; border-color: var(--yellow); transform: scale(0.98); }
.wish-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--light-gray); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.back-btn { display: flex; align-items: center; gap: 4px; background: none; border: none; color: var(--text-light); font-size: 12px; cursor: pointer; padding: 14px 16px 0; }

/* 診断結果：クリア */
.result-ok { display: none; padding: 0 16px; animation: qIn 0.3s ease; }
.res-top   { text-align: center; padding: 8px 0 18px; }
.res-badge { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, var(--green), var(--green-dark)); color: var(--white); font-size: 12px; font-weight: bold; padding: 5px 14px; border-radius: 20px; margin-bottom: 14px; letter-spacing: 0.04em; }
.res-title { font-size: 21px; font-weight: bold; color: var(--text-dark); line-height: 1.4; margin-bottom: 10px; }
.res-title .green { color: var(--green); }
.res-agemsg { font-size: 13px; color: var(--text-mid); line-height: 1.7; background: #f0faf4; border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; border-left: 3px solid var(--green); text-align: left; }
.res-cta { display: block; width: 100%; background: linear-gradient(135deg, var(--red) 0%, #cc0000 100%); color: var(--white); text-align: center; padding: 17px 16px 15px; border-radius: 10px; font-size: 17px; font-weight: bold; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(232,22,12,0.42); margin-bottom: 10px; }
.res-cta .csub { font-size: 11px; font-weight: normal; opacity: 0.82; margin-top: 3px; display: block; }
.res-note { font-size: 11px; color: var(--text-light); text-align: center; line-height: 1.6; }

/* 診断結果：NG */
.result-ng { display: none; padding: 0 16px; animation: qIn 0.3s ease; }
.ng-top    { text-align: center; padding: 8px 0 14px; }
.ng-ico-w  { width: 60px; height: 60px; background: var(--light-gray); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ng-title  { font-size: 17px; font-weight: bold; color: var(--text-dark); line-height: 1.45; margin-bottom: 14px; }
.ng-desc   { font-size: 13px; color: var(--text-mid); line-height: 1.75; background: var(--off-white); border-radius: 10px; padding: 14px; margin-bottom: 18px; text-align: left; }
.ng-retry  { display: block; width: 100%; padding: 13px; background: var(--light-gray); border: none; border-radius: 10px; font-size: 14px; font-weight: bold; color: var(--text-mid); cursor: pointer; text-align: center; }

/* ===== 診断結果ランキング（FV直下） ===== */
.ranking-sec {
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
  background: var(--off-white);
}
.ranking-sec.show {
  opacity: 1;
  transform: translateY(0);
  max-height: none;
  padding: 16px 12px 28px;
  pointer-events: auto;
}
.ranking-sec .rank-hd { text-align: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.ranking-sec .rank-hd .rh-badge { display: inline-block; background: var(--text-dark); color: var(--white); font-size: 13px; font-weight: bold; padding: 4px 14px; border-radius: 20px; margin-bottom: 8px; letter-spacing: 0.04em; }
.ranking-sec .rank-hd .rh-title { font-size: 19px; font-weight: bold; color: var(--text-dark); line-height: 1.4; }
.ranking-sec .rank-hd .rh-title .red { color: var(--red); }
.rank-card { background: var(--white); border-radius: 12px; margin-bottom: 14px; box-shadow: 0 3px 14px rgba(0,0,0,0.10); overflow: hidden; border: 2px solid var(--mid-gray); }
.rank-card.r1 { border-color: #d4a017; }
.rank-card.r2 { border-color: #9e9e9e; }
.rank-card.r3 { border-color: #b87333; }
.rank-card-hd { padding: 11px 13px; display: flex; align-items: center; gap: 10px; }
.r1 .rank-card-hd { background: linear-gradient(90deg, #fff8e6, #fff3cc); }
.r2 .rank-card-hd { background: linear-gradient(90deg, #f5f5f5, #eeeeee); }
.r3 .rank-card-hd { background: linear-gradient(90deg, #fff0e8, #ffe8d6); }
.rbadge { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.rbadge .rnum { font-size: 18px; line-height: 1; }
.rbadge .rtxt { display: none; }
.r1 .rnum { color: #d4a017; }
.r2 .rnum { color: #9e9e9e; }
.r3 .rnum { color: #b87333; }
.cname { font-size: 18px; font-weight: bold; color: var(--text-dark); }
.rank-card-bd { padding: 12px 13px; }
.ic { background: var(--white); padding: 8px 5px; text-align: center; }
.ic .cl { font-size: 10px; color: var(--text-light); margin-bottom: 2px; }
.ic .cv { font-size: 12px; font-weight: bold; color: var(--text-dark); line-height: 1.25; }
.ic .cv .big { color: var(--red); font-size: 12px; }
.pts { list-style: none; margin-bottom: 12px; }
.pts li { font-size: 13px; color: var(--text-mid); padding: 5px 0; display: flex; align-items: flex-start; gap: 7px; border-bottom: 1px solid var(--light-gray); line-height: 1.5; }
.pts li:last-child { border-bottom: none; }
.pts .ck { flex-shrink: 0; margin-top: 1px; }
.pts .pt { color: var(--red); font-weight: bold; }