/* --- Variables & Reset --- */
:root {
    --primary-red: #bf2121;
    --primary-red-hover: #9e1b1b;
    --dark-navy: #0f172a;
    --bg-navy-dark: #1e293b; /* スマホメニュー背景用 */
    --text-main: #1a1a1a;
    --text-light: #4b5563;
    --bg-body: #ffffff;
    --bg-gray: #f8fafc;
    --border-color: #e2e8f0;
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --container-width: 1100px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-base);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
}

body.menu-open {
    overflow: hidden; /* メニュー展開時にスクロールさせない */
}

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

.container {
    width: 92%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo { font-size: 1.2rem; font-weight: 900; letter-spacing: 0.05em; position: relative; z-index: 1100; }

/* Desktop Nav */
.nav ul { display: flex; list-style: none; margin: 0; padding: 0; }
.nav li { margin-left: 25px; }
.nav a { font-size: 0.9rem; font-weight: 700; color: var(--text-main); }
.nav a:hover { color: var(--primary-red); }

/* Hamburger Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
}
.menu-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--dark-navy);
    position: absolute;
    left: 8px;
    transition: 0.4s;
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 28px; }

/* Active Hamburger (X) */
.menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background-color: #fff; }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background-color: #fff; }

/* --- Hero & Page Header --- */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.6)), 
                url('img/img_mv01.jpg');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin: 0;
}
.hero-title {
    opacity: 0;
    animation: heroFadeIn 0.9s ease-out forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
    }
}

/* ==============================
   Event Banner Section
   ============================== */

.event-banner-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.event-banner-link {
  display: block;
  text-decoration: none;
}

/* バナー本体 */
.event-banner {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* 画像 */
.event-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* hover演出（PC） */
.event-banner-link:hover .event-banner {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.event-banner-link:hover .event-banner-image {
  filter: brightness(1.03);
}

/* モバイルではhover無効 */
@media (hover: none) {
  .event-banner-link:hover .event-banner {
    transform: none;
    box-shadow: none;
  }

  .event-banner-link:hover .event-banner-image {
    filter: none;
  }
}



/* --- Section Title --- */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title span {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title h2 { font-size: 2.2rem; margin: 0; position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-red);
}

/* --- Philosophy Grid --- */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.philosophy-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.philosophy-card:hover { transform: translateY(-10px); }
.philosophy-image { width: 100%; height: 200px; object-fit: cover; }
.philosophy-body { padding: 30px; position: relative; flex-grow: 1; }
.philosophy-number { 
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem; 
    color: rgba(191, 33, 33, 0.08);
    font-weight: 900; 
    font-style: italic;
    line-height: 1;
}
.philosophy-body h3 { font-size: 1.4rem; margin: 0 0 15px; position: relative; z-index: 1; }
.philosophy-body p { color: var(--text-light); font-size: 0.95rem; margin: 0; position: relative; z-index: 1; }

/* --- Hanabi Section --- */
.section-hanabi { background: var(--bg-gray); padding: 100px 0; }
.hanabi-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.hanabi-visual { flex: 1.2; }
.hanabi-visual img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.hanabi-content { flex: 1; }
.hanabi-tag { color: var(--primary-red); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; }
.hanabi-content h2 { font-size: 2.2rem; margin: 15px 0 25px; line-height: 1.3; }
.hanabi-content p { color: var(--text-light); margin-bottom: 20px; }
.btn-hanabi {
    display: inline-block;
    background: var(--dark-navy);
    color: #fff;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 20px;
}
.btn-hanabi:hover { background: var(--primary-red); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* --- Activity & Message --- */
.section-history { background: #fff; }
.message-layout { display: flex; gap: 50px; align-items: center; margin-bottom: 80px; }
.message-image {
    flex: 1;
    height: 350px;
    background: url('img/img_project2.jpg') center/cover;
    border-radius: 20px;
}
.message-text { flex: 1; }
.message-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--dark-navy); }

.timeline { max-width: 800px; margin: 0 auto; }
.timeline-item {
    padding: 8px 0 4px 40px;
    border-left: 2px solid var(--border-color);
    position: relative;
    margin: 0;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 14px;
    width: 12px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 50%;
}

.timeline-year { font-weight: 900; color: var(--primary-red); margin-right: 20px; font-size: 1.1rem; }

/* --- Media History --- */
.media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-gray);
    padding: 40px;
}
.media-column h3 {
    font-size: 1.1rem;
    color: var(--dark-navy);
    border-left: 4px solid var(--primary-red);
    padding-left: 15px;
    margin-bottom: 20px;
}
p.media-column {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 2;
}
.media-history {
  margin: 0 0 0.25em;
  line-height: 1.4;
  font-size: 0.85rem;
}
.media-subhead {
  margin: 0.6em 0 0.25em;
  font-weight: 700;
  color: #c00;           /* チーム赤に寄せるなら */
  font-size: 0.95em;     /* 枠内なので少し控えめ */
  line-height: 1.2;
}

