/* 全体の基本スタイル */
body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f9f9f9;
  color: #222;
}

header {
  background: #111;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

header nav {
  margin-top: 1rem;
}

header nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

main {
  padding: 2rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #fff;
  margin-top: 2rem;
}

/* 動く漢字エフェクト */
.animated-title, .animated-heading {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  font-weight: bold;
}

.animated-title span, .animated-heading span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  animation: popIn 0.6s forwards;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ホバー時の揺れ */
.animated-title span:hover,
.animated-heading span:hover {
  animation: wobble 0.6s ease-in-out;
}

@keyframes wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}