﻿.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
}

.header.hide {
    transform: translateY(-100%);
}

:root {
    --primary-pink: #ff69b4;
    --light-pink: #ffb6d9;
    --dark-pink: #ff1493;
    --white: #ffffff;
    --off-white: #fef5f9;
    --text-dark: #333333;
    --text-light: #666666;
    --shadow: rgba(255, 105, 180, 0.2);
}

body {
    font-family: 'M PLUS Rounded 1c', 'ヒラギノ丸ゴ ProN', 'Hiragino Maru Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* BGMコントローラー */
.bgm-controller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--shadow);
}

.bgm-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bgm-button:hover {
    transform: scale(1.1);
}

.bgm-button.playing {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 105, 180, 0.7);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(255, 105, 180, 0);
    }
}

.volume-slider {
    width: 100px;
    height: 6px;
    border-radius: 3px;
    background: var(--light-pink);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-pink);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-pink);
    cursor: pointer;
    border: none;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-pink) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu>li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 10px 15px;
    display: block;
}

.nav-menu>li>a:hover {
    color: var(--primary-pink);
}

/* ドロップダウンメニュー */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
    border-radius: 10px;
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 10px 20px;
    color: var(--text-dark);
    transition: background 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
    background: var(--light-pink);
    color: var(--primary-pink);
}

/* ヒーローセクション（画像 + テキストオーバーレイ） */
.hero-section {
    width: 100%;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light-pink), var(--primary-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    font-weight: bold;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 70px;
    padding-left: 120px;
    padding-right: 40px;
}

.hero-title {
    font-size: 72px;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 350;
    color: var(--white);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    text-align: left;
    letter-spacing: 0.3em;
    line-height: 2.2;
}

/* もう一枚画像セクション */
.image-section {
    width: 100%;
    margin: 0;
}

.image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.section-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    font-weight: bold;
}

/* キャスト画像ギャラリー */
.cast-gallery {
    padding: 80px 0;
    background: #E995A5;
}

.cast-gallery .container {
    max-width: 100%;
    padding: 0;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-pink), var(--dark-pink));
    border-radius: 2px;
}

.cast-image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2vw;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 7.5vw;
}

.cast-image-link {
    text-decoration: none;
    display: block;
}

.cast-image-item {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
    display: block;
}

.cast-image-link:hover .cast-image-item {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow);
}

/* スライドギャラリー */
.slide-gallery {
    padding: 80px 20px;
    background: #E995A5;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide-item {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    flex-shrink: 0;
    overflow: hidden;
}

.slider-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    border: none;
    color: var(--white);
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    flex-shrink: 0;
}

.slider-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow);
}

/* Contact */
.contact-section {
    padding: 80px 20px;
    background: #E995A5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.social-icon {
    text-decoration: none;
    display: block;
}

.icon-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow);
}

.icon-placeholder:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px var(--shadow);
}

/* イベント詳細ページ */
.event-detail {
    padding: 80px 20px;
    background: var(--white);
    min-height: 70vh;
}

.page-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-pink);
}

.event-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.event-section h2 {
    font-size: 28px;
    color: var(--primary-pink);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-pink);
}

.event-section p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 10px;
}

.event-info-list,
.event-rules,
.event-steps {
    line-height: 2;
    color: var(--text-light);
    margin-left: 20px;
}

.event-info-list li,
.event-rules li,
.event-steps li {
    margin-bottom: 10px;
}

/* キャスト一覧ページ */
.cast-list-page {
    padding: 80px 20px;
    background: url('../images/期生背景.jpg') center/cover no-repeat;
    background-attachment: fixed;
    min-height: 70vh;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.cast-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cast-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--shadow);
}

.cast-image-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--light-pink), var(--primary-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.cast-name {
    font-size: 24px;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.cast-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* キャストプロフィールページ */
.cast-profile-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cast-profile-info {
    padding: 40px;
}

.cast-profile-image {
    text-align: center;
}


/* フッター */
.footer {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        text-align: center;
        padding: 15px 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    /* ハンバーガーメニューのスタイル */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
    }

    .hamburger-menu span {
        width: 25px;
        height: 3px;
        background: var(--primary-pink);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* ナビメニューをハンバーガーで制御 */
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--white) 0%, var(--light-pink) 100%);
        box-shadow: 0 5px 20px var(--shadow);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 15px;
        letter-spacing: 0.05em;
        line-height: 1.8;
    }

    .hero-overlay {
        box-sizing: border-box;
        padding-top: 40px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-image-container {
        height: 550px;
    }

    .image-container {
        height: auto;
    }

    .image-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .section-title {
        font-size: 32px;
    }

    .page-title {
        font-size: 36px;
    }

    .cast-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-item {
        min-width: 100%;
    }

    /* スライダーボタンを非表示 */
    .slider-btn {
        display: none;
    }

    /* スライダーコンテナを画面いっぱいに */
    .slider-container {
        padding: 0;
        gap: 0;
    }

    /* スライダーラッパーを画面いっぱいに */
    .slider-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* スライドトラック */
    .slider-track {
        display: flex;
        transition: none;
    }

    /* 各スライドをスナップ */
    .slide-item {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 100%;
    }

    /* 画像を大きく表示 */
    .slide-item img {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .bgm-controller {
        bottom: 15px;
        right: 15px;
        padding: 10px;
        gap: 8px;
    }

    .bgm-button {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .volume-slider {
        width: 70px;
        height: 5px;
    }

    .volume-slider::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }

    .volume-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
    }

    /* イベント詳細ページのスマホ対応 */
    .event-detail {
        background-attachment: scroll !important;
        padding: 60px 10px !important;
    }

    .event-content {
        padding: 20px !important;
        border-radius: 15px !important;
    }

    .event-section {
        margin-bottom: 30px;
    }

    .event-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .event-section p {
        font-size: 14px;
        line-height: 1.6;
    }

    .event-info-list li,
    .event-rules li {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 8px;
    }

    .event-info-list strong {
        font-size: 14px;
    }

    /* キャストプロフィールページのレスポンシブ対応 */
    .cast-profile-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cast-profile-info {
        padding: 10px !important;
        order: 1;
    }

    .cast-profile-image {
        order: 2;
        padding: 0 10px;
    }

    /* スマホ表示時のテキストとリンクの調整 - インラインスタイルを上書き */
    .cast-profile-info>div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 15px !important;
    }

    .cast-profile-info>div:first-child h1 {
        font-size: 32px !important;
        margin: 0 !important;
    }

    .cast-profile-info>div:first-child a {
        margin-left: 0 !important;
        font-size: 13px !important;
        padding: 4px 12px !important;
    }

    .cast-profile-info>p:first-of-type {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }

    /* キャッチフレーズのテキストサイズ調整 */
    .cast-profile-info div p {
        font-size: 14px !important;
        padding: 5px 0 !important;
        line-height: 1.3 !important;
        word-break: break-all;
    }

    /* 戻るボタンのサイズ調整 */
    .cast-profile-info>div:last-child a {
        font-size: 14px !important;
        padding: 10px 20px !important;
        white-space: nowrap;
    }

    /* 画像のサイズ調整 */
    .cast-profile-image img {
        max-width: 90% !important;
        width: auto !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }
}