.other-activities-content {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px 40px;
    text-align: left;
}

/* ---marginset ---*/
.mb20 { margin-bottom: 20px;}

/* --- Volunteer Massive --- */
.volunteer-massive { display: flex; height: 350px; }
.volunteer-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 40px;
}
.v-red { background: var(--primary-red); }
.v-dark { background: var(--dark-navy); }
.volunteer-block h3 { font-size: 2rem; margin: 0 0 10px; }
.volunteer-block p { font-size: 1.1rem; margin: 0 0 30px; opacity: 0.9; }
.btn-outline {
    border: 2px solid #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    color: #fff;
}

/* --- Profile Table --- */
.profile-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}
.profile-table th, .profile-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.profile-table th { width: 200px; color: var(--text-light); text-align: left; }

/* --- Contact Form --- 
.form-container { max-width: 700px; margin: 0 auto; }
.form-group { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .form-group textarea {
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-gray);
}
.btn-submit {
    background: var(--primary-red);
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
 */


 #organization.section--alt {
  background: var(--bg-gray);
  padding: 80px 0;
}


/* ==============================
   SNS Section
   ============================== */

.section-sns {
  padding-bottom: 120px;
}

.sns-box {
  padding: 40px;
  background-color: #5d5f65;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 12px;
}

.sns-title {
  font-size: 1.5rem;
  margin: 0 0 5px;
  color: #ffffff;
}

.sns-lead {
  font-size: 0.9rem;
  margin: 0 0 25px;
  color: #ffffff;
}

/* SP調整（任意だけどおすすめ） */
@media (max-width: 992px) {
  .sns-box {
    padding: 28px 20px;
    border-radius: 10px;
  }

  .sns-title {
    font-size: 1.25rem;
  }
}


/* ==============================
   Clean Rinku Box
   ============================== */

.clean-rinku-box {
  /* 既存レイアウトに影響を与えないため、余計な指定はしない */
}

/* 見出し */
.clean-title {
  margin-top: 0;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #1e293b;
}

/* ラベル */
.clean-label {
  background: #e11d48;
  color: #ffffff;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 3px;
  display: inline-block;
}

/* 全体レイアウト */
.clean-content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

/* テキスト側 */
.clean-text {
  flex: 2;
}

.clean-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 15px;
}

.clean-info {
  background: #f8fafc;
  padding: 15px;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* 画像側 */
.clean-image {
  flex: 1;
  min-width: 100px;
}

.clean-image img {
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  display: block;
}

/* SP時は縦並び（※必要なら） */
@media (max-width: 992px) {
  .clean-content {
    flex-direction: column;
  }
}



 /* ==============================
   Contact Form Styling
   ============================== */

.contact-form-box {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.contact-form .form-row {
  margin-bottom: 20px;
}

.contact-form label,
.contact-form legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-navy);
}

/* 必須ラベル */
.req {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary-red);
  border-radius: 999px;
  vertical-align: middle;
}

/* 入力欄 */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-gray);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: rgba(191, 33, 33, 0.6);
  box-shadow: 0 0 0 4px rgba(191, 33, 33, 0.12);
}

/* 連絡方法（ラジオボタン） */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.choice input {
  margin: 0;
}

.choice span {
  font-weight: 700;
  color: var(--text-main);
}

/* 送信ボタン */
.form-actions {
  margin-top: 28px;
  text-align: center;
}

.btn-submit {
  display: inline-block;
  min-width: 220px;
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--primary-red);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* スマホ対応 */
@media (max-width: 992px) {
  .contact-form-box {
    padding: 24px 18px;
    border-radius: 14px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    width: 100%;
    min-width: 0;
  }
}




