/* --- リセットCSS & 基本設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- ヘッダー --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(10, 25, 50, 0.9);
    /* 濃紺の透過背景 */
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    /* ゴールドのライン */
}

.logo img {
    height: 50px;
    /* ロゴの高さ調整 */
    width: auto;
    display: block;
}

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

nav a {
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    /* ゴールド */
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* --- ヒーローセクション --- */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: #ffffff;
    /* 白背景 */
    background-image: repeating-linear-gradient(90deg,
            rgba(255, 182, 193, 0.3) 0px,
            rgba(255, 182, 193, 0.3) 60px,
            rgba(255, 218, 185, 0.3) 60px,
            rgba(255, 218, 185, 0.3) 120px,
            rgba(255, 255, 182, 0.3) 120px,
            rgba(255, 255, 182, 0.3) 180px,
            rgba(182, 255, 193, 0.3) 180px,
            rgba(182, 255, 193, 0.3) 240px,
            rgba(185, 218, 255, 0.3) 240px,
            rgba(185, 218, 255, 0.3) 300px,
            rgba(218, 185, 255, 0.3) 300px,
            rgba(218, 185, 255, 0.3) 360px);
    /* パステルカラーの縦ストライプパターン */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    overflow: hidden;
    /* 周りをピンクと水色の枠で囲む（上・左：ピンク、右・下：水色） */
    border-top: 8px solid #ff66cc;
    border-left: 8px solid #ff66cc;
    border-right: 8px solid #66ccff;
    border-bottom: 8px solid #66ccff;
    box-sizing: border-box;
    padding: 40px 20px;
}

/* 2カラムレイアウト用のラッパー */
.hero-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    width: 100%;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    animation: fadeInUp 1s ease-out forwards;
    text-align: center;
}

/* YouTube埋め込みエリアのラッパー */
.hero-video-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 入場無料テキスト */
.free-admission {
    font-size: 3rem;
    font-weight: 900;
    color: #e60012;
    /* 赤で目立たせる */
    text-align: center;
    margin: 0;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease-out forwards;
    position: relative;
}

.free-admission::before,
.free-admission::after {
    content: '🎉';
    font-size: 2rem;
    margin: 0 15px;
}

