/* =========================================================
   NEMOZ × Inter BEE 2026 出展告知 バナー・ポップアップ CSS
   デザイン基準：Figma「UI - Web - Nemoz website」
     - ポイントカラーA（オリジナルミント）#04C9CD
     - テキスト #3D3D3D / メインBG #F0F0F0
     - フォント Pretendard（日本語は Pretendard JP）
   クラス名はすべて ibee- 接頭辞
   ========================================================= */
:root {
  --ibee-mint: #04C9CD;       /* ポイントカラーA */
  --ibee-mint-soft: #E3F8F8;  /* ミントの淡色（ボタン背景など） */
  --ibee-ink: #3D3D3D;        /* サイト共通のテキスト色 */
  --ibee-ink-strong: #222222; /* バナー背景・強調 */
  --ibee-bg: #F0F0F0;         /* メインBG */
  --ibee-line: #E2E2E2;
  --ibee-muted: #767676;
  --ibee-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;  /* nemoz.jp と同じ Noto Sans JP */
  --ibee-z: 10000;            /* サイトのヘッダーやチャットより上に来る値 */
}

/* ---------- 上部バナー（ヘッダー直下） ---------- */
.ibee-banner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: stretch;
  background: var(--ibee-ink-strong);
  color: #fff;
  font-family: var(--ibee-font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.ibee-banner__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  min-height: 52px;
  padding: 10px 8px 10px 52px; /* 右の閉じるボタン分と左右対称 */
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.ibee-banner__eyebrow {
  color: var(--ibee-mint);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  white-space: nowrap;
}
.ibee-banner__text { font-weight: 700; }
.ibee-banner__more {
  color: var(--ibee-mint);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.ibee-banner__more::after { content: " ›"; }
.ibee-banner__main:hover .ibee-banner__more { text-decoration: underline; text-underline-offset: 3px; }
.ibee-banner__close {
  flex: 0 0 52px;
  border: 0;
  background: none;
  color: rgba(255,255,255,.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ibee-banner__close:hover { color: #fff; }
.ibee-banner button:focus-visible { outline: 2px solid var(--ibee-mint); outline-offset: -4px; }

/* バナー表示時にメインコンテンツの余白を適切に調整 */
body.has-ibee-banner .mt-header {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  .ibee-banner { font-size: 13px; }
  .ibee-banner__main { min-height: 0; padding: 10px 4px 10px 16px; justify-content: flex-start; text-align: left; gap: 2px 8px; }
  .ibee-banner__eyebrow { display: block; width: 100%; font-size: 11px; }
  .ibee-banner__close { flex-basis: 44px; }  /* 閉じるボタンは独立した44px幅の領域。文字と重ならない */
}

/* ---------- ポップアップ ---------- */
html.ibee-lock, html.ibee-lock body { overflow: hidden; }

.ibee-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--ibee-z);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .55);
  font-family: var(--ibee-font);
  color: var(--ibee-ink);
}
.ibee-overlay[hidden] { display: none; }

.ibee-modal {
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  width: 100%;
  max-width: 820px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  animation: ibee-in .3s ease-out;
}
.ibee-modal:focus { outline: none; }
@keyframes ibee-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ibee-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--ibee-ink);
  cursor: pointer;
}
.ibee-modal__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ibee-modal__close:hover { color: var(--ibee-mint); }

/* 左：ミント面 */
.ibee-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 0;
  background-color: var(--ibee-mint);
  color: #fff !important;
  justify-content: flex-start;
}
.ibee-cover,
.ibee-cover font,
.ibee-cover span {
  color: #fff !important;
}
.ibee-cover__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  color: #fff !important;
}
.ibee-live {
  letter-spacing: .02em;
  color: #fff !important;
}
.ibee-cover__title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: #fff !important;
  font-family: var(--ibee-font) !important;
}
.ibee-cover__title span {
  display: block;
  color: #fff !important;
}
.ibee-cover__lead {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff !important;
}

