/* ==========================================
   1. 基本設定・リセットCSS
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
    color: #333333;
    background-color: #b9e4f7;
    overflow-x: clip; /* hidden を clip に変更（または行自体を削除） */
    line-height: 1.6;
}

/* ==========================================
   2. オープニングアニメーション画面
   ========================================== */
.opening-screen {
    position: fixed;
    inset: 0;
    background-color: #b9e4f7;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.opening-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.opening-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* ロゴの枠枠 */
.opening-logo-box {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

/* カラフルな6色の斜めストライプ枠 */
.opening-colors {
    position: absolute;
    inset: -60px;
    display: flex;
    flex-direction: column;
    /* 傾きを logo.jpg と同じ「右上がり」に変更 */
    transform: rotate(35deg);
    justify-content: center;
}

.c-stripe {
    height: 18%;
    width: 250%;
    margin: -1px 0;
    /* 右下（画面外）の初期位置 */
    transform: translate(180%, 40%);
    opacity: 0;
    /* ↖ 方向へ滑り込むアニメーション */
    animation: slideUpLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 一番右下の色（黄）から順番に ↖ へ向かって出現 */
.color-6 { background-color: #ffea00; animation-delay: 0.10s; } /* 黄 */
.color-5 { background-color: #ffaa00; animation-delay: 0.22s; } /* オレンジ */
.color-4 { background-color: #e63946; animation-delay: 0.34s; } /* 赤 */
.color-3 { background-color: #7b2cbf; animation-delay: 0.46s; } /* 紫 */
.color-2 { background-color: #0072ff; animation-delay: 0.58s; } /* 青 */
.color-1 { background-color: #38ef7d; animation-delay: 0.70s; } /* 緑 */

/* 右下から定位置 (0, 0) へ ↖ 方向にまっすぐ滑り込む */
@keyframes slideUpLeft {
    0% {
        transform: translate(180%, 40%);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0);
        opacity: 1;
    }
}

/* 鳥の画像：すべての色が揃った後に登場 */
.opening-bird-img {
    position: absolute;
    inset: 0;
    width: 85%;
    height: 85%;
    margin: auto;
    object-fit: contain;
    z-index: 2;
    opacity: 0;
    transform: scale(0.6) translateY(20px);
    animation: birdAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s forwards;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

@keyframes birdAppear {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* サブテキストのふわっとした表示 */
.opening-text {
    font-size: 1.2rem;
    color: #0077b6;
    letter-spacing: 0.2em;
    font-weight: bold;
    opacity: 0;
    animation: openingFadeIn 0.6s ease-out 1.6s forwards;
}

@keyframes openingFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================
   3. 固定背景アニメーション
   ========================================== */
.animation-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: #b9e4f7;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 999px;
    will-change: transform;
}

.bar {
    width: clamp(220px, 50vw, 520px);
    height: clamp(22px, 8vw, 42px);
    border-radius: 4px;
    transform-origin: center;
    will-change: transform, opacity;
}

.blue   { background: #082be8; }
.red    { background: #ff1515; }
.yellow { background: #ffd66b; }

.bar-blue {
    left: 42%;
    top: 84%;
    animation: diagonalBand 3.2s cubic-bezier(.42,0,.58,1) infinite;
}

.bar-red {
    left: 49%;
    top: 77%;
    animation: diagonalBand 3.2s cubic-bezier(.42,0,.58,1) infinite;
}

.bar-yellow {
    left: 56%;
    top: 70%;
    animation: diagonalBand 3.2s cubic-bezier(.42,0,.58,1) infinite;
}

@keyframes diagonalBand {
    0%, 8% {
        transform: translate(430px, 430px) rotate(48deg);
        opacity: 0;
    }
    16% {
        transform: translate(300px, 300px) rotate(48deg);
        opacity: 1;
    }
    28% {
        transform: translate(120px, 120px) rotate(48deg);
        opacity: 1;
    }
    58% {
        transform: translate(-260px, -260px) rotate(48deg);
        opacity: 1;
    }
    72% {
        transform: translate(-440px, -440px) rotate(48deg);
        opacity: 0;
    }
    100% {
        transform: translate(-460px, -460px) rotate(48deg);
        opacity: 0;
    }
}

.small {
    width: 32px;
    height: 9px;
    animation: none !important;
}

.s1 { left: 9%; top: 70%; transform: rotate(48deg); }
.s2 { left: 83%; top: 25%; transform: rotate(48deg); }
.s3 { left: 49%; top: 13%; transform: rotate(48deg); }
.s4 { left: 17%; top: 18%; transform: rotate(48deg); }
.s5 { left: 78%; top: 62%; transform: rotate(48deg); }

.circle {
    position: absolute;
    width: 74px;
    height: 74px;
    border: 4px solid;
    border-radius: 50%;
    background: transparent;
    will-change: transform, opacity;
}

.circle-blue {
    left: 4%;
    top: 39%;
    border-color: #2458df;
    animation: circleBurst 3.6s cubic-bezier(.4,0,.2,1) infinite;
}

.circle-pink {
    right: 6%;
    top: 45%;
    border-color: #e76c8c;
    animation: circleBurst 3.6s cubic-bezier(.4,0,.2,1) -1.2s infinite;
}

.circle-yellow {
    left: 38%;
    top: 85%;
    border-color: #e7d84f;
    animation: circleBurst 3.6s cubic-bezier(.4,0,.2,1) -2.4s infinite;
}

@keyframes circleBurst {
    0% { transform: scale(.72); opacity: 0; }
    10% { transform: scale(.88); opacity: .9; }
    28% { transform: scale(1); opacity: 1; }
    55% { transform: scale(1.08); opacity: .82; }
    78% { transform: scale(1.18); opacity: .42; }
    100% { transform: scale(1.28); opacity: 0; }
}

.arc {
    position: absolute;
    width: 360px;
    height: 360px;
    border: 3px solid transparent;
    border-top-color: #dfd95c;
    border-left-color: #dfd95c;
    border-radius: 50%;
    opacity: .65;
    animation: arcMove 8s ease-in-out infinite;
}

.arc1 { left: -110px; top: 70%; transform: rotate(25deg); }
.arc2 { right: -100px; top: 35%; border-top-color:#e77791; border-left-color:#e77791; animation-delay:-3s; }
.arc3 { left: 35%; top: 25%; border-top-color:#6c8de8; border-left-color:#6c8de8; animation-delay:-6s; }

@keyframes arcMove {
    from { transform: rotate(0deg) translate(0,0); }
    to   { transform: rotate(360deg) translate(20px,-10px); }
}

/* ==========================================
   4. ヘッダー (Header Nav)
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* ヘッダー左上のロゴ */
.header-brand {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-brand img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.header-nav a {
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 5px 0;
}

.header-nav a:hover {
    color: #0096c7;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0096c7;
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* ==========================================
   5. ヒーローセクション (#home)
   ========================================== */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    background: none;
    box-shadow: none;
    max-width: none;
}

.hero-card {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px 70px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    max-width: 92%;
}

.hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #0077b6;
    margin-bottom: 12px;
}

/* 鶴命の文字サイズを大幅アップ */
.hero-title {
     font-family: 'Zen Kurenaido', sans-serif;
    /* font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif; */
    font-size: clamp(4.5rem, 14vw, 10rem);
    font-weight: 900;
    letter-spacing: 0.22em;
    color: #000;
    margin: 0;
    line-height: 1.05;
    text-indent: 0.22em; /* 字間（letter-spacing）による右ズレのバランス調整 */
}

/* キャッチフレーズのスタイル */
.hero-catchphrase {
    font-size: clamp(1.1rem, 2.8vw, 1.8rem);
    font-weight: bold;
    color: #0077b6;
    margin-top: 20px;
    letter-spacing: 0.15em;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    animation: bounce 2s infinite;
}

.scroll-down::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ==========================================
   6. セクション共通レイアウト
   ========================================== */
main {
    position: relative;
    z-index: 10;
}

section {
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 40px 25px;
    background-color: rgba(234, 244, 252, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 90px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.3rem;
    color: #333333;
    margin: 0;
    font-weight: bold;
    letter-spacing: 2px;
    display: inline-block;
    padding: 0 8px;
}

#date .section-header h2 { background: linear-gradient(transparent 60%, #ef9090 60%); }
#news .section-header h2 { background: linear-gradient(transparent 60%, #eaef90 60%); }
#logo .section-header h2 { background: linear-gradient(transparent 60%, #90efb3 60%); }
#schedule .section-header h2 { background: linear-gradient(transparent 60%, #90e0ef 60%); }
#map .section-header h2 {background: linear-gradient(transparent 60%, #efc490 60%);}
#access .section-header h2 { background: linear-gradient(transparent 60%, #c490ef 60%); }

/* ==========================================
   7. 各セクション詳細スタイル
   ========================================== */
/* DATE */
.date-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
    border-top: 5px solid #d80000;
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.date-text {
    font-size: 2.2rem;
    color: #000000;
    display: inline-block;
    background: linear-gradient(transparent 60%, #ef90909c 60%);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.day-of-week {
    font-size: 1.4rem;
    color: #292a2a;
    margin-left: 5px;
}

.time-text {
    font-size: 1.8rem;
    color: #2b2b2b;
    font-weight: bold;
    display: inline-block;
    background: linear-gradient(transparent 60%, #ef90909c 60%);
    letter-spacing: 2px;
}

/* NEWS */
.news-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
    border-top: 5px solid #d1d800;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    padding: 15px 5px;
    border-bottom: 1px solid #e0f2fe;
    border-top: 1px solid #e0f2fe;
    display: flex;
    align-items: center;
    gap: 20px;
}

.news-date {
    font-size: 0.95rem;
    color: #0096c7;
    font-weight: bold;
    white-space: nowrap;
}

.news-title {
    font-size: 1rem;
    color: #333333;
}

.news-btn-wrapper {
    text-align: center;
    margin-top: 25px;
}

.news-btn {
    display: inline-block;
    padding: 10px 28px;
    background-color: #ffd166;
    color: #333333;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.news-btn:hover {
    background-color: #ffb703;
    transform: translateY(-2px);
}

/* LOGO */
.logo-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
    border-top: 5px solid #00d897;
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo-image-placeholder {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    background-color: #f8fdff;
    border: 2px dashed #00b4d8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0096c7;
    font-weight: bold;
    font-size: 0.9rem;
}

.logo-text-area {
    flex: 1;
}

.logo-title {
    font-size: 1.3rem;
    color: #0077b6;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px dashed #90e0ef;
}

/* 追加：span単位でしか改行されないようにする */
.logo-title span {
    display: inline-block;
}

.logo-description {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.7;
    margin: 0;
}
/* ==========================================
   MAP (校内マップ)
   ========================================== */
.map-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
    border-top: 5px solid #f48d26;
}

.map-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* マップ画像のサイズ・デザイン調整 */
.map-image {
    width: 100%;
    max-width: 800px; /* PC画面で見やすい最大幅 */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* スマホ閲覧時の余白調整 */
@media (max-width: 768px) {
    .map-box {
        padding: 18px 15px;
    }
}


/* ==========================================
   MAP視点移動ボタン
   ========================================== */
#floor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-wrap: wrap; /* スマホ画面で折り返す */
}

#floor .location {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0077b6;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
    transition: all 0.25s ease;
}

/* ホバー・タップ時の演出 */
#floor .location:hover {
    background-color: #0096c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 119, 182, 0.35);
}

#floor .location:active {
    transform: translateY(0);
}

/* SCHEDULE */
.schedule-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.schedule-box {
    flex: 1 1 380px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
    border-top: 5px solid #00b4d8;
}

.schedule-box h3 {
    color: #0077b6;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #90e0ef;
    font-size: 1.2rem;
    text-align: center;
}

.event-table {
    width: 100%;
    border-collapse: collapse;
}

.event-table th, .event-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.event-table tr:last-child td {
    border-bottom: none;
}

.event-table tr:hover {
    background-color: #f8fdff;
}

.time-col {
    width: 35%;
    color: #0096c7;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.prog-col {
    width: 65%;
    font-weight: bold;
    color: #2b2b2b;
}

.prog-desc {
    display: block;
    font-size: 0.8rem;
    color: #777;
    font-weight: normal;
    margin-top: 3px;
}

.visitor-notes {
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
    border-left: 5px solid #0096c7;
}

.visitor-notes h4 {
    margin: 0 0 10px 0;
    color: #0077b6;
    font-size: 1.1rem;
}

.visitor-notes ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.9rem;
    color: #555;
}

.visitor-notes li {
    margin-bottom: 8px;
}

/* ACCESS */
.access-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.1);
    border-top: 5px solid #9b51e0;
}

.access-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.access-item {
    display: flex;
    gap: 15px;
    font-size: 0.95rem;
}

.access-label {
    font-weight: bold;
    color: #0077b6;
    min-width: 80px;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f4f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    border: 1px solid #d0dbe5;
}

/* FOOTER */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    color: #555;
    font-size: 0.85rem;
    position: relative;
    z-index: 10;
}

/* ==========================================
   8. レスポンシブ対応 (Mobile)
   ========================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        padding: 40px 20px;
        transition: 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    }

    .header-nav.active {
        right: 0;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .hero-card {
        padding: 35px 25px;
    }

    #logo .logo-content {
        flex-direction: column;
        text-align: center;
    }

    #logo .logo-image-placeholder {
        width: 100%;
        height: 100%;
        max-height: 250px;
        max-width: 250px;
        margin: 0 auto;
    }

    #news .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .access-item {
        flex-direction: column;
        gap: 5px;
    }
}

/* ==========================================
   9. EVENTS ページ専用スタイル
   ========================================== */
.events-page-main {
    padding-top: 100px;
    min-height: 85vh;
}

.events-hero-section {
    text-align: center;
    background: none !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
    padding: 20px 15px !important;
}

.events-page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: #333;
    letter-spacing: 4px;
    margin-bottom: 5px;
    background: linear-gradient(transparent 60%, #ffd66b 60%);
    display: inline-block;
    padding: 0 10px;
}

.events-page-sub {
    font-size: 1rem;
    color: #0077b6;
    font-weight: bold;
    margin-bottom: 30px;
}

/* タブボタン */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tab-btn {
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #0096c7;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0077b6;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: #0096c7;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 150, 199, 0.3);
    transform: translateY(-2px);
}

/* カードコンテナ */
.events-list-section {
    background: none !important;
    box-shadow: none !important;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* イベントカード本体 */
.event-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    gap: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 6px solid #0096c7;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* 手描きラフ案の交互配置（奇数・偶数） */
.event-card.reverse {
    flex-direction: row-reverse;
    border-left: none;
    border-right: 6px solid #ff1515;
}

/* ロゴエリア・プレースホルダー */
.event-logo-wrapper {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 3px dashed #0096c7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.event-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-logo-placeholder {
    font-weight: 900;
    font-size: 1.1rem;
    color: #0077b6;
    letter-spacing: 1px;
    text-align: center;
}

.event-logo-sub {
    font-size: 0.75rem;
    color: #555;
    margin-top: 2px;
}

/* テキスト詳細エリア */
.event-info {
    flex: 1;
}

.event-header-tag {
    display: inline-block;
    padding: 3px 12px;
    background-color: #e0f2fe;
    color: #0077b6;
    font-size: 0.82rem;
    font-weight: bold;
    border-radius: 12px;
    margin-bottom: 8px;
}

.event-title {
    font-size: 1.4rem;
    color: #2b2b2b;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-description {
    font-size: 0.95rem;
    color: #444444;
    line-height: 1.7;
}

/* スマホ対応 (レスポンシブ) */
@media (max-width: 768px) {
    .event-card,
    .event-card.reverse {
        flex-direction: column !important;
        text-align: center;
        padding: 25px 20px;
        border-left: none;
        border-right: none;
        border-top: 5px solid #0096c7;
    }

    .event-card.reverse {
        border-top-color: #ff1515;
    }

    .event-logo-wrapper {
        width: 120px;
        height: 120px;
    }
}

/* スケジュール内のリンクスタイル */
.schedule-link {
    color: #0077b6;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.2s ease;
}

.schedule-link:hover {
    color: #00b4d8;
}

/* 固定ヘッダー（高さ70px）にカードが重ならないよう余白を設定 */
.event-card {
    scroll-margin-top: 90px;
}

/* ==========================================
   タブ切り替えエリア（フローティング・すりガラスデザイン）
   ========================================== */
.tab-container {
    position: sticky;
    top: 75px; /* ヘッダーより少し下に配置 */
    z-index: 100;
    
    display: flex;
    justify-content: center;
    gap: 8px;
    
    /* 横幅を絞って中央寄せし、丸みのあるバーにする */
    width: fit-content;
    max-width: 90%;
    margin: 10px auto 30px auto;
    padding: 6px;
    
    /* すりガラス感と薄い陰影 */
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.12);
}

/* タブボタン */
.tab-btn {
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    border: none; /* 枠線をなくしてスッキリ */
    background-color: transparent;
    color: #0077b6;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: none;
}

/* ホバー時 */
.tab-btn:hover {
    background-color: rgba(0, 150, 199, 0.1);
    color: #0096c7;
}

/* 選択中のタブ */
.tab-btn.active {
    background-color: #0096c7;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 150, 199, 0.3);
}

/* スモール画面（スマホ）用の微調整 */
@media (max-width: 768px) {
    .tab-container {
        top: 72px;
        padding: 4px;
        gap: 4px;
    }
    .tab-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}
