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

body {
  font-family: "Hachi Maru Pop", cursive;
  overflow: hidden;
  position: relative;
}

.title-overlay {
  position: fixed;
  top: 18vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 900;
  text-align: center;
}

.title-primary,
.title-secondary {
  font-family: "Fredoka", sans-serif;
  color: #fffb01;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8), -2px -2px 0 rgba(0, 0, 0, 0.9),
    2px -2px 0 rgba(0, 0, 0, 0.9), -2px 2px 0 rgba(0, 0, 0, 0.9),
    2px 2px 0 rgba(0, 0, 0, 0.9);
  -webkit-text-stroke: 3px #ff7bde;
  font-weight: 700;
  animation: float 4s ease-in-out infinite;
}

.title-primary {
  font-size: clamp(2.8rem, 5.2vw, 4.2rem);
}

.title-secondary {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  animation-delay: 0.2s;
}

/* キャンバスコンテナ */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 1000;
  background: transparent;
}

/* ナビゲーションメニュー（デスクトップ） */
.nav-menu {
  display: none;
  justify-content: center;
}

.menu-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.menu-item a {
  text-decoration: none;
  color: #ff6b9d;
  font-size: 20px;
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  display: block;
  border: 2px solid transparent;
}

.menu-item a:hover {
  background: #feca57;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(254, 202, 87, 0.4);
  border-color: #ff6b9d;
}

/* モバイルメニューボタン */
.mobile-menu-btn {
  display: block;
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background: #ff6b9d;
  margin: 5px auto;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: #feca57;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(135deg, #feca57 0%, #feca57 100%);
  padding: 80px 30px;
  transition: right 0.3s ease;
  z-index: 999;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-list {
  list-style: none;
}

.mobile-menu-item {
  margin-bottom: 20px;
  animation: slideInRight 0.5s ease forwards;
  opacity: 0;
}

.mobile-menu.active .mobile-menu-item {
  opacity: 1;
}

.mobile-menu-item:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-menu-item:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-menu-item:nth-child(3) {
  animation-delay: 0.3s;
}
.mobile-menu-item:nth-child(4) {
  animation-delay: 0.4s;
}

.mobile-menu-item a {
  color: #ff6b9d;
  text-decoration: none;
  font-size: 22px;
  display: block;
  padding: 15px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  transition: all 0.3s ease;
  text-align: center;
}

.mobile-menu-item a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-10px);
}

/* アニメーション */
@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* レスポンシブデザイン */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* タブレット対応 */
@media (max-width: 768px) and (min-width: 481px) {
  .mobile-menu {
    width: 320px;
  }

  .mobile-menu-item a {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .title-overlay {
    top: 22vh;
    gap: 6px;
  }

  .title-primary,
  .title-secondary {
    padding: 10px 22px;
    letter-spacing: 1.5px;
  }
}

/* スマートフォン対応 */
@media (max-width: 480px) {
  .header {
    padding: 15px;
  }

  .mobile-menu-btn {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
  }

  .mobile-menu {
    width: 250px;
    padding: 70px 20px;
  }

  .mobile-menu-item a {
    font-size: 18px;
    padding: 12px;
  }
}
