:root {
  --h-exhibitors: 1384.3px;
  --sp-exhibitors-top: 100px;
  --exhibitors-x: 180px;
  --exhibitors-side-w: 247px;
  --exhibitors-gap: 72px;
  --exhibitors-content-w: 760px;
  --exhibitor-card-w: 370px;
  --exhibitor-card-img-h: 283.8px;
  --exhibitor-card-gap-x: 20px;
  --exhibitor-card-gap-y: 19.8px;
}

.exhibitors {
  height: var(--h-exhibitors);
  background: var(--c-bg);
}

.exhibitors__inner {
  display: grid;
  grid-template-columns: var(--exhibitors-side-w) var(--exhibitors-content-w);
  column-gap: var(--exhibitors-gap);
  width: calc(var(--exhibitors-side-w) + var(--exhibitors-gap) + var(--exhibitors-content-w));
  margin-left: var(--exhibitors-x);
  padding-top: var(--sp-exhibitors-top);
}

.exhibitors__lead {
  width: var(--exhibitors-content-w);
  color: #000;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 1.6px;
}

.exhibitors__grid {
  display: grid;
  grid-template-columns: repeat(2, var(--exhibitor-card-w));
  gap: var(--exhibitor-card-gap-y) var(--exhibitor-card-gap-x);
  margin-top: 20.8px;
}

.exhibitor-card {
  width: var(--exhibitor-card-w);
  height: 316.3px;
}

.exhibitor-card img {
  width: var(--exhibitor-card-w);
  height: var(--exhibitor-card-img-h);
  object-fit: cover;
  background: var(--c-bg-alt);
}

.exhibitor-card p {
  height: 24px;
  margin-top: 5px;
  color: #000;
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 1.2px;
  text-align: center;
}

.exhibitors__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 198px;
  height: 50px;
  margin-top: 30px;
  margin-left: 281px;
  color: #000;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 400;
  line-height: 20.3px;
  letter-spacing: 1.4px;
}

/* ===== Tablet 561–1024（Figma 1:453 倉一覧 実測） ===== */
@media (max-width: 1024px) {
  :root {
    --h-exhibitors: auto;
    --sp-exhibitors-top: 50px;      /* 倉一覧 padT */
    --exhibitors-x: 5%;             /* 40/800 */
    --exhibitors-side-w: 10.694%;   /* 77/720（コンテナ=800-40-40 基準） */
    --exhibitors-gap: 12.5%;        /* 90/720 */
    --exhibitors-content-w: 76.806%;/* 553/720 */
    --exhibitor-card-w: 50%;        /* 276.5×2 = 553、gap 0 */
    --exhibitor-card-img-h: 203.6px;
  }

  .exhibitors {
    padding-bottom: 200px;          /* 倉一覧 padB */
  }

  .exhibitors__inner {
    width: auto;
    margin-right: var(--exhibitors-x);
  }

  /* 見出しは「倉 一覧」（EN は隠す）。Frame36 padT150 */
  .exhibitors__side .section-title--center {
    display: none;
  }

  .exhibitors__side .section-title--jp {
    display: block;
    margin-top: 150px;
    font-size: var(--fs-21);
    line-height: 30.5px;
    letter-spacing: 2.1px;
    white-space: nowrap;
  }

  .exhibitors__lead {
    width: 100%;
    margin-top: 100px;              /* Frame32 padT100 */
  }

  .exhibitors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6% 6%;
    margin-top: 50px;               /* lead との autolayout gap */
  }

  .exhibitor-card {
    width: auto;
    height: auto;
  }

  /* spec/tablet_layout.json 実測（Frame86-89, y2620-3228）: 右列(2枚目)は1枚目と同じ行頭に並び、
     大きいのは左上の1枚目（313×235 vs 標準276.5×183 ＝ 約1.13倍）。次の行は1枚目の下端基準で始まる。
     transform-origin:left top の拡大でリフローなしに再現（px転記なし。旧: 右列down-shiftは実測と逆だったため削除） */
  .exhibitor-card {
    position: relative;
    z-index: 1;
  }
  .exhibitor-card:nth-child(1) {
    transform: scale(1.13);
    transform-origin: left top;
    z-index: 2;
  }

  .exhibitor-card img {
    width: 100%;
    height: var(--exhibitor-card-img-h);
  }

  .exhibitor-card p {
    height: auto;
    padding: 5px 0;
    line-height: 24px;
  }

  .exhibitors__link {
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
    height: 20px;
  }
}

/* ===== Mobile ≤560（Figma 1:690 倉一覧。カード領域は Figma 側が未整理のため
       tablet の2列パターンをモバイル寸法で適用。リード文は縦書き2行） ===== */
@media (max-width: 560px) {
  :root {
    --exhibitors-x: 8%;             /* 30/375 */
    --exhibitor-card-img-h: 116px;
  }

  /* mobile 総高が ref(7064) より過大。倉一覧末尾の余白を Figma の詰まりに寄せる（下パディングのみ＝重なりリスクなし） */
  .exhibitors {
    padding-bottom: 60px;
  }

  .exhibitors__inner {
    display: block;
    position: relative;
    margin-left: var(--exhibitors-x);
    margin-right: var(--exhibitors-x);
  }

  .exhibitors__side .section-title--jp {
    /* 「倉 一覧」 x30 y2870 w172 中央寄せ */
    width: 172px;
    margin-top: 150px;
    text-align: center;
  }

  .exhibitors__lead {
    /* 縦書きの細いカラム（x292 y2820 w53 h800） */
    position: absolute;
    top: 150px;
    right: 0;
    width: auto;
    height: 700px;
    margin-top: 0;
    line-height: 32px;          /* Figma: lead 16/32（縦書き列送り） */
    writing-mode: vertical-rl;
  }

  /* デスクトップ用の文単位<br>を縦書き1列連続流し込みでは無効化（ref: 列分割なし1本の縦列） */
  .exhibitors__lead br {
    display: none;
  }

  .exhibitors__content {
    margin-top: 0;
  }

  .exhibitors__grid {
    /* 縦書きリード末尾を抜けた位置から開始。ref は画像が lead と近接し総高が短い＝
       旧770pxの死に余白を詰めて ref(7064) 過大を是正（重なりは再描画で目視確認済み） */
    margin-top: 650px;
  }

  .exhibitor-card p {
    /* Figma mobile: 事業社名 16/32（tablet の 12/24 継承を上書き） */
    font-size: var(--fs-16);
    line-height: 32px;
  }
}
