body {
  margin: 0;
  padding: 0;
  background-color: #fefbe9;
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
  color: #2e432b;
}

.main {
  padding: 3rem 1rem;
}

.title-area {
  width: 100%;
  margin: 0;
  padding: 2rem 0 0 0; /* 上だけ余白、左右余白なし */
  background-color: transparent;
  overflow: hidden;
}

/* タイトル文字列の設定 */
.title {
  width: 100%; /* ← 100vw だとはみ出ることがある */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-family: "Kiwi Maru", cursive;
  font-size: clamp(2.5rem, 6vw, 5rem);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.mori {
  color: #2f5e3a;
}

.to {
  color: #3a5936;
}

.noise {
  color: #3b6732;
}

.thunder {
  color: #ffd600;
  font-size: 2.5rem;
  margin-left: 0.2rem;
}

/*.main-title {
  font-size: clamp(2rem, 6vw, 5rem);
  color: #2f5e3a;
  text-align: center;
  z-index: 2;
  position: relative;
}*/

/* メニューリンク */
.menu {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.menu a {
  font-family: "Kiwi Maru", cursive;
  color: #3c4b35;
  padding: 0.6rem 1.6rem;
  border: 2px solid #7a8b64;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.menu a:hover {
  background-color: #ffd60033;
  color: #000;
}

.lightning {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.4rem;
  vertical-align: middle;

  /* ⚡雷の上半分 */
  border-style: solid;
  border-width: 0 5px 20px 5px;
  border-color: transparent transparent #ffd600 transparent;
  transform: skewX(-10deg);
  position: relative;
}

.lightning::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 1px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 20px 5px 10px 5px;
  border-color: #ffd600 transparent transparent transparent;
  transform: skewX(2deg);
}

.forest-bg {
  width: 100%;
  height: 150px;
  overflow: hidden;
  position: relative;
  margin-top: -20px;
}

.forest-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tree {
  position: absolute;
  top: 20px; /* 丘の上にちょこんと表示される */
  width: 40px;
  height: 60px;
}

.site-footer {
  background-color: #4c6e4c;
  color: #fefbe9;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 4rem;
}

.site-footer a {
  color: #fefbe9;
  text-decoration: none;
  margin: 0 0.5rem;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* 木を風で揺らすアニメーション */
.leaf-sway {
  animation: leaf-sway 1.3s ease-in-out infinite;
  transform-origin: center;
  animation: leaf-sway 4.4s ease-in-out infinite;
  transform-origin: center;
  animation: leaf-sway 7.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes leaf-sway {
  0% {
    transform: translateX(0px);
  }
  25% {
    transform: translateX(-1.5px);
  }
  50% {
    transform: translateX(0px);
  }
  75% {
    transform: translateX(1.0px);
  }
  100% {
    transform: translateX(0px);
  }
}

/* スマホ対応 */
@media (max-width: 600px) {
  .title {
    font-size: 2.2rem;
  }
  .menu {
    flex-direction: column;
  }
}
