﻿/* ===== ヒーローセクション ===== */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-color);
    background-image: url('/images/hero-background-large.jpg');
    background-size: cover;
    background-position: center;
}

/* 背景エフェクト */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 20, 40, 0.7), rgba(10, 10, 20, 0.95));
    z-index: 1;
}

/* ===== 音波アニメーション ===== */
.sound-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.wave {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.wave-1 {
    top: 40%;
    left: 20%;
    width: 300px;
    height: 300px;
    animation: ripple 8s infinite linear;
}

.wave-2 {
    top: 60%;
    left: 80%;
    width: 400px;
    height: 400px;
    animation: ripple 12s infinite linear;
}

.wave-3 {
    top: 20%;
    left: 70%;
    width: 200px;
    height: 200px;
    animation: ripple 10s infinite linear;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* ===== 音符アニメーション (バグ修正版) ===== */
.music-notes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.note {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    animation: floatNote linear infinite;
    transform-origin: center;
    /* 初期位置は bottom で指定されるため top は不要 */
}

    /* 音符サイズに変化をつける */
    .note.size-1 {
        font-size: 18px;
    }

    .note.size-2 {
        font-size: 24px;
    }

    .note.size-3 {
        font-size: 30px;
    }

    .note.gold {
        color: rgba(212, 175, 55, 0.4);
    }

    .note.white {
        color: rgba(255, 255, 255, 0.3);
    }

    .note.red {
        color: rgba(230, 57, 70, 0.3);
    }

@keyframes floatNote {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translate(var(--move-x), -100vh) rotate(var(--rotate-deg));
        opacity: 0;
    }
}

/* ===== メインコンテンツ ===== */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* アニメーション要素共通クラス */
.animate-element {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

    .animate-element:nth-child(1) {
        animation-delay: 0.2s;
    }

    .animate-element:nth-child(2) {
        animation-delay: 0.5s;
    }

    .animate-element:nth-child(3) {
        animation-delay: 0.8s;
    }

/* ロゴ */
.logo-large img {
    width: 540px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.logo-large:hover img {
    transform: scale(1.03);
}

/* キャッチフレーズ */
.catchphrase {
    font-family: 'Noto Serif JP', serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.catch-text {
    display: inline-block;
    position: relative;
    background: linear-gradient(to right, var(--primary-gold), #FFF, var(--primary-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.catch-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    animation: revealText 1.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* イベント日付 */
.event-date {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 50px;
    color: var(--text-light);
    font-weight: 300;
    position: relative;
    animation: fadeIn 1s ease 1.2s forwards;
}

    .event-date::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.4);
    }

/* スクロールダウン */
.scroll-down {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    letter-spacing: 2px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards, bounce 2s infinite 2.5s;
    text-decoration: none;
    color: #ffffff;
}

    .scroll-down span {
        margin-bottom: 8px;
        opacity: 0.8;
        color: #ffffff;
    }

    .scroll-down i {
        font-size: 20px;
        color: #ffffff;
    }

/* アニメーション定義 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .catchphrase {
        font-size: 5rem;
    }

    .logo-large img {
        width: 480px;
    }

    .microphone {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .catchphrase {
        font-size: 4rem;
        margin-bottom: 30px;
    }

    .logo-large {
        margin-bottom: 30px;
    }

        .logo-large img {
            width: 320px;
        }

    .event-date {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .microphone {
        font-size: 2.5rem;
        opacity: 0.1;
    }

    .music-bar {
        opacity: 0.15;
    }
}

@media (max-width: 576px) {
    .catchphrase {
        font-size: 3.2rem;
        margin-bottom: 20px;
    }

    .logo-large {
        margin-bottom: 20px;
    }

        .logo-large img {
            width: 240px;
        }

    .event-date {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .microphone {
        opacity: 0.08;
        font-size: 2rem;
    }
}

@media (max-width: 380px) {
    .catchphrase {
        font-size: 2.8rem;
    }
}

@media (min-width: 590px) {
    .sp-visual {
        display: none;
    }
}
