/* ==========================================================================
   Who We Are v2 - Design 3: モダン・グラデーション

   Pastel gradient background with glass-morphism cards.
   All rules scoped under body.wwa-design-3 prefix.
   ========================================================================== */

/* ==========================================================================
   1. CSS変数定義（カスタマイズポイント）
   ========================================================================== */
body.wwa-design-3 {
    /* カラーパレット */
    --color-primary: #0a0a0a;
    --color-secondary: #1a1a1a;
    --color-accent: #BBFFF5;
    --color-text: #f8fafc;
    --color-text-hover: #cbd5e1;
    --color-border: #2d3748;
    --color-bg: transparent;

    /* ライブ情報専用カラー */
    --color-live-primary: #e8fff5;
    --color-live-secondary: #187bb5;

    /* スペーシング */
    --spacing-unit: 1rem;
    --spacing-sm: calc(var(--spacing-unit) * 0.5);
    --spacing-md: var(--spacing-unit);
    --spacing-lg: calc(var(--spacing-unit) * 2);
    --spacing-xl: calc(var(--spacing-unit) * 3);

    /* トランジション */
    --transition-default: 0.2s ease-in-out;
    --transition-slow: 0.3s ease-in-out;

    /* 影設定 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.35);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   2. ベーススタイル・ボディ背景
   ========================================================================== */

/* ページ全体の基本スタイル */
body.wwa-design-3 {
    margin: 0;
    font-family: 'Noto Sans JP', 'Poppins', sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh !important;
}

/* グラデーション背景（shorthand不使用 - longhandのみで確実に適用） */
html[data-design="3"],
body.wwa-design-3 {
    background-color: #FFF4E6 !important;
    background-image:
        -webkit-linear-gradient(135deg,
            #FFF4E6 0%,
            #FDBBCB 20%,
            #A6F2FF 40%,
            #92FFEA 60%,
            #E7BDFF 80%,
            #E7BDFF 100%
        ),
        linear-gradient(135deg,
            #FFF4E6 0%,
            #FDBBCB 20%,
            #A6F2FF 40%,
            #92FFEA 60%,
            #E7BDFF 80%,
            #E7BDFF 100%
        ) !important;
    background-attachment: scroll !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    background-position: 0 0 !important;
    -webkit-background-size: 100% 100% !important;
    -webkit-background-attachment: scroll !important;
}

/* テーマシステム無効化 */
body.wwa-design-3.theme-classic,
body.wwa-design-3.theme-dark,
body.wwa-design-3.theme-pop {
    background-color: transparent !important;
    background-image: none !important;
}

/* テーマ変数の強制上書き */
html[data-design="3"],
body.wwa-design-3 {
    --theme-bg-primary: transparent !important;
    --theme-bg-secondary: transparent !important;
}

/* Safari検出用のメディアクエリ */
@supports (-webkit-appearance: none) and (not (overflow: -webkit-marquee)) and (not (-ms-ime-align: auto)) {
    body.wwa-design-3 {
        background-image:
            -webkit-linear-gradient(135deg,
                #FFF4E6 0%,
                #FDBBCB 15%,
                #A6F2FF 30%,
                #92FFEA 45%,
                #FFFFFF 60%,
                #E7BDFF 80%,
                #9333ea 100%
            ) !important;
    }
}

/* iOS Safari特有の対応 */
@supports (-webkit-touch-callout: none) {
    body.wwa-design-3 {
        background-image:
            -webkit-linear-gradient(135deg,
                #FFF4E6 0%,
                #FDBBCB 20%,
                #A6F2FF 40%,
                #92FFEA 60%,
                #E7BDFF 80%,
                #E7BDFF 100%
            ) !important;
        background-attachment: scroll !important;
        -webkit-background-attachment: scroll !important;
    }
}

/* ==========================================================================
   3. v2ラッパースタイル（unified-container方式）
   ========================================================================== */
body.wwa-design-3 .wwa-main {
    max-width: 1200px !important;
    margin: 0 auto !important;
    background: rgba(74, 88, 130, 0.6) !important;
    background-color: rgba(74, 88, 130, 0.6) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 3rem 40px 2rem 40px !important;
}

body.wwa-design-3 .wwa-section {
    padding: 0 0 1.5rem 0 !important;
}

/* 最初のセクションのみ上部パディングを追加 */
body.wwa-design-3 .wwa-section:first-child {
    padding-top: 0 !important;
}

body.wwa-design-3 .wwa-container {
    max-width: 100%;
    padding: 0;
}

/* ==========================================================================
   4. Band Connectロゴ（左上固定）
   ========================================================================== */
body.wwa-design-3 .bandconnect-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 999;
    transition: transform var(--transition-default);
}

