/* 出展社ページ — Figma 223:9206 ヒーロー（チケット .ticketHero と同型） */

.exhibitorHero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.exhibitorHero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.exhibitorHero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.exhibitorHero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.exhibitorHero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 220px;
  padding: 36px var(--sp-pad-x, 16px) 40px;
  text-align: center;
}

.exhibitorHero__title {
  margin: 0;
  color: #ffffff;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.exhibitorHero__en {
  margin: 12px 0 0;
  color: #ffffff;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

@media (min-width: 541px) {
  .exhibitorHero {
    height: 240px;
    min-height: 240px;
  }

  .exhibitorHero__inner {
    min-height: 100%;
    height: 100%;
    padding: 20px 24px 24px;
  }
}

@media (min-width: 951px) {
  .exhibitorHero__inner {
    padding-left: 7%;
    padding-right: 7%;
  }
}

@media (max-width: 540px) {
  .exhibitorHero__en {
    margin-top: 8px;
  }
}

/* 出展社ページのみ：特別協力ヘッダー（見出しタイポは .sectionTitleA） */
body:has(.exhibitorHero) .spCoopSec__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

body:has(.exhibitorHero) .spCoopSec__rule {
  display: flex;
  justify-content: center;
}

body:has(.exhibitorHero) .spCoopSec__ruleImage {
  display: block;
  width: 39px;
  height: auto;
}

/* 出展社一覧（絞り込み含む）— Figma 223:9226 */

.exhibitorFilter {
  box-sizing: border-box;
  --exhibitor-pad-x: 40px;
  padding: 60px var(--exhibitor-pad-x) 40px;
  background-color: #f5f6fa;
}

.exhibitorFilter__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  max-width: none;
  margin: 0 auto 40px;
}

.exhibitorFilter__title {
  padding: 0;
}

.exhibitorFilter__rule {
  display: flex;
  justify-content: center;
}

.exhibitorFilter__ruleImage {
  display: block;
  width: 39px;
  height: auto;
}

.exhibitorFilterControls {
  box-sizing: border-box;
  --exhibitor-pad-x: 40px;
  padding: 0 var(--exhibitor-pad-x);
  background-color: #f5f6fa;
}

/* 五十音＋カテゴリー絞り込み：スクロール時に上部へ固定（.content / viewport のスクロールに追従） */
.exhibitorFilter__sticky {
  position: sticky;
  z-index: 800;
  box-sizing: border-box;
  /* margin: 0 0 8px; */
  padding: 12px 0 20px;
  background-color: #f5f6fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04); */
}

/* PC: メインカラム内スクロールの先頭に貼り付く */
@media (min-width: 951px) {
  .exhibitorFilter__sticky {
    top: 0;
  }
}

/* タブレット: 固定トップバー（.tabletHeader）の下から固定 */
@media (min-width: 541px) and (max-width: 950px) {
  .exhibitorFilter__sticky {
    top: 84px;
  }
}

