/* ============================================
   タイプ別比較ページ専用スタイル
============================================ */

/* ★タイプバナー */
.type-banner {
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  color: #fff;
  background: var(--grad-primary);
}
.type-banner__code {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 3px 10px;
  display: inline-block;
  letter-spacing: .1em;
  margin-bottom: 8px;
}
.type-banner__label {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.type-banner__title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 6px;
}
.type-banner__desc {
  font-size: 12px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 14px;
}
.type-banner__redo {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
}

/* ★ランキングカード */
.rank-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 18px 16px;
  margin-bottom: 14px;
  border: 1.5px solid var(--color-border);
  position: relative;
  overflow: visible;
  transition: transform 0.2s;
}
.rank-card:active { transform: scale(0.99); }
.rank-card--first {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(232,69,106,0.15);
}

/* ★編集部イチオシリボン：上部帯に変更 */
.rank-card__ribbon {
  background: var(--grad-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 5px 12px;
  border-radius: 12px 12px 0 0;
  display: block;
  width: calc(100% + 34px);
  margin: -18px -16px 12px -16px;
  position: static;
}
.rank-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 0;
}
.rank-card__left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rank-card__medal { font-size: 22px; }
.rank-card__pos {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
}
.rank-card__match-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.rank-card__match-label {
  font-size: 10px;
  color: var(--color-text-mute);
}
.rank-card__match-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
}

.rank-card__name {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  padding-right: 0;
}
.rank-card__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  background: #fff0f3;
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: 10px;
}
.rank-card__reason {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.5;
}
.rank-card__point {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 12px;
}
.rank-card__bar {
  margin-bottom: 12px;
}

/* ★口コミ */
.rank-card__reviews {
  background: #fafafa;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.rank-card__reviews-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-mute);
  margin-bottom: 10px;
  letter-spacing: .06em;
}
.review-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.review-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.review-item__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.review-item__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-item__name {
  font-size: 11px;
  color: var(--color-text-sub);
}
.review-item__stars {
  font-size: 11px;
  color: #ffb400;
  margin-left: auto;
}
.review-item__text {
  font-size: 12px;
  color: #444;
  line-height: 1.7;
}
.review-item__source {
  font-size: 10px;
  color: var(--color-text-mute);
  margin-top: 8px;
}

/* ★CTAボタン（ランキングカード内） */
.rank-card__btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  border: none;
  transition: opacity 0.2s;
}
.rank-card__btn:hover { opacity: 0.9; }
.rank-card__btn--first {
  background: var(--grad-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 16px 14px;
  border-radius: var(--radius-btn);
  animation: pulse 2s infinite;
  box-shadow: 0 4px 20px rgba(232,69,106,0.35);
  letter-spacing: .02em;
  line-height: 1.4;
  text-align: center;
}
.rank-card__btn--other {
  background: #f9f9f9;
  color: #555;
  border: 1.5px solid #e0e0e0;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 14px;
  border-radius: var(--radius-btn);
  transition: all 0.2s ease;
}
.rank-card__btn--other:hover {
  background: #fff0f3;
  color: #e8456a;
  border-color: #e8456a;
}

/* ★比較表 */
.compare-section { margin: 32px 0; }
.compare-section__title {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}
.compare-table th {
  background: var(--grad-primary);
  color: #fff;
  padding: 10px 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}
.compare-table th:first-child {
  background: #f5f5f5;
  color: #888;
  font-size: 11px;
  text-align: left;
  font-weight: 500;
}
.compare-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
}
.compare-table td:first-child {
  text-align: left;
  font-size: 11px;
  color: #888;
}
.compare-table tr:nth-child(even) td {
  background: #fafafa;
}
.compare-best {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}
.compare-note {
  font-size: 11px;
  color: var(--color-text-mute);
  text-align: center;
  margin-top: 8px;
}

/* ★アコーディオンFAQ */
.faq-section { margin: 32px 0; }
.faq-section__title {
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.faq-item {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid #f0f0f0;
  background: #fff;
}
.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  border-left: 3px solid var(--color-primary);
  background: #fff8f9;
  user-select: none;
  -webkit-user-select: none;
  gap: 10px;
  transition: background 0.2s;
}
.faq-item__q:hover {
  background: #fff0f3;
}
.faq-item__q-text {
  flex: 1;
  line-height: 1.5;
}
.faq-item__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8456a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__a {
  background: #fff;
  padding: 0 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease,
              padding 0.35s ease;
}
.faq-item.open .faq-item__a {
  padding: 14px 16px;
  max-height: 300px;
}

/* ★LINE誘導CTA */
.line-cta {
  background: #f0fff4;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  text-align: center;
  margin: 32px 0;
}
.line-cta__title {
  font-size: 1rem;
  font-weight: 800;
  color: #085041;
  margin-bottom: 8px;
  line-height: 1.5;
}
.line-cta__desc {
  font-size: 12px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.7;
}
.line-cta__note {
  font-size: 11px;
  color: #888;
  margin-top: 8px;
}

/* ★セクション共通 */
.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-text);
}
.section-title span {
  color: var(--color-primary);
}

/* ★SEO記事への導線 */
.seo-article-link {
  margin: 16px 0;
  text-align: center;
}
.seo-article-link__btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #e8456a;
  background: #fff8f9;
  border: 1.5px solid #f4c0d1;
  padding: 10px 18px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}
.seo-article-link__btn:hover {
  background: #e8456a;
  color: #fff;
  border-color: #e8456a;
}