body.wwa-design-3 .bandconnect-logo a {
    display: block;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 6px;
}

body.wwa-design-3 .bandconnect-logo img {
    width: auto;
    transition: all var(--transition-default);
    display: block;
}

body.wwa-design-3 .bandconnect-logo:hover {
    transform: scale(1.05);
}

body.wwa-design-3 .bandconnect-logo:hover img {
    opacity: 0.8;
}

/* ==========================================================================
   5. コンテンツ・コンテナ
   ========================================================================== */
body.wwa-design-3 .content {
    padding: 2rem 5%;
    color: #333;
}

body.wwa-design-3 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================================================================
   6. ヒーローセクション (Hero Section)
   ========================================================================== */
body.wwa-design-3 .hero {
    position: relative;
    margin-bottom: 80px;
    text-align: center;
    /* v2: コンテナ無しのためhero自体にmax-widthを設定 */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 20px 0;
}

/* 画像と枠を管理するラッパー（白フレーム） */
body.wwa-design-3 .hero .hero-image-wrapper {
    display: inline-block;
    padding: 20px;
    background-color: #ffffff;
    box-sizing: border-box;
    line-height: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* バンドの写真 */
body.wwa-design-3 .hero .band-photo {
    width: 100%;
    height: auto;
    display: block;
}

/* バンドロゴ */
body.wwa-design-3 .band-logo {
    position: absolute;
    bottom: -65px;
    right: 40px;
    z-index: 10;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-accent);
}

body.wwa-design-3 .band-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* メンバーリストのテキスト */
body.wwa-design-3 .member-list {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: calc(100% - 180px);
    margin: 0;
    color: #052036;
    font-size: 15px;
    text-align: left;
    line-height: 1.4;
}

/* ==========================================================================
   7. アバウトセクション (About Section)
   ========================================================================== */
body.wwa-design-3 .mobile-br {
    display: none;
}

body.wwa-design-3 .about {
    /* v2: グラスモーフィズムカードの上半分 — .wwa-mainと直接連結 */
    max-width: 1200px !important;
    margin: 100px auto 0 auto !important;
    padding: 0 !important;
    background-color: rgba(74, 88, 130, 0.6) !important;
    background: rgba(74, 88, 130, 0.6) !important;
    border-radius: 30px 30px 0 0 !important;
    overflow: hidden !important;
}

/* unified-container（about内部のコンテンツラッパー） */
body.wwa-design-3 .unified-container {
    background-color: transparent;
    color: #ffffff;
    border-radius: 0;
    padding: 60px 40px 0 40px !important;
}