/* SP: 固定の左上ロゴ・右上メニューボタンの下 */
@media (max-width: 540px) {
  .exhibitorFilterControls {
    padding-left: var(--sp-pad-x, 16px);
    padding-right: var(--sp-pad-x, 16px);
  }

  .exhibitorFilter__sticky {
    top: calc(env(safe-area-inset-top, 0px) + 52px);
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.exhibitorFilter__gojuonNav {
  box-sizing: border-box;
  max-width: none;
  margin: 0 auto 20px;
}

.exhibitorFilter__gojuonList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exhibitorFilter__gojuonItem {
  flex: 0 0 auto;
}

.exhibitorFilter__gojuonBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 0 9px;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.exhibitorFilter__gojuonItem:nth-child(odd) .exhibitorFilter__gojuonBtn {
  background-color: #231815;
}

.exhibitorFilter__gojuonItem:nth-child(even) .exhibitorFilter__gojuonBtn {
  background-color: #d80c18;
}

.exhibitorFilter__gojuonBtn:hover {
  opacity: 0.88;
}

.exhibitorFilter__gojuonBtn:focus-visible {
  outline: 2px solid #231815;
  outline-offset: 2px;
}

.exhibitorFilter__gojuonItem:nth-child(even)
  .exhibitorFilter__gojuonBtn:focus-visible {
  outline-color: #d80c18;
}

.exhibitorFilter__gojuonBtn[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #f5f6fa, 0 0 0 4px #231815;
}

.exhibitorFilter__gojuonItem:nth-child(even)
  .exhibitorFilter__gojuonBtn[aria-pressed="true"] {
  box-shadow: 0 0 0 2px #f5f6fa, 0 0 0 4px #d80c18;
}

.exhibitorFilter__category {
  box-sizing: border-box;
  max-width: none;
  margin: 0 auto;
}

.exhibitorFilter__catLabel {
  margin: 0 0 12px;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #000000;
  text-align: center;
}

.exhibitorFilter__catList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exhibitorFilter__catItem {
  flex: 0 0 auto;
}

.exhibitorFilter__catBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background-color: #c4c4c4;
  border: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

/* 選択中：Figma 223:9259（黒背景・白文字） */
.exhibitorFilter__catBtn[aria-pressed="true"] {
  color: #ffffff;
  background-color: #000000;
}

.exhibitorFilter__catBtn[aria-pressed="true"]:hover {
  opacity: 0.88;
}

.exhibitorFilter__catBtn[aria-pressed="false"]:hover {
  opacity: 0.9;
}

.exhibitorFilter__catBtn:focus-visible {
  outline: 2px solid #d80c18;
  outline-offset: 2px;
}

.exhibitorFilter__empty {
  box-sizing: border-box;
  max-width: none;
  margin: 32px auto 0;
  padding: 16px;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #555555;
  text-align: center;
}

.exhibitorFilter__empty[hidden] {
  display: none !important;
}

@media (max-width: 540px) {
  .exhibitorFilter {
    --exhibitor-pad-x: var(--sp-pad-x, 16px);
    padding: 40px var(--sp-pad-x, 16px) 40px;
  }

  .exhibitorFilter__head {
    margin-bottom: 32px;
  }

  .exhibitorFilter__gojuonNav {
    margin-bottom: 20px;
  }

  .exhibitorFilter__gojuonList {
    gap: 12px 16px;
  }

  .exhibitorFilter__gojuonBtn {
    min-height: 34px;
    padding: 0 8px;
    font-size: 15px;
  }

  .exhibitorFilter__catLabel {
    margin-bottom: 10px;
    font-size: 15px;
  }

  .exhibitorFilter__catList {
    gap: 10px 12px;
  }

  .exhibitorFilter__catBtn {
    padding: 8px;
    font-size: 12px;
  }

  .exhibitorFilter__clearWrap {
    margin-top: 24px;
  }
}

@media (min-width: 951px) {
  .exhibitorFilter {
    --exhibitor-pad-x: 7%;
  }

  .exhibitorRowSec__container {
    --exhibitor-pad-x: 7%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exhibitorFilter__gojuonBtn,
  .exhibitorFilter__catBtn,
  .exhibitorFilter__clearBtn {
    transition: none;
  }

  .exhibitorRowSec__link {
    transition: none;
  }
}

/* 五十音「ア」「カ」リンク：グローバルな a の色で潰さず白文字を維持 */
a.exhibitorFilter__gojuonBtn--anchor {
  text-decoration: none;
  color: #ffffff;
}

a.exhibitorFilter__gojuonBtn--anchor:visited {
  color: #ffffff;
}

a.exhibitorFilter__gojuonBtn--anchor:focus-visible {
  outline: 2px solid #231815;
  outline-offset: 2px;
}

a.exhibitorFilter__gojuonBtn--anchor.exhibitorFilter__gojuonBtn--ka:focus-visible {
  outline-color: #d80c18;
}

/* ア行（出展社リスト）— Figma 223:9269 / 223:9270 */
.exhibitorRowSec {
  box-sizing: border-box;
  padding: 0 0 56px;
  background-color: #f5f6fa;
  /* 固定の五十音・カテゴリーバーより上に行見出しが出るよう余白（チップが折り返す分もざっくり確保） */
  scroll-margin-top: clamp(120px, 26vh, 300px);
}

.exhibitorRowSec__container {
  box-sizing: border-box;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--exhibitor-pad-x, 40px);
}

.exhibitorRowSec__headBand {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  background-color: #231815;
}

.exhibitorRowSec__headBand--ka {
  background-color: #d80c18;
}

.exhibitorRowSec__headTitle {
  margin: 0;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  text-align: center;
}

.exhibitorRowSec__inner {
  box-sizing: border-box;
  padding: 40px 0 0;
}

.exhibitorRowSec__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e0e0e0;
}

.exhibitorRowSec__item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #e0e0e0;
}

/* カテゴリー絞り込み: .exhibitorRowSec__item { display:flex } が [hidden] より優先される環境向け */
.exhibitorRowSec__item.exhibitorRowSec__item--filteredOut {
  display: none !important;
}

.exhibitorRowSec.exhibitorRowSec--filteredEmpty {
  display: none !important;
}

.exhibitorRowSec__link {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  box-sizing: border-box;
  width: auto;
  padding: 18px 4px;
  margin: 0;
  font: inherit;
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  text-align: inherit;
  text-decoration: none;
  color: #000000;
  cursor: pointer;
  background: transparent;
  border: 0;
  appearance: none;
  transition: background-color 0.2s ease;
}

.exhibitorRowSec__siteLink {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: inherit;
}

.exhibitorRowSec__siteLink--placeholder {
  visibility: hidden;
}

.exhibitorRowSec__siteLink:focus-visible {
  outline: 2px solid #d80c18;
  outline-offset: 2px;
}

.exhibitorRowSec__siteIcon {
  display: block;
  width: 18px;
  height: 18px;
}