/* --- Footer --- */
.footer { background: #0a0a0a; color: #fff; padding: 80px 0 40px; text-align: center; }
.copyright { margin-top: 50px; opacity: 0.4; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }


/* --- フッターロゴ・SNS (移築分) --- */

/* 4. フッターロゴのスタイル */
.footer-logo {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 40px;
    font-weight: bold; /* 必要に応じて追加 */
}

/* 5. フッターSNSプレースホルダー */
/* --- フッターSNS（濃色背景・公式SVG・80px制御） --- */

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 24px;              /* 80pxなら少し広めが◎ */
  margin-bottom: 20px;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;            /* クリック領域 */
  height: 32px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-sns a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

/* SVG本体のサイズ制御 */
.footer-sns a svg {
  width: 28px;
  height: 28px;
  display: block;
}

.footer-sns a img {
  width: 28px;
  height: 28px;
  display: block;
}

/* --- Responsive --- */
@media (max-width: 960px) {
    .philosophy-grid, .media-grid { grid-template-columns: 1fr; }
    .hanabi-container, .message-layout { flex-direction: column; }
    .hero-title { font-size: 2.5rem; }
}

/* SP Hamburger Menu Styles */
@media (max-width: 768px) {
    .menu-btn { display: block; }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-navy-dark);
        transition: 0.5s;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
    }
    .nav.active { right: 0; }
    .nav ul { flex-direction: column; text-align: center; width: 100%; }
    .nav li { margin: 25px 0; }
    .nav a { color: #fff; font-size: 1.4rem; }
    
    .sp-menu-header {
        display: block;
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.5);
        padding: 15px 0;
        font-weight: 900;
        letter-spacing: 0.3em;
        font-size: 0.9rem;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sp-menu-footer {
        display: block;
        position: absolute;
        bottom: 40px;
        color: rgba(255,255,255,0.4);
        font-size: 0.8rem;
    }

    .volunteer-massive { flex-direction: column; height: auto; }
    .volunteer-block { padding: 60px 20px; }
    
    .philosophy-number {
        font-size: 6rem;
        top: -10px;
        right: 10px;
    }
}

/* --- SP: ヘッダーを確実に固定（sticky不安定対策） --- */
@media (max-width: 992) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  /* fixedにすると本文がヘッダーの下に潜るので、その分だけ押し下げる */
  body {
    padding-top: 90px; /* .header-inner の height と合わせる（今は90px） */
  }

  /* --- SP: 端末の安全領域（ノッチ/エッジ）＋左右余白を確保 --- */
  .container {
    width: 100%;
    /* 通常の余白 + iPhone等の safe-area を加味 */
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* --- Navigation & SP Menu Adjustments --- */

/* デフォルト（PC）ではSP用メニューパーツを非表示 */
.sp-menu-header, 
.sp-menu-footer {
    display: none;
}

/* モバイル表示（992px以下）の設定 */
@media (max-width: 992px) {
    /* SP用パーツを表示 */
    .sp-menu-header, 
    .sp-menu-footer {
        display: block;
    }

    /* メニューヘッダー（MENUの文字） */
    .sp-menu-header {
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 20px; /* 下との間隔を少し広げてゆとりを出す */
        font-weight: bold;
        font-size: 0.85rem; /* わずかに大きく */
        letter-spacing: 0.1em;
    }

    /* メニューリスト全体の制御 */
    .nav ul {
        display: flex;
        flex-direction: column;
        gap: 0 !important;
        margin: 0;
        padding: 0;
    }

    /* リスト項目の制御 */
    .nav ul li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none;
    }

    /* 各メニューリンクのサイズと行間の調整 */
    .nav ul li a {
        font-size: 1.2rem; /* フォントサイズを少し大きく */
        padding: 20px 0 !important; /* パディングを微調整 */
        display: block;
        line-height: 1.5; /* 行の高さを1.5に設定 */
    }

    /* メニューフッター（コピーライト） */
    .sp-menu-footer {
        margin-top: 20px; /* 上との間隔を広げてバランスを調整 */
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        font-size: 0.75rem; /* わずかに大きく */
        opacity: 0.6;
    }
}