/* バンド名 */
body.wwa-design-3 .band-name {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 200;
    letter-spacing: 0.3em;
    margin: 0 0 10px 0;
    text-indent: 0.3em;
    text-align: center;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* バンド名の日本語表記 */
body.wwa-design-3 .band-name-jp {
    font-size: 16px;
    letter-spacing: 0.4em;
    margin: 0 0 50px 0;
    text-indent: 0.4em;
    text-align: center;
}

/* 説明文 */
body.wwa-design-3 .band-tagline {
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 2em auto;
    text-align: center;
}

/* バンド情報 (MEMBERS, FORMED, STATUS) */
body.wwa-design-3 .band-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* バンド情報の値 */
body.wwa-design-3 .stat-number {
    font-size: 24px;
    font-weight: 500;
    color: #BBFFF5;
}

/* ==========================================================================
   8. セクションタイトル（グレードットインジケータ付き）
   ========================================================================== */
body.wwa-design-3 .section-title,
body.wwa-design-3 .wwa-section .section-title {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #08325f !important;
    -webkit-text-fill-color: #08325f !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    padding: 10px 20px 10px 15px !important;
    margin-bottom: 40px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    position: static !important;
    -webkit-appearance: none !important;
    -webkit-transform: translateZ(0) !important;
}

/* ::afterを無効化 */
body.wwa-design-3 .section-title::after,
body.wwa-design-3 .wwa-section .section-title::after {
    display: none !important;
}

/* 見出しの左側にある丸い点（グレードットインジケータ） */
body.wwa-design-3 .section-title::before,
body.wwa-design-3 .wwa-section .section-title::before {
    content: '' !important;
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #9fa9ba !important;
    border-radius: 50% !important;
    margin-right: 15px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    position: static !important;
}

/* モバイルSafari専用の追加対応 */
@supports (-webkit-touch-callout: none) {
    body.wwa-design-3 .band-name {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    body.wwa-design-3 .section-title {
        background-color: #ffffff !important;
        background: #ffffff !important;
        color: #08325f !important;
        -webkit-text-fill-color: #08325f !important;
        display: inline-flex !important;
        align-items: center !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        padding: 10px 20px 10px 15px !important;
        margin-bottom: 40px !important;
        text-align: left !important;
        position: static !important;
    }

    body.wwa-design-3 .section-title::before {
        content: '' !important;
        display: inline-block !important;
        width: 10px !important;
        height: 10px !important;
        background-color: #9fa9ba !important;
        border-radius: 50% !important;
        margin-right: 15px !important;
        line-height: 1 !important;
        flex-shrink: 0 !important;
        position: static !important;
    }

    body.wwa-design-3 .section-title::after {
        display: none !important;
    }
}

/* ==========================================================================
   9. バンド情報グリッド・カード
   ========================================================================== */
body.wwa-design-3 .band-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1200px));
    gap: var(--spacing-lg);
    margin-bottom: calc(var(--spacing-lg) * 2);
}

/* メンバーSNSアイコン */
body.wwa-design-3 .member-sns-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

body.wwa-design-3 .member-sns-icons .sns-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
}

body.wwa-design-3 .member-sns-icons .sns-icon:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.wwa-design-3 .member-sns-icons .x-icon {
    background-color: #000000;
    color: white;
}

body.wwa-design-3 .member-sns-icons .instagram-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

body.wwa-design-3 .member-sns-icons .facebook-icon {
    background-color: #1877f2;
    color: white;
    justify-content: center;
}

/* ==========================================================================
   10. 情報カード (Info Card) - Glass-morphism
   ========================================================================== */
body.wwa-design-3 .info-card {
    background: transparent;
    border-radius: 40px;
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
}

body.wwa-design-3 .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 25px rgba(255, 255, 255, 0.4);
}

/* カード内のh3見出し */
body.wwa-design-3 .info-card h3 {
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
    text-align: left;
    align-items: center;
    gap: 0.5rem;
}

/* カード内の段落 */
body.wwa-design-3 .info-card p {
    line-height: 1.7;
    color: #ffffff;
    text-align: left;
}

/* ==========================================================================
   11. 詳細情報リスト (info-details)
   ========================================================================== */
body.wwa-design-3 .info-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

body.wwa-design-3 .info-item {
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    color: #ffffff;
    text-align: left;
}

body.wwa-design-3 .info-item:first-child {
    padding-top: 0.75rem;
}

body.wwa-design-3 .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0.75rem;
}

body.wwa-design-3 .info-item strong {
    color: var(--color-accent);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* ==========================================================================
   12. メンバーセクション
   ========================================================================== */
body.wwa-design-3 .members-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 50px;
}

body.wwa-design-3 .member-card {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* メンバーアイコン（円形） */
body.wwa-design-3 .member-photo {
    flex-shrink: 0;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.95);
    overflow: hidden;
    background-color: transparent;
    padding: 8px;
    box-sizing: border-box;
}

body.wwa-design-3 .member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* メンバー情報テキスト */
body.wwa-design-3 .member-info {
    color: #ffffff;
}

body.wwa-design-3 .member-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

