/* ── TOPページ共通 ── */
.cdj-top { margin: 0; padding: 0; }
.cdj-top-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── ① ヒーロー ── */
.cdj-top-hero {
    background: linear-gradient(135deg, #1a3a5c 0%, #2563eb 100%);
    color: #fff;
    padding: 72px 24px;
    text-align: center;
}
.cdj-top-hero-inner { max-width: 600px; margin: 0 auto; }
.cdj-top-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}
.cdj-top-hero p {
    font-size: 1rem;
    opacity: 0.85;
    margin: 0 0 28px;
}
.cdj-top-hero-search select {
    padding: 14px 24px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    min-width: 240px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.cdj-top-hero-search select option { color: #1e293b; background: #fff; }
.cdj-top-hero-search select:focus { outline: none; border-color: #f0a500; }

/* ── ② クイックアクセス ── */
.cdj-top-quick {
    background: #f8fafc;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
}
.cdj-top-quick .cdj-top-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cdj-top-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: box-shadow 0.15s, color 0.15s;
}
.cdj-top-quick-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); color: #2563eb; }
.cdj-top-quick-icon { font-size: 2rem; line-height: 1; }

/* ── ③ ランキング ── */
.cdj-top-ranking { padding: 40px 0; background: #fff; }
.cdj-top-ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.cdj-top-ranking-header h2 { margin: 0; font-size: 1.25rem; color: #1e293b; }
.cdj-top-link { font-size: 0.85rem; color: #2563eb; text-decoration: none; font-weight: 600; }
.cdj-top-link:hover { text-decoration: underline; }

.cdj-top-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.cdj-top-tab {
    padding: 9px 22px;
    border: 2px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.cdj-top-tab:hover { border-color: #2563eb; color: #2563eb; }
.cdj-top-tab--active { background: #2563eb; border-color: #2563eb; color: #fff; }

.cdj-top-tab-content { display: flex; gap: 16px; }
.cdj-top-tab-content--hidden { display: none; }

.cdj-top-rank-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-align: center;
}
.cdj-top-medal { font-size: 1.8rem; line-height: 1; }
.cdj-top-rank-name { font-size: 0.95rem; font-weight: 700; color: #1e293b; }
.cdj-top-rank-name small { display: block; font-size: 0.75rem; color: #64748b; font-weight: 400; margin-top: 3px; }
.cdj-top-rank-value { font-size: 0.85rem; color: #475569; font-weight: 600; }

/* ── ④ 注目の市区町村 ── */
.cdj-top-featured { padding: 40px 0; background: #f8fafc; }
.cdj-top-featured h2 { margin: 0 0 24px; font-size: 1.25rem; color: #1e293b; }
.cdj-top-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cdj-top-featured-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
    display: block;
}
.cdj-top-featured-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cdj-top-featured-name { font-size: 1.05rem; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.cdj-top-featured-pref { font-size: 0.8rem; color: #64748b; margin-bottom: 10px; }
.cdj-top-featured-score { font-size: 0.9rem; color: #2563eb; font-weight: 700; }

/* ── ⑤ 使い方3カード ── */
.cdj-top-usecases { padding: 40px 0; background: #fff; }
.cdj-top-usecases .cdj-top-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cdj-top-usecase {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 20px 24px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: filter 0.15s;
}
.cdj-top-usecase:hover { filter: brightness(0.97); }
.cdj-top-usecase--blue   { background: #eff6ff; }
.cdj-top-usecase--green  { background: #f0fdf4; }
.cdj-top-usecase--yellow { background: #fef3c7; }
.cdj-top-usecase-icon { font-size: 2.2rem; flex-shrink: 0; line-height: 1; }
.cdj-top-usecase-title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
.cdj-top-usecase--blue   .cdj-top-usecase-title { color: #1e40af; }
.cdj-top-usecase--green  .cdj-top-usecase-title { color: #166534; }
.cdj-top-usecase--yellow .cdj-top-usecase-title { color: #92400e; }
.cdj-top-usecase-desc { font-size: 0.85rem; color: #64748b; }

/* ── ⑥ 統計数字バー ── */
.cdj-top-stats {
    background: #0f172a;
    padding: 40px 0;
}
.cdj-top-stats .cdj-top-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 8px;
}
.cdj-top-stat-num { font-size: 2.4rem; font-weight: 700; margin-bottom: 8px; }
.cdj-top-stat-num--amber { color: #f0a500; }
.cdj-top-stat-num--green { color: #34d399; }
.cdj-top-stat-num--blue  { color: #60a5fa; }
.cdj-top-stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

/* ── レスポンシブ ── */
@media (max-width: 768px) {
    .cdj-top-hero h1 { font-size: 1.5rem; }
    .cdj-top-quick .cdj-top-container { grid-template-columns: repeat(2, 1fr); }
    .cdj-top-tab-content { flex-direction: column; }
    .cdj-top-featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cdj-top-hero { padding: 48px 16px; }
    .cdj-top-hero h1 { font-size: 1.3rem; }
    .cdj-top-featured-grid { grid-template-columns: 1fr; }
    .cdj-top-stat-num { font-size: 1.8rem; }
}
