/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #faf8f3;
}

.pc--hidden {
    display: none !important;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background-image: url(../images/pc/header-background.png);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 140px;
    height:40px;
    object-fit: contain;
}

.logo h1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* ヒーローセクション */
.hero {
    width: 100%;
    height: auto; /* 任意で調整可能 */
    padding: 0; /* ←余白を削除 */
    margin: 0;
    position: relative;
    overflow: hidden;
    background: none; /* グラデを消したい場合 */
}

.hero .container {
    display: block; /* フレックス解除 */
    padding: 0;
}

.hero-image {
    width: 100%;
    height: auto;
}

.hero-image img {
    width: 100vw;  /* 画面幅いっぱいに拡大 */
    height: auto;
    display: block;
    object-fit: cover; /* ←画像の端の余白カット */
    margin: 0;
}


/* ランキングセクション */
.ranking-section {
    padding: 80px 0;
    background: #e9fbff;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.crown-icon {
    width: 50px;
    height: auto;
    animation: bounce 2s ease-in-out infinite;
}

.crown-left {
    order: 1;
}

.section-title {
    order: 2;
}

.crown-right {
    order: 3;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.section-title {
    font-size: 32px;
    color: #0004ff;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, transparent, #ffd700, transparent);
}

.update-time {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ランキングカードグリッド */
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.ranking-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ranking-card[data-rank="1"] {
    animation-delay: 0.1s;
}

.ranking-card[data-rank="2"] {
    animation-delay: 0.2s;
}

.ranking-card[data-rank="3"] {
    animation-delay: 0.3s;
}

.ranking-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-rank-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
}

.card-rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.card-rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e9a76a 100%);
}

.rank-crown {
    position: absolute;
    top: -15px;
    width: 30px;
    height: auto;
}

.rank-number {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-image {
    height: 200px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #4a90e2;
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    text-align: center;
}

.service-name-overlay h3 {
    font-size: 20px;
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.service-placeholder {
    text-align: center;
    padding: 20px;
}

.service-placeholder h3 {
    font-size: 24px;
    color: #4a90e2;
    font-weight: bold;
}

.card-score {
    background: linear-gradient(135deg, #93deff 0%, #0091ff 100%);
    padding: 15px;
    text-align: center;
}

.score-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
}

.score-value {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
}

.score-unit {
    font-size: 18px;
}

.card-difficulty {
    background: linear-gradient(135deg, #d1f7ff 0%, #4fe2ff 100%);
    padding: 15px;
    text-align: center;
}

.difficulty-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
}

.star-rating {
    font-size: 24px;
}

.star {
    color: #ddd;
}

.star.filled {
    color: #ffd700;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.5);
}

.card-button {
    display: block;
    background: linear-gradient(135deg, #ff9800 0%, #ff6b00 100%);
    color: white;
    text-decoration: none;
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 0 0 15px 15px;
    transition: background 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.card-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.card-button:hover::before {
    width: 300px;
    height: 300px;
}

.card-button:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #ff9800 100%);
    transform: scale(1.02);
}

.button-tap {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* 検索セクション */
.search-section {
    background: linear-gradient(135deg, #ffc0cb 0%, #ffb6c1 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 5px 20px rgba(255, 182, 193, 0.4);
    animation: fadeIn 1s ease-out;
}

.search-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.search-subtitle {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.search-button {
    background: linear-gradient(135deg, #ff9800 0%, #ff6b00 100%);
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

.search-button:active {
    transform: translateY(0);
}

/* 詳細ランキングリスト */
.detail-ranking {
    margin-top: 60px;
}

.detail-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid #5f72ff;
    animation: fadeIn 1s ease-out;
    scroll-margin-top: 80px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-rank-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
}

.detail-rank-number {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.detail-service-name {
    font-size: 28px;
    color: #333;
    font-weight: bold;
    flex: 1;
}

.detail-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #93deff 0%, #0091ff 100%);
    padding: 10px 20px;
    border-radius: 10px;
}

.detail-score-label {
    font-size: 12px;
    color: #ffffff;
}

.detail-score-value {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
}

.detail-content {
    display: grid;
    gap: 30px;
}

.detail-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9f7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4a90e2;
    overflow: hidden;
}

.detail-service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.service-detail-placeholder {
    text-align: center;
    padding: 20px;
}

.service-detail-placeholder p {
    font-size: 28px;
    color: #4a90e2;
    font-weight: bold;
}

.detail-points {
    background: linear-gradient(135deg, #dffffc 0%, #a4f0ff 100%);
    padding: 25px;
    border-radius: 10px;
}

.points-title {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #93deff 0%, #0091ff 100%);
    color: white;
    border-radius: 5px;
}

.points-list {
    list-style: none;
}

.points-list li {
    padding: 10px 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    width: 20px;
    height: 20px;
}

.detail-review {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 25px;
    border-radius: 10px;
}

.review-title {
    font-size: 20px;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    background: linear-gradient(135deg, #26c6da 0%, #00acc1 100%);
    border-radius: 5px;
}

.review-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.admin-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.review-text {
    flex: 1;
}

.reviewer-name {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #00acc1;
    margin-bottom: 10px;
}

.review-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

/* フッター */
.footer {
    background-image: url(../images/pc/header-background.png);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-info {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.footer-company {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

.footer-disclaimer {
    font-size: 12px;
    color: #686868;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #999;
    padding-top: 20px;
    border-top: 1px solid #555;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle-large {
        font-size: 22px;
    }

    .hero-icons {
        justify-content: center;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
    }

    .icon-text {
        font-size: 12px;
    }

    .hero-image img {
        max-width: 100%;
    }

    .section-title {
        font-size: 24px;
    }

    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-score {
        align-self: flex-start;
    }

    .review-content {
        flex-direction: column;
    }

    .admin-avatar {
        width: 60px;
        height: 60px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 60px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle-large {
        font-size: 20px;
    }

    .badge-year,
    .badge-text {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    .search-title {
        font-size: 22px;
    }

    .search-subtitle {
        font-size: 26px;
    }

    .detail-service-name {
        font-size: 22px;
    }

    .detail-item {
        padding: 20px;
    }
}

/* 公式ボタン */
.official-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800 0%, #ff6b00 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    transition: all 0.3s ease;
    margin: 20px 0;
    text-align: center;
}

.official-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.6);
}

.button-arrow {
    margin-left: 10px;
    font-size: 24px;
}

/* 利用者の口コミ */
.user-reviews {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.reviews-title {
    font-size: 20px;
    color: #4a90e2;
    margin-bottom: 15px;
    font-weight: bold;
}

.review-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.review-user {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 16px;
}

.star.filled {
    color: #ffd700;
}

.review-comment {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}