body.wwa-design-3 .member-instrument {
    color: var(--color-accent);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

body.wwa-design-3 .member-profile {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* ==========================================================================
   13. バンド履歴セクション
   ========================================================================== */
body.wwa-design-3 .content-section,
body.wwa-design-3 .wwa-section.wwa-history {
    margin-top: 60px;
    margin-bottom: 60px;
}

body.wwa-design-3 .band-story-content {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 0px;
}

body.wwa-design-3 .story-card {
    border-radius: 30px;
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    position: relative;
    overflow: hidden;
}

body.wwa-design-3 .story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

body.wwa-design-3 .story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 25px rgba(255, 255, 255, 0.4);
}

body.wwa-design-3 .story-text {
    color: #ffffff;
    line-height: 1.5;
    font-size: 0.9rem;
    text-align: justify;
    font-weight: 300;
}

/* ==========================================================================
   14. ニュースセクション
   ========================================================================== */
body.wwa-design-3 .news-section,
body.wwa-design-3 .wwa-section.wwa-news {
    padding: var(--spacing-md) 0;
    margin: calc(var(--spacing-md) / 2) 0;
}

body.wwa-design-3 .news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    margin-bottom: 30px;
}

body.wwa-design-3 .news-card {
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

body.wwa-design-3 .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0px 10px 25px rgba(255, 255, 255, 0.4);
}

body.wwa-design-3 .news-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent), #9333ea);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body.wwa-design-3 .news-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.wwa-design-3 .news-placeholder {
    color: white;
    font-size: 3rem;
    opacity: 0.7;
}

body.wwa-design-3 .news-info {
    padding: 1.5rem;
    flex: 1;
}

body.wwa-design-3 .news-date {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.wwa-design-3 .news-title {
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

body.wwa-design-3 .news-content {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

body.wwa-design-3 .news-actions {
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    margin-top: 30px;
}

body.wwa-design-3 .past-news-btn {
    background: linear-gradient(135deg, #E7BDFF 0%, #A6F2FF 100%);
    color: #2d3748;
    border-radius: 999px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 189, 255, 0.3);
}

body.wwa-design-3 .past-news-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 189, 255, 0.4);
}

/* ==========================================================================
   15. ライブ情報セクション
   ========================================================================== */
body.wwa-design-3 .live-section,
body.wwa-design-3 .wwa-section.wwa-live {
    padding: var(--spacing-md) 0;
    margin: calc(var(--spacing-md) / 2) 0;
}

body.wwa-design-3 .live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

body.wwa-design-3 .live-card {
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    position: relative;
    overflow: hidden;
}

body.wwa-design-3 .live-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-live-primary), var(--color-live-secondary));
}

body.wwa-design-3 .live-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.3);
}

body.wwa-design-3 .live-date {
    color: var(--color-live-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.wwa-design-3 .live-title {
    color: var(--color-text);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

body.wwa-design-3 .live-venue {
    color: var(--color-live-primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body.wwa-design-3 .live-actions {
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    margin-top: 30px;
}

body.wwa-design-3 .past-live-btn {
    background: linear-gradient(135deg, #E7BDFF 0%, #A6F2FF 100%);
    color: #2d3748;
    border-radius: 999px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 189, 255, 0.3);
}

body.wwa-design-3 .past-live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 189, 255, 0.4);
}

/* ==========================================================================
   16. ギャラリーセクション
   ========================================================================== */
body.wwa-design-3 .gallery-section,
body.wwa-design-3 .wwa-section.wwa-gallery {
    padding: var(--spacing-md) 0;
    margin: calc(var(--spacing-md) / 2) 0;
}

body.wwa-design-3 .gallery-subsection {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

body.wwa-design-3 .gallery-subtitle {
    display: inline-flex;
    align-items: center;
    position: relative;
    text-align: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 10px 20px 10px 15px;
    margin-top: -80px;
    margin-bottom: 20px;
}

body.wwa-design-3 .gallery-subtitle::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* 写真グリッド */
body.wwa-design-3 .photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

body.wwa-design-3 .photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-default), box-shadow var(--transition-default);
    aspect-ratio: 1;
}

body.wwa-design-3 .photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.4);
}

body.wwa-design-3 .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* YouTube動画ギャラリー */
body.wwa-design-3 .youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

