/* うみいべ（event.bluehub.jp）
   BlueHub共通デザインシステム（_docs/09_デザイン.md）準拠。トップ(bluehub.jp)の部品を流用。
   ※JS(app.js)が使うクラス名・IDは保持。Bootstrapは撤去し本CSSで全て賄う（モーダルはバニラ実装）。 */

:root {
  --bh-ink: #102b3f; --bh-muted: #5d7180; --bh-blue: #0b72b9; --bh-cyan: #18aeca;
  --bh-sea: #78d9b3; --bh-coral: #ff8c66; --bh-paper: #f5fbfd; --bh-line: rgba(16, 43, 63, .12);
  --bh-radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: #eef7f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.28 0 0 0 0 0.36 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--bh-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
  line-height: 1.8; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー（3段） ===== */
.site-header { background: rgba(255,255,255,.88); border-bottom: 1px solid var(--bh-line); }
.header-util { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 0; font-size: .78rem; color: var(--bh-muted); font-weight: 700; }
.header-util .util-note { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 言語スイッチャー（i18n共通） ===== */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid rgba(0,0,0,.15); border-radius: 999px; background: #fff; font-size: .78rem; white-space: nowrap; flex: 0 0 auto; }
.lang-switch a { color: #5d7180; font-weight: 600; text-decoration: none; }
.lang-switch a+a { border-left: 1px solid rgba(0,0,0,.12); padding-left: 6px; }
.lang-switch a.is-active { color: #0b72b9; font-weight: 800; }
.header-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 4px; text-align: center; }
.brand-logo { width: min(240px, 56vw); height: auto; }
.brand-tagline { margin: 0; font-size: .84rem; font-weight: 800; color: #0f6c93; letter-spacing: .1em; }
.global-nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 0 10px; }
.global-nav::-webkit-scrollbar { display: none; }
.global-nav > a:first-child { margin-left: auto; }
.global-nav > a:last-child { margin-right: auto; }
.global-nav a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 800; color: #0b5687; }
.global-nav a:hover { background: rgba(24,174,202,.12); }
.global-nav a.is-current { background: rgba(11,114,185,.12); }

/* ===== ヒーロー（明るいBlueHub型） ===== */
.hero { padding: 22px 0 12px; }
/* ヒーローカード（左イラスト＋右テキスト。トップのMVカードに準拠） */
.hero-card { display: grid; grid-template-columns: 48% 52%; background: #fff; border: 1px solid var(--bh-line); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 40px rgba(16,43,63,.12); margin-bottom: 18px; }
.hero-media { position: relative; aspect-ratio: 3/2; background: linear-gradient(160deg,#eef7fb,#f2fbf7); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px 30px; }
.hero-copy .hero-title { text-align: left; margin: 0; }
.hero-copy .hero-sub { text-align: left; }
.hero-inner { text-align: center; padding: 0; max-width: 760px; margin: 0 auto; }
.hero-en { display: block; font-size: .78rem; font-weight: 900; letter-spacing: .22em; color: var(--bh-cyan); }
.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; line-height: 1.45; margin: 6px 0 12px; letter-spacing: .02em;
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0 6px 14px rgba(16,43,63,.14);
}
.hero-sub { color: #315165; font-size: 1rem; line-height: 1.85; font-weight: 600; margin: 0; }
.hero-sub strong { color: #0e7e93; }
.corner-wave { display: block; margin: 4px auto 0; }

/* ===== AI検索ボックス（白カード） ===== */
.ai-search { max-width: 720px; margin: 20px auto 0; padding: 16px; background: #fff; border: 1px solid var(--bh-line); border-radius: 18px; box-shadow: 0 12px 30px rgba(16,43,63,.1); }
.ai-search-row { display: flex; align-items: center; gap: 8px; background: var(--bh-paper); border: 1px solid var(--bh-line); border-radius: 14px; padding: 6px 6px 6px 14px; }
.ai-ico { font-size: 1.2rem; }
.ai-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--bh-ink); font-family: inherit; }
.btn-ai { background: #073e66; color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; white-space: nowrap; cursor: pointer; font-family: inherit; min-height: 44px; transition: background .15s; }
.btn-ai:hover { background: #0b5687; }
.ai-examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.ai-examples .ex { background: rgba(24,174,202,.12); border: 1px solid rgba(24,174,202,.28); color: #0e7e93; border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 700; cursor: pointer; transition: .15s; }
.ai-examples .ex:hover { background: rgba(24,174,202,.22); transform: translateY(-1px); }
.ai-message { max-width: 720px; margin: 14px auto 0; background: #fff; color: var(--bh-ink); border: 1px solid var(--bh-line); border-radius: 14px; padding: 12px 18px; font-weight: 700; box-shadow: 0 8px 22px rgba(16,43,63,.1); }

main { padding: 8px 0 8px; }

/* ===== カテゴリチップ ===== */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.chip { border: 1.5px solid rgba(24,174,202,.3); background: #fff; color: #0b5687; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: .85rem; cursor: pointer; transition: .15s; font-family: inherit; }
.chip:hover { border-color: var(--bh-cyan); }
.chip.active { background: rgba(11,114,185,.12); border-color: rgba(11,114,185,.4); color: #0b5687; }
.chip-n { opacity: .7; font-weight: 700; font-size: .78rem; }

/* ===== 絞り込みバー ===== */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.form-control, .form-select { max-width: 260px; min-height: 44px; border: 1px solid var(--bh-line); border-radius: 999px; padding: 8px 16px; font-size: 16px; color: var(--bh-ink); background: #fff; font-family: inherit; }
.online-toggle { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--bh-muted); font-weight: 700; }
.result-count { margin-left: auto; color: var(--bh-muted); font-size: .85rem; font-weight: 700; }

/* ===== イベントカード（トップの event-card に準拠） ===== */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ev-card { background: #fff; border: 1px solid var(--bh-line); border-radius: var(--bh-radius); overflow: hidden; box-shadow: 0 6px 20px rgba(16,43,63,.08); cursor: pointer; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(16,43,63,.14); }
.ev-top { position: relative; padding: 16px 16px 0; }
.ev-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(160deg, rgba(24,174,202,.16), rgba(120,217,179,.2)); color: #0b5687; border-radius: 12px; min-width: 64px; padding: 8px 10px; line-height: 1.15; }
.ev-date .m { font-size: .75rem; font-weight: 800; color: var(--bh-muted); }
.ev-date .d { font-size: 1.5rem; font-weight: 900; }
.ev-date .w { font-size: .75rem; font-weight: 800; color: var(--bh-muted); }
.ev-cat { position: absolute; top: 16px; right: 16px; background: rgba(255,140,102,.14); color: #a8472b; border-radius: 999px; padding: 4px 12px; font-size: .75rem; font-weight: 900; }
.ev-online { position: absolute; top: 46px; right: 16px; background: rgba(120,217,179,.22); color: #1d7a58; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 900; }
.ev-body { padding: 12px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.ev-title { font-size: 1.02rem; font-weight: 800; line-height: 1.5; margin: 6px 0 0; }
.ev-meta { color: var(--bh-muted); font-size: .82rem; font-weight: 700; }
.ev-desc { color: #3a5568; font-size: .86rem; line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-soon { color: #d95b3c; font-weight: 800; font-size: .8rem; margin-top: 4px; }

.empty { text-align: center; padding: 50px 0; color: var(--bh-muted); font-weight: 700; }
.empty img { width: 120px; margin: 0 auto 10px; }
.loading { text-align: center; padding: 30px; color: var(--bh-muted); font-weight: 700; }

/* ===== モーダル（バニラ・BlueHubカード） ===== */
.ev-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.ev-modal.is-open { display: block; }
.ev-modal-backdrop { position: absolute; inset: 0; background: rgba(9,47,77,.5); }
.ev-modal-dialog { position: relative; max-width: 560px; margin: 8vh auto 0; width: calc(100% - 32px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(16,43,63,.3); max-height: 84vh; display: flex; flex-direction: column; }
.ev-modal-x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,.85); color: #0b5687; font-size: 1.3rem; cursor: pointer; }
.ev-modal-head { background: linear-gradient(150deg, #0a3a5e, #0b5687); color: #fff; padding: 22px 20px; }
.ev-modal-head h5 { margin: 4px 0 0; font-size: 1.15rem; font-weight: 900; line-height: 1.5; }
.ev-modal-body { padding: 20px; overflow-y: auto; }
.ev-modal-body dl { margin: 12px 0 0; }
.ev-modal-body dt { color: var(--bh-muted); font-size: .78rem; font-weight: 800; margin-top: 10px; }
.ev-modal-body dd { font-weight: 700; margin: 2px 0; }

/* ===== フッター＋SHAREレール ===== */
.site-footer { padding: 34px 0 90px; background: #092f4d; color: rgba(255,255,255,.74); font-size: .88rem; }
.site-footer .container { text-align: center; }
.footer-logo { max-width: 130px; height: auto; background: #fff; border-radius: 8px; padding: 8px 12px; margin: 0 auto 10px; }
.side-rail { position: fixed; right: 12px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.rail-label { writing-mode: vertical-rl; margin: 0 auto 2px; font-size: .66rem; font-weight: 900; letter-spacing: .2em; color: var(--bh-muted); }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bh-line); background: #fff; box-shadow: 0 8px 20px rgba(16,43,63,.18); display: grid; place-items: center; font-size: .68rem; font-weight: 900; cursor: pointer; text-align: center; line-height: 1.1; }
.rail-btn:hover { transform: translateY(-2px); }
.rail-x { color: #000; } .rail-line { color: #06c755; } .rail-fb { color: #1877f2; } .rail-top { color: #0b5687; background: #eaf6fb; }

/* モーダル内で使う最小ユーティリティ（app.js生成HTML用） */
.w-100 { width: 100%; } .mt-2 { margin-top: 10px; } .mt-1 { margin-top: 6px; } .mb-0 { margin-bottom: 0; }
.small { font-size: .82rem; } .text-muted { color: var(--bh-muted); }
.btn-ai.w-100 { display: block; text-align: center; }

@media (max-width: 780px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-copy { padding: 20px 22px 24px; }
  .hero-copy .hero-title, .hero-copy .hero-sub { text-align: center; }
}

/* ============================================================
   アースフェス会場マップ（完全CSS/SVG製。画像生成は使わない）
   空→海→砂浜の会場に、カテゴリごとのテントブースが並ぶ。
   ============================================================ */
.fes-stage {
  position: relative; overflow: hidden;
  min-height: 88vh;
  background: linear-gradient(180deg,
    #aee3f6 0px, #cfeef9 190px,          /* 空 */
    #9fd7ec 250px, #57b6d8 300px,        /* 海へ */
    #ffe9be 341px, #fdf3d8 700px, #f9edcf 100%); /* 砂浜の会場 */
  padding-bottom: 46px;
}
/* 波打ち際（SVG波を2層アニメーション） */
.fes-sea { position: absolute; left: 0; right: 0; top: 296px; height: 52px; pointer-events: none; }
.fes-sea::before, .fes-sea::after {
  content: ""; position: absolute; left: -200px; right: -200px; height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='26'%3E%3Cpath d='M0 16 Q30 0 60 16 T120 16 V26 H0 Z' fill='%23ffffff' fill-opacity='0.75'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 120px 26px;
  animation: fesWave 9s linear infinite;
}
.fes-sea::after { top: 14px; opacity: .5; animation-duration: 13s; animation-direction: reverse; }
@keyframes fesWave { from { background-position-x: 0; } to { background-position-x: 240px; } }

/* 空の演出（太陽・雲・気球・クジラ） */
.fes-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.fes-sun {
  position: absolute; top: 34px; right: 7%; width: 74px; height: 74px; border-radius: 50%;
  background: radial-gradient(circle, #fff6b8 30%, #ffd94d 60%, rgba(255,217,77,0) 72%);
  box-shadow: 0 0 60px 24px rgba(255,224,102,.55);
  animation: fesSun 6s ease-in-out infinite;
}
@keyframes fesSun { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.fes-cloud { position: absolute; font-size: 2.4rem; filter: drop-shadow(0 6px 10px rgba(16,43,63,.12)); animation: fesDrift linear infinite; }
.fes-cloud.c1 { top: 40px; animation-duration: 85s; }
.fes-cloud.c2 { top: 108px; font-size: 1.8rem; animation-duration: 110s; animation-delay: -40s; }
.fes-cloud.c3 { top: 66px; font-size: 2rem; animation-duration: 95s; animation-delay: -70s; }
@keyframes fesDrift { from { left: -8%; } to { left: 105%; } }
.fes-balloon { position: absolute; top: 150px; left: 6%; font-size: 2rem; animation: fesBalloon 7s ease-in-out infinite; }
@keyframes fesBalloon { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(5deg); } }
.fes-whale { position: absolute; top: 282px; font-size: 2rem; animation: fesWhaleSwim 70s linear infinite; }
@keyframes fesWhaleSwim {
  0% { left: -6%; transform: translateY(0) scaleX(1); }
  24% { transform: translateY(-8px) scaleX(1); }
  49% { left: 102%; transform: translateY(0) scaleX(1); }
  50% { left: 102%; transform: translateY(0) scaleX(-1); }
  74% { transform: translateY(-8px) scaleX(-1); }
  100% { left: -6%; transform: translateY(0) scaleX(-1); }
}

.fes-inner { position: relative; z-index: 1; }

/* 入場ゲート */
.fes-gate { text-align: center; padding: 26px 0 8px; }
.fes-bunting {
  height: 30px; margin: 0 auto 8px; max-width: 640px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='30'%3E%3Cpath d='M0 3 H128' stroke='%23856a45' stroke-width='2'/%3E%3Cpolygon points='4,4 28,4 16,26' fill='%23ff8c66'/%3E%3Cpolygon points='36,4 60,4 48,26' fill='%2318aeca'/%3E%3Cpolygon points='68,4 92,4 80,26' fill='%23f2a516'/%3E%3Cpolygon points='100,4 124,4 112,26' fill='%2378d9b3'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 128px 30px; background-position: center top;
}
.fes-h1 {
  font-size: clamp(1.4rem, 3.6vw, 2.05rem); font-weight: 900; line-height: 1.5; margin: 4px 0 10px; letter-spacing: .02em;
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0 6px 14px rgba(16,43,63,.14);
}
.fes-lead { color: #315165; font-size: .95rem; font-weight: 700; margin: 0 auto; max-width: 680px;
  text-shadow: 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff; }
.fes-lead strong { color: #0e7e93; }
#total-badge { color: #d95b3c; font-weight: 900; font-size: 1.1em; }

/* AI検索（フェス案内所風にコンパクト化） */
.fes-ai { margin-top: 14px; border: 2px solid rgba(24,174,202,.35); }

/* 日付・期間バー */
.fes-datebar { max-width: 860px; margin: 18px auto 0; }
.fes-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.fes-tab {
  border: 2px solid rgba(11,86,135,.25); background: #fff; color: #0b5687; border-radius: 999px;
  padding: 9px 18px; font-weight: 900; font-size: .92rem; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 12px rgba(16,43,63,.1); transition: .15s;
}
.fes-tab:hover { transform: translateY(-2px); border-color: var(--bh-cyan); }
.fes-tab.active { background: #073e66; border-color: #073e66; color: #fff; }
.fes-tab-wk { border-color: rgba(255,140,102,.5); color: #c4502f; }
.fes-tab-wk.active { background: #e2603a; border-color: #e2603a; color: #fff; }
.fes-tab-hd { border-color: rgba(242,165,22,.55); color: #a06a00; }
.fes-tab-hd.active { background: #e79a00; border-color: #e79a00; color: #fff; }
.fes-pick { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 2px solid rgba(11,86,135,.25); border-radius: 999px; padding: 6px 12px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 12px rgba(16,43,63,.1); }
.fes-pick input { border: 0; outline: 0; font-family: inherit; font-size: .88rem; color: #0b5687; font-weight: 800; background: transparent; width: 128px; cursor: pointer; }
.fes-rangebox { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; background: rgba(255,255,255,.85); border: 1px solid var(--bh-line); border-radius: 14px; padding: 10px 14px; font-weight: 800; color: #0b5687; }
.fes-rangebox input { border: 1px solid var(--bh-line); border-radius: 10px; padding: 6px 10px; font-family: inherit; font-size: .9rem; color: var(--bh-ink); }
.fes-range-apply { background: #073e66; color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 800; cursor: pointer; font-family: inherit; }
.fes-range-apply:hover { background: #0b5687; }

/* 日付ストリップ（横スクロールで直感的に日付を選ぶ） */
.fes-strip { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 12px 4px 6px; scrollbar-width: thin; }
.fes-day {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 54px;
  background: #fff; border: 1.5px solid rgba(11,86,135,.18); border-radius: 12px; padding: 6px 6px 5px;
  cursor: pointer; font-family: inherit; transition: .15s; position: relative; line-height: 1.2;
}
.fes-day:hover { transform: translateY(-2px); border-color: var(--bh-cyan); }
.fes-day .fd-m { font-size: .62rem; font-weight: 800; color: var(--bh-muted); }
.fes-day .fd-d { font-size: 1.06rem; font-weight: 900; color: var(--bh-ink); }
.fes-day .fd-w { font-size: .64rem; font-weight: 800; color: var(--bh-muted); }
.fes-day .fd-n { font-size: .64rem; font-weight: 900; color: #fff; background: #18aeca; border-radius: 999px; padding: 0 7px; margin-top: 2px; }
.fes-day.is-zero .fd-n { visibility: hidden; }
.fes-day.is-sat .fd-w { color: #0b72b9; } .fes-day.is-sun .fd-w, .fes-day.is-hol .fd-w { color: #d95b3c; }
.fes-day.is-hol::after { content: "🎌"; position: absolute; top: -7px; right: -4px; font-size: .8rem; }
.fes-day.active { background: #073e66; border-color: #073e66; }
.fes-day.active .fd-m, .fes-day.active .fd-d, .fes-day.active .fd-w { color: #fff; }
.fes-day.active .fd-n { background: #ffd94d; color: #073e66; }

/* 会場見出し（木の看板） */
.fes-headline { text-align: center; margin: 20px 0 6px; }
.fes-headline-sign {
  display: inline-block; background: linear-gradient(180deg, #a5723f, #8a5a33); color: #fff8ea;
  border: 3px solid #6f4726; border-radius: 14px; padding: 10px 26px; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(16,43,63,.22); transform: rotate(-.6deg); letter-spacing: .03em;
}
.fes-notice {
  display: inline-block; margin: 10px auto 0; background: #fff; border: 1.5px dashed rgba(217,91,60,.55); color: #c4502f;
  border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: .85rem;
}
.fes-notice button { border: 0; background: #e2603a; color: #fff; border-radius: 999px; padding: 4px 12px; margin-left: 8px; font-weight: 800; cursor: pointer; font-family: inherit; }

/* ===== 鳥瞰マップ（水彩イラストを画面全幅の土台にし、日付コントロールを空の部分にオーバーレイ） ===== */
.fes-mapwrap { position: relative; margin-top: 14px; width: 100%; }
/* 地の色はマップ端の実際の色（上端=空のクリーム→海の青緑）に合わせる（縦幅キャップで左右に余白が出ても継ぎ目が目立たない） */
.fes-mapscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(180deg, #f0e8ca 0%, #e2ddc0 2.5%, #8ec2b0 5%, #b6dcc4 48%, #a6d1b6 100%); }
/* マップの縦幅は画面の8割まで（下の日付ストリップが同時に見えるように）。横幅はその範囲で最大化 */
.fes-mapcanvas { position: relative; min-width: 820px; width: min(100%, calc(80vh * 1.8293)); margin: 0 auto; }
.fes-mapcanvas svg { display: block; width: 100%; height: auto; }

/* マップの空・海の帯に浮かべる操作パネル */
.fes-overlay {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: min(97%, 1280px); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
}
.fes-overlay > * { pointer-events: auto; }
.fes-overlay .fes-headline { margin: 0; }
.fes-overlay .fes-headline-sign { font-size: .98rem; padding: 7px 20px; }
.fes-overlay .fes-tabs { margin: 0; }
/* 狭い画面ではオーバーレイをやめて、マップの上に通常配置（小さなマップを覆い隠さない） */
@media (max-width: 940px) {
  .fes-overlay { position: static; transform: none; width: auto; padding: 0 10px 8px; }
}

/* 日付ストリップ（マップ直下の全幅行） */
.fes-stripwrap { width: 100%; max-width: 1480px; margin: 6px auto 0; padding: 0 14px; }

/* ブース（SVG内。外側は動かさず中身だけふわっと拡大→ホバーが震えない） */
.fes-bsp { cursor: pointer; }
.fes-bsp-in { transform-box: fill-box; transform-origin: center; transition: transform .18s; pointer-events: none; }
.fes-bsp:hover .fes-bsp-in { transform: scale(1.05); }
.fes-bsp.is-off { cursor: default; opacity: .62; filter: saturate(.35); }

/* 場所の絞り込みバー */
.fes-locbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 10px; }
.fes-loc-ico { font-size: 1.1rem; }
.fes-locbar select { border: 2px solid rgba(11,86,135,.25); background: #fff; color: #0b5687; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: .88rem; font-family: inherit; cursor: pointer; box-shadow: 0 4px 12px rgba(16,43,63,.1); max-width: 240px; }

/* 自分のアバター（マップ上を歩く。淡い光の輪で背景に埋もれないようにする） */
.fes-avatar { position: absolute; transform: translate(-50%, -92%); transition: left 1.1s ease-in-out, top 1.1s ease-in-out; z-index: 3; pointer-events: none; }
.fes-avatar::before { content: ""; position: absolute; left: 50%; bottom: 2px; width: 34px; height: 12px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255,255,255,.85) 0%, rgba(255,255,255,0) 72%); }
.fes-avatar-img { display: block; height: 54px; width: auto; filter: drop-shadow(0 3px 3px rgba(255,255,255,.9)) drop-shadow(0 4px 6px rgba(16,43,63,.35)); }
.fes-avatar.walk { animation: avatarBob .32s ease-in-out infinite; }
@keyframes avatarBob { 0%,100% { margin-top: 0; } 50% { margin-top: -5px; } }


/* 凡例（ブース一覧チップ） */
.fes-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.fes-lg { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--bc); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: .84rem; cursor: pointer; font-family: inherit; transition: .15s; color: var(--bh-ink); box-shadow: 0 4px 12px rgba(16,43,63,.1); }
.fes-lg b { background: var(--bc); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .76rem; }
.fes-lg:hover { transform: translateY(-2px); }
.fes-lg.is-off { opacity: .5; }

/* スタンプカード＆レベル（ゲーミフィケーションHUD） */
.fes-hud { position: relative; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; margin: 14px auto 0; background: #fff; border: 2px solid rgba(24,174,202,.3); border-radius: 16px; padding: 10px 18px; max-width: 760px; box-shadow: 0 10px 26px rgba(16,43,63,.12); font-weight: 800; font-size: .88rem; }
.fes-lv { color: #0b5687; }
.fes-lvbar { width: 100px; height: 8px; background: #e8f2f7; border-radius: 99px; overflow: hidden; }
.fes-lvbar i { display: block; height: 100%; background: linear-gradient(90deg, #18aeca, #0b72b9); border-radius: 99px; transition: width .4s; }
.fes-pts { color: #d95b3c; }
.fes-stamps-label { color: var(--bh-muted); font-size: .78rem; }
.fes-stamps { display: inline-flex; gap: 4px; }
.fes-stamp { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f0f0f0; border: 2px dashed #ccc; font-size: .92rem; filter: grayscale(1); opacity: .45; }
.fes-stamp.on { background: #fff3cf; border: 2px solid #e8b400; filter: none; opacity: 1; animation: stampPop .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes stampPop { from { transform: scale(.3); } }
.fes-master { color: #a06a00; }
.fes-toast { position: absolute; top: -16px; background: #073e66; color: #fff; border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 900; animation: toastUp 1.8s ease forwards; pointer-events: none; white-space: nowrap; z-index: 5; }
@keyframes toastUp { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; } 80% { opacity: 1; transform: translateY(-8px); } 100% { opacity: 0; transform: translateY(-16px); } }
.fes-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; overflow: hidden; }
.fes-confetti span { position: absolute; top: -34px; animation: confFall linear forwards; }
@keyframes confFall { to { transform: translateY(108vh) rotate(540deg); } }

/* ブースの出し物パネル（ボトムシート） */
.fes-panel-back { position: fixed; inset: 0; background: rgba(9,47,77,.45); z-index: 88; }
.fes-panel { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(720px, 100%); max-height: 68vh; background: #fffdf6; border-radius: 20px 20px 0 0; z-index: 89; display: flex; flex-direction: column; box-shadow: 0 -14px 40px rgba(16,43,63,.32); animation: panelUp .28s ease; }
@keyframes panelUp { from { transform: translate(-50%, 40px); opacity: .4; } }
.fes-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 3px solid var(--bc); }
.fes-panel-emoji { font-size: 1.7rem; }
.fes-panel-name { font-weight: 900; font-size: 1rem; line-height: 1.35; color: var(--bh-ink); }
.fes-panel-sub { font-size: .78rem; color: var(--bh-muted); font-weight: 800; }
.fes-panel-head .sp { flex: 1; }
.fes-panel-btn { border: 1.5px solid var(--bh-line); background: #fff; border-radius: 999px; width: 38px; height: 34px; cursor: pointer; font-size: 1rem; transition: .15s; }
.fes-panel-btn:hover { border-color: var(--bc); transform: scale(1.06); }
.fes-panel-body { overflow-y: auto; padding: 16px 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }

/* ブース内のイベント（貼り出されたチラシ風。パネル内で使用） */
.fes-ev { position: relative; background: #fff; border: 1px solid var(--bh-line); border-radius: 10px; padding: 10px 10px 8px 12px; cursor: pointer; transition: .15s; box-shadow: 0 4px 10px rgba(16,43,63,.08); }
.fes-ev::before { content: "📌"; position: absolute; top: -9px; left: 8px; font-size: .85rem; }
.fes-ev:nth-child(odd) { transform: rotate(-.5deg); }
.fes-ev:nth-child(even) { transform: rotate(.4deg); }
.fes-ev:hover { transform: translateY(-3px) rotate(0); box-shadow: 0 10px 22px rgba(16,43,63,.16); border-color: var(--bc); }
.fes-ev-title { font-weight: 800; font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fes-ev-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: .72rem; font-weight: 800; color: var(--bh-muted); }
.fes-ev-meta .t { color: #0b5687; background: rgba(24,174,202,.14); border-radius: 999px; padding: 1px 8px; }
.fes-ev-reco { position: absolute; top: -9px; right: 8px; background: #ffd94d; color: #6b4d00; border-radius: 999px; padding: 1px 8px; font-size: .66rem; font-weight: 900; box-shadow: 0 2px 6px rgba(16,43,63,.18); }

/* 一覧セクション見出し */
.list-heading { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 900; margin: 26px 0 4px; color: var(--bh-ink); }

@media (max-width: 600px) {
  .ai-search-row { flex-wrap: wrap; }
  .btn-ai { width: 100%; }
  .form-control, .form-select { max-width: none; flex: 1 1 100%; }
  .result-count { margin-left: 0; }
  .fes-stage { min-height: 0; }
  .fes-tab { padding: 8px 13px; font-size: .84rem; }
  .fes-headline-sign { font-size: .92rem; padding: 9px 16px; }
  .fes-panel-body { grid-template-columns: 1fr; }
  .fes-hud { font-size: .8rem; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fes-sea::before, .fes-sea::after, .fes-sun, .fes-cloud, .fes-balloon, .fes-whale,
  .fes-avatar, .fes-avatar.walk, .fes-confetti span, .fes-stamp.on, .fes-panel { animation: none !important; }
  .fes-avatar { transition: none; }
}
