/* ================================================
   Bluebell メイドカフェ - 公開ページスタイル
   ================================================ */

/* ============ リセット & ベース ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - エレガントなピンク&ブルー */
    --primary: #7B68EE;          /* ミディアムスレートブルー */
    --primary-dark: #5b4ac9;
    --primary-light: #a599f7;
    --accent: #FF69B4;           /* ホットピンク */
    --accent-light: #FFB6C1;     /* ライトピンク */
    --gold: #D4AF37;             /* ゴールド */
    --text-dark: #2c2c3e;
    --text-light: #ffffff;
    --bg-overlay: rgba(20, 15, 35, 0.85);
    --card-bg: rgba(255, 255, 255, 0.95);
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f472b6 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(20, 15, 35, 0.7) 0%, rgba(45, 35, 75, 0.9) 100%);
    
    /* フォント */
    --font-main: 'Zen Maru Gothic', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* シャドウ */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 30px rgba(123, 104, 238, 0.3);
    
    /* トランジション */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ============ 背景 ============ */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.page-background.default-bg {
    background: var(--gradient-main);
}

.page-background.default-bg::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

/* ============ メインラッパー ============ */
.main-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ============ ヘッダー ============ */
.site-header {
    padding: 40px 20px 30px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.header-content {
    margin-bottom: 25px;
}

.logo-container {
    display: inline-block;
}

.site-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    color: var(--text-light);
    text-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 60px rgba(255,182,193,0.4);
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-icon {
    font-size: 0.8em;
    animation: swing 2s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.site-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--accent-light);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ナビゲーション */
.main-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 25px;
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 20px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.nav-link:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ============ セクション共通 ============ */
.section {
    padding: 60px 20px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-light);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.title-deco {
    color: var(--accent-light);
    font-size: 0.7em;
}

/* ============ コンセプト ============ */
.concept-section {
    padding-top: 40px;
}

.concept-content {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.concept-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-main);
}

.concept-text {
    font-size: 1.1rem;
    text-align: center;
    line-height: 2;
    color: var(--text-dark);
}

/* ============ キャストカード ============ */
.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    justify-items: center;
}

.today-cast-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
}

.cast-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    max-width: 220px;
}

.cast-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cast-photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 120%; /* 縦長アスペクト比 */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.cast-photo-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cast-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.cast-card:hover .cast-photo {
    transform: scale(1.05);
}

.cast-photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ddd 0%, #bbb 100%);
    color: #888;
    font-size: 0.9rem;
}

/* スライダーナビゲーション */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cast-card:hover .slider-nav {
    opacity: 1;
}

.slider-prev, .slider-next {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* キャスト情報 */
.cast-info {
    padding: 15px;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(123, 104, 238, 0.05) 100%);
}

.cast-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.no-cast-message {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

/* ============ 地図・カレンダー ============ */
.map-container, .calendar-container {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.map-container iframe, .calendar-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

.map-placeholder, .calendar-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 8px;
    color: #888;
}

/* ============ フッター ============ */
.site-footer {
    background: rgba(0,0,0,0.5);
    padding: 40px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-copy {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ============ ポップアップ ============ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.popup-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(3px) brightness(0.5);
    z-index: 0;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.popup-close:hover {
    background: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}

.popup-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background: rgba(0,0,0,0.3);
    min-height: 400px;
    max-height: 85vh;
    overflow-y: auto;
}

.popup-photo-container {
    width: 100%;
    max-width: 400px;
    margin-bottom: 30px;
}

.popup-photo-slider {
    position: relative;
    width: 100%;
    padding-top: 120%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.popup-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-slider-prev, .popup-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
}

.popup-slider-prev {
    left: 10px;
}

.popup-slider-next {
    right: 10px;
}

.popup-slider-prev:hover, .popup-slider-next:hover {
    background: rgba(0,0,0,0.9);
}

.popup-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.popup-slider-dots .dot {
    width: 10px;
    height: 10px;
}

.popup-info {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    width: 100%;
    flex-shrink: 0;
}

.popup-name {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.popup-intro {
    font-size: 1.1rem;
    line-height: 2;
    white-space: pre-wrap;
    max-height: 40vh;
    overflow-y: auto;
    padding: 10px;
    text-align: left;
}

/* スクロールバーのスタイリング */
.popup-intro::-webkit-scrollbar {
    width: 6px;
}

.popup-intro::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.popup-intro::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.4);
    border-radius: 3px;
}

.popup-intro::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.6);
}

/* ============ レスポンシブ ============ */
@media (max-width: 768px) {
    .section {
        padding: 40px 15px;
    }
    
    .concept-content {
        padding: 25px 20px;
    }
    
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cast-card {
        max-width: none;
    }
    
    .popup-inner {
        padding: 20px;
        max-height: 90vh;
    }
    
    .popup-photo-container {
        max-width: 280px;
    }
    
    .popup-name {
        font-size: 1.4rem;
    }
    
    .popup-intro {
        font-size: 1rem;
        max-height: 30vh;
    }
}

@media (max-width: 480px) {
    .site-title {
        gap: 10px;
    }
    
    .main-nav ul {
        gap: 8px 12px;
    }
    
    .nav-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    
    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .map-container iframe, .calendar-container iframe {
        height: 300px;
    }
}

/* ============ アニメーション ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-inner {
    animation: fadeInUp 0.6s ease-out;
}

.cast-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.cast-card:nth-child(1) { animation-delay: 0.1s; }
.cast-card:nth-child(2) { animation-delay: 0.2s; }
.cast-card:nth-child(3) { animation-delay: 0.3s; }
.cast-card:nth-child(4) { animation-delay: 0.4s; }
.cast-card:nth-child(5) { animation-delay: 0.5s; }
.cast-card:nth-child(6) { animation-delay: 0.6s; }



