/* ============================================
   BAND CONNECT Homepage Unified CSS
   ============================================
   統合日: 2025年9月5日
   目的: パーシャル内<style>タグ除去によるCSS統合
   対象: 全ホームページセクション統一管理
   ============================================ */

/* 基本セクション構造 */
.homepage-section {
    padding: 20px 0 20px 0;
    background-color: #111;
    position: relative;
    margin: 20px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 30px 0;
    color: #fff;
}

.section-description {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 40px;
    color: #ccc;
}

/* 統一ボタンスタイル */
.homepage-btn {
    display: inline-block;
    margin: 20px 20px 20px 0 !important;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.homepage-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.homepage-btn-more {
    /* more-link specific styling inherited from .homepage-btn */
}

/* 統一カルーセルシステム */
.homepage-carousel-container {
    position: relative;
    margin: 20px 0 20px 0;
    width: 100%;
    overflow: hidden;
    padding: 0 60px;
    box-sizing: border-box;
}

.homepage-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 15px;
    padding: 10px 0;
    width: fit-content;
    overflow: visible;
}

.homepage-carousel-item {
    flex: 0 0 350px;
    height: 200px;
}

.homepage-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.homepage-carousel-nav:hover {
    background: rgba(0,0,0,0.9);
}

.homepage-carousel-nav.prev {
    left: 10px;
}

.homepage-carousel-nav.next {
    right: 10px;
}

/* 統一バンド表示スタイル */
.homepage-band-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.homepage-band-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    transition: transform 0.3s ease;
}

.homepage-band-image:hover {
    transform: scale(1.05);
}

.homepage-band-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-band-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.homepage-band-photo-placeholder i {
    font-size: 3rem;
    opacity: 0.8;
}

.homepage-band-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 15px 15px;
    color: white;
}

.homepage-band-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.homepage-band-genre {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 3px;
}

/* Weekly Featured: ランキングバッジシステム */
.homepage-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 35px;
    height: 35px;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
    border: 2px solid white;
}

.homepage-rank-badge.homepage-rank-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.homepage-rank-badge.homepage-rank-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
}