/* --- セクション写真・レイアウト調整 (追記分) --- */

/* 1. PC・スマホ共通：写真の角丸を解除 */
/* 「花火の運営」と「設立の想い」の両方の写真を対象にします */
.hanabi-visual img,
.message-image {
    border-radius: 0 !important;
}

/* 2. 花火セクションのレスポンシブ順序制御 */
/* PC版の並びを維持するための flex 設定 */
.hanabi-container {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hanabi-visual, .hanabi-content {
    flex: 1;
}

/* 3. スマホ版（992px以下）での入れ替え設定 */
@media (max-width: 992px) {
    .hanabi-container {
        flex-direction: column; /* 縦並びに変更 */
        gap: 20px;
    }

    /* タイトル（テキスト側）を上に配置 */
    .hanabi-content {
        order: 1;
    }

    /* 写真側を下に配置 */
    .hanabi-visual {
        order: 2;
        width: 100%;
    }
}

/* --- Static pages (Thanks / Privacy Policy etc.) --- */
.page--static {
    padding-bottom: 160px;
}

/* --- Legal/Policy page tweaks (privacy.html etc.) --- */
.page-header--legal {
    background: var(--bg-gray);
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 2rem;
    margin: 0;
}

/* Readability */
.page--legal .legal-content {
    max-width: 800px; /* 読みやすさのためテキスト幅を絞る */
    margin: 0 auto;
    background: #fff;
}

.page--legal .legal-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    text-align: left;
}

/* TOPの見出し装飾が乗る場合の打ち消し */
.page--legal .legal-content h2::after { display: none; }

.page--legal .legal-content p,
.page--legal .legal-content ul {
    color: var(--text-light);
    margin-bottom: 20px;
}

.page--legal .legal-content ul { padding-left: 20px; }
.page--legal .legal-content li { margin-bottom: 10px; }

.page--legal .admin-box {
    margin-top: 60px;
    padding: 30px;
    background: var(--bg-gray);
    border-radius: 10px;
}

.page--legal .admin-box dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
}

.page--legal .admin-box dt {
    font-weight: bold;
    color: var(--text-main);
}

.page--legal .admin-box dd {
    margin: 0;
    color: var(--text-light);
}

.page--legal .admin-box__title {
    margin-top: 0;
    font-size: 1.2rem;
}

.page--legal .admin-box__note {
    font-size: 0.85rem;
    margin-top: 15px;
    color: #a1a1a1;
}



.policy-main {
  padding: 160px;
}


/* --- SP/Tablet: ヘッダーを確実に固定（sticky不安定対策） --- */
@media (max-width: 992px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200; /* nav(1000)より確実に上へ */
  }

  /* fixed化で本文がヘッダーの下に潜るので押し下げる */
  body {
    padding-top: 90px; /* .header-inner のheightに合わせる（現在90px） */
  }
}

/* --- SP: 端末端の余白（安全領域込み）を確保 --- */
@media (max-width: 992px) {
  .container {
    width: 100%;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* --- Fixedヘッダーが効かない端末対策（親transform等の影響を遮断） --- */
@media (max-width: 992px) {
  .header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    transform: none !important; /* 念のため */
  }
}


/* =========================
   SPイベントバナー（整理版・確定）
========================= */
@media (max-width: 992px) {

    .hero {
    height: 65vh;
  }

  /* セクション：MVにめり込ませるだけ */
  .event-banner-section {
    padding: 0;
    margin: 20px 0 0;   /* 上にだけめり込み */
    background: transparent;
    position: relative;
    z-index: 10;
  }

  /* 余計な下余白は完全に消す */
  body {
    padding-bottom: 0;
  }

  /* リンクは“枠を持たない” */
  .event-banner-link {
    display: block;
    text-decoration: none;
  }

  /* バナー本体がすべてを管理する */
  .event-banner {
    width: 100%;
    aspect-ratio: 1100 / 250;   /* 画像比率そのまま */
    border: 4px solid #FFD400;  /* 黄色枠はここだけ */
    border-radius: 16px;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent;
    height: auto !important;   /* ← 200px固定を殺す（最重要） */
    max-width: 100%;           /* ← 念のため横はみ出し防止 */
  }

  /* 画像はエリアにフィットするだけ */
  .event-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* img下の謎余白対策 */
  }

}
