/* ========================
   トップページ専用スタイル
   ======================== */

/* ヒーロー */
.top-hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2940 50%, #0d2137 100%);
    padding: 4em 1.5em;
    text-align: center;
    color: #fff;
    margin: -2em -1.5em 0;
}
.top-hero__inner {
    max-width: 680px;
    margin: 0 auto;
}
.top-hero__title {
    font-size: 2em;
    font-weight: 800;
    margin: 0 0 0.3em;
    letter-spacing: 0.05em;
}
.top-hero__subtitle {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0 0 1em;
    line-height: 1.7;
    opacity: 0.95;
}
.top-hero__desc {
    font-size: 0.9em;
    opacity: 0.7;
    margin: 0 0 1.8em;
}
.top-hero__cta {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 1em;
    text-decoration: none !important;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}
.top-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

/* セクション共通 */
.top-section__title {
    font-size: 1.4em;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.2em;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #e74c3c;
    display: inline-block;
    width: 100%;
}

/* ランキングTOP3 */
.top-ranking {
    padding: 2.5em 0;
}
.top-ranking__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2em;
}
.top-ranking__card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
    position: relative;
}
.top-ranking__card--1st {
    border-color: #f1c40f;
    box-shadow: 0 4px 20px rgba(241, 196, 15, 0.2);
}
.top-ranking__card--2nd { border-color: #bdc3c7; }
.top-ranking__card--3rd { border-color: #cd7f32; }
.top-ranking__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
    margin-bottom: 0.6em;
}
.top-ranking__card--1st .top-ranking__badge { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.top-ranking__card--2nd .top-ranking__badge { background: linear-gradient(135deg, #bdc3c7, #95a5a6); }
.top-ranking__card--3rd .top-ranking__badge { background: linear-gradient(135deg, #cd7f32, #a0522d); }
.top-ranking__name {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 0.3em;
}
.top-ranking__rating {
    color: #f39c12;
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 0.6em;
}
.top-ranking__feature {
    font-size: 0.92em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.8em;
}
.top-ranking__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
}
.top-ranking__tags li {
    padding: 3px 10px;
    background: #f0f4f8;
    border-radius: 4px;
    font-size: 0.8em;
    color: #555;
}
.top-ranking__links {
    display: flex;
    gap: 0.8em;
    flex-wrap: wrap;
}
.top-ranking__detail {
    padding: 10px 20px;
    border: 2px solid #3498db;
    color: #3498db !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none !important;
    transition: all 0.2s;
}
.top-ranking__detail:hover {
    background: #3498db;
    color: #fff !important;
}
.top-ranking__official {
    padding: 10px 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none !important;
    transition: transform 0.2s;
}
.top-ranking__official:hover {
    transform: translateY(-1px);
}
.top-ranking__more {
    text-align: center;
    margin-top: 1.5em;
}
.top-ranking__more a {
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    font-size: 1em;
}
.top-ranking__more a:hover {
    text-decoration: underline;
}

/* 目的から探す */
.top-category {
    padding: 2.5em 0;
    background: #f8f9fa;
    margin: 0 -1.5em;
    padding-left: 1.5em;
    padding-right: 1.5em;
}
.top-category__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
}
.top-category__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2em 0.8em;
    background: #fff;
    border-radius: 10px;
    text-decoration: none !important;
    color: #333 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.top-category__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.top-category__icon {
    font-size: 2em;
    margin-bottom: 0.3em;
}
.top-category__label {
    font-weight: 700;
    font-size: 0.95em;
    margin-bottom: 0.2em;
}
.top-category__desc {
    font-size: 0.75em;
    color: #888;
}

/* サイト別レビュー */
.top-compare {
    padding: 2.5em 0;
}
.top-compare__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6em;
}
.top-compare__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.2em;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-decoration: none !important;
    color: #333 !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.top-compare__item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.15);
}
.top-compare__name {
    font-weight: 700;
    font-size: 1em;
}
.top-compare__tag {
    padding: 3px 10px;
    background: #eef5fd;
    color: #3498db;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
}

/* 比較記事 */
.top-vs {
    padding: 1.5em 0 2.5em;
}
.top-vs__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6em;
}
.top-vs__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 1.2em;
    background: #fff3e0;
    border-radius: 8px;
    text-decoration: none !important;
    color: #e65100 !important;
    font-weight: 600;
    transition: background 0.2s;
}
.top-vs__item:hover {
    background: #ffe0b2;
}
.top-vs__arrow {
    font-size: 1.2em;
}

/* 信頼性セクション */
.top-trust {
    padding: 2.5em 1.5em;
    background: #f8f9fa;
    margin: 0 -1.5em;
    border-top: 1px solid #e9ecef;
}
.top-trust__text {
    font-size: 0.92em;
    line-height: 1.8;
    color: #555;
    text-align: center;
    margin-bottom: 1.5em;
}
.top-trust__points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}
.top-trust__point {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1em;
    background: #fff;
    border-radius: 8px;
}
.top-trust__point strong {
    font-size: 0.95em;
    margin-bottom: 0.3em;
    color: #2c3e50;
}
.top-trust__point span {
    font-size: 0.82em;
    color: #888;
}

/* ========================
   デスクトップ (768px+)
   ======================== */
@media (min-width: 768px) {
    .top-hero {
        padding: 5em 2em;
        margin: -2em -2em 0;
    }
    .top-hero__title { font-size: 2.5em; }
    .top-hero__subtitle { font-size: 1.3em; }

    .top-ranking__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .top-category__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .top-category {
        margin: 0 -2em;
        padding-left: 2em;
        padding-right: 2em;
    }

    .top-compare__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-vs__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-trust {
        margin: 0 -2em;
        padding: 2.5em 2em;
    }
    .top-trust__points {
        grid-template-columns: repeat(3, 1fr);
    }
}
