/* ========================================
   Who We Are Showcase - Design Switcher
   ======================================== */

/* Safariダークモード自動変換を無効化 - 各デザインが独自の色を制御するため */
:root,
html,
body {
    color-scheme: light !important;
}

/* Body background is handled by each design's CSS */

/* ========================================
   Main Container Background Override
   ======================================== */
/* Design 3 has semi-transparent backgrounds on .about and .wwa-main that cover the body background.
   In showcase mode, we need to make them transparent to show the body pastel gradient background. */

/* CRITICAL: Use maximum specificity to override Design 3's final override section (Line 1900-1930) */
body.wwa-page.wwa-design-3 section.about,
body.wwa-page.wwa-design-3 .about {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

body.wwa-page.wwa-design-3 main.wwa-main,
body.wwa-page.wwa-design-3 .wwa-main {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

body.wwa-page.wwa-design-3 .unified-container {
    background: transparent !important;
    background-color: transparent !important;
}

/* Also ensure hero wrapper doesn't have blocking backgrounds */
body.wwa-page.wwa-design-3 .hero-wrapper,
body.wwa-page.wwa-design-3 .hero {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* ========================================
   Content Sections Visibility
   ======================================== */
.wwa-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wwa-main {
    display: block !important;
    visibility: visible !important;
}

/* Override Design 2's animation system - force all content visible */
.wwa-section .content-section,
.wwa-section .card-base,
.wwa-section .member-card,
.wwa-section .news-card,
.wwa-section .live-card,
.content-section,
.card-base {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ========================================
   Base Styles
   ======================================== */
.design-switcher-wrapper {
    position: sticky !important;
    top: 90px !important; /* BAND CONNECTヘッダー（80px）+ 余白（10px） */
    z-index: 999 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.design-switcher-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Showcase Notice
   ======================================== */
.showcase-notice {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 16px !important;
    background: rgba(33, 150, 243, 0.15) !important;
    border-left: 4px solid #2196f3 !important;
    color: #90caf9 !important;
    font-size: 14px !important;
    margin-top: 10px !important;
    border-radius: 4px !important;
}

.showcase-notice i {
    font-size: 16px !important;
    color: inherit !important;
}

/* ========================================
   Desktop Carousel (PC版カルーセル)
   ======================================== */
.design-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
}

.design-carousel-nav {
    flex-shrink: 0;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 20px !important;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.design-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.design-carousel-viewport {
    flex: 1;
    overflow: hidden;
}

.design-carousel-track {
    display: flex;
    gap: 10px;
    transition: transform 0.4s ease-in-out;
}

.design-tab {
    flex: 0 0 160px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    color: white !important;
}

.design-tab:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.design-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: #667eea !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.6) !important;
}

.tab-name {
    font-weight: 700 !important;
    font-size: 14px !important;
    text-align: center !important;
    line-height: 1.3 !important;
    color: inherit !important;
}

.tab-desc {
    font-size: 11px !important;
    opacity: 0.8 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    color: inherit !important;
}

.design-tab.active .tab-desc {
    opacity: 0.9 !important;
}

/* ========================================
   Mobile Dropdown (モバイル版)
   ======================================== */
.design-dropdown {
    padding: 16px 0;
}

.dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    color: white !important;
}

.current-design-icon {
    display: none !important; /* パレットアイコンを非表示 */
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.dropdown-toggle.open {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-color: #667eea !important;
}

.current-design-icon {
    font-size: 20px;
    margin-right: 10px;
}

.current-design-name {
    flex: 1;
    font-weight: 600;
    font-size: 16px;
    text-align: left;
}

.dropdown-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown-toggle.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.open {
    display: block;
    animation: slideDown 0.3s ease;
    max-height: 60vh;
    overflow-y: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: transparent !important;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: left;
    color: white !important;
    border-radius: 0 !important;
}

.dropdown-item:last-child {
    border-bottom: none !important;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.dropdown-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.item-bullet {
    font-size: 18px;
    min-width: 20px;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
}

.item-desc {
    font-size: 12px;
    opacity: 0.7;
    line-height: 1.3;
}

.dropdown-item.active .item-desc {
    opacity: 0.9;
}

/* ========================================
   Hero Wrapper (ヒーロー切り替え用)
   ======================================== */
.hero-wrapper {
    transition: opacity 0.3s ease;
}

.hero-wrapper.fade-out {
    opacity: 0;
}

.hero-wrapper.fade-in {
    opacity: 1;
}

/* ========================================
   Responsive (レスポンシブ)
   ======================================== */

/* デスクトップ: カルーセル表示 */
@media (min-width: 768px) {
    .desktop-only {
        display: flex !important;
    }
    .mobile-only {
        display: none !important;
    }
}

/* モバイル: ドロップダウン表示 */
@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }

    .design-switcher-wrapper {
        top: 90px; /* モバイルでも同じ高さ */
    }

    .design-switcher-container {
        padding: 0 16px;
    }

    .showcase-notice {
        font-size: 13px;
        padding: 10px 14px;
    }

    .design-tab {
        flex: 0 0 130px;
        padding: 8px 10px;
    }

    .tab-name {
        font-size: 13px;
    }

    .tab-desc {
        font-size: 10px;
    }
}

/* タブレット: タブを小さめに */
@media (min-width: 768px) and (max-width: 1024px) {
    .design-carousel-track {
        gap: 8px;
    }

    .design-tab {
        flex: 0 0 140px;
        padding: 10px 10px;
    }

    .tab-name {
        font-size: 13px;
    }

    .tab-desc {
        font-size: 11px;
    }
}

/* 小さいモバイル */
@media (max-width: 480px) {
    .current-design-name {
        font-size: 14px;
    }

    .item-name {
        font-size: 14px;
    }

    .item-desc {
        font-size: 11px;
    }
}
