/* =============================================
   new build ~ Vol.2 | style.css
   ============================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: #fff;
  color: #000;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Prevent any element from causing horizontal scroll */
.section,
.hero-info-col,
.section-content,
.participant-row {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
}

.hero-full-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-img-mobile {
  display: none;
}

/* Description text overlay — right column, horizontally centered in white area */
.hero-desc {
  display: none;
}

.hero-presented {
  display: none;
}

/* =============================================
   INTRO SECTION (感謝テキスト)
   ============================================= */
#intro {
  margin-top: -40px;
  padding: clamp(36px, 4vw, 60px) clamp(60px, 8vw, 120px);
  border-bottom: 1px solid #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 2vw, 32px);
}

.intro-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 2.4;
  letter-spacing: 0.05em;
  color: #000;
  max-width: 860px;
  margin: 0 auto;
}

/* =============================================
   SECTION COMMON LAYOUT
   ============================================= */
.section {
  display: block;
}

/* Only key structural sections get a bottom border */
#information,
#event-area-map,
#live-performance,
#spatial-design,
#drink {
  border-bottom: 1px solid #000;
}

/* Section label SVG — horizontal, top of section */
.section-label-top {
  display: block;
  height: clamp(36px, 4vw, 60px);
  width: auto;
  margin-bottom: clamp(48px, 6vw, 100px);
}

/* --- Section content area --- */
.section-content {
  padding: 60px 80px;
  min-width: 0;
}

/* =============================================
   INFORMATION SECTION
   ============================================= */
.info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-bottom: 40px;
}

.info-table tr {
  border-bottom: 1px solid #ccc;
}

.info-table tr:first-child {
  border-top: 1px solid #ccc;
}

.info-table td {
  padding: 20px 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1.67vw, 24px);
  line-height: 1.8;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.info-table .info-key {
  font-weight: 700;
  font-size: clamp(14px, 2.22vw, 32px);
  width: 240px;
  min-width: 160px;
  padding-right: 80px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.info-table .info-val {
  color: #000;
}

.access-line {
  font-size: 0.8em;
  letter-spacing: 0.08em;
  color: #666;
}

.access-station {
  padding-left: 0;
}

.info-link {
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.info-link:hover {
  opacity: 0.5;
}

.venue-links {
  display: flex;
  gap: 24px;
  margin-top: 6px;
}

.venue-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(10px, 0.9vw, 13px);
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.venue-link:hover {
  opacity: 0.5;
}

.parking-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 1vw, 16px);
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #000;
  margin-bottom: 40px;
}

.access-map-wrap {
  max-width: 800px;
}

.access-map {
  width: 100%;
  height: auto;
}

/* =============================================
   EVENT AREA MAP SECTION
   ============================================= */
.floor-block {
  /* base block */
}

.floor-block--border {
  margin-top: clamp(40px, 5vw, 80px);
}

.floor-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.floor-num {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: clamp(16px, 2vw, 28px);
  color: #000;
}

.floor-map-img-wrap {
  width: 100%;
}

.floor-map-img {
  width: 100%;
  height: auto;
  display: block;
}

.event-area-heading-svg {
  height: clamp(22px, 2.8vw, 40px);
  width: auto;
  display: block;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.event-area-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.area-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.area-letter {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.7;
  min-width: 18px;
  flex-shrink: 0;
  color: #000;
}

.area-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.area-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: clamp(13px, 1.5vw, 20px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #000;
}

.area-time {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 26px);
  letter-spacing: 0.02em;
  color: #000;
  line-height: 1.5;
}

/* =============================================
   PARTICIPANT ROW (DRINK / SPATIAL / LIVE / MODELS)
   ============================================= */
.participant-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}

.participant-row--border {
  border-bottom: 1px solid #ccc;
}

.participant-img-wrap {
  width: 320px;
  flex-shrink: 0;
}

.participant-img-wrap--logo {
  display: block;
  position: relative;
  background: #000;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  overflow: hidden;
}

.participant-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.participant-img-wrap--square .participant-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
}

#img-model-ayayama {
  object-position: center center;
}

#img-model-kawayoshida {
  object-position: center 30%;
}

#img-model-leah {
  object-position: center 38%;
}

#img-model-takahashi {
  object-position: center 30%;
}

.participant-img--logo {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  bottom: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  object-fit: contain;
  filter: invert(1);
}

.participant-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.participant-name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 36px);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.participant-name-sub {
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.participant-tag {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(10px, 1vw, 14px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid #000;
  display: inline-block;
  padding: 4px 12px;
  width: fit-content;
}

.participant-time {
  font-size: clamp(20px, 2vw, 28px);
  vertical-align: middle;
  margin-left: 8px;
}

.participant-schedule {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 15px);
  letter-spacing: 0.1em;
  color: #000;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.participant-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(11px, 1.1vw, 16px);
  line-height: 2;
  letter-spacing: 0.05em;
  color: #000;
}

/* =============================================
   INSTAGRAM LINK
   ============================================= */
.participant-instagram {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.06em;
  color: #888;
  text-decoration: none;
  transition: opacity 0.2s;
  width: fit-content;
}

.participant-instagram:hover {
  opacity: 0.55;
}

.instagram-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: none;
  stroke: #888;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   HEADER / NAV
   ============================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(10px, 2vw, 30px);
  height: 48px;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

#site-header.is-visible {
  transform: translateY(0);
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: clamp(16px, 2vw, 40px);
}

