/* 出展者一覧（2026-09-23）
   このファイルは exhibitors.html 専用。style.css には手を入れない。
   接頭辞 .ex- で閉じてあるので、他ページの見た目には影響しない。 */

.ex-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ex-search {
  flex: 1 1 260px;
  max-width: 420px;
}

.ex-search__label {
  display: block;
  color: var(--text-on-light-sub, #2e6dc8);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.ex-search__input {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-on-light, #0d4ea3);
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ex-search__input:focus {
  outline: none;
  border-color: var(--color-pink, #ff3aa8);
  box-shadow: 0 0 0 3px rgba(255, 58, 168, 0.2);
}

.ex-count {
  font-family: 'Rajdhani', 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin: 0;
  color: var(--text-on-light, #0d4ea3);
}

.ex-note,
.ex-updated {
  font-size: 0.85rem;
  color: var(--text-on-light-sub, #2e6dc8);
  margin: 0 0 22px;
}

.ex-updated {
  margin: 26px 0 0;
  text-align: right;
}

.ex-nohit {
  padding: 40px 0;
  text-align: center;
  font-weight: 700;
  color: var(--text-on-light, #0d4ea3);
}

/* ---- 一覧 ---- */

.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ex-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  color: var(--text-on-light, #0d4ea3);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ex-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.11);
}

.ex-card__logo {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f3f6;
}

.ex-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ex-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ex-card__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 6px;
  color: var(--text-on-light, #0d4ea3);
  overflow-wrap: anywhere;
}

.ex-card__desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-on-light-sub, #2e6dc8);
  margin: 0;
  overflow-wrap: anywhere;
}

/* 省略は JS が付けたときだけ。JS が動かない環境では全文が出る */
.ex-card__desc.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.ex-card__more {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-on-light-sub, #2e6dc8);
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}

/* ★ hidden 属性より .ex-card__more の display 指定のほうが強いため、
 *   これが無いと「hidden なのに見えている」状態になる（2026-09-23 の不具合）。 */
.ex-card__more[hidden] {
  display: none;
}

.ex-card__more:hover { opacity: 0.7; }

.ex-card__more:focus-visible {
  outline: 2px solid var(--color-pink, #ff3aa8);
  outline-offset: 2px;
}

.ex-card__link {
  display: inline-block;
  margin-top: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-pink, #ff3aa8);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.ex-card__link:hover {
  opacity: 0.75;
}

.ex-card[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .ex-grid { grid-template-columns: 1fr; gap: 14px; }
  .ex-card__logo { flex-basis: 64px; width: 64px; height: 64px; }
  .ex-updated { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-card { transition: none; }
  .ex-card:hover { transform: none; }
}

/* ---- 入稿がまだの団体（名前のみ） ---- */

.ex-card--pending {
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  border: 1px dashed rgba(13, 78, 163, 0.28);
}

.ex-card--pending:hover {
  transform: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.ex-card__logo--empty {
  background: repeating-linear-gradient(
    45deg,
    rgba(13, 78, 163, 0.06),
    rgba(13, 78, 163, 0.06) 6px,
    rgba(13, 78, 163, 0.02) 6px,
    rgba(13, 78, 163, 0.02) 12px
  );
}

.ex-card__pending {
  display: inline-block;
  margin: 2px 0 0;
  padding: 2px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-on-light-sub, #2e6dc8);
  background: rgba(13, 78, 163, 0.08);
  border-radius: 999px;
}