body.wwa-design-3 .youtube-card {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

body.wwa-design-3 .youtube-embed,
body.wwa-design-3 .youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.wwa-design-3 .youtube-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

body.wwa-design-3 .youtube-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

body.wwa-design-3 .youtube-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

body.wwa-design-3 .youtube-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.wwa-design-3 .youtube-play-button {
    color: #ffffff;
    font-size: 50px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

body.wwa-design-3 .youtube-link:hover .youtube-thumb-img {
    transform: scale(1.05);
}

body.wwa-design-3 .youtube-link:hover .youtube-play-button {
    transform: scale(1.1);
}

/* PC/モバイル表示切替 */
body.wwa-design-3 .mobile-only {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

body.wwa-design-3 .desktop-only {
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   17. SNSセクション（元template-3に準拠）
   ========================================================================== */
body.wwa-design-3 .sns-section,
body.wwa-design-3 .wwa-section.wwa-sns {
    padding: var(--spacing-lg) 0;
    margin-top: 40px;
}

/* SNSリンク全体のラッパー */
body.wwa-design-3 .wwa-sns .sns-links,
body.wwa-design-3 .sns-section .sns-links,
body.wwa-design-3 .sns-links {
    display: flex;
    justify-content: flex-start; /* 左寄せにする */
    align-items: center; /* アイコンの垂直位置を中央に揃える */
    gap: var(--spacing-xl); /* 各アイコン間の隙間（3rem） */
    max-width: none; /* 最大幅制限を解除 */
    width: auto; /* 幅を自動調整 */
    margin: 0 auto;
    padding: 0 var(--spacing-lg); /* 左右の余白（2rem） */
    flex-wrap: nowrap; /* 1行に並べる */
}

/* 各SNSリンクのスタイル */
body.wwa-design-3 .sns-link {
    background: none;
    border: none;
    text-decoration: none;
    color: #ffffff; /* 通常時のアイコンの色 */
    transition: color 0.2s ease-in-out;
    display: inline-block; /* インラインブロックでアイコンサイズに制限 */
    flex-shrink: 0; /* 縮小を防ぐ */
    width: auto; /* 幅を自動調整（コンテンツサイズ） */
}

body.wwa-design-3 .sns-link:hover {
    transform: none;
    box-shadow: none;
}

/* アイコン自体のスタイル */
body.wwa-design-3 .sns-link i {
    font-size: 2rem;
    margin-bottom: 0;
    color: inherit; /* 親要素(aタグ)の色を常に継承する */
    transition: color 0.2s ease-in-out;
}

/* テキスト（span）は非表示にする */
body.wwa-design-3 .sns-link span,
body.wwa-design-3 .sns-link .sns-label {
    display: none;
}

/* ホバー時の色変化 - 各プラットフォームの公式カラー */
body.wwa-design-3 .sns-link.x-link:hover,
body.wwa-design-3 .sns-link.x-link:hover i {
    color: #000000; /* X (Twitter) - 黒 */
}

body.wwa-design-3 .sns-link.instagram-link:hover,
body.wwa-design-3 .sns-link.instagram-link:hover i {
    color: #E4405F; /* Instagram - ピンク */
}

body.wwa-design-3 .sns-link.youtube-link:hover,
body.wwa-design-3 .sns-link.youtube-link:hover i {
    color: #FF0000; /* YouTube - 赤 */
}

body.wwa-design-3 .sns-link.facebook-link:hover,
body.wwa-design-3 .sns-link.facebook-link:hover i {
    color: #1877F2; /* Facebook - 青 */
}

/* ==========================================================================
   18. バックトゥトップ・ライトボックス・モーダル
   ========================================================================== */

/* バックトゥトップボタン */
body.wwa-design-3 .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-accent), #9333ea);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all var(--transition-default);
    box-shadow: var(--shadow-lg);
}

body.wwa-design-3 .back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

body.wwa-design-3 .back-to-top i {
    color: var(--color-primary);
    font-size: 20px;
}

/* ライトボックス */
body.wwa-design-3 .lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

body.wwa-design-3 .lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

body.wwa-design-3 .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

body.wwa-design-3 .lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

body.wwa-design-3 .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color var(--transition-default);
}

body.wwa-design-3 .lightbox-close:hover {
    color: var(--color-accent);
}

/* ニュース詳細モーダル */
body.wwa-design-3 .news-detail-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

body.wwa-design-3 .news-detail-modal-content {
    background: transparent;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    color: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(231, 189, 255, 0.3);
}

body.wwa-design-3 .news-detail-modal-header {
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 20px 20px 0 0;
    color: #ffffff !important;
}

body.wwa-design-3 .news-detail-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none !important;
    color: #ffffff !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    transition: opacity 0.2s ease !important;
}

body.wwa-design-3 .news-detail-modal-close:hover {
    opacity: 0.7 !important;
}

