/* =========================================
   ベース設定
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #333333;                
    font-family: sans-serif;       
    line-height: 1.6;     
    width: 100%;         
    overflow-x: hidden;
    /* 全体の基本文字サイズを可変に設定 */
    font-size: clamp(13px, 2.8vw, 16px);
}
.sp-only {
    display: none;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   1. 固定ヘッダーバー
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    justify-content: space-between;
    background: linear-gradient(135deg, #d0a900, #fff9e6, #d0a900);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 80px;
    width: auto;
    margin-right: 8px;
}

.header-title {
    /* 最小14px〜最大24pxに小さめ調整（見切れ防止） */
    font-size: clamp(14px, 3.2vw, 24px);
    font-weight: bold;
    color: #333333;
    white-space: nowrap;
}

/* ナビゲーション */
.header-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

.header-nav a {
    color: #333333;
    text-decoration: none;
    font-weight: bold;
    /* ナビ文字サイズ可変 */
    font-size: clamp(15px, 1.1vw, 20px);
    padding: 4px 6px;  
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e65100;
    transition: width 0.3s ease;
}

.header-nav a:hover {
    background: linear-gradient(
        45deg, 
        #000000 0%,
        #212121 20%,  
        #ffffff 50%, 
        #212121 70%,
        #000000 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));  
    transform: translateY(-5px) scale(1.02);
}

.header-nav a:hover::after {
    width: 100%;
}

/* ハンバーガーボタン */
.hamburger, #hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10000 !important;
}

.hamburger span, #hamburger span {
    width: 100%;
    height: 3px;
    background-color: #303030c9;
    transition: all 0.3s ease;
    border-radius: 2px;
}

#hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
#hamburger.active span:nth-child(2) {
    opacity: 0;
}
#hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   2. HEROエリア（スライドショー）
========================================= */
.hero {
    position: relative;
    width: 100%;
    margin-top: 65px;
    height: calc(100vh - 65px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body > .hero {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation: heroFade 12s infinite;
}

.hero-bg img:nth-child(1) { animation-delay: 0s; }
.hero-bg img:nth-child(2) { animation-delay: 4s; }
/*.hero-bg img:nth-child(3) { animation-delay: 8s; }*/

@keyframes heroFade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    33% { opacity: 1; }
    43% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
    width: 95%;
    padding: 0 10px;
}

.hero-content h2 {
    /* メインタイトルを小さめに調整 (見切れ対策) */
    font-size: clamp(30px, 4.8vw, 34px);
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.hero-content h4 {
    /* サブタイトル文字サイズ可変 */
    font-size: clamp(12px, 3vw, 17px);
    color: #f0f0f0;
    margin: 8px 0 20px;
    font-weight: normal;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
}

.date-badge {
    color: #ffffff;
    font-size: clamp(14px, 3.5vw, 19px);
    font-weight: normal;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);    
}

.hero .theme {
    max-width: none;
    margin: 15px 0 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero .theme h2 {
    font-size: clamp(11px, 2.5vw, 13px);
    color: #f0f0f0;
    margin-bottom: 4px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.hero .theme h1 {
    /* 長いテーマ文が絶対に見切れないよう小さめに調整 */
    font-size: clamp(11px, 3.6vw, 22px);
    color: #ffffff;
    font-weight: bold;
    margin-top: 0;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

/* =========================================
   カウントダウン（画像の上に文字を綺麗に重ねる）
========================================= */
/* =========================================
   3. カウントダウン（ロゴ拡大＆文字中央配置）
========================================= */
.countdown {
    width: calc(100% - 40px);
    max-width: 600px;
    margin: 40px auto !important;
    box-sizing: border-box;
    text-align: center;
    aspect-ratio: 1 / 1;
    padding: 20px;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), 
        url("img/official-logo.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.countdown.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* ロゴを見せつつ文字を読みやすくする薄い膜（中心からグラデーション） */
.countdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 中心をうっすら白くして文字をくっきりさせつつ、ロゴもはっきり見せる */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.4) 70%);
    z-index: 1;
}

/* 文字コンテンツ（ロゴの真ん中に収める） */
.countdown-content {
    position: relative;
    z-index: 2;
    padding: 10px;               /* ロゴからはみ出ないように余白を設定 */
    width: 100%;
}

.countdown-content h3 {
    font-size: clamp(13px, 3.2vw, 40px);
    font-weight: bold;
    color: #222222;
    margin-bottom: 4px;
    /* 文字の背景に白い光彩をつけて可読性をアップ */
    text-shadow: 0 0 6px #ffffff, 0 0 6px #ffffff;
}

#timer {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2px;
}

#days {
    font-size: clamp(52px, 14vw, 85px); /* 数字をより大きく印象的に */
    font-weight: bold;
    line-height: 1;
    color: #b8860b;
    text-shadow: 0 0 8px #ffffff, 0 0 8px #ffffff;
}

