/* 全体 */
body {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  background: #faf7f2;
  color: #3b2f2f;
}

/* =====================
   最初の黒いページ
===================== */

#popup-nami-content {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

#popup-nami {
  overflow: visible;
}

#nami-group {
  transform-origin: center;
}

#popup {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;

  /* めくり演出 */
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 1.6s ease-in-out, opacity 0.6s ease;
  perspective: 1200px;
}

#popup.turn {
  transform: rotateY(-100deg);
}

#popup.hide {
  opacity: 0;
  pointer-events: none;
}

#popup-title {
  font-size: 60px;
  color: white;
  white-space: nowrap;
  transform-origin: center center;
  transition: opacity 0.5s ease;
}

#popup.turn #popup-title {
  opacity: 0;
}

/*メイン*/

#hero {
  position: relative;
  height: 100vh;
  background: url("leaflet.png") center / cover no-repeat;
}

.hero-over {
  position: absolute;
  inset: 0;
  background: rgba(255, 210, 170, 0.25);
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #f3eee7;
}

.hero-box {
  background: rgba(0, 0, 0, 0.35);
  padding: 28px 48px 20px;
  width: fit-content;
}

.hero-text h1 {
  font-size: 45px;
  letter-spacing: 0.1em;
}

.catch {
  margin-top: 20px;
  font-size: 18px;
  opacity: 0.85;
}

.story-title {
  margin-top: 20px;
  font-size: 36px;
  opacity: 0.85;
}

.leaflet-btn {
  display: inline-block;
  padding: 12px 32px;
  margin-top: 20px;
  border: 1px solid #3b2f2f;
  color: #3b2f2f;
  text-decoration: none;
  border-radius: 30px;
  background: rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}

.leaflet-btn:hover {
  background: #3b2f2f;
  color: white;
}

/*公演情報など*/

#info {
  padding: 80px 20px;
  text-align: center;
}

#info h2 {
  font-size: 40px;
  margin-bottom: 30px;
}

#info p {
  font-size: 20px;
}

.info-logo {
  display: block;
  margin: 24px auto 20px;
  max-width: 180px;
  filter: invert(1);
}

.reserve-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 40px;
  background: #c96f53;
  color: white;
  text-decoration: none;
  border-radius: 40px;
  transition: background 0.3s;
}

.reserve-btn:hover {
  background: #b45c42;
}

/*スタッフ*/

#staff {
  padding: 80px 20px;
  background: #f3eee7;
  text-align: center;
}

#staff h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.staff-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.staff-list li {
  font-size: 16px;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.staff-list span {
  display: inline-block;
  min-width: 90px;
  color: #8a5a44;
}

/*フッター*/

#footer {
  padding: 40px 20px;
  background: #2f2522;
  color: #eee;
  text-align: center;
}

.theatre-name {
  font-size: 18px;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

/*スマホ対応*/

@media screen and (max-width: 768px) {

  /* ポップアップ */
  #popup-title {
    font-size: 32px;
  }

  #hero {
    height: 100svh;
  }

  .hero-box {
    padding: 20px 24px 16px;
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 22px;
    letter-spacing: 0.05em;
  }

  .story-title {
    font-size: 20px;
    margin-top: 12px;
  }

  .catch {
    font-size: 14px;
    margin-top: 12px;
  }

  .leaflet-btn {
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 14px;
  }

  /* 公演情報 */
  #info {
    padding: 60px 16px;
  }

  #info h2 {
    font-size: 26px;
  }

  #info p {
    font-size: 15px;
    line-height: 1.8;
  }

  .info-logo {
    max-width: 120px;
    margin: 20px auto;
  }

  .reserve-btn {
    padding: 12px 32px;
    font-size: 14px;
  }

  /* スタッフ */
  #staff {
    padding: 60px 16px;
  }

  #staff h2 {
    font-size: 24px;
  }

  .staff-list li {
    font-size: 14px;
  }

}

body.modal-open {
  overflow: hidden;
}

#leaflet-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

#leaflet-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.leaflet-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: #faf7f2;
  padding: 16px;
}

.leaflet-inner img {
  width: 100%;
  height: auto;
}

.leaflet-close {
  position: sticky;
  top: 0;
  display: block;
  text-align: right;
  font-size: 28px;
  cursor: pointer;
}
