:root {
  --navy: #001343;
  --frame: #d2d3d5;
  --outline: #aeafb1;
  --void: #060708;
  --ink: #151515;
  --muted: #555555;
  --page-bg: #fcfcfc;
  --window-scale: 1;
  --zoom-progress: 0;
  --bg-progress: 0;
  --fade-progress: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: color-mix(
    in srgb,
    var(--page-bg),
    var(--navy) calc(var(--bg-progress) * 100%)
  );
  font-family:
    "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", "Noto Serif JP", serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ハンバーガーボタンのスタイル */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  margin: 5px 0;
  transition: 0.4s;
}

/* バツ印に変化するスタイル */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* メニューのスタイル */
.menu {
  writing-mode: vertical-rl;
  position: fixed;
  top: -120%; /* 初期状態でメニューを画面の外に */
  right: 0;
  width: 100vw;
  height: 100vh;
  background-color: #1a3c2f;
  padding: 20px;
  z-index: 5;
  transition: top 0.3s ease; /* スライドアニメーション */
  h1 {
    color: #fcfcfc;
    font-size: 36px;
    padding-top: 10vh;
    padding-right: 8vw;
    letter-spacing: 0.5em;
  }
}

.list-item {
  position: absolute;
  top: 10vh;
  right: 18vw;
}

.list-item a {
  font-size: 30px;
  color: #fcfcfc;
  letter-spacing: 0.5em;
}

.list-item li {
  padding: 50px;
  list-style: none;
}

.poem-list {
  position: absolute;
  top: 25vh;
  right: 48vw;
}

.poem-list a {
  font-size: 24px;
  color: #fcfcfc;
  letter-spacing: 0.5em;
}

.poem-list li {
  padding: 40px;
  list-style: none;
}

/* メニューが表示される時 */
.menu.open {
  top: 0; /* メニューが表示される位置 */
}

.menu-button span {
  display: block;
  height: 3px;
  background: var(--ink);
}

.hero {
  width: 100vw;
  height: 2000px;
  min-height: 800px;
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.hero-sticky::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: var(--navy);
  opacity: clamp(0, calc((var(--zoom-progress) - 0.86) * 7), 1);
  content: "";
}

.tree {
  position: absolute;
  top: 0;
  opacity: calc(1 - clamp(0, calc(var(--fade-progress) * 1.5), 1));
}

.tree img {
  width: 600px;
}
.window-stage {
  position: absolute;
  top: 39%;
  left: 50%;
  z-index: 5;
  width: clamp(200px, 25vw, 300px);
  aspect-ratio: 0.78;
  transform: translate(-50%, -50%) scale(var(--window-scale));
  transform-origin: 50% 64%;
  will-change: transform;
}

.window-outline {
  position: absolute;
  inset: 0;
  border: 1px solid var(--outline);
  border-bottom-width: 2px;
  background: #ffffff;
  border-radius: 50% 50% 0 0 / 31% 31% 0 0;
  /* opacity: calc(1 - clamp(0, calc((var(--zoom-progress) - 0.68) * 3), 1)); */
}

.window-frame {
  position: absolute;
  inset: 5.5% 7.5% 4.5%;
  padding: clamp(14px, 1.7vw, 26px);
  background: var(--frame);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

.window-core {
  width: 100%;
  height: 100%;
  background: #001343;
  border-radius: 50% 50% 0 0 / 29% 29% 0 0;
}

.hero-copy {
  position: absolute;
  left: clamp(20px, 5vw, 170px);
  bottom: 10vw;
  z-index: 6;
  display: grid;
  gap: 16px;
  margin: 0;
  color: rgba(30, 30, 30, 0.72);
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  opacity: calc(1 - clamp(0, calc(var(--fade-progress) * 1.5), 1));
  font-family: shippori-mincho-b1, sans-serif;
}

.vertical-poem {
  position: absolute;
  top: 10vw;
  right: 10vw;
  z-index: 6;
  margin: 0;
  color: rgba(0, 0, 0, 0.82);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 2.4;
  opacity: calc(1 - clamp(0, calc(var(--fade-progress) * 1.8), 1));
  writing-mode: vertical-rl;
  font-family: shippori-mincho-b1, sans-serif;
}

.scroll-guide {
  position: absolute;
  right: 0;
  bottom: clamp(112px, 16vh, 154px);
  left: 0;
  z-index: 6;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  opacity: calc(1 - clamp(0, calc(var(--fade-progress) * 2), 1));
  font-family: dnp-shuei-shogomincho-std, sans-serif;
}

.scroll-guide strong {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1;
}

.scroll-guide span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.scroll-guide i,
.scroll-guide i::before {
  display: block;
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(0, 0, 0, 0.42);
  border-bottom: 2px solid rgba(0, 0, 0, 0.42);
  transform: rotate(45deg);
  content: "";
}

.scroll-guide i::before {
  transform: rotate(0deg);
}

.scroll-guide i {
  margin-top: 2px;
  animation: floatArrow 1.6s ease-in-out infinite;
}

.scroll-guide i::before {
  position: relative;
  top: -10px;
  left: -10px;
}

.tile-floor {
  position: absolute;
  bottom: 0;
  opacity: calc(1 - clamp(0, calc(var(--fade-progress) * 1.5), 1));
}

.tile-floor img {
  width: cover;
}

.concept {
  /* min-height: -20vh; */
  height: 650px;
  display: grid;
  place-items: center;
  padding: 80px;
  color: #f5f7fb;
  background: var(--navy);
  text-align: center;
  position: relative;
}

.concept-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.concept-text {
  position: absolute;
  margin-top: 12vh;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.1em;
  line-height: 2;
  h1 {
    font-size: 24px;
    font-family: dnp-shuei-shogomincho-std, sans-serif;
  }
}

.concept-explain {
  margin-top: 30px;
  p {
    padding: 0.25rem;
    font-family: shippori-mincho-b1, sans-serif;
  }
}

.concept-info {
  margin-top: 30px;
  p {
    padding: 0.5rem;
    font-family: shippori-mincho-b1, sans-serif;
  }
}

.sky-poem {
  position: absolute;
  top: 22vh;
  left: 3vw;
}

.water-poem {
  position: absolute;
  top: 30vh;
  right: 4vw;
}

.season-poem {
  position: absolute;
  top: -23vh;
  left: -1vw;
}

.plants-poem {
  position: absolute;
  top: -25vh;
  right: 0vw;
}

.window-shape1 {
  position: absolute;
  top: 5vh;
  left: 12vw;
}

.window-shape2 {
  position: absolute;
  top: 16vh;
  right: 20vw;
}

.window-shape1 img {
  position: absolute;
  top: 0;
  width: 10vw;
}

.window-shape2 img {
  position: absolute;
  top: 0;
  width: 8vw;
}
.poem-name {
  display: none;
}

.sky-poem-link {
  display: inline-block;
  position: relative;
  width: clamp(120px, 12vw, 12rem);
}

.sky-poem-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: 0.3s ease;
}

