/* カスタムスタイル */

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

/* タブのアクティブ状態 */
.tab-active {
  background-color: #3b82f6;
  color: white;
}

/* ホバーエフェクト */
.hover-lift {
  transition: transform 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* カードの影アニメーション */
.card-hover {
  transition: all 0.3s ease-in-out;
}

.card-hover:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

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

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

/* コードブロック */
code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

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

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

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

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

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

/* フォーカス状態（アクセシビリティ） */
a:focus,
button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* プリント用スタイル */
@media print {
  header,
  footer,
  .no-print {
    display: none;
  }
}
