/* =========================================
   投票ページ専用スタイル
   ========================================= */

/* プルダウンメニュースタイル */
.dropdown-vote {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.dropdown-vote-btn {
    background: var(--primary-color);
    color: white;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-vote-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.dropdown-vote-btn .arrow {
    transition: transform 0.3s ease;
}

.dropdown-vote-btn.open .arrow {
    transform: rotate(180deg);
}

.dropdown-vote-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.dropdown-vote-content.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.dropdown-vote-content .vote-item {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.dropdown-vote-content .vote-item:last-child {
    border-bottom: none;
}

.dropdown-vote-content .vote-item:hover {
    background: rgba(230, 126, 34, 0.1);
    color: var(--primary-color);
}

.dropdown-note {
    font-size: 0.75rem;
    color: var(--light-text);
    padding: 10px 16px;
    background: rgba(230, 126, 34, 0.05);
    border-top: 1px solid var(--border-light);
    text-align: center;
}

/* ダークモード対応 */
.dark-mode .dropdown-vote-content {
    background: #16213e;
    border-color: #2d2d44;
}

.dark-mode .dropdown-vote-content .vote-item {
    border-bottom-color: #2d2d44;
}

.dark-mode .dropdown-note {
    background: rgba(243, 156, 18, 0.1);
}

/* メイン表示用カード */
.main-vote-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.main-vote-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

/* 投票リンクカード */
.vote-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    border-radius: 18px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    color: #fff !important;
    width: 100%;
    min-height: 140px;
    box-sizing: border-box;
    text-align: center;
}

.vote-link-card.portal {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.vote-link-card.maikura-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.vote-link-card:hover {
    filter: brightness(1.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.site-name {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 8px;
}

.click-guide {
    font-size: 0.85rem;
    opacity: 0.9;
}

.login-badge {
    display: inline-block;
    background: #f39c12;
    color: #12121c;
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 20px;
    margin-top: 8px;
    font-weight: bold;
}

.reset-info {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 5px;
}

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

/* セクションタイトルの競合を防ぐ */
.section-block .section-title {
    margin-top: 0;
}

.section-title {
    margin-bottom: 40px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .main-vote-grid {
        gap: 20px;
    }
    
    .main-vote-card {
        min-width: 200px;
    }
    
    .dropdown-vote {
        max-width: 90%;
    }
    
    .vote-link-card {
        padding: 20px 15px;
        min-height: 120px;
    }
    
    .site-name {
        font-size: 1rem;
    }
}