/*
Theme Name: Adult VR Blog Skin
Description:
Version: 1.0
*/

/* ========================================
   カスタムプロパティ（CSS変数）
======================================== */
:root {
  --main-color: #6A0DAD;
  --sub-color: #4B0082;
  --accent-color-1: #00FFFF;
  --accent-color-2: #FF00FF;
  --base-color: #1A1A1A;
  --text-color: #E0E0E0;
  --text-color-light: #B0B0B0;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.5);
}

/* ========================================
   基本設定
======================================== */
body {
  background: var(--base-color) url('images/background.png') center/cover fixed; color: var(--text-color);
  font-family: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  line-height: 1.6;
}

/* ========================================
   ヘッダー
======================================== */
#header {
 background: linear-gradient(rgba(26, 26, 26, 0.8), rgba(26, 26, 26, 0.8)), url('images/header_background.png') center/cover;  border-bottom: 2px solid var(--accent-color-1);
  box-shadow: 0 4px 20px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.site-name-text {
  color: var(--accent-color-1);
  text-shadow: 0 0 10px var(--accent-color-1), 0 0 20px var(--accent-color-1);
  font-weight: bold;
  font-size: 2rem;
}

.tagline {
  color: var(--accent-color-2);
  text-shadow: 0 0 5px var(--accent-color-2);
}

/* ========================================
   ナビゲーション
======================================== */
.navi {
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navi-in a {
  color: var(--text-color);
  transition: all 0.3s ease;
  position: relative;
  padding: 15px 20px;
  display: block;
}

.navi-in a:hover {
  color: var(--accent-color-1);
  background: linear-gradient(45deg, rgba(106, 13, 173, 0.2), rgba(0, 255, 255, 0.2));
  transform: translateY(-2px);
}

.navi-in a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navi-in a:hover::after {
  width: 80%;
}

/* ========================================
   メインコンテンツ
======================================== */
#main {
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  margin: 0 auto;
  padding: 30px;
  box-shadow: 0 8px 32px var(--shadow-color);
  border: 1px solid var(--border-color);
}

/* ========================================
   記事カード
======================================== */
.entry-card {
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(75, 0, 130, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 15px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.entry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.entry-card:hover {
  background: linear-gradient(45deg, transparent, rgba(255, 192, 203, 0.1), transparent)
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-color);
  border-color: var(--accent-color-1);
}

.entry-card:hover::before {
  opacity: 1;
}

.entry-card-title {
  color: var(--accent-color-1);
  font-weight: bold;
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.entry-card-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.entry-card-title a:hover {
  color: var(--accent-color-2);
  text-shadow: 0 0 10px var(--accent-color-2);
}

.entry-card-snippet {
  color: var(--text-color-light);
  line-height: 1.7;
}

/* ========================================
   サイドバー
======================================== */
#sidebar {
  background: rgba(26, 26, 26, 0.9);
  border-radius: 15px;
  border: 1px solid var(--border-color);
  margin: auto;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.widget {
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(75, 0, 130, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.widget-title {
  color: var(--accent-color-1);
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* ========================================
   フッター
======================================== */
#footer {
  background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.9)), url('images/footer_background.png') center/cover; border-top: 2px solid var(--accent-color-2);
  color: var(--text-color-light);
  text-align: center;
  padding: 40px 20px;
  margin-top: 50px;
}

#footer a {
  color: var(--accent-color-1);
  text-decoration: none;
  transition: all 0.3s ease;
}

#footer a:hover {
  color: var(--accent-color-2);
  text-shadow: 0 0 5px var(--accent-color-2);
}

#footer a:not(.sns-button):hover {
  background-color: transparent !important;
}

/* ========================================
   ボタン・リンク
======================================== */
.btn, .button {
  background: linear-gradient(45deg, var(--main-color), var(--sub-color));
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before, .button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover, .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(106, 13, 173, 0.4);
}

.btn:hover::before, .button:hover::before {
  left: 100%;
}

/* ========================================
   フォーム
======================================== */
input[type="text"], input[type="email"], input[type="search"], textarea {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  padding: 12px 15px;
  transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus, textarea:focus {
  border-color: var(--accent-color-1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  outline: none;
}

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

::-webkit-scrollbar-track {
  background: var(--base-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--main-color), var(--accent-color-1));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--accent-color-1), var(--accent-color-2));
}

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