.sky-poem-link p {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.3s ease;
  color: #ffffff;
}

.sky-poem-link:hover {
  .poem-name {
    opacity: 1;
    transition: 0.3s ease;
  }

  .poem-image {
    filter: brightness(70%);
    transition: 0.3s ease;
  }
}

.season-poem-link {
  display: inline-block;
  position: relative;
  width: clamp(150px, 15vw, 15rem);
}

.season-poem-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: 0.3s ease;
}

.season-poem-link p {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.3s ease;
  color: #ffffff;
}

.season-poem-link:hover {
  .poem-name {
    opacity: 1;
    transition: 0.3s ease;
  }

  .poem-image {
    filter: brightness(70%);
    transition: 0.3s ease;
  }
}

.plants-poem-link {
  display: inline-block;
  position: relative;
  width: clamp(150px, 15vw, 15rem);
}

.plants-poem-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: 0.3s ease;
}

.plants-poem-link p {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.3s ease;
  color: #ffffff;
}

.plants-poem-link:hover {
  .poem-name {
    opacity: 1;
    transition: 0.3s ease;
  }

  .poem-image {
    filter: brightness(70%);
    transition: 0.3s ease;
  }
}

.water-poem-link {
  display: inline-block;
  position: relative;
  width: clamp(150px, 15vw, 15rem);
}

.water-poem-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: 0.3s ease;
}

.water-poem-link p {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.3s ease;
  color: #ffffff;
}

.water-poem-link:hover {
  .poem-name {
    opacity: 1;
    transition: 0.3s ease;
  }

  .poem-image {
    filter: brightness(70%);
    transition: 0.3s ease;
  }
}

.site-footer {
  background-color: #000000;
  color: #f5f7fb;
  padding-right: 80px;
  padding-left: 80px;
  padding-top: 40px;
  padding-bottom: 40px;
  width: 100%;
  height: 300px;
}

.footer-text {
  letter-spacing: 0.7em;
  font-family: shippori-mincho-b1, sans-serif;
  writing-mode: vertical-rl;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.main-link {
  letter-spacing: 0.5em;
  font-family: shippori-mincho-b1, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poemsite-link-wrap {
  display: flex;
  gap: 30px;
  justify-content: flex-start;
}

.poemsite-link {
  letter-spacing: 0.5em;
}

.site-link {
  color: #f5f7fb;
  padding-right: 4em;
  text-decoration: none;
  display: inline-block;
}
@keyframes floatArrow {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 8px;
  }
}

@media (max-width: 860px) {
  .hero-sticky {
    min-height: 580px;
  }

  .window-stage {
    top: 40%;
    width: clamp(180px, 50vw, 235px);
  }

  .hero-copy {
    left: 24px;
    right: 24px;
    bottom: 118px;
    gap: 10px;
    font-size: clamp(1.2rem, 5vw, 1.65rem);
  }

  .scroll-guide {
    bottom: clamp(104px, 15vh, 132px);
  }

  .vertical-poem {
    position: absolute;
    top: 30vw;
    right: 5vw;
    font-size: 0.78rem;
    line-height: 2.1;
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    .scroll-guide i {
      animation: none;
    }
  }
}
