/* 山椒Apps カスタムCSS */

/* フォント設定 */
body {
  font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
}

/* カスタムアニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #16a34a;
}

/* カスタムアスペクト比 */
.aspect-mobile {
  aspect-ratio: 9 / 18.5;
}

/* YouTube埋め込みプレースホルダー */
.youtube-placeholder {
  width: 100%;
  height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.youtube-placeholder:hover {
  background: #e5e7eb;
}

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

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

/* フォーカス状態 */
.focus-ring:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* 読み込み状態 */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 画像遅延読み込み */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

img[data-src].loaded {
  opacity: 1;
}

/* ナビゲーションアクティブ状態 */
.nav-active {
  color: #22c55e !important;
}

/* モバイルメニューアニメーション */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu.open {
  max-height: 200px;
}