body.wwa-design-3 .news-detail-modal-close:focus {
    outline: none !important;
    opacity: 0.8 !important;
}

body.wwa-design-3 .news-detail-modal-close:active {
    opacity: 0.5 !important;
}

body.wwa-design-3 .news-detail-modal-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    border-radius: 0 0 20px 20px;
}

body.wwa-design-3 .news-detail-date {
    color: #8b5cf6;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

body.wwa-design-3 .news-detail-title {
    color: #1a202c;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

body.wwa-design-3 .news-detail-photo img {
    width: 60%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
}

body.wwa-design-3 .news-detail-content {
    color: #2d3748;
    line-height: 1.7;
    font-size: 1rem;
}

/* 過去のニュースモーダル */
body.wwa-design-3 .news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

body.wwa-design-3 .news-modal-content {
    background: transparent;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    color: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(231, 189, 255, 0.3);
}

body.wwa-design-3 .news-modal-header {
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 20px 20px 0 0;
    color: #ffffff !important;
}

body.wwa-design-3 .news-modal-header h3 {
    margin: 0;
    color: #ffffff;
}

body.wwa-design-3 .news-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none !important;
    color: #ffffff !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    transition: opacity 0.2s ease !important;
}

body.wwa-design-3 .news-modal-close:hover {
    opacity: 0.7 !important;
}

body.wwa-design-3 .news-modal-close:focus {
    outline: none !important;
    opacity: 0.8 !important;
}

body.wwa-design-3 .news-modal-close:active {
    opacity: 0.5 !important;
}

body.wwa-design-3 .news-modal-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    border-radius: 0 0 20px 20px;
}

