@charset "utf-8";

/* =========================
   Exhibitor Detail Page
   ========================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: #fff;
  font-family: "Noto Serif JP", serif;
}

.ex_wrap {
  background: #fff;
  min-height: 100vh;
}

/* ===== Header ===== */
.ex_header {
  padding: 28px 48px;
  border-bottom: 1px solid #e8e8e8;
}

.ex_header__back {
  font-family: "MuseoModerno", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ex_header__back:hover {
  color: #333;
}

/* ===== Main ===== */
.ex_main {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

/* ===== Hero ===== */
.ex_hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.ex_hero__logo {
  width: 100%;
  max-width: 400px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ex_hero__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== Official Site Link ===== */
.ex_official_link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "MuseoModerno", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ex_official_link:hover {
  color: #111;
}

.ex_official_link__icon {
  font-size: 16px;
  line-height: 1;
}

/* ===== Divider ===== */
.ex_divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin-bottom: 60px;
}

/* ===== About ===== */
.ex_about__title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #111;
  margin-bottom: 32px;
  text-align: center;
}

.ex_about__text {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(13px, 1.3vw, 15px);
  font-weight: 300;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: #444;
}

/* ===== Gallery ===== */
/* コンテナ幅を突き破ってフル幅に */
.ex_gallery {
  margin-top: 100px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: 0 0 120px;
}

.ex_gallery__label {
  font-family: "MuseoModerno", sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  color: #bbb;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-align: center;
}

/*
  レイアウト（3枚）:
  ┌──────────────────────────────────────────────┐
  │  [  IMAGE 1（全幅 16:9）                     ]│
  └──────────────────────────────────────────────┘
     ↕ 3px gap
  ┌─────────────────────┐  ┌────────────────────┐
  │  IMAGE 2（1:1）     │  │  IMAGE 3（1:1）    │
  └─────────────────────┘  └────────────────────┘
*/
.ex_gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
}

/* 1枚目：2列フル幅 */
.ex_gallery__grid .ex_gallery__item:nth-child(1) {
  grid-column: 1 / 3;
}

.ex_gallery__item {
  overflow: hidden;
  background: #f0f0f0;
}

/* 1枚目：シネマスコープ比率 */
.ex_gallery__grid .ex_gallery__item:nth-child(1) {
  aspect-ratio: 16 / 7;
}

/* 2・3枚目：正方形 */
.ex_gallery__grid .ex_gallery__item:nth-child(2),
.ex_gallery__grid .ex_gallery__item:nth-child(3) {
  aspect-ratio: 1 / 1;
}

.ex_gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.16,1,.3,1);
}

.ex_gallery__item:hover img {
  transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .ex_header {
    padding: 20px 24px;
  }

  .ex_main {
    padding: 48px 24px 80px;
  }

  .ex_hero__logo {
    width: 100%;
    height: auto;
  }

  .ex_gallery__grid .ex_gallery__item:nth-child(1) {
    aspect-ratio: 4 / 3;
  }

  .ex_gallery__grid .ex_gallery__item:nth-child(2),
  .ex_gallery__grid .ex_gallery__item:nth-child(3) {
    aspect-ratio: 1 / 1;
  }
}
