/* ============================================================
   Creator Festival 出展者一覧 / 紹介ページ / 会場マップ
   色を変えたい場合は、下の変数だけ書き換えれば全体に反映されます
   ============================================================ */
.ex-wrap {
  --ex-green: #aed87e;       /* 枠線（FAQのボタン枠と同じ薄いグリーン） */
  --ex-green-dark: #66a818;  /* 濃いグリーン（Aマーク・ロゴと同じ。矢印・リンク） */
  --ex-pink: #de4272;        /* ブース番号・検索ボタン・件数のピンク */
  --ex-text: #555;
  --ex-radius: 4px;
  color: var(--ex-text);
  box-sizing: border-box;
}
.ex-wrap *,
.ex-wrap *::before,
.ex-wrap *::after { box-sizing: border-box; }

.ex-wrap .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- 検索欄（1段に「ブース」「フリーワード」を横並び） ---------- */
.ex-search {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 10px;
  margin: 0 0 20px;
}
.ex-field { margin: 0; min-width: 0; }
.ex-field--submit { grid-column: 1 / -1; }

.ex-wrap .ex-search select,
.ex-wrap .ex-search input[type="text"] {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ex-text);
  background-color: #fff;
  border: 1px solid var(--ex-green);
  border-radius: var(--ex-radius);
  box-shadow: none;
  outline: none;
}
.ex-wrap .ex-search select {
  -webkit-appearance: none;
  appearance: none;
  padding: 0 28px 0 10px;
  font-size: 14px;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2366a818' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px 18px;
  cursor: pointer;
}
.ex-wrap .ex-search input[type="text"]::placeholder { color: #8a94a0; font-size: 13px; }
.ex-wrap .ex-search select:focus,
.ex-wrap .ex-search input[type="text"]:focus {
  border-color: var(--ex-green-dark);
  box-shadow: 0 0 0 3px rgba(102, 168, 24, .18);
}

/* ---------- ボタン ---------- */
.ex-wrap .ex-btn-pink {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--ex-pink);
  border: 0;
  border-radius: var(--ex-radius);
  cursor: pointer;
  transition: opacity .15s;
}
.ex-wrap .ex-btn-pink:hover,
.ex-wrap .ex-btn-pink:focus { opacity: .88; color: #fff; }
.ex-wrap .ex-btn-pink.ex-btn-inline { display: inline-block; width: auto; min-width: 220px; }

.ex-wrap .ex-btn-outline {
  display: block;
  width: 100%;
  padding: 11px 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: var(--ex-green-dark);
  background: #fff;
  border: 1px solid var(--ex-green);
  border-radius: var(--ex-radius);
  white-space: nowrap;
}
.ex-wrap .ex-btn-outline:hover,
.ex-wrap .ex-btn-outline:focus { background: #f6fbef; color: var(--ex-green-dark); }

/* ---------- 件数・会場マップリンク ---------- */
.ex-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin: 0 0 8px;
  border-bottom: 1px solid #dfe3e8;
  scroll-margin-top: 90px; /* 固定ヘッダーに隠れないように */
}
.ex-wrap .ex-count { margin: 0; font-size: 15px; font-weight: 700; color: #555; }
.ex-wrap .ex-count-num { margin-right: 3px; font-size: 30px; line-height: 1; color: var(--ex-pink); }
.ex-wrap .ex-count--none { font-size: 16px; }

.ex-wrap .ex-detail-label .ex-maplink { flex: none; margin-left: auto; }
.ex-wrap .ex-maplink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ex-green-dark);
  text-decoration: none;
  border-bottom: 1.5px dotted var(--ex-green);
  white-space: nowrap;
}
.ex-wrap .ex-maplink .ex-icon-pin { flex: none; color: var(--ex-green); }
.ex-wrap .ex-maplink:hover { opacity: .8; }

/* ---------- 出展者グリッド（スマホ2列 / PC4列） ---------- */
.ex-wrap .ex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 14px;       /* 上下の余白を広めに */
  margin: 0;
  padding: 26px 0 10px;
  list-style: none;
}
.ex-wrap .ex-item { margin: 0; padding: 0; list-style: none; min-width: 0; }

.ex-wrap .ex-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f1f3f5;
  border-radius: 8px;
}
.ex-wrap .ex-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.ex-wrap .ex-noimg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #9aa4af;
}

.ex-wrap .ex-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.ex-wrap .ex-no {
  flex: none;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ex-pink);
}
.ex-wrap .ex-no--lg { font-size: 42px; }
.ex-wrap .ex-name {
  min-width: 0;
  padding-top: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #555;
  text-decoration: none;
  word-break: break-word;
}
.ex-wrap .ex-name:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .ex-search { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 12px; }
  .ex-wrap .ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; padding-top: 32px; }
  .ex-field--submit { max-width: 360px; }
  .ex-wrap .ex-btn-pink { width: 100%; }
}