#countdown-unit {
    font-size: clamp(16px, 4vw, 50px);
    font-weight: bold;
    color: #414141;
    text-shadow: 0 0 6px #ffffff;
}
/* =========================================
   4. アイテム（パンフレット・タイムテーブル）
========================================= */
.items {
    display: flex;
    gap: 100px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.items img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.items figcaption {
    text-align: center;
    margin-top: 8px;
    font-size: clamp(11px, 2.5vw, 14px);
    color: #333333;
}

.items a,
.items a:visited {
    text-decoration: none !important;
    color: inherit !important;
}

.pamphlet, .timetable {
    margin: 20px auto;
    padding: 0;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
    display: block;
    text-decoration: none;
    color: inherit;
}

.pamphlet:hover, .timetable:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

figcaption {
    font-size: clamp(12px, 2.5vw, 16px);
    color: #333333;
    margin-top: 8px;
    text-align: center;
}   
.items figure {
    border: 3px solid #d0aa00;
    border-radius: 10px;
}
/* =========================================
   5. コンテンツセクション共通
========================================= */
 .store, .event, 
.student_stage, .artist_stage {
    position:relative;
    text-align: center;
    max-width: 800px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff7cc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.store, .event, .student_stage, .artist_stage, .access, .notice {
    scroll-margin-top: 140px;
}

.store h2, .event h2, .student_stage h2, .artist_stage h2 {
    position: absolute;
    z-index: 0;
    top: -55px;                /* パターン2の場合は -35px など */
    left: 15px;
    margin: 0;
    text-align: left;
    border-bottom:solid 5px #750000;
    font-size: clamp(30px, 4.5vw, 28px);
    text-shadow: 3px 3px 4px silver;
}

.store h3, .event h3, .student_stage h3, .artist_stage h3 {
    font-size: clamp(13px, 3vw, 18px);
}

.store p, .event p, .student_stage p, .artist_stage p {
    padding-top:15px;
    font-size: clamp(15px, 2.8vw, 15px);
    line-height: 2.0
}

.store img, .event img, .student_stage img, .artist_stage img {
     filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}

/* ボタンリンク */

.btn-link2 {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    font-size: clamp(12px, 2.6vw, 15px);
    background-color: #967800;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-link2:hover {
    background-color: #bf360c;
}

/* News欄のCSS修正版 */
.notice {
    position: relative;
    text-align: center;
    max-width: 980px;
    margin: 100px auto;
    padding: 20px 14px 40px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1;
}
.notice .header { background: #7d0000; color: white; padding: 15px; text-align: center; }
.notice .header h1 { margin: 0; font-size: clamp(16px, 3.8vw, 22px); }
.notice .container { max-width: 980px; margin: 0 auto; padding: 20px 14px 40px; }
.notice .notice-card { background: white; border: 1px solid #dbe4ea; border-left: 5px solid #00184d; padding: 16px; margin-bottom: 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05); }
.notice .notice-card.important { border-left-color: #ff0000; }
.notice .notice-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.notice .badge-important { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: #dc2626; color: white; font-size: clamp(10px, 2.2vw, 12px); font-weight: 700; }
.notice .notice-date { font-size: clamp(10px, 2.2vw, 12px); color: #64748b; font-weight: 700; }
.notice .notice-title { margin: 0 0 10px; font-size: clamp(14px, 3.2vw, 18px); }
.notice .notice-body { font-size: clamp(12px, 2.8vw, 14px); line-height: 1.8; color: #334155; }
.notice .notice-images { display: grid; align-items: center; gap: 10px; margin-top: 14px; }
.notice .notice-images img { width: 100%; max-width: 720px; border-radius: 8px; border: 1px solid #dbe4ea; }
.notice .notice-pdfs { display: grid; gap: 8px; margin-top: 14px; }
.notice .pdf-link { display: inline-flex; align-items: center; width: fit-content; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; text-decoration: none; font-size: clamp(11px, 2.5vw, 13px); font-weight: 700; }
.notice .empty-msg { color: #64748b; text-align: center; padding: 30px 15px; font-size: clamp(12px, 2.8vw, 14px); }

/* =========================================
   6. アクセスエリア
========================================= */
.access {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 50px;
    background: linear-gradient(135deg, #d0aa00b6, #fff9e6, #d0aa00ab);
}

.map {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map img {
    width: 500px;
    height: auto;
    object-fit: contain;
    margin-top: 10px;
}

.map figcaption {
    text-align: center;
    margin-top: 10px;
    font-size: clamp(12px, 2.8vw, 16px);
    color: #362828;
}

.access h2 {
    padding-bottom: 20px;
    text-align: center;
    font-size: clamp(20px, 4.5vw, 30px);
    text-shadow: 3px 3px 4px silver;
    font-weight: bold;
    color: #232323;
    border-bottom: #00184d;
}

.access h3, .access p  {
    text-align: center;
    line-height: 20px;
    font-size: clamp(11px, 2.5vw, 16px);
}

.access-attention h4 {
    text-align: center;
    font-size: clamp(18px, 4.5vw, 25px);
    text-shadow: 3px 3px 4px silver;
    font-weight: bold;
    color: #232323;
}

.attention-list{
    list-style: none;
    padding: 0;
    margin: 10px auto;
    display: inline-block; /* 文字幅に合わせて縮み、画面中央に配置される */
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    box-sizing: border-box;        /* borderやpaddingを横幅に含める */
    width: 90%;                    /* スマホでは画面幅の90%に収める */
    max-width: 800px;
    border: 5px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.attention-list li{
    margin-bottom: 8px;
    font-size: clamp(15px, 2.5vw, 20px);
    color: #333333;
    line-height: 1.6;
    padding-left: 0;
    padding: 8px;
    font-weight: bold;
}

.attention-list li::before {
    content: "※";
    margin-right: 0.2em; /* 「※」と本文の間の微小なすき間 */
}

.sponsoring-conpany {
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #000512, #0c114a, #000315);
}

.sponsoring-conpany h2 {
    font-size: clamp(10px, 4.5vw, 20px);
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
}

.sponsoring-conpany p {
    font-size: clamp(5px, 2.5vw, 14px);
    color: #ffffff;
    margin-bottom: 20px;
}

.sponsoring-conpany img {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin: 10px;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}

/* =========================================
   7. フッター
========================================= */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #7b0000dc;
    color: #ffffff;
    font-size: clamp(14px, 2.5vw, 20px);
}

.footer-survey {
    text-align: center;
    margin-bottom: 20px;
}

.footer-survey h3, .footer-contact h3, .link-hp h3{
    font-size: clamp(14px, 3.2vw, 20px);
    margin-bottom: 8px;
}

.link-icon {
  display: flex;
  text-align: center;
  justify-content: center;
  gap: 30px;
}

.link-icon img{
    filter:invert(100%) sepia(61%) saturate(0%) hue-rotate(229deg) brightness(107%) contrast(101%);
}
.link-hp{
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-contact {
    text-align: center;
    margin-bottom: 20px;
    border: 3px solid #ffffff;
    margin: 10px;
    padding: 10px;
}

.footer-contact p {
    font-size: clamp(11px, 2.5vw, 14px);
}

.footer-contact a {
    color: #ffffff;
}

.footer-bottom p {
    font-size: clamp(10px, 2.2vw, 13px);
}

/* =========================================
   画像拡大モーダル
========================================= */
/* 拡大可能な要素のマウスカーソル指定 */
/* =========================================
   拡大可能要素のカーソル設定（全子要素に強制適用）
========================================= */
.zoomable,
.zoomable * {
    cursor: pointer !important;
}

/* ホバー時に少し薄くしてクリックできることを強調 */
.zoomable:hover {
    opacity: 0.85;
}

/* モーダル背景（暗転エリア） */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* 最前面に配置 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* モーダル表示状態 */
.image-modal.is-open {
    display: flex;
    opacity: 1;
}

/* 拡大画像本体 */
.modal-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.25s ease-out;
}

/* 閉じるボタン (右上 「×」) */
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}
.modal-close:hover {
    color: #b8860b;
}

/* 拡大時のふわっと広がるアニメーション */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   8. スマホ用レスポンシブ (メディアクエリ)
========================================= */
@media (max-width: 900px) {
    .header-logo {
        height: 40px !important;
    }
    .items {
        gap: 20px !important;
        flex-direction: column;
    }
    .maps, .map {
        gap: 20px !important;
        flex-direction: column;
    }
    .section-img, .map figure img {
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    #hamburger {
        display: flex !important;
    }

    #header-nav {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 75% !important;
        height: 100vh !important;
        background-color: #0a192f !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 80px 30px 30px !important;
        gap: 20px !important;
        transition: right 0.3s ease !important;
        z-index: 9999 !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    #header-nav.active {
        right: 0 !important;
    }

    #header-nav a {
        color: #ffffff;
        font-size: clamp(14px, 4vw, 18px);
    }

    #hamburger.active span {
        background-color: #ffffff;
    }
}

/* スマホ表示（画面幅768px以下）のときだけ改行を有効化する */
@media screen and (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}