.entry-card {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   特殊効果
======================================== */
.glow-text {
  text-shadow: 0 0 5px var(--accent-color-1), 0 0 10px var(--accent-color-1), 0 0 15px var(--accent-color-1);
}

.neon-border {
  border: 1px solid var(--accent-color-1);
  box-shadow: 0 0 5px var(--accent-color-1), inset 0 0 5px rgba(0, 255, 255, 0.1);
}

/* ========================================
   広告・アフィリエイト最適化
======================================== */
.ad-container {
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(75, 0, 130, 0.1));
  border: 1px solid var(--accent-color-1);
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ad-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-color-1), var(--accent-color-2), var(--accent-color-1));
  z-index: -1;
  border-radius: 10px;
  animation: borderGlow 2s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}



/* ========================================
   モバイルファーストレスポンシブ対応
======================================== */

/* モバイル（デフォルト）: 320px - 767px */
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }

  .site-name-text {
    font-size: 1.5rem;
  }

  #main {
    margin: 10px;
    padding: 15px;
    border-radius: 10px;
  }

  #sidebar {
    margin: 10px;
    padding: 15px;
  }

  .entry-card {
    margin-bottom: 20px;
    padding: 15px;
  }

  .entry-card-title {
    font-size: 1.1rem;
  }

  .navi-in a {
    padding: 12px 15px;
    font-size: 14px;
  }

  .btn, .button {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 20px;
  }

  .widget {
    padding: 15px;
    margin-bottom: 15px;
  }

  .widget-title {
    font-size: 1.1rem;
  }

  /* タッチフレンドリーなボタンサイズ */
  .touch-target {
    min-height: 44px;
    min-width: 44px;
  }

  /* モバイル用ナビゲーション */
  .mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--accent-color-1);
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
  }

  /* モバイル用検索フォーム */
  .search-form {
    width: 100%;
    margin: 10px 0;
  }

  .search-form input {
    width: 100%;
    padding: 12px;
    font-size: 16px; /* iOS zoom防止 */
  }
}

/* タブレット: 768px - 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  body {
    font-size: 15px;
  }

  .site-name-text {
    font-size: 1.8rem;
  }

  #main {
    margin: 15px;
    padding: 25px;
  }

  #sidebar {
    margin: 15px;
    padding: 20px;
  }

  .entry-card {
    margin-bottom: 25px;
    padding: 20px;
  }

  .entry-card-title {
    font-size: 1.2rem;
  }

  .navi-in a {
    padding: 14px 18px;
  }

  /* タブレット用グリッドレイアウト */
  .tablet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* デスクトップ: 1024px以上 */
@media screen and (min-width: 1024px) {
  body {
    font-size: 16px;
  }

  .site-name-text {
    font-size: 2rem;
  }

  /* デスクトップ用ホバーエフェクト強化 */
  .entry-card:hover {
    transform: translateY(-8px) scale(1.02);
  }

  .navi-in a:hover {
    transform: translateY(-3px);
  }

  /* デスクトップ用グリッドレイアウト */
  .desktop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  /* デスクトップ用サイドバー固定 */
  .sticky-sidebar {
    position: sticky;
    top: 20px;
  }
}

/* 大画面デスクトップ: 1440px以上 */
@media screen and (min-width: 1440px) {
  .container {
    /*max-width: 1200px;*/
    margin: 0 auto;
  }

  .site-name-text {
    font-size: 2.5rem;
  }

  .entry-card-title {
    font-size: 1.4rem;
  }
}

/* ========================================
   タッチデバイス最適化
======================================== */
@media (hover: none) and (pointer: coarse) {
  /* タッチデバイス用の調整 */
  .entry-card:hover {
    transform: none;
  }

  .navi-in a:hover {
    transform: none;
  }

  /* タッチ時のフィードバック */
  .entry-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .btn:active, .button:active {
    transform: scale(0.95);
  }
}

/* ========================================
   高解像度ディスプレイ対応
======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Retina対応の調整 */
  .site-name-text {
    text-shadow: 0 0 5px var(--accent-color-1), 0 0 10px var(--accent-color-1);
  }

  .entry-card-title {
    text-shadow: 0 0 3px rgba(0, 255, 255, 0.3);
  }
}

/* ========================================
   ダークモード対応
======================================== */
@media (prefers-color-scheme: dark) {
  /* 既にダークテーマなので、より深いダークモードの調整 */
  :root {
    --base-color: #0A0A0A;
    --text-color: #F0F0F0;
    --border-color: rgba(255, 255, 255, 0.15);
  }
}

/* ========================================
   アクセシビリティ対応
======================================== */
@media (prefers-reduced-motion: reduce) {
  /* アニメーション無効化 */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   印刷対応
======================================== */
@media print {
  body {
    background: white;
    color: black;
  }

  #header, #footer, #sidebar, .navi {
    display: none;
  }

  .entry-card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .entry-card-title {
    color: black;
    text-shadow: none;
  }
}

/* ========================================
   パフォーマンス最適化
======================================== */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* GPU加速 */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* ========================================
   モバイル用特殊機能
