/* ===== CWiki トップページ専用スタイル ===== */
/* サイト個別テーマ（menu_color, menu_str_color）には影響しません */

/* --- ヒーローセクション --- */
.hero-section {
    background: linear-gradient(135deg, #1a1a5e 0%, #2d2d8a 40%, #4a4ab8 100%);
    color: #fff;
    padding: 3em 1.5em 2.5em;
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.hero-logo img:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 2.2em;
    font-weight: 800;
    margin: 0.4em 0 0.1em;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.1em;
    opacity: 0.85;
    margin: 0 0 1em;
    font-weight: 400;
}

.hero-desc {
    margin: 0 auto 1.5em;
    max-width: 500px;
    line-height: 1.8;
    font-size: 0.95em;
    opacity: 0.9;
}
.hero-desc b {
    color: #a0c4ff;
}

/* --- 検索 --- */
.hero-search {
    display: flex;
    max-width: 480px;
    margin: 0 auto 1em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: 0.75em 1em;
    font-size: 1em;
    outline: none;
    color: #333;
    background: #fff;
}
.hero-search-input::placeholder {
    color: #aaa;
}

.hero-search-btn {
    border: none;
    background: #4a90d9;
    color: #fff;
    padding: 0.75em 1.5em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search-btn:hover {
    background: #3a7bc8;
}

.hero-note {
    font-size: 0.85em;
    opacity: 0.7;
    margin: 0.5em 0 1.5em;
}

/* --- ボタン --- */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    padding: 0.6em 1.8em;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-btn-primary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.hero-btn-primary:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.hero-btn-secondary {
    background: transparent;
    color: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(255,255,255,0.25);
}
.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.hero-sns {
    margin-top: 0.5em;
    display: flex;
    justify-content: center;
    gap: 0.5em;
}
.hero-sns img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.hero-sns img:hover {
    opacity: 1;
}

/* --- コンテンツセクション --- */
.top-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 2em 1.5em 4em;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
}

/* --- カード --- */
.top-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.top-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.top-card-header {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.8em 1.2em;
    background: #2d2d5e;
    color: #fff;
    font-weight: 700;
    font-size: 1.05em;
}

.top-card-icon {
    font-size: 1.2em;
    display: flex;
    align-items: center;
}

.coin-icon {
    width: 20px;
    height: 24px;
    vertical-align: middle;
}

.top-card-body {
    padding: 0.8em 1.2em;
}

/* --- リスト --- */
.top-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-list-item {
    padding: 0.5em 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}
.top-list-item:last-child {
    border-bottom: none;
}

.top-list-item a {
    color: #2d2d5e;
    text-decoration: none;
    font-weight: 500;
}
.top-list-item a:hover {
    color: #4a4ab8;
    text-decoration: underline;
}

.badge-new {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7em;
    font-weight: 700;
    padding: 0.15em 0.5em;
    border-radius: 3px;
    margin-left: 0.3em;
    vertical-align: middle;
}

.top-list-site {
    font-size: 0.85em;
    color: #888;
    margin-left: 0.5em;
}
.top-list-site a {
    color: #888;
    font-weight: 400;
}
.top-list-site a:hover {
    color: #4a4ab8;
}

/* --- ランキング --- */
.top-ranking {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}

.top-ranking-item {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0.5em 0;
    border-bottom: 1px solid #f0f0f0;
}
.top-ranking-item:last-child {
    border-bottom: none;
}
.top-ranking-item a {
    color: #2d2d5e;
    text-decoration: none;
    font-weight: 500;
}
.top-ranking-item a:hover {
    color: #4a4ab8;
    text-decoration: underline;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-1 { background: #ffd700; color: #5a4a00; }
.rank-2 { background: #c0c0c0; color: #444; }
.rank-3 { background: #cd7f32; color: #fff; }
.rank-other { background: #e8e8e8; color: #666; }

.admin-views {
    font-size: 0.8em;
    color: #999;
    font-weight: 400;
}

/* --- レスポンシブ --- */
@media (min-width: 640px) {
    .top-content {
        grid-template-columns: 1fr 1fr;
    }
    .top-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (min-width: 960px) {
    .hero-section {
        padding: 4em 2em 3em;
    }
    .hero-title {
        font-size: 2.8em;
    }
    .hero-desc {
        font-size: 1.05em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2em 1em 1.5em;
    }
    .hero-title {
        font-size: 1.6em;
    }
    .hero-search {
        flex-direction: column;
        border-radius: 8px;
    }
    .hero-search-btn {
        border-radius: 0 0 8px 8px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-btn {
        width: 80%;
        text-align: center;
    }
    .top-content {
        padding: 1.5em 1em 3em;
    }
}