/* YouTube埋め込みエリア */
.hero-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* キャッチコピー */
.catch-copy {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding: 10px 0;
    background: linear-gradient(135deg, #ff66cc, #ffcc00, #66ccff, #ff66cc);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff66cc;
    /* フォールバック */
    animation: fadeInUp 1s ease-out forwards;
    letter-spacing: 0.05em;
}

/* メインタイトル */
h1.main-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

h1.main-title span.year {
    color: #FFD700;
    font-family: serif;
    /* 数字だけ少しエレガントに */
}

/* 画像ロゴをタイトルとして使用する場合の調整 */
h1.main-title img {
    max-width: min(80vw, 500px);
    /* 画面幅の80%か600pxの小さい方まで */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 日付・場所エリア */
.event-details {
    background: rgba(255, 255, 255, 0.9);
    color: #0a1932;
    /* 濃紺 */
    padding: 30px 50px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.date-main {
    font-size: 2.5rem;
    font-weight: 900;
    border-bottom: 2px solid #0a1932;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: block;
}

.date-sub {
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.place {
    font-size: 1.5rem;
    font-weight: 700;
}

.note {
    font-size: 0.8rem;
    margin-top: 10px;
    color: #555;
}

/* 入場無料バッジ */
.badge {
    position: absolute;
    top: 55px;
    right: -200px;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(15deg);
    animation: pulse 2s infinite;
}

.badge img {
    max-width: 400px;
    height: auto;
    display: block;
}

/* --- フッター --- */
footer {
    background: #0a1932;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

.footer-logo {
    margin-bottom: 20px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- アニメーション --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: rotate(15deg) scale(1);
    }

    50% {
        transform: rotate(15deg) scale(1.05);
    }

    100% {
        transform: rotate(15deg) scale(1);
    }
}

/* --- クラッカー・紙吹雪エフェクト --- */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.confetti {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    /* 画面中央付近から四方に飛び散る破裂アニメーション */
    bottom: 50%;
    left: 50%;
    transform-origin: center;
    animation: confettiBurst linear infinite;
}

.confetti-1 {
    background: #ff66cc;
    --dx: -40vw;
    --dy: -20vh;
    --scale: 1.4;
    animation-duration: 3s;
    animation-delay: 0s;
}

.confetti-2 {
    background: #66ccff;
    --dx: -15vw;
    --dy: -40vh;
    --scale: 1.6;
    animation-duration: 3.5s;
    animation-delay: 0.3s;
}

.confetti-3 {
    background: #ffcc00;
    --dx: 10vw;
    --dy: -45vh;
    --scale: 1.7;
    animation-duration: 4s;
    animation-delay: 0.6s;
}

.confetti-4 {
    background: #ff66cc;
    --dx: 35vw;
    --dy: -20vh;
    --scale: 1.5;
    animation-duration: 3.2s;
    animation-delay: 0.9s;
}

.confetti-5 {
    background: #66ccff;
    --dx: 20vw;
    --dy: 25vh;
    --scale: 1.4;
    animation-duration: 3.8s;
    animation-delay: 0.2s;
}

.confetti-6 {
    background: #ffcc00;
    --dx: -10vw;
    --dy: 30vh;
    --scale: 1.5;
    animation-duration: 4.2s;
    animation-delay: 0.5s;
}

.confetti-7 {
    background: #ff66cc;
    --dx: -30vw;
    --dy: 35vh;
    --scale: 1.7;
    animation-duration: 3.6s;
    animation-delay: 0.8s;
}

.confetti-8 {
    background: #66ccff;
    --dx: 5vw;
    --dy: 45vh;
    --scale: 1.8;
    animation-duration: 4.1s;
    animation-delay: 0.1s;
}

.confetti-9 {
    background: #ffcc00;
    --dx: 30vw;
    --dy: 35vh;
    --scale: 1.7;
    animation-duration: 3.9s;
    animation-delay: 0.4s;
}

.confetti-10 {
    background: #ff66cc;
    --dx: -5vw;
    --dy: -50vh;
    --scale: 1.9;
    animation-duration: 3.7s;
    animation-delay: 0.7s;
}

.confetti-11 {
    background: #66ccff;
    --dx: -25vw;
    --dy: -30vh;
    --scale: 1.5;
    animation-duration: 3.3s;
    animation-delay: 1.0s;
}

.confetti-12 {
    background: #ffcc00;
    --dx: 25vw;
    --dy: -35vh;
    --scale: 1.6;
    animation-duration: 4.3s;
    animation-delay: 0.15s;
}

.confetti-13 {
    background: #ff66cc;
    --dx: -35vw;
    --dy: 20vh;
    --scale: 1.5;
    animation-duration: 3.4s;
    animation-delay: 0.45s;
}

.confetti-14 {
    background: #66ccff;
    --dx: 15vw;
    --dy: -25vh;
    --scale: 1.6;
    animation-duration: 3.9s;
    animation-delay: 0.6s;
}

.confetti-15 {
    background: #ffcc00;
    --dx: -20vw;
    --dy: 40vh;
    --scale: 1.7;
    animation-duration: 4.1s;
    animation-delay: 0.25s;
}

.confetti-16 {
    background: #ff66cc;
    --dx: 45vw;
    --dy: -15vh;
    --scale: 1.5;
    animation-duration: 3.5s;
    animation-delay: 0.85s;
}

.confetti-17 {
    background: #66ccff;
    --dx: -45vw;
    --dy: 25vh;
    --scale: 1.8;
    animation-duration: 4.0s;
    animation-delay: 0.35s;
}

.confetti-18 {
    background: #ffcc00;
    --dx: 50vw;
    --dy: 20vh;
    --scale: 1.6;
    animation-duration: 3.8s;
    animation-delay: 0.55s;
}

.confetti-19 {
    background: #ff66cc;
    --dx: -50vw;
    --dy: -30vh;
    --scale: 1.7;
    animation-duration: 4.2s;
    animation-delay: 0.75s;
}

.confetti-20 {
    background: #66ccff;
    --dx: 0vw;
    --dy: 50vh;
    --scale: 1.9;
    animation-duration: 3.6s;
    animation-delay: 0.95s;
}

@keyframes confettiBurst {
    0% {
        transform: translate(0, 0) scale(0.4) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(var(--scale, 1.2)) rotate(720deg);
        opacity: 0;
    }
}

/* --- ときまるまつり画像 --- */
.tokimaru-matsuri {
    position: absolute;
    z-index: 1;
    /* hero-contentより低く、confetti-containerと同じレベル */
    pointer-events: none;
    /* PC: 左側に配置 */
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
}

.tokimaru-matsuri img {
    max-width: 1000px;
    height: auto;
    display: block;
}

/* --- mati画像（右下） --- */
.mati-image {
    position: absolute;
    bottom: 1px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
}

.mati-image img {
    max-width: 800px;
    height: auto;
    display: block;
}


/* --- レスポンシブ対応 (スマホ向け) --- */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    nav {
        display: none;
        /* 簡易的に非表示。実際はハンバーガーメニュー推奨 */
    }

    .catch-copy {
        font-size: 1rem;
    }

    h1.main-title {
        font-size: 3rem;
    }

    .event-details {
        padding: 20px;
        width: 90%;
    }

    .date-main {
        font-size: 1.1rem;
    }

    .place {
        font-size: 0.9rem;
    }

    .badge {
        width: auto;
        height: auto;
        top: 90px;
        right: -100px;
    }

    .badge img {
        max-width: 200px;
    }

    .confetti {
        width: 14px;
        height: 14px;
    }

    /* モバイル: 下側に配置 */
    .tokimaru-matsuri {
        left: 50%;
        top: auto;
        bottom: -200px;
        transform: translateX(-50%);
    }

    .tokimaru-matsuri img {
        max-width: 900px;
    }

    /* モバイル: 1カラムレイアウトに変更 */
    .hero {
        padding: 20px 10px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* モバイルではevent-detailsの下に動画を配置（HTMLの順序通り） */
    .hero-content {
        order: 1;
    }

    .hero-video-wrapper {
        order: 2;
    }

    .free-admission {
        font-size: 2rem;
    }

    .free-admission::before,
    .free-admission::after {
        font-size: 1.5rem;
        margin: 0 10px;
    }

    /* モバイル: mati画像のサイズ調整 */
    .mati-image {
        bottom: -10px;
        right: 1px;
    }

    .mati-image img {
        max-width: 220px;
    }
}