body {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
  font-size: 20px;
  margin: 0;
}

.menu {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  box-shadow: 0 0 24px 8px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 30px;
  right: 16px;
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
  z-index: 1000;
  min-width: 200px;
}

.menu a {
  color: inherit;
  text-decoration: none;
  line-height: 20px;
}

.title {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  min-height: 660px;
  max-height: 1080px;
  gap: 12px;
}

.title .video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.title .video-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.50);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 2px),
    radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 2px); /* ドット濃く */
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  z-index: 1;
  pointer-events: none;
}

.title .video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
  transform: translate(-50%, -50%) translateY(-60px);
  min-width: unset;
  max-width: unset;
  z-index: 0;
}

.title .main-text {
  font-size: 72px;
  font-weight: bold;
  height: 72px;
  line-height: 72px;
  position: relative;
  z-index: 1;
}

.title .sub-text {
  line-height: 20px;
  position: relative;
  z-index: 1;
}

.subtitle {
  background-position: center center;
  background-size: cover;
  height: 80vh;
  min-height: 660px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.subtitle.roumon {
  background-image: url("images/roumon.webp");
}

.subtitle.gohonden {
  background-image: url("images/gohonden.webp");
}

.subtitle.kaerumata {
  background-image: url("images/kaerumata.webp");
}
.subtitle.matsuri {
  background-image: url("images/matsuri.webp");
}
.subtitle.pic {
  background-image: url("images/pic.jpg");
}
.subtitle.tengu {
  background-image: url("images/tengu.webp");
}
.subtitle.saginomai {
  background-image: url("images/saginomai.webp");
}
.subtitle.omikoshi {
  background-image: url("images/omikoshi.webp");
}
.subtitle.urayasu {
  background-image: url("images/urayasu.webp");
}
.subtitle.gionbayashi {
  background-image: url("images/gionbayashi.webp");
}
.subtitle.renga {
  background-image: url("images/renga.webp");
}
.subtitle.mai {
  background-image: url("images/mai.webp");
}
.subtitle.sagi {
  background-image: url("images/sagi.webp");
}
.subtitle.map {
  background-image: url("images/map.webp");
}
.subtitle.touya {
  background-image: url("images/touya.webp");
}
.subtitle.keisho {
  background-image: url("images/keisho.webp");
}
.subtitle.katsugite {
  background-image: url("images/katsugite.webp");
}

.subtitle .text {
  font-size: 144px;
  line-height: 144px;
}

.subtitle-video iframe {
  width: 100%;
  height: 56.25vw; /* 16:9 aspect ratio */
  max-width: 100vw;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.detail {
  width: 100%;
  box-sizing: border-box;
  padding: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail p {
  margin: 0 0 24px 0;
  width: 100%;
}

.detail .note {
  font-size: 16px;
}

.bottom-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 100px;
  gap: 24px;
}

.detail a,
.bottom-menu a {
  color: inherit;
  text-decoration: none;
  font-size: 16px;
  border: 1px solid white;
  border-radius: 4px;
  line-height: 50px;
  width: 280px;
  text-align: center;
}

.bottom-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 100px 0;
}

.bottom-info p {
  font-size: 16px;
  text-align: center;
}

.detail.index,
.bottom-menu.index,
.bottom-info.index {
  background-color: rgb(166, 60, 36);
}

.detail.gionmatsuri,
.bottom-menu.gionmatsuri,
.bottom-info.gionmatsuri {
  background-color: rgb(71, 60, 2);
}

.detail.saginomai,
.bottom-menu.saginomai,
.bottom-info.saginomai {
  background-color: rgb(133, 133, 14);
}

.detail.omikoshi,
.bottom-menu.omikoshi,
.bottom-info.omikoshi {
  background-color: rgb(133, 103, 14);
}

@media (max-width: 600px) {

  .subtitle,
  .detail,
  .bottom-menu,
  .bottom-info {
    padding: 40px;
  }
}