body.wwa-design-3 .past-news-item {
    border-bottom: 1px solid rgba(231, 189, 255, 0.3);
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

body.wwa-design-3 .past-news-item:last-child {
    border-bottom: none;
}

body.wwa-design-3 .past-news-date {
    color: #8b5cf6;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

body.wwa-design-3 .past-news-title {
    color: #1a202c;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

body.wwa-design-3 .past-news-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

body.wwa-design-3 .past-news-photo img {
    width: 60%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
}

/* ライブ履歴モーダル */
body.wwa-design-3 .live-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

body.wwa-design-3 .live-modal-content {
    background: transparent;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    color: #2d3748;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(231, 189, 255, 0.3);
}

body.wwa-design-3 .live-modal-header {
    padding: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-radius: 20px 20px 0 0;
    color: #ffffff !important;
}

body.wwa-design-3 .live-modal-header h3 {
    margin: 0;
    color: #ffffff;
}

body.wwa-design-3 .live-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none !important;
    color: #ffffff !important;
    border: none !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    transition: opacity 0.2s ease !important;
}

body.wwa-design-3 .live-modal-close:hover {
    opacity: 0.7 !important;
}

body.wwa-design-3 .live-modal-close:focus {
    outline: none !important;
    opacity: 0.8 !important;
}

body.wwa-design-3 .live-modal-close:active {
    opacity: 0.5 !important;
}

body.wwa-design-3 .live-modal-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    border-radius: 0 0 20px 20px;
}

body.wwa-design-3 .past-live-item {
    border-bottom: 1px solid rgba(231, 189, 255, 0.3);
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

body.wwa-design-3 .past-live-item:last-child {
    border-bottom: none;
}

body.wwa-design-3 .past-live-date {
    color: #1a202c;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.wwa-design-3 .past-live-time {
    color: #4a5568;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

body.wwa-design-3 .past-live-title {
    color: #1a202c;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

body.wwa-design-3 .past-live-venue {
    color: #2d3748;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

body.wwa-design-3 .past-live-venue a {
    color: #8b5cf6;
    text-decoration: none;
}

body.wwa-design-3 .past-live-venue a:hover {
    color: #a78bfa;
    text-decoration: underline;
}

body.wwa-design-3 .past-live-price {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

body.wwa-design-3 .past-live-order {
    color: #4a5568;
    font-size: 0.9rem;
}

body.wwa-design-3 .past-live-details {
    margin-top: 0.5rem;
}

/* ==========================================================================
   19. レスポンシブ調整 - タブレット (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    body.wwa-design-3 .band-logo {
        width: 120px;
        height: 120px;
        bottom: -55px;
        right: 10px;
    }

    body.wwa-design-3 .members-grid {
        gap: 50px 30px;
    }

    body.wwa-design-3 .member-card {
        gap: 20px;
    }

    body.wwa-design-3 .member-photo {
        width: 140px;
        height: 140px;
    }

    body.wwa-design-3 .member-name {
        font-size: 20px;
    }

    body.wwa-design-3 .member-instrument {
        font-size: 15px;
    }

    body.wwa-design-3 .member-profile {
        font-size: 13px;
    }

    body.wwa-design-3 .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   20. レスポンシブ調整 - スマートフォン (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    body.wwa-design-3 .container {
        padding: 20px 15px;
    }

    body.wwa-design-3 .band-name {
        font-size: 36px;
        line-height: 1.2;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    body.wwa-design-3 .band-name-jp {
        font-size: 14px;
    }

    body.wwa-design-3 .bandconnect-logo {
        top: 15px;
        left: 15px;
    }

    body.wwa-design-3 .about-content {
        padding: 40px 20px;
    }

    body.wwa-design-3 .band-tagline {
        letter-spacing: -0.05em;
    }

    body.wwa-design-3 .band-stats {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    body.wwa-design-3 .unified-container {
        padding: 30px 15px 0 15px !important;
        border-radius: 0;
    }

    body.wwa-design-3 .wwa-main {
        margin: 0 auto;
        padding: 0 15px 1rem;
        border-radius: 0 0 15px 15px;
    }

    body.wwa-design-3 .about {
        margin-top: 60px;
        border-radius: 20px 20px 0 0;
    }

    body.wwa-design-3 .hero {
        margin-bottom: 60px;
    }

    body.wwa-design-3 .mobile-br {
        display: inline;
    }

    body.wwa-design-3 .member-list {
        bottom: -35px;
        width: calc(100% - 100px);
        font-size: 12px;
        line-height: 1.5;
    }

    body.wwa-design-3 .band-logo {
        width: 80px;
        height: 80px;
        bottom: -35px;
        right: 10px;
    }

    body.wwa-design-3 .hero .hero-image-wrapper {
        padding: 10px;
    }

    body.wwa-design-3 .members-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    body.wwa-design-3 .member-photo {
        width: 110px;
        height: 110px;
    }

    body.wwa-design-3 .story-card {
        padding: 20px 20px;
    }

    body.wwa-design-3 .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    body.wwa-design-3 .live-grid {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* 表示/非表示を逆転 */
    body.wwa-design-3 .mobile-only {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    body.wwa-design-3 .desktop-only {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    body.wwa-design-3 #subtitle-photos {
        font-size: 1.1rem;
    }

    body.wwa-design-3 .youtube-grid {
        grid-template-columns: 1fr;
    }

    /* SNSリンクのモバイル用調整 */
    body.wwa-design-3 .sns-links {
        justify-content: center; /* アイコン群を中央揃えにする */
        gap: var(--spacing-lg); /* アイコン間の隙間を少し狭くする（2rem） */
        flex-wrap: wrap; /* モバイルでは折り返しを許可 */
    }

    body.wwa-design-3 .photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* モーダル モバイル対応 */
    body.wwa-design-3 .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    body.wwa-design-3 .back-to-top i {
        font-size: 18px;
    }

    body.wwa-design-3 .news-detail-modal-content,
    body.wwa-design-3 .news-modal-content,
    body.wwa-design-3 .live-modal-content {
        margin: 10px;
        max-height: 90vh;
    }

    body.wwa-design-3 .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    body.wwa-design-3 .lightbox-close {
        top: -35px;
        font-size: 25px;
    }
}

/* ==========================================================================
   21. レスポンシブ調整 - 小型スマートフォン (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    body.wwa-design-3 .news-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    body.wwa-design-3 .photos-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   22. Safari専用CSS - color-space workarounds
   ========================================================================== */

/* Safari検出の確実性を向上 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    body.wwa-design-3 {
        background: transparent !important;
        background-color: transparent !important;
    }

    /* セクション要素の透明背景（グラデーション表示のため）
       注意: .about と .wwa-main はカード背景を持つため除外 */
    body.wwa-design-3 section:not(.about),
    body.wwa-design-3 .content-section,
    body.wwa-design-3 .hero-section,
    body.wwa-design-3 .members-section,
    body.wwa-design-3 .news-section,
    body.wwa-design-3 .gallery-section,
    body.wwa-design-3 .sns-section,
    body.wwa-design-3 .youtube-section,
    body.wwa-design-3 .band-info-section,
    body.wwa-design-3 .live-info-section,
    body.wwa-design-3 .story-section,
    body.wwa-design-3 .wwa-section {
        background: transparent !important;
        background-color: transparent !important;
        color-profile: sRGB !important;
        -webkit-color-correction: sRGB !important;
    }

    /* .about と .wwa-main はカード背景を保持 */
    body.wwa-design-3 .about {
        background-color: rgba(74, 88, 130, 0.6) !important;
    }
    body.wwa-design-3 .wwa-main {
        background: rgba(74, 88, 130, 0.6) !important;
    }

    /* カード要素 - 透明背景（glass-morphism） */
    body.wwa-design-3 .info-card,
    body.wwa-design-3 .member-card,
    body.wwa-design-3 .story-card,
    body.wwa-design-3 .news-card,
    body.wwa-design-3 .live-card,
    body.wwa-design-3 .youtube-card {
        background: transparent !important;
        background-color: transparent !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        color-profile: sRGB !important;
        -webkit-color-correction: sRGB !important;
    }

    /* バンド名の白色強制適用 */
    body.wwa-design-3 .band-name {
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important;
        color: #ffffff !important;
        color-profile: sRGB !important;
        -webkit-color-correction: sRGB !important;
    }

    /* 楽器 - テンプレート3では白文字 */
    body.wwa-design-3 .member-instrument {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        padding: 0 !important;
        color: #ffffff !important;
        color-profile: sRGB !important;
        -webkit-color-correction: sRGB !important;
    }

    /* コンテナ要素の背景色 */
    body.wwa-design-3 .container,
    body.wwa-design-3 .main-content,
    body.wwa-design-3 .content-wrapper,
    body.wwa-design-3 .band-info-grid,
    body.wwa-design-3 .wwa-container {
        background: transparent !important;
        background-color: transparent !important;
    }

    /* モーダル要素の背景色 */
    body.wwa-design-3 .news-modal-content,
    body.wwa-design-3 .live-modal-content,
    body.wwa-design-3 .news-detail-modal-content {
        background: transparent !important;
        background-color: transparent !important;
        border: 1px solid rgba(231, 189, 255, 0.3) !important;
        color-profile: sRGB !important;
        -webkit-color-correction: sRGB !important;
    }

    body.wwa-design-3 .news-modal-header,
    body.wwa-design-3 .live-modal-header,
    body.wwa-design-3 .news-detail-modal-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color-profile: sRGB !important;
        -webkit-color-correction: sRGB !important;
    }
}

/* iOS Safari専用の追加対応 */
@supports (-webkit-touch-callout: none) {
    body.wwa-design-3 {
        -webkit-text-size-adjust: 100% !important;
        -webkit-font-smoothing: antialiased !important;
    }

    /* iOS Safari特有の色空間問題への対応 */
    body.wwa-design-3 * {
        -webkit-color-correction: sRGB !important;
        color-profile: sRGB !important;
    }
}

/* ==========================================================================
   99. 最終上書き - .about と .wwa-main のカード背景を確実に保護
   ========================================================================== */
body.wwa-design-3 section.about,
body.wwa-design-3 .about {
    background: rgba(74, 88, 130, 0.6) !important;
    background-color: rgba(74, 88, 130, 0.6) !important;
    background-image: none !important;
    border-radius: 30px 30px 0 0 !important;
    margin-bottom: 0 !important;
}

body.wwa-design-3 .about .unified-container {
    padding: 60px 40px 0 40px !important;
}

body.wwa-design-3 main.wwa-main,
body.wwa-design-3 .wwa-main {
    background: rgba(74, 88, 130, 0.6) !important;
    background-color: rgba(74, 88, 130, 0.6) !important;
    background-image: none !important;
    border-radius: 0 0 20px 20px !important;
    margin-top: 0 !important;
    padding: 3rem 40px 2rem 40px !important;
}

body.wwa-design-3 .wwa-section {
    padding: 0 0 1.5rem 0 !important;
}

body.wwa-design-3 .wwa-section:first-child {
    padding-top: 0 !important;
}
