/* =========================================================
   NEMOZ × Japan IT Week 秋 2026 出展告知 バナー・ポップアップ CSS
   ========================================================= */
:root {
  --jitw-mint: #04C9CD;       /* ポイントカラーA */
  --jitw-mint-soft: #E3F8F8;  /* ミントの淡色（ボタン背景など） */
  --jitw-ink: #3D3D3D;        /* サイト共通のテキスト色 */
  --jitw-ink-strong: #222222; /* バナー背景・強調 */
  --jitw-bg: #F0F0F0;         /* メインBG */
  --jitw-line: #E2E2E2;
  --jitw-muted: #767676;
  --jitw-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --jitw-z: 10000;            /* サイトのヘッダーやチャットより上に来る値 */
}

/* ---------- 上部バナー（ヘッダー直下） ---------- */
.jitw-banner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: stretch;
  background: var(--jitw-ink-strong);
  color: #fff;
  font-family: var(--jitw-font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.jitw-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;
}
.jitw-banner__eyebrow {
  color: var(--jitw-mint);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  white-space: nowrap;
}
.jitw-banner__text { font-weight: 700; }
.jitw-banner__more {
  color: var(--jitw-mint);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.jitw-banner__more::after { content: " ›"; }
.jitw-banner__main:hover .jitw-banner__more { text-decoration: underline; text-underline-offset: 3px; }
.jitw-banner__close {
  flex: 0 0 52px;
  border: 0;
  background: none;
  color: rgba(255,255,255,.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.jitw-banner__close:hover { color: #fff; }
.jitw-banner button:focus-visible { outline: 2px solid var(--jitw-mint); outline-offset: -4px; }

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

@media (max-width: 640px) {
  .jitw-banner { font-size: 13px; }
  .jitw-banner__main { min-height: 0; padding: 10px 4px 10px 16px; justify-content: flex-start; text-align: left; gap: 2px 8px; }
  .jitw-banner__eyebrow { display: block; width: 100%; font-size: 11px; }
  .jitw-banner__close { flex-basis: 44px; }
}

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

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

.jitw-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: jitw-in .3s ease-out;
}
.jitw-modal:focus { outline: none; }
@keyframes jitw-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

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

/* 左：ミント面 */
.jitw-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 0;
  background-color: var(--jitw-mint);
  color: #fff !important;
}
.jitw-cover,
.jitw-cover font,
.jitw-cover span {
  color: #fff !important;
}
.jitw-cover__eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  color: #fff !important;
}
.jitw-live {
  letter-spacing: .02em;
  color: #fff !important;
}
.jitw-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(--jitw-font) !important;
}
.jitw-cover__title span {
  display: block;
  color: #fff !important;
}
.jitw-cover__lead {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff !important;
}
.jitw-cover { justify-content: flex-start; }
.jitw-cover__img {
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
  margin: auto -6% -6px auto;
  padding-top: 20px;
}

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

/* 右：ブース案内 */
.jitw-detail { padding: 44px 40px 0; display: flex; flex-direction: column; }
.jitw-detail__heading {
  margin: 0 0 26px;
  color: var(--jitw-mint);
  font-size: 44px;
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.01em;
}
.jitw-items { margin: 0; display: grid; gap: 20px; }
.jitw-item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--jitw-mint);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}
.jitw-item dt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.jitw-item dd { font-feature-settings: "palt"; margin: 0 0 0 28px; font-size: 16px; font-weight: 500; line-height: 1.6; }
.jitw-venue { display: block; font-size: 17px; font-weight: 700; margin: 0; }
.jitw-item--location dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.jitw-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;
}
.jitw-booth__label,
.jitw-booth__no { display: flex; align-items: center; padding: 7px 20px; }
.jitw-booth__label { border-right: 1.5px solid #E0E0E0; color: var(--jitw-ink); }
.jitw-booth__no { color: var(--jitw-mint); letter-spacing: .04em; }
.jitw-item a { color: var(--jitw-ink); text-decoration: underline; text-underline-offset: 3px; }

.jitw-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(--jitw-mint);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}
.jitw-map:hover { background: #03B5B9; }

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

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

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

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