/* ============================================================
   1. 変数・全体設定
   ============================================================ */
:root {
    --medical-blue: #00a8cc;    
    --medical-green: #7fd6c2;   
    --accent-red: #ff4757;      
    --bg-light: #f4f7f6;        
    --text-dark: #2f3542;      
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* DNAリピート背景（うっすらと配置） */
.dna-bg {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20 10 Q 50 50 80 10 M20 90 Q 50 50 80 90" stroke="rgba(0, 168, 204, 0.04)" stroke-width="2" fill="none"/></svg>');
}
/* ============================================================
   動的DNA背景アニメーション (Dynamic DNA Background)
   ============================================================ */
/* 既存の静的なSVG背景を無効化 */
.dna-bg {
    background-image: none !important;
}

/* 動的背景のコンテナ */
.dna-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; /* コンテンツのクリック操作などを妨げないようにする */
    background: var(--bg-light); 
}

/* DNAの1本のらせん（塩基対の束） */
.dna-strand {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 12px;
    perspective: 1000px;
    opacity: 0.2; /* 控えめな透明度 */
    filter: blur(1.5px); /* 少しぼかして背景の奥行きを演出 */
}

/* DNAの塩基対（1本の横線と両端の丸） */
.dna-base-pair {
    position: relative;
    width: 160px;
    height: 2px;
    background: rgba(0, 168, 204, 0.4);
    animation: rotateDNA 4s linear infinite;
    transform-style: preserve-3d;
}

/* 両端の丸（塩基） */
.dna-base-pair::before,
.dna-base-pair::after {
    content: '';
    position: absolute;
    top: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dna-base-pair::before {
    left: 0;
    background: var(--medical-blue);
    box-shadow: 0 0 10px var(--medical-blue);
}

.dna-base-pair::after {
    right: 0;
    background: var(--medical-green);
    box-shadow: 0 0 10px var(--medical-green);
}

/* 3D回転アニメーション */
@keyframes rotateDNA {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}


/* ============================================================
   2. 心拍ローディング
   ============================================================ */
/* ============================================================
   2. 豪華版 医歯学系カスタム ローディングアニメーション
   ============================================================ */
/* ============================================================
   2. 究極の心拍波形（ECG）ローディング
   ============================================================ */
#loader {
    position: fixed;
    inset: 0;
    background: #001a20; /* 医療モニター,深い紺色 */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* 波形コンテナ */
.ecg-container {
    position: relative;
    width: 300px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* 背景の静かなグリッド線 */
.ecg-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 168, 204, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 168, 204, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 心拍波形本体（SVG） */
.ecg-waveform {
    position: relative;
    width: 100%;
    height: 100%;
    /* 波形を描写したSVGをマスクとして使用 */
    background: white;
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" preserveAspectRatio="none"><path d="M0 15 L35 15 L38 12 L42 25 L48 2 L52 15 L100 15" stroke="black" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / 100% 100%;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 30" preserveAspectRatio="none"><path d="M0 15 L35 15 L38 12 L42 25 L48 2 L52 15 L100 15" stroke="black" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / 100% 100%;
}

/* 波形を走る「光の走査」 */
.ecg-waveform::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    /* 左側が明るい光のグラデーション */
    background: linear-gradient(to right, transparent 0%, #fff 50%, #00a8cc 55%, transparent 100%);
    animation: scanLine 1.8s infinite linear;
    box-shadow: -20px 0 30px rgba(255,255,255,0.4);
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* テキスト：心拍に合わせて静かに明滅 */
.loader-content p {
    color: white;
    font-size: 1rem;
    letter-spacing: 0.3em;
    font-weight: 300;
    opacity: 0.8;
    animation: textGlow 1.8s infinite;
}

@keyframes textGlow {
    0%, 100% { opacity: 0.4; text-shadow: 0 0 0px white; }
    40%, 60% { opacity: 1; text-shadow: 0 0 10px rgba(0, 168, 204, 0.8); }
}
/* ============================================================
   3. ナビゲーション
   ============================================================ */
.navbar {
    position: fixed; top: 0; width: 100%; height: 70px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px);
    z-index: 1000; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; }
.nav-logo { color: var(--medical-blue); font-weight: 900; text-decoration: none; font-size: 1.2rem; }
.nav-menu ul { display: flex; list-style: none; gap: 20px; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: bold; font-size: 0.9rem; transition: 0.3s; position: relative; }
.nav-menu a:hover { color: var(--medical-blue); }
.nav-menu a::after { content: ""; position: absolute; bottom: -5px; left: 50%; width: 0; height: 2px; background: var(--medical-blue); transition: 0.3s; transform: translateX(-50%); }
.nav-menu a:hover::after { width: 100%; }

/* ============================================================
   4. ヒーローセクション（静的・多層レイアウト）
   ============================================================ */
.hero-gateway {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff; /* クリーンな白ベース */
    position: relative;
    padding-top: 70px; /* ナビゲーションの高さ分 */
}

/* 画像を囲む「フレーム」 */
.gateway-bg-frame {
    position: relative;
    width: 90%;
    max-width: 1400px; /* PCでの最大幅 */
    height: 75vh;     /* 画面の75%を使用 */
    border-radius: 20px;
    overflow: hidden; /* 画像がはみ出ないように */
    box-shadow: 0 15px 40px rgba(0, 168, 204, 0.15); /* 医療系の青い影 */
    background: #000; /* 画像を少し暗くするためのベースカラー */
}

/* 背景画像そのもの（Gemini_Generated_Image_s3uryks3uryks3ur.jpg） */
.gateway-bg-frame > img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* フレームいっぱいに広げる */
    object-position: center 30%; /* 看板が中央に来るように少し上寄りに */
    
    /* 修正箇所：画像を視認性を高めるために少し暗く、彩度を下げる */
    filter: brightness(0.6) contrast(1.1) saturate(0.8);
}

/* 画像上のコンテンツ */
.gateway-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 中央に配置 */
    text-align: center;
    color: var(--white);
    padding: 40px;
}