/* ライン */
.ibee-cover, .ibee-detail { position: relative; overflow: hidden; }
.ibee-cover > *:not(.ibee-lines), .ibee-detail > *:not(.ibee-lines) { position: relative; z-index: 1; }
.ibee-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  opacity: .55;
  pointer-events: none;
}
.ibee-lines--sp { display: none; }

/* 右：ブース案内 */
.ibee-detail { padding: 44px 40px 0; display: flex; flex-direction: column; }
.ibee-logo {
  display: block;
  width: 250px;
  max-width: calc(100% - 56px);
  height: auto;
  margin: 0 0 30px;
}
.ibee-items { margin: 0; display: grid; gap: 20px; }
.ibee-item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--ibee-mint);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}
.ibee-item dt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ibee-item dd { font-feature-settings: "palt"; margin: 0 0 0 28px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.ibee-venue { display: block; font-size: 17px; font-weight: 700; margin: 0; }
.ibee-item--location dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ibee-booth {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid #E0E0E0;
  border-radius: 999px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  overflow: hidden;
}
.ibee-booth__label,
.ibee-booth__no { display: flex; align-items: center; padding: 7px 20px; }
.ibee-booth__label { border-right: 1.5px solid #E0E0E0; color: var(--ibee-ink); }
.ibee-booth__no { color: var(--ibee-mint); letter-spacing: .04em; }
.ibee-sched { display: flex; gap: 8px 16px; }
.ibee-sched__day { flex: 0 0 7.6em; }
.ibee-item a { color: var(--ibee-ink); text-decoration: underline; text-underline-offset: 3px; }

.ibee-map {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  margin-left: 28px;
  padding: 0 34px;
  border-radius: 6px;
  background: var(--ibee-mint);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}
.ibee-map:hover { background: #03B5B9; }

.ibee-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 22px 0 22px;
  font-size: 13px;
}
.ibee-skip { display: flex; align-items: center; gap: 8px; margin-left: 28px; color: var(--ibee-muted); cursor: pointer; }
.ibee-skip input { width: 16px; height: 16px; margin: 0; accent-color: var(--ibee-mint); }
.ibee-official { color: var(--ibee-muted); text-underline-offset: 3px; }

.ibee-overlay a:focus-visible,
.ibee-overlay button:focus-visible,
.ibee-overlay input:focus-visible { outline: 3px solid var(--ibee-ink); outline-offset: 2px; }

/* スマホ：縦積みのシート */
@media (max-width: 640px) {
  .ibee-overlay { padding: 0; align-items: flex-end; }
  .ibee-modal {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 32px);
    animation-name: ibee-up;
  }
  .ibee-modal__close { color: #fff; top: 8px; right: 8px; }
  .ibee-cover { padding: 34px 20px 28px; }
  .ibee-lines--pc { display: none; }
  .ibee-lines--sp { display: block; }
  .ibee-cover__eyebrow { margin-bottom: 3px; font-size: 11px; color: #fff !important; }
  .ibee-cover__title { font-size: 23px; font-weight: 900; line-height: 1.2; margin-bottom: 6px; padding-right: 40px; white-space: nowrap; color: #fff !important; }
  .ibee-cover__title span { display: inline; color: #fff !important; }
  .ibee-cover__title span:first-child { margin-right: .3em; }
  .ibee-cover__lead { font-size: 14px; font-weight: 700; color: #fff !important; }
  .ibee-detail { padding: 24px 20px 0; }
  .ibee-logo { width: 200px; margin-bottom: 20px; }
  .ibee-items { gap: 14px; }
  .ibee-item dt { font-size: 14px; }
  .ibee-item dd { font-size: 15px; }
  .ibee-booth { font-size: 15px; }
  .ibee-sched__day { flex-basis: 7.4em; }
  .ibee-booth__label, .ibee-booth__no { padding: 6px 18px; }
  .ibee-map { align-self: stretch; margin-top: 20px; margin-left: 0; font-size: 15px; }
  .ibee-skip { margin-left: 0; }
  .ibee-foot { padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes ibee-up { from { transform: translateY(100%); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ibee-modal { animation: none; }
  .ibee-map { transition: none; }
}