.exhibitorRowSec__link::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.exhibitorRowSec__link:hover {
  background-color: rgba(35, 24, 21, 0.05);
}

.exhibitorRowSec__link:focus-visible {
  outline: 2px solid #d80c18;
  outline-offset: 2px;
}

.exhibitorRowSec__titles {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.exhibitorRowSec__brand {
  flex: 0 0 168px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.exhibitorRowSec__brandImg {
  display: block;
  width: 100%;
  max-width: 168px;
  max-height: 56px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.exhibitorRowSec__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.exhibitorRowSec__nameEn {
  display: block;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #666666;
  letter-spacing: 0.02em;
}

.exhibitorRowSec__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
}

.exhibitorRowSec__category {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #000000;
  background-color: transparent;
  border: 1px solid #cccccc;
  border-radius: 8px;
}

@media (max-width: 540px) {
  .exhibitorRowSec {
    padding-bottom: 48px;
  }

  .exhibitorRowSec__container {
    padding-left: var(--sp-pad-x, 16px);
    padding-right: var(--sp-pad-x, 16px);
  }

  .exhibitorRowSec__headBand {
    min-height: 40px;
  }

  .exhibitorRowSec__headTitle {
    font-size: 15px;
  }

  .exhibitorRowSec__inner {
    padding-top: 32px;
  }

  .exhibitorRowSec__link {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 16px 2px;
  }

  .exhibitorRowSec__brand {
    flex: 0 0 96px;
    width: 96px;
    max-width: 96px;
  }

  .exhibitorRowSec__brandImg {
    max-width: 100%;
    max-height: 36px;
  }

  .exhibitorRowSec__titles {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 108px);
  }

  .exhibitorRowSec__name {
    font-size: 15px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .exhibitorRowSec__cats {
    justify-content: flex-start;
    width: 100%;
  }
}

/* 出展社詳細モーダル */

/* 閉じた dialog は非表示。常時 display:flex すると open 解除後も表示され続ける（Safari 等） */
.exhibitorModal {
  box-sizing: border-box;
  display: none;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: clamp(16px, 4vw, 32px);
  border: none;
  background: transparent;
}

.exhibitorModal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.exhibitorModal::backdrop {
  background: rgba(26, 26, 26, 0.55);
}

.exhibitorModal__surface {
  position: relative;
  box-sizing: border-box;
  flex-shrink: 0;
  max-width: 760px;
  width: 100%;
  max-height: min(calc(100vh - 32px), calc(100dvh - 32px));
  margin: 0;
  overflow: auto;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 32px) clamp(24px, 4vw, 36px);
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  color: #231815;
  background-color: #f5f6fa;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.exhibitorModal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.exhibitorModal__close:hover {
  background-color: rgba(35, 24, 21, 0.06);
}

.exhibitorModal__close:focus-visible {
  outline: 2px solid #d80c18;
  outline-offset: 2px;
}

.exhibitorModal__closeIcon {
  display: block;
  width: 32px;
  height: auto;
}

.exhibitorModal__mount {
  margin: 0;
  padding: 0;
}

.exhibitorModal__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.exhibitorModal__heading {
  margin: 0;
  padding: 0 56px;
  text-align: center;
}

.exhibitorModal__title {
  margin: 0 0 6px;
  font-size: clamp(18px, 3.2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #000000;
  overflow-wrap: anywhere;
}

.exhibitorModal__nameEn {
  margin: 0;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: #666666;
  letter-spacing: 0.02em;
}

.exhibitorModal__logoFigure {
  box-sizing: border-box;
  width: 100%;
  max-width: 280px;
  margin: 20px auto 0;
  padding: 16px 20px;
  text-align: center;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.exhibitorModal__logoImg {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  max-height: 120px;
  margin: 0 auto;
  object-fit: contain;
}

.exhibitorModal__dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  align-items: baseline;
  margin: 28px 0 0;
  padding: 0;
  text-align: left;
}

.exhibitorModal__dt {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #231815;
}

.exhibitorModal__dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  word-break: break-all;
}

.exhibitorModal__link {
  color: #d80c18;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.exhibitorModal__link:hover {
  text-decoration-thickness: 2px;
}

.exhibitorModal__textBlock {
  margin-top: 24px;
  text-align: left;
}

.exhibitorModal__textLabel {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #231815;
}

.exhibitorModal__textBody {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  color: #333333;
}

.exhibitorModal__textBody > :first-child {
  margin-top: 0;
}

.exhibitorModal__textBody > :last-child {
  margin-bottom: 0;
}

.exhibitorModal__textBody p {
  margin: 0 0 0.75em;
}

.exhibitorModal__textBody ul,
.exhibitorModal__textBody ol {
  margin: 0 0 0.75em;
  padding-left: 1.25em;
}

@media (max-width: 540px) {
  .exhibitorModal__heading {
    padding: 0 48px;
  }

  .exhibitorModal__title {
    text-align: center;
  }
}