/* フェスティバルのロゴ画像 */
.festival-logo {
    margin-bottom: 25px;
}

.festival-logo img {
    max-width: 380px; /* ロゴのサイズ */
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.5)); /* 影をつけて分離 */
}

/* テキストエリア */
.festival-text h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 900;
    margin: 10px 0 15px;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6); /* 視認性確保 */
}

.festival-text p {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.event-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--medical-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* スクロールダウンの案内 */
.gateway-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.gateway-scroll i {
    margin-top: 5px;
    animation: scrollDown 1.5s infinite ease-in-out;
}

@keyframes scrollDown {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 0.7; }
}

/* スマホ表示の微調整 */
@media (max-width: 768px) {
    .gateway-bg-frame {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    .festival-logo img {
        max-width: 250px;
    }
}
/* ============================================================
   5. コンテンツ・セクションパーツ
   ============================================================ */
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.container { width: 90%; max-width: 1000px; margin: 0 auto; }
.section-title { text-align: center; color: var(--medical-blue); margin-bottom: 40px; }
.section-title i { margin-right: 12px; }

/* アクセス */
.access-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.access-map { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.highlight-box { background: #fff5f5; padding: 20px; border-left: 5px solid var(--accent-red); border-radius: 4px; }
.highlight-box h4 { color: var(--accent-red); margin-bottom: 10px; }

/* カード & ボタン */
.project-card { background: white; border-radius: 15px; border-top: 5px solid var(--medical-blue); padding: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.btn-sm { background: var(--medical-blue); color: white; text-decoration: none; padding: 8px 20px; border-radius: 20px; font-weight: bold; }
.tab-btn { padding: 10px 25px; border: 2px solid var(--medical-blue); background: transparent; color: var(--medical-blue); border-radius: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.tab-btn.active { background: var(--medical-blue); color: white; }
.tab-content { display: none; }
.tab-content.active { display: block; }
/* ============================================================
   5. プロジェクト紹介 (メインページ用カード)
   ============================================================ */
.project-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.summary-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 168, 204, 0.1);
}

.summary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 168, 204, 0.15);
}

/* カード上部の画像エリア */
.card-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* サンプル画像（実際の画像パスに変更してください） */
.dental-img { background-image: url('https://images.unsplash.com/photo-1588776814546-1ffcf47267a5?auto=format&fit=crop&w=500&q=80'); }
.medical-img { background-image: url('https://images.unsplash.com/photo-1576091160550-2173dad99978?auto=format&fit=crop&w=500&q=80'); }
.stage-img { background-image: url('https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?auto=format&fit=crop&w=500&q=80'); }

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--medical-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

/* カードの中身 */
.card-body {
    padding: 30px 25px 25px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* アイコンの浮き出し演出 */
.card-icon {
    position: absolute;
    top: -25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medical-blue);
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--medical-green);
}