.homepage-rank-badge.homepage-rank-3 {
    background: linear-gradient(135deg, #CD7F32, #B8860B);
    color: #fff;
}

/* Weekly Featured: クラウンバッジシステム */
.homepage-crown-badge {
    position: absolute;
    top: 5px;
    right: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 11;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.homepage-crown-badge.homepage-crown-1 {
    color: #FFD700;
    animation: homepage-crown-glow 2s ease-in-out infinite alternate;
}

.homepage-crown-badge.homepage-crown-2 {
    color: #C0C0C0;
    animation: homepage-crown-glow 2s ease-in-out infinite alternate;
}

.homepage-crown-badge.homepage-crown-3 {
    color: #CD7F32;
    animation: homepage-crown-glow 2s ease-in-out infinite alternate;
}

@keyframes homepage-crown-glow {
    from {
        filter: drop-shadow(0 0 5px currentColor);
        transform: scale(1);
    }
    to {
        filter: drop-shadow(0 0 10px currentColor);
        transform: scale(1.1);
    }
}

/* Weekly Featured: ビューカウント */
.homepage-view-count {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    font-style: italic;
    margin-top: 5px;
}

/* Featured Bands: ランキングバッジ（別デザイン） */
.homepage-ranking-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
}

.homepage-crown-1 {
    color: #FFD700; /* ゴールド */
    font-size: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.homepage-crown-2 {
    color: #C0C0C0; /* シルバー */
    font-size: 18px;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.8);
}

.homepage-crown-3 {
    color: #CD7F32; /* ブロンズ */
    font-size: 16px;
    text-shadow: 0 0 6px rgba(205, 127, 50, 0.8);
}

.homepage-rank-number {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 24px;
    text-align: center;
    text-shadow: none;
}

.homepage-rank-number-only {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 28px;
    text-align: center;
    text-shadow: none;
}

/* 共通メッセージ表示 */
.homepage-no-bands-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
    font-style: italic;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .homepage-carousel-item {
        flex: 0 0 280px;
        height: 180px;
    }
    
    .homepage-carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .homepage-rank-badge {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .homepage-crown-badge {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .homepage-carousel-item {
        flex: 0 0 260px;
        height: 160px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .homepage-btn {
        margin: 20px 15px 15px 0 !important;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* セクション個別調整 */
.who-we-are-section {
    background-color: #111;
}

.weekly-featured-section {
    background-color: #111;
}

.new-face-section {
    background-color: #111;
}

.featured-bands-section {
    background-color: #111;
}

/* カルーセル統一スタイル優先度確保 */
.homepage-carousel-container .homepage-carousel-track {
    display: flex !important;
    transition: transform 0.5s ease-in-out !important;
}

.homepage-carousel-container .homepage-carousel-item {
    flex-shrink: 0 !important;
}

.homepage-carousel-container .homepage-band-image {
    position: relative !important;
    border-radius: 8px !important;
}

/* ボタン優先度確保 */
.homepage-btn.homepage-btn-more {
    display: inline-block !important;
    margin: 15px 20px 20px 0 !important;
}

/* ボタン右寄せ統一（引継書仕様） */
.homepage-section .homepage-btn,
.who-we-are-section .homepage-btn,
.weekly-featured-section .homepage-btn,
.new-face-section .homepage-btn,
.todays-live-section .homepage-btn {
    float: right;
    clear: both;
    margin: 20px 20px 20px 0 !important;
}

/* セクション内ボタン配置統一 */
.homepage-section::after,
.who-we-are-section::after,
.weekly-featured-section::after,
.new-face-section::after,
.todays-live-section::after {
    content: "";
    display: table;
    clear: both;
}

/* ボタン右寄せ強制適用 */
.homepage-btn.homepage-btn-more {
    float: right !important;
    margin: 20px 20px 20px 0 !important;
}

/* 全セクション20px統一スペーシング（事務局お知らせ・News Selection・本日のライブ対応） */
.news-selection-section {
    padding: 20px 0 80px 0 !important;
    background-color: #111;
    position: relative;
    margin: 20px 0;
}

.todays-live-section {
    padding: 20px 0 20px 0 !important;
    background-color: #111;
    position: relative;
    margin: 20px 0;
}

.news-selection-section .section-title,
.todays-live-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 30px 0 !important;
    color: #fff;
}

/* 事務局お知らせコンポーネント用20px統一 */
.homepage-announcements-section {
    padding: 20px 0 20px 0 !important;
    background-color: #111;
    margin: 20px 0;
}

.homepage-announcements-section .section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 30px 0 !important;
    color: #fff;
}
/* === 事務局お知らせセクション20px統一 === */
.admin-announcements-section {
    padding: 20px 0 20px 0 !important;
    background-color: #1a1a1a;
    position: relative;
    margin: 20px 0;
}

.admin-announcements-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.admin-announcements-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.admin-announcements-section .section-title i {
    color: #ffcc00;
    font-size: 1.8rem;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffcc00;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 20px;
    border: 2px solid #ffcc00;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background-color: #ffcc00;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

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

.no-announcements {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.no-content-message {
    background: rgba(255, 204, 0, 0.1);
    border: 2px dashed #ffcc00;
    border-radius: 12px;
    padding: 40px;
    color: #ffcc00;
}

.no-content-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.no-content-message p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ccc;
}


/* === 本日のライブセクション専用レイアウト修正 === */
.todays-live-section .section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.todays-live-section .section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    margin: 0 !important;
    text-align: left;
}

.todays-live-section .current-date {
    font-size: 1.2rem;
    color: #ffcc00;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .todays-live-section .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .todays-live-section .section-title {
        text-align: center;
        font-size: 1.8rem;
    }
    
    .todays-live-section .current-date {
        font-size: 1rem;
    }
}


/* === ニュースセクション専用20px統一 === */
.news-selection-section .news-grid {
    margin: 20px 0 20px 0;
}

.news-selection-section .homepage-btn {
    margin: 20px 20px 0 0 !important;
    float: right;
    clear: both;
}

/* === 本日のライブセクション専用20px統一 === */
.todays-live-section .live-list {
    margin: 20px 0 20px 0;
}

.todays-live-section .homepage-btn {
    margin-top: 20px !important;
}