======================================== */
/* スワイプジェスチャー対応 */
.swipe-container {
  touch-action: pan-x;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.swipe-item {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* モバイル用フローティングアクションボタン */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--main-color), var(--accent-color-1));
  border: none;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}

.fab:active {
  transform: scale(0.9);
}

/* プルトゥリフレッシュ対応 */
.pull-to-refresh {
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.pull-to-refresh.active {
  transform: translateY(0);
}


/* ========================================
   ユーザビリティとUX最適化
======================================== */

/* ========================================
   コンバージョン最適化
======================================== */
.cta-button {
  background: linear-gradient(45deg, var(--accent-color-2), var(--main-color));
  color: white;
  border: none;
  border-radius: 30px;
  padding: 15px 40px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 0, 255, 0.5);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.cta-button:hover::before {
  left: 100%;
}

/* ========================================
   読みやすさの向上
======================================== */
.content-area {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.content-area p {
  margin-bottom: 1.5em;
  text-align: justify;
}

.content-area h2, .content-area h3 {
  color: var(--accent-color-1);
  margin-top: 2em;
  margin-bottom: 1em;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.content-area h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--accent-color-1);
  padding-bottom: 0.5em;
}

.content-area h3 {
  font-size: 1.4rem;
}

/* ========================================
   ナビゲーション改善
======================================== */
.breadcrumb {
  background: rgba(26, 26, 26, 0.8);
  padding: 10px 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--accent-color-1);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-color-2);
}

.breadcrumb-separator {
  color: var(--text-color-light);
  margin: 0 10px;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
}

.pagination .page-numbers .fas {
  background: none !important;
  border: none !important;
}

.pagination a, .pagination span {
  display: inline-block;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: linear-gradient(45deg, var(--main-color), var(--accent-color-1));
  border-color: var(--accent-color-1);
  transform: translateY(-2px);
}

.pagination .current {
  background: linear-gradient(45deg, var(--main-color), var(--accent-color-1));
  border-color: var(--accent-color-1);
  color: white;
}

.pagination-next-link {
  display: none;
}

/* ========================================
   検索機能の改善
======================================== */
.search-container {
  position: relative;
  max-width: 400px;
  margin: 20px auto;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: var(--accent-color-1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  outline: none;
}

.search-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(45deg, var(--main-color), var(--accent-color-1));
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* ========================================
   ローディング・フィードバック
======================================== */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-color-1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-message {
  background: linear-gradient(45deg, rgba(0, 255, 0, 0.1), rgba(0, 255, 255, 0.1));
  border: 1px solid #00FF00;
  border-radius: 8px;
  padding: 15px;
  color: #00FF00;
  margin: 20px 0;
  animation: fadeInUp 0.5s ease;
}

.error-message {
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 255, 0.1));
  border: 1px solid #FF0000;
  border-radius: 8px;
  padding: 15px;
  color: #FF0000;
  margin: 20px 0;
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ========================================
   ソーシャルシェア
======================================== */
.social-share {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
  padding: 20px;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.social-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-share-button.twitter {
  background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
}

.social-share-button.facebook {
  background: linear-gradient(45deg, #4267B2, #365899);
}

.social-share-button.line {
  background: linear-gradient(45deg, #00B900, #009900);
}

.social-share-button:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   関連記事・おすすめコンテンツ
======================================== */
.related-posts {
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(75, 0, 130, 0.1));
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
}

.related-posts-title {
  color: var(--accent-color-1);
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-post-item {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.related-post-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color-1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.related-post-title {
  color: var(--accent-color-1);
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.related-post-excerpt {
  color: var(--text-color-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========================================
   スクロール進捗バー
======================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ========================================
   目次（Table of Contents）
======================================== */
.table-of-contents {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
  position: sticky;
  top: 20px;
}

.toc-title {
  color: var(--accent-color-1);
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--text-color-light);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
}

.toc-list a:hover, .toc-list a.active {
  color: var(--accent-color-1);
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(5px);
}

/* ========================================
   フォーカス・アクセシビリティ
======================================== */
*:focus {
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--accent-color-1);
  color: var(--base-color);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* ========================================
   高コントラストモード対応
======================================== */
@media (prefers-contrast: high) {
  :root {
    --text-color: #FFFFFF;
    --border-color: rgba(255, 255, 255, 0.3);
    --accent-color-1: #00FFFF;
    --accent-color-2: #FF00FF;
  }
}

/* ========================================
   パフォーマンス向上
======================================== */
.lazy-image {
  /*opacity: 0;*/
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Critical CSS above the fold */
.above-fold {
  contain: layout style paint;
}

/* Intersection Observer用 */
.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