.header-logo-img {
  height: clamp(18px, 2vw, 28px);
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 48px);
}

.header-nav-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s;
}

.header-nav-link:hover {
  opacity: 0.45;
}

.header-nav-svg {
  height: clamp(8px, 0.85vw, 11px);
  width: auto;
  display: block;
}

/* ハンバーガーボタン */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 190;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 36px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.mobile-menu-link {
  display: block;
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s;
}

.mobile-menu-link:active {
  opacity: 0.4;
}

.mobile-menu-svg {
  height: 18px;
  width: auto;
  display: block;
}

/* ヘッダー分のスクロールオフセット */
#hero,
#information,
#event-area-map,
#drink,
#spatial-design,
#live-performance,
#models-exhibition {
  scroll-margin-top: 48px;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
  padding: 40px 60px;
  border-top: 1px solid #ccc;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #555;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 0.5;
}

.footer-link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-copy {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: #666;
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 100;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(0, 0, 0, 0.45);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .section-content {
    padding: 48px 40px;
  }

  .info-table .info-key {
    width: 160px;
    min-width: 120px;
    padding-right: 20px;
  }

  .participant-row {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .participant-img-wrap {
    width: 240px;
  }

  .participant-img-wrap--logo {
    width: 240px;
    height: 240px;
  }

  .floor-grid {
    gap: 32px;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================= */
@media (max-width: 768px) {

  /* --- Header mobile --- */
  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  /* --- Hero mobile image switch --- */
  .hero-img-desktop {
    display: none;
  }

  .hero-img-mobile {
    display: block;
  }

  /* --- Hero mobile --- */
  .hero-desc {
    display: block;
    position: static;
    max-width: 100%;
    text-align: left;
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    font-size: 15.5px;
    line-height: 1.9;
    margin-top: -120px;
    padding: 0 14px;
    color: #000;
  }

  .hero-desc br {
    display: block;
  }

  .hero-presented {
    display: block;
    position: static;
    text-align: left;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    padding: 16px 20px 48px;
    font-size: 8px;
    letter-spacing: 0.15em;
    color: #aaa;
  }

  /* --- Intro mobile --- */
  #intro {
    padding: 40px 20px;
  }

  .intro-body {
    font-size: 15px;
    line-height: 2.2;
  }

  /* --- Section label mobile --- */
  .section-label-top {
    height: 28px;
    margin-bottom: 48px;
  }

  /* --- Section content mobile --- */
  .section-content {
    padding: 32px 20px;
  }

  /* --- Info table mobile --- */
  .info-table td {
    font-size: 17px;
    padding: 14px 0;
  }

  .info-table .info-key {
    width: 130px;
    min-width: 110px;
    padding-right: 12px;
    font-size: 17px;
    letter-spacing: 0.05em;
  }

  .info-table .venue-link {
    font-size: 12px !important;
  }

  .parking-note {
    font-size: 13px;
  }

  .pc-only-br {
    display: none;
  }

  /* --- Floor maps mobile --- */
  .floor-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* モバイル: リスト → 1Fマップ → 2Fマップ の順に表示 */
  .floor-info-side {
    order: -1;
  }

  .floor-map-side {
    margin-top: 40px;
  }

  .floor-num {
    font-size: 28px;
  }

  .event-area-heading-svg {
    display: none;
  }

  .event-area-list {
    gap: 10px;
  }

  .area-item {
    gap: 14px;
  }

  .area-name {
    font-size: 15px;
  }

  .area-time {
    font-size: 14px;
  }

  /* --- Participant rows mobile --- */
  .participant-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .participant-img-wrap {
    width: 100%;
    max-width: 100%;
  }

  .participant-img-wrap--logo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .participant-name {
    font-size: 22px;
  }

  .participant-desc {
    font-size: 15px;
    line-height: 2;
  }

  /* --- Footer mobile --- */
  #footer {
    padding: 32px 20px;
  }

  /* --- Back to top mobile --- */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================= */
@media (max-width: 480px) {
  .info-table .info-key {
    width: 110px;
    font-size: 15px;
  }

  .info-table td {
    font-size: 15px;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */

/* 展示テーマタイトル */
.exhibit-theme {
  font-weight: 600;
  display: inline-block;
}

/* ⑤ Hero initial fade-in */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-desc {
    animation: heroFadeIn 1.2s ease 0.6s both;
  }

  .hero-presented {
    animation: heroFadeIn 1s ease 1.2s both;
  }
}

/* ① Scroll fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ③ Image clip reveal */
.img-reveal {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.img-reveal.is-revealed {
  clip-path: inset(0 0 0% 0);
}

/* アクセシビリティ: アニメーション無効設定 */
@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .img-reveal {
    transition: none;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
  .img-reveal {
    clip-path: none;
  }
  .hero-desc,
  .hero-presented {
    animation: none;
  }
}
