/* =========================================
   都道府県ランキングページ用スタイル
   （SWELL標準レイアウト内で使用）
   ========================================= */

/* PR表記 */
.evcn-pr-note {
  font-size: .72rem; color: #9ca3af; text-align: right; margin-bottom: 8px;
}

/* ランキングリスト */
.evcn-rank-list { display: flex; flex-direction: column; gap: 28px; margin: 24px 0; }

.evcn-rank-card {
  position: relative; border: 2px solid #e5e7eb; border-radius: 16px;
  padding: 28px 24px 24px; background: #fff;
  margin: 22px 0 30px; /* 単体ブロックとして挿入したとき用（バッジ分の上余白を確保） */
}
.evcn-rank-list .evcn-rank-card { margin: 0; } /* リスト内ではgapに任せる */
.evcn-rank-card:first-child,
.evcn-rank-card.rank-1 { border-color: #f59e0b; box-shadow: 0 4px 24px rgba(245,158,11,.12); }

.evcn-rank-badge {
  position: absolute; top: -14px; left: 20px;
  background: #374151; color: #fff; font-size: .8rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.evcn-rank-badge b { font-size: .95rem; margin-left: 4px; }
.evcn-rank-card:first-child .evcn-rank-badge,
.evcn-rank-card.rank-1 .evcn-rank-badge { background: linear-gradient(135deg, #f59e0b, #d97706); }
.evcn-rank-card:nth-child(2) .evcn-rank-badge,
.evcn-rank-card.rank-2 .evcn-rank-badge { background: linear-gradient(135deg, #94a3b8, #64748b); }
.evcn-rank-card:nth-child(3) .evcn-rank-badge,
.evcn-rank-card.rank-3 .evcn-rank-badge { background: linear-gradient(135deg, #b45309, #92400e); }

.evcn-rank-name { font-size: 1.3rem; font-weight: 800; margin: 8px 0 4px; }
.evcn-rank-copy { color: #2563eb; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }

.evcn-rank-img {
  background: #f3f4f6; border-radius: 10px; min-height: 160px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  overflow: hidden;
}
.evcn-rank-img img { width: 100%; height: auto; display: block; }
.evcn-rank-img .ph-lbl { color: #9ca3af; font-size: .85rem; }

.evcn-rank-stars { color: #f59e0b; font-weight: 700; margin-bottom: 14px; }
.evcn-rank-stars span { color: #111827; }

.evcn-rank-info { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.evcn-rank-info li { display: flex; gap: 12px; font-size: .9rem; padding: 0; }
.evcn-rank-info li::before { content: none; }
.evcn-rank-info b {
  flex-shrink: 0; width: 64px; background: #eef2ff; color: #4338ca;
  border-radius: 6px; text-align: center; font-size: .78rem; padding: 2px 0; height: fit-content;
}

.evcn-rank-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.evcn-rank-tags span {
  background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0;
  font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}

.evcn-rank-desc { font-size: .92rem; color: #4b5563; line-height: 1.8; margin-bottom: 18px; }

.evcn-rank-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.evcn-rank-btn {
  flex: 1; min-width: 180px; text-align: center; padding: 14px 20px;
  border-radius: 999px; font-weight: 800; text-decoration: none; font-size: .95rem;
  transition: opacity .2s;
}
.evcn-rank-btn:hover { opacity: .85; }
.evcn-rank-btn.primary { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,.3); }
.evcn-rank-btn.outline { border: 2px solid #d1d5db; color: #374151; background: #fff; }

/* 市区町村リンク */
.evcn-city-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.evcn-city-links a {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 8px 14px; font-size: .85rem; color: #374151; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.evcn-city-links a:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }

/* ページ内CTA（白背景ページ用に角丸ボックス化） */
.evcn-cta-inpage {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  border-radius: 20px; padding: 40px 24px; margin: 40px 0;
}

/* FAQ（ランキングページでも使えるよう front.css と同じ定義を含む） */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.faq-item { border: 1.5px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-size: .95rem; font-weight: 700; color: #1a1a2e;
}
.faq-q:hover { background: #f8f9ff; }
.faq-icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #2563eb; color: #fff; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.faq-a .faq-icon { background: #e8f0fe; color: #2563eb; }
.faq-arr { margin-left: auto; font-size: .7rem; color: #9ca3af; transition: transform .25s; }
.faq-item.open .faq-arr { transform: rotate(180deg); }
.faq-item:not(.open) .faq-a { display: none; }
.faq-item.open .faq-a { display: flex; gap: 14px; align-items: flex-start; padding: 0 20px 18px; }
.faq-a p { margin: 0; line-height: 1.7; color: #4b5563; padding-top: 4px; }

/* CTA共通（ランキングページ単体で読み込まれた場合用） */
.evcn-cta-box { text-align: center; }
.evcn-cta-title { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 900; color: #fff; margin-bottom: 12px; }
.evcn-cta-lead { color: rgba(255,255,255,.9); line-height: 1.8; margin-bottom: 20px; }
.evcn-cta-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.evcn-cta-badges span { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 14px; font-size: .82rem; font-weight: 600; }
.evcn-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #2563eb;
  font-weight: 800; font-size: 1.05rem; padding: 16px 36px; border-radius: 999px;
  text-decoration: none; box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
