/* ============================================================
   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: 5rem 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 / 36), 52px);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: var(--line-height-relaxed);
  margin: 0;
  padding-bottom: 5rem;
}



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

.about-content p,
.life-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;
}

.life-content .theme-title {
  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  margin: 4rem 0 4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
}



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

.news-content ul {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);

  line-height: var(--line-height-relaxed);
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-content li {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
}

.news-content li span:first-child {
  color: var(--color-text);
  white-space: nowrap;
}

.news-content li span:last-child {
  color: var(--color-text);
}

/* ============================================================
   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;
}



.map-container {
  margin-top: 0.5rem;
  padding-bottom: 2rem;
  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 */
  .statement-section {
    padding: 5rem var(--section-pad-x-mobile) 5rem;
  }

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

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

  .life-content .theme-title {
    font-size: 3.5rem;
    margin: 1rem 0 2rem;
  }

  .news-section {
    padding: 5rem var(--section-pad-x-mobile);
  }

  .news-content li {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
  }

  .news-content li span:last-child {
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .overview-section {
    padding: 5rem var(--section-pad-x-mobile);
  }

  .access-section {
    padding: 5rem var(--section-pad-x-mobile) 5rem;
  }



  .flyer-section {
    margin: 0;
  }
}