/* フッターメニュー（template-parts/footer-menu.php）。以前は footer-menu.php の中に <style> で書いていた */
/* Footer Menu */
.footer-menu {
  width: 100%;
  padding: 3vw 2vw;
  box-sizing: border-box;
}

.footer-menu-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2vw;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #425372;
  font-family: "Hachi Maru Pop", "Kosugi Maru", cursive, sans-serif;
  font-weight: 800;
  font-size: 2.5vw;
  padding: 1.5vw 2vw;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  -webkit-text-stroke: 1px currentColor;
  position: relative;
  clip-path: polygon(0% 1%, 5% 0%, 10% 2%, 15% 0%, 20% 1%, 25% 0%, 30% 2%, 35% 0%, 40% 1%, 45% 0%, 50% 2%, 55% 0%, 60% 1%, 65% 0%, 70% 2%, 75% 0%, 80% 1%, 85% 0%, 90% 2%, 95% 0%, 100% 1%,
      100% 1%, 99% 15%, 100% 30%, 99% 45%, 100% 60%, 99% 75%, 100% 90%, 100% 99%,
      100% 99%, 95% 100%, 90% 98%, 85% 100%, 80% 99%, 75% 100%, 70% 98%, 65% 100%, 60% 99%, 55% 100%, 50% 98%, 45% 100%, 40% 99%, 35% 100%, 30% 98%, 25% 100%, 20% 99%, 15% 100%, 10% 98%, 5% 100%, 0% 99%,
      0% 99%, 1% 90%, 0% 75%, 1% 60%, 0% 45%, 1% 30%, 0% 15%, 0% 1%);
}

.footer-menu-item:nth-child(odd) a {
  background-color: #c7eee4;
}

.footer-menu-item a .text-wrapper {
  display: inline-block;
  letter-spacing: .8em;
}

.footer-menu-item a span {
  display: inline-block;
}

.footer-menu-item a span:nth-child(1) {
  transform: rotate(-3deg) translateY(-1px) scale(1.02);
}

.footer-menu-item a span:nth-child(2) {
  transform: rotate(2deg) translateY(1px) scale(0.99);
}

.footer-menu-item a span:nth-child(3) {
  transform: rotate(-2deg) translateY(0.5px) scale(1.01);
}

.footer-menu-item a span:nth-child(4) {
  transform: rotate(3deg) translateY(-1px) scale(0.98);
}

.footer-menu-item a span:nth-child(5) {
  transform: rotate(-2deg) translateY(1px) scale(1.02);
}

.footer-menu-item a span:nth-child(6) {
  transform: rotate(2deg) translateY(-0.5px) scale(1);
}

.footer-menu-item a span:nth-child(7) {
  transform: rotate(-3deg) translateY(1px) scale(1.01);
}

.footer-menu-item a span:nth-child(8) {
  transform: rotate(3deg) translateY(-1px) scale(0.99);
}

.footer-menu-item a span:nth-child(9) {
  transform: rotate(-2deg) translateY(0.5px) scale(1.01);
}

.footer-menu-item a span:nth-child(10) {
  transform: rotate(2deg) translateY(-1px) scale(0.99);
}

.footer-menu-item a:hover {
  background-color: #fff3cd;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.footer-menu-item a img {
  width: 6vw;
  height: 6vw;
  object-fit: contain;
  margin-left: 1vw;
  flex-shrink: 0;
}

.footer-menu-item:nth-child(1) a img,
.footer-menu-item:nth-child(2) a img {
  width: 18vw;
  height: 12vw;
}

@media (max-width: 768px) {
  .footer-menu-list {
    grid-template-columns: 1fr;
  }

  .footer-menu-item a {
    font-size: 4.2vw;
    padding: 3vw 4vw;
  }

  .footer-menu-item a img {
    width: 12vw;
    height: 12vw;
  }
}
