/* カスタムスタイル */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-fade-in {
  animation: fade-in 1.2s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* ホバーエフェクト */
a, button {
  transition: all 0.3s ease;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #4A90A4;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1B3A52;
}

/* details要素のカスタマイズ */
details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '▶';
  margin-right: 8px;
  display: inline-block;
  transition: transform 0.3s;
}

details[open] summary::before {
  transform: rotate(90deg);
}

/* レスポンシブ画像 */
img {
  max-width: 100%;
  height: auto;
}

/* フォーカススタイル */
a:focus, button:focus, details:focus {
  outline: 2px solid #4A90A4;
  outline-offset: 2px;
}

/* 背景画像のパララックス効果 */
.bg-parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ボーダー太さ調整 */
.border-3 {
  border-width: 3px;
}

