/* ============================================================
   FIRST VIEW
   ============================================================ */
.first-view {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  z-index: 200;
}

.first-view * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.first-view img {
  -webkit-user-drag: none;
  pointer-events: none;
}

/* KV ── PC / モバイル 出し分け */
.kv-pc {
  display: block;
  max-width: calc(100% - 20px);
  max-height: 103%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  animation: fadeIn 0.5s ease-in-out;
}

.kv-mobile {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

/* KV ── モバイル レイアウト */
.kv-m {
  position: absolute;
  pointer-events: none;
  -webkit-user-drag: none;
}

.kv-m--center {
  width: 100%;
  top: 47%;
  left: 51%;
  transform: translate(-50%, -50%);
}

.kv-m--top-left {
  width: 50%;
  top: 10px;
  left: 5px;
}

.kv-m--bottom-right-a {
  width: 65%;
  bottom: 48px;
  right: 5px;
}

.kv-m--bottom-right-b {
  width: 40%;
  bottom: 15px;
  right: 5px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.99);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   Statement
   ============================================================ */
.statement-section {
  padding: 0 var(--section-pad-x) 5rem;
  max-width: var(--section-max-w);
  margin: 0 auto;
}

.statement-content h2 {
  font-size: clamp(var(--font-size-xl), calc(100vw / 35), 52px);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin: 0;
}

.signature {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  text-align: right;
  margin-top: 10rem;
}

/* ============================================================
   About
   ============================================================ */
.about-section {
  padding: 5rem var(--section-pad-x);
  max-width: var(--section-max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-content p {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin: 0;
  text-align: justify;
}

/* ============================================================
   Flyer
   ============================================================ */
/* ── stack レイアウト（デフォルト：重ね合わせ） ── */
.flyer-section {
  padding: 5rem var(--section-pad-x) 5rem;
  max-width: var(--section-max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  cursor: pointer;
  overflow-anchor: none;
  position: relative;
  z-index: 1;
}

.flyer-section--stack {
  position: relative;
  display: block;
}

.flyer-wrap {
  /* width, margin-left は JS で制御 */
  position: relative;
  overflow: hidden;
}

/* アニメーション中は hover を無効化 */
.flyer-section--animating .flyer-wrap {
  pointer-events: none;
}

.flyer-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ── scatter レイアウト（無造作に積み重ねた紙） ── */
.flyer-section--scatter {
  position: relative;
  display: block;
  min-height: 300px;
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow-x: clip;
}

/* ── grid レイアウト（重なりなし） ── */
.flyer-section--grid {
  display: grid;
  grid-template-columns: repeat(var(--flyer-columns, 5), 1fr);
  gap: 0;
  padding-left: 0;
  padding-right: 0;
}

.flyer-section--grid .flyer-wrap {
  width: 100%;
}

/* ============================================================
   Overview & Access Grid
   ============================================================ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 0;
  max-width: var(--section-max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Overview & Access
   ============================================================ */
.overview-section,
.access-section {
  padding: 5rem var(--section-pad-x);
  max-width: none;
  margin: 0;
}

.overview-content h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 2rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item {
  margin-bottom: 2rem;
  font-variant-numeric: tabular-nums;
}

.info-item h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.info-item p {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
  margin: 0;
}

.info-item a {
  color: var(--color-accent);
  text-decoration: underline;
}

.info-item a:hover {
  text-decoration: none;
}

.map-container {
  margin-top: 0.5rem;
  padding-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
}

.map-container iframe {
  display: block;
}

/* ============================================================
   RESPONSIVE ── タブレット (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .flyer-section {
    margin: 2rem 0;
  }
}

/* ============================================================
   RESPONSIVE ── モバイル (≤ 480px) - Content
   ============================================================ */
@media (max-width: 480px) {
  /* KV */
  .kv-pc {
    display: none;
  }

  .kv-mobile {
    display: block;
  }

  /* Content */
  .signature {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
  }

  .about-section {
    padding: 5rem var(--section-pad-x) 0;
  }

  .about-content p {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
  }

  .flyer-section {
    margin: 0;
  }
}