.card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--medical-blue);
}

.card-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.location-tag {
    font-size: 0.8rem;
    color: var(--medical-blue);
    font-weight: bold;
}

/* セクションタイトル周りの微調整 */
.section-subtitle {
    text-align: center;
    color: #888;
    margin-top: -30px;
    margin-bottom: 50px;
    font-size: 0.95rem;
}
/* --- プロジェクトカードの統合デザイン --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* 企画カード：projects.htmlと同一のデザインを適用 */
.project-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    border-top: 5px solid var(--medical-blue); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

/* カテゴリバッジ */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: bold;
}
.badge i { margin-right: 5px; }

/* カテゴリ別カラー（一貫性を持たせる） */
.food { background: #ffa502; }     /* 模擬店 */
.stage { background: #ff4757; }    /* ステージ */
.exhibit { background: var(--medical-blue); } /* 展示・体験 */

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.location {
    font-size: 0.85rem;
    color: var(--medical-blue);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ボタン調整 */
.text-center { text-align: center; }
.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--medical-blue);
    color: var(--medical-blue);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-outline:hover {
    background: var(--medical-blue);
    color: white;
}
/* ============================================================
   6. タイムテーブル (Medical Timeline)
   ============================================================ */
.tab-area {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    flex: 1;
    max-width: 200px;
    padding: 12px;
    border: 2px solid var(--medical-blue);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-btn .tab-day { font-size: 0.8rem; font-weight: bold; color: var(--medical-blue); }
.tab-btn .tab-date { font-size: 1.1rem; font-weight: 900; }

.tab-btn.active {
    background: var(--medical-blue);
}
.tab-btn.active .tab-day, .tab-btn.active .tab-date { color: var(--white); }

/* タイムラインの本体 */
.medical-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.timeline-card {
    display: flex;
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 6px solid var(--medical-green);
    transition: 0.3s;
}

.timeline-card:hover { transform: scale(1.02); }

/* ハイライト */
.timeline-card.highlight { border-left-color: var(--medical-blue); }

/* 時間を表示する左側ボックス */
.time-box {
    background: #f0f7f9;
    padding: 20px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: 1px dashed #ddd;
}

.time-box .start { font-size: 1.4rem; font-weight: 900; color: var(--medical-blue); }
.time-box .duration { font-size: 0.75rem; color: #888; margin-top: 5px; }

/* イベント内容を表示する右側 */
.event-details { padding: 20px; flex-grow: 1; }

.event-category {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: bold;
    color: white;
}
.cat-ceremony { background: #6c757d; }
.cat-exhibit { background: var(--medical-green); }
.cat-special { background: #ff4757; }

.event-details h4 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-dark); }
.event-place { font-size: 0.85rem; color: #666; display: flex; align-items: center; gap: 5px; }
.event-place i { color: var(--medical-blue); }
/* ============================================================
   7. アクセスセクション (Access Layout)
   ============================================================ */
.access-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* PCでは左右分割 */
    gap: 40px;
    align-items: stretch;
}

/* マップエリア */
.access-map-area {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: var(--white);
    height: 500px; /* PCでの高さ */
}

.map-caption {
    padding: 15px;
    background: var(--white);
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #eee;
}

/* 交通詳細エリア */
.access-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.transport-item {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-left: 5px solid var(--medical-blue);
}

.transport-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.transport-header i {
    font-size: 1.2rem;
    color: var(--medical-blue);
}

.transport-header h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.transport-content {
    padding-left: 32px;
    font-size: 0.9rem;
    color: #555;
}

.transport-content ul {
    list-style: none;
    margin-top: 8px;
}

.transport-content li {
    margin-bottom: 5px;
}

.transport-content strong {
    color: var(--medical-blue);
}

.sub-text {
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

/* 警告ボックス（赤ベース） */
.transport-warning {
    display: flex;
    gap: 15px;
    background: #fff5f5;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #ffe3e3;
    margin-top: 10px;
}

.warning-icon {
    font-size: 1.5rem;
    color: #ff4757;
}

.warning-text h4 {
    color: #ff4757;
    font-size: 1rem;
    margin-bottom: 5px;
}

.warning-text p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

/* レスポンシブ */
@media (max-width: 900px) {
    .access-container {
        grid-template-columns: 1fr; /* スマホでは縦並び */
    }
    .access-map-area {
        height: 350px;
    }
}
/* ============================================================
   8. 協賛企業セクション (Sponsors Layout)
   ============================================================ */
.sponsor-container {
    padding-bottom: 50px;
}

.sponsor-tier {
    margin-bottom: 60px;
    text-align: center;
}

.tier-title {
    display: inline-block;
    padding: 5px 25px;
    border-radius: 50px;
    font-weight: bold;
    margin-bottom: 30px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ランク別カラー */
.tier-platinum { background: #e5e4e2; color: #555; border: 1px solid #ccc; }
.tier-gold { background: #fff9e6; color: #b8860b; border: 1px solid #f0e68c; }
.tier-silver { background: #f8f9fa; color: #777; border: 1px solid #ddd; }

/* ロゴグリッド */
.sponsor-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
}

/* プラチナ：大きく表示 */
.grid-platinum { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* ゴールド：中くらい */
.grid-gold { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* シルバー：標準 */
.grid-silver { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.sponsor-item {
    background: var(--white);
    border-radius: 12px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: var(--text-dark);
}

.sponsor-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 168, 204, 0.1);
    border-color: var(--medical-blue);
}

.sponsor-logo-placeholder {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ccc;
    margin-bottom: 5px;
}

.sponsor-name {
    font-size: 0.85rem;
    font-weight: bold;
}
/* ============================================================
   9. リッチフッター (Footer Styling)
   ============================================================ */
.footer {
    background: #2f3542; /* 深い紺色で信頼感を演出 */
    color: #f1f2f6;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* 情報を3カラムに分割 */
    gap: 40px;
    margin-bottom: 40px;
}

/* 連絡先情報 */
.footer-logo {
    color: var(--medical-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-title {
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--medical-green);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-details p {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #ced4da;
}

.contact-details a {
    color: #ced4da;
    text-decoration: none;
    transition: 0.3s;
}

.contact-details a:hover {
    color: var(--medical-blue);
}

/* リンク集 */
.footer-links h4, .footer-sns h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--medical-blue);
    padding-left: 10px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ced4da;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--medical-blue);
    padding-left: 5px;
}

/* SNSセクション */
.footer-sns p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: #ced4da;
}

.sns-icons {
    display: flex;
    gap: 15px;
}

.sns-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sns-link:hover {
    transform: translateY(-3px);
}

.x-icon:hover { background: #000000; }
.ig-icon:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* フッター下部 */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
}

/* スマホ対応 */
/* スマホ表示の微調整 */
@media (max-width: 768px) {
    .gateway-bg-frame {
        width: 92%; /* 画面端に少し余白を持たせる */
        height: 65vh; /* 高さを抑えて画像がズームされすぎるのを防ぐ */
        max-height: 550px; /* 縦長スマホでも大きくなりすぎないよう制限 */
        border-radius: 15px; /* スマホでもスタイリッシュな角丸を維持 */
    }
    
    .gateway-bg-frame > img {
        object-position: center; /* スマホでは画像の中央を基準に表示 */
    }

    .festival-logo img {
        max-width: 200px; /* ロゴをスマホの画面幅に合わせて少し縮小 */
        margin-bottom: 15px;
    }
    
    .festival-text h1 {
        font-size: 2rem; /* 日付のテキストサイズを調整 */
    }

    .gateway-scroll {
        bottom: 15px; /* スクロール案内の位置を少し上に */
    }
}
/* ============================================================
   背景の透明化とすりガラス調デザイン（グラスモーフィズム）
   ============================================================ */

/* 1. セクション自体の背景色（薄いグレー）を透明化 */
.bg-light {
    background-color: transparent !important;
}

/* 2. カード類を半透明にしてDNAを透けさせる */
.project-card,
.timeline-card,
.access-map-area,
.map-caption,
.transport-item,
.sponsor-item,
.tab-btn {
    /* 背景を70%の白にする */
    background: rgba(255, 255, 255, 0.7) !important; 
    /* すりガラス効果（後ろのDNAを綺麗にぼかす） */
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    /* ふちをほんのり白く光らせて立体感を出す */
    border: 1px solid rgba(255, 255, 255, 0.8) !important; 
    box-shadow: 0 8px 32px rgba(0, 168, 204, 0.05);
}

/* 3. タイムテーブルなどの色付きのパーツも少しだけ透けさせる */
.time-box {
    background: rgba(240, 247, 249, 0.6) !important;
}

.transport-warning {
    background: rgba(255, 245, 245, 0.7) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 71, 87, 0.2);
}
/* ============================================================
   モーダル（ポップアップ）用スタイル
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 26, 32, 0.4); /* 背景を医療系ダークカラーで暗く */
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1; visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%; max-width: 800px; max-height: 85vh;
    overflow-y: auto;
    
    /* すりガラス調（少し濃いめの白で読みやすく） */
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-radius: 20px; padding: 40px;
    
    /* 下からふわっと浮き上がるアニメーション */
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* 閉じるボタン */
.modal-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(0,0,0,0.05); border: none;
    font-size: 1.2rem; color: #666; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    transition: 0.3s;
}
.modal-close:hover {
    background: var(--accent-red); color: white; transform: rotate(90deg);
}

/* 文章のスタイル */
.modal-body h2 {
    color: var(--medical-blue); text-align: center; margin-bottom: 25px;
    border-bottom: 2px solid var(--medical-green); padding-bottom: 15px;
    font-size: 1.6rem;
}
.modal-body h3 {
    font-size: 1.1rem; color: var(--text-dark); margin: 25px 0 10px;
    border-left: 4px solid var(--medical-blue); padding-left: 10px;
}
.modal-body p, .modal-body li {
    font-size: 0.95rem; color: #444; line-height: 1.8; margin-bottom: 10px;
}
.modal-body ul { list-style: none; padding-left: 15px; }

/* スクロールバーを少し細く美しくする */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: rgba(0, 168, 204, 0.3); border-radius: 10px; }
.modal-content::-webkit-scrollbar-thumb:hover { background: rgba(0, 168, 204, 0.6); }

@media (max-width: 768px) {
    .modal-content { padding: 30px 20px; }
}