/* ---------- ページ送り ---------- */
.ex-wrap .ex-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 34px 0 10px;
  padding-top: 24px;
  border-top: 1px dashed #cfd6dd;
}
.ex-wrap .ex-pager-cell { min-width: 0; }
.ex-wrap .ex-range { margin: 0; font-size: 12px; text-align: center; color: #6b7480; white-space: nowrap; }
@media (min-width: 768px) {
  .ex-wrap .ex-pager { grid-template-columns: 180px 1fr 180px; }
  .ex-wrap .ex-range { font-size: 14px; }
}

/* ---------- 出展者紹介ページ ---------- */
.ex-detail { max-width: 720px; margin: 0 auto; padding-top: 0; }
.ex-detail-head { margin: 0 0 12px; }
.ex-wrap .ex-detail-label { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; width: 100%; margin: 0 0 4px; }
.ex-wrap .ex-detail-numtype { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.ex-wrap .ex-type { font-size: 16px; font-weight: 700; color: #555; }
.ex-wrap .ex-detail-title {
  margin: 0;
  padding: 0;
  font-size: 28px;
  line-height: 1.3;
  text-align: left;          /* ブランド名は左揃え */
  color: #444;
  border: 0;
  background: none;
  word-break: break-word;
}
.ex-wrap .ex-detail-title::before,
.ex-wrap .ex-detail-title::after { display: none; }

.ex-gallery { margin: 0 0 22px; }
.ex-wrap .ex-gallery-main {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;       /* 左右スワイプで1枚ずつ切り替え */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 8px;
}
.ex-wrap .ex-gallery-main::-webkit-scrollbar { display: none; }
.ex-wrap .ex-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.ex-wrap .ex-slide img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 8px;
}
.ex-wrap .ex-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.ex-wrap .ex-thumbbtn {
  width: 76px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 3px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  opacity: .8;
}
.ex-wrap .ex-thumbbtn img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-wrap .ex-thumbbtn.is-active { border-color: var(--ex-pink); opacity: 1; }

.ex-wrap .ex-intro { margin: 0 0 22px; font-size: 16px; line-height: 1.9; }
.ex-wrap .ex-intro p { margin: 0 0 1em; }

.ex-wrap .ex-sns-list { display: flex; justify-content: center; gap: 16px; margin: 0 0 34px; }
.ex-wrap .ex-sns {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  text-decoration: none;
}
.ex-wrap .ex-sns:hover { opacity: .85; }
.ex-wrap .ex-sns--insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ex-wrap .ex-sns--x { background: #000; }
.ex-wrap .ex-sns--url { background: #e5e7eb; }

.ex-wrap .ex-backlink-wrap { margin: 0; text-align: center; }
.ex-wrap .ex-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ex-green-dark);
  text-decoration: none;
  border-bottom: 1.5px dotted var(--ex-green);
}
.ex-wrap .ex-backlink:hover { opacity: .8; }

/* 紹介ページで、テーマ側のタイトル・投稿日が重複して出る場合の対策 */
.single-exhibitor .entry-title,
.single-exhibitor .entry-meta,
.single-exhibitor .entry-footer { display: none; }
/* パンくず直下の余白を詰める（Lightningの .site-body の上余白が大きいため） */
.single-exhibitor .site-body { padding-top: 12px; }
.single-exhibitor .breadcrumb-list { padding-top: 4px; padding-bottom: 4px; }
.single-exhibitor .entry-body,
.single-exhibitor .entry-body > :first-child { margin-top: 0; padding-top: 0; }

/* ---------- 会場マップ ---------- */
.ex-map { max-width: 1000px; margin: 0 auto; }
.ex-wrap .ex-map-image img { display: block; width: 100%; height: auto; margin: 0 auto; }
.ex-wrap .ex-map-actions { margin: 24px 0 0; text-align: center; }
.ex-wrap .ex-map-empty { padding: 40px 0; text-align: center; color: #6b7480; }

/* 紹介ページの「前の記事／次の記事」を非表示（Lightning） */
.single-exhibitor .next-prev { display: none; }

/* 会場マップの戻るボタン */
.ex-wrap .ex-map-back { margin: 0; padding-top: 36px; }

/* 会場マップのダウンロードボタン（トップページの来場者向け画像のボタンと同じデザイン） */
.ex-wrap .ex-btn-pink.ex-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: auto;          /* 中身（アイコン＋文字）に合わせて幅が決まる */
  max-width: 100%;
  height: 46px;
  padding: 0 40px;      /* アイコン・文字の左右の余白（以前の約半分） */
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  color: #fff;
  background: #e24474;
  border-radius: 4px;
}
.ex-wrap .ex-btn-pink.ex-btn-download svg { flex: none; }
