メニューを切り替える
個人設定メニューを切り替える
個人メニューを切り替える
ログインしていません
編集を行うと、IPアドレスが公開されます。

「カテゴリーでさがす」の版間の差分

提供: 川西図鑑
編集の要約なし
編集の要約なし
4行目: 4行目:
/* ========================================
/* ========================================
   ジャンルグリッド
   ジャンルグリッド
  ======================================== */
======================================== */
.genre-grid {
.genre-grid {
    display: grid;
  display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  gap: 20px;
    max-width: 1200px;
  margin: 2em 0;
    margin: 3rem auto;
    padding: 0 2rem;
}
}


/* ========================================
/* ========================================
   ジャンルカード
   ジャンルカード
  ======================================== */
======================================== */
.genre-card {
.genre-card {
    background: #fff;
  background: #fff;
    border: 2px solid #000;
  border: 2px solid #e5e7eb;
    border-radius: 10px;
  border-radius: 16px;
    padding: 2rem;
  padding: 24px;
    transition: all 0.3s ease;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
}


.genre-card:hover {
.genre-card:hover {
    transform: translateY(-5px);
  border-color: #f59e0b;
    box-shadow: 8px 8px 0 #000;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}
}


/* ========================================
/* ========================================
   ジャンルタイトル
   ジャンルタイトル
  ======================================== */
======================================== */
.genre-title {
.genre-title {
    font-size: 1.8rem;
  font-size: 20px;
    font-weight: 700;
  font-weight: 700;
    margin-bottom: 1.5rem;
  color: #111827;
    padding-bottom: 1rem;
  margin: 0 0 16px 0;
    border-bottom: 3px solid #000;
  padding-bottom: 12px;
  border-bottom: 2px solid #f59e0b;
}
}


/* ========================================
/* ========================================
   ジャンルアクション(ボタンエリア)
   アクションボタンエリア
  ======================================== */
======================================== */
.genre-actions {
.genre-actions {
    display: flex;
  display: flex;
    flex-direction: column;
  flex-direction: column;
    gap: 0.8rem;
  gap: 10px;
    margin-bottom: 1rem;
  margin-bottom: 16px;
}
}


.genre-actions a {
.genre-actions a {
    display: inline-block;
  display: flex;
    padding: 0.8rem 1.5rem;
  align-items: center;
    background: #000;
  justify-content: space-between;
    color: #fff;
  padding: 14px 18px;
    text-decoration: none;
  border: 2px solid #e5e7eb;
    border-radius: 50px;
  border-radius: 10px;
    font-weight: 600;
  background: #fff;
    text-align: center;
  color: #374151;
    transition: all 0.3s;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
}
}


.genre-actions a:hover {
.genre-actions a::after {
    background: #333;
  content: '›';
    transform: scale(1.02);
  font-size: 20px;
  color: #9ca3af;
  transition: all 0.2s ease;
}
}


/* 「ジャンルで探す」ボタンのスタイル */
.genre-actions a:hover {
.genre-actions a[href^="#"] {
  background: #fef3c7;
    background: #fff;
  border-color: #f59e0b;
    color: #000;
  color: #d97706;
    border: 2px solid #000;
  transform: translateX(2px);
    cursor: pointer;
    position: relative;
}
 
.genre-actions a[href^="#"]::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s;
}
 
.genre-actions a[href^="#"]:hover {
    background: #f5f5f5;
    transform: scale(1.02);
}
}


/* アクティブ時(リスト表示時)の矢印を上向きに */
.genre-actions a:hover::after {
.genre-card.active .genre-actions a[href^="#"]::after {
  color: #f59e0b;
    transform: rotate(180deg);
  transform: translateX(2px);
}
}


/* ========================================
/* ========================================
   サブジャンルリスト
   サブジャンルリスト
  ======================================== */
======================================== */
.subgenres {
.subgenres {
    max-height: 0;
  max-height: 0;
    overflow: hidden;
  overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
  opacity: 0;
    opacity: 0;
  transition: all 0.4s ease;
    margin-top: 0;
}
}


.genre-card.active .subgenres {
/* :target で開閉制御 */
    max-height: 1000px;
.genre-card:target .subgenres {
    opacity: 1;
  max-height: 1000px;
    margin-top: 1rem;
  opacity: 1;
  margin-top: 16px;
}
}


.subgenres ul {
.subgenres ul {
    list-style: none;
  list-style: none;
    padding: 0;
  padding: 0;
    margin: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
}


.subgenres li {
.subgenres li {
    margin-bottom: 0.5rem;
  margin: 0;
}
}


.subgenres a {
.subgenres a {
    display: block;
  display: flex;
    padding: 0.8rem 1rem;
  align-items: center;
    background: #f9f9f9;
  padding: 12px 16px;
    color: #333;
  border: 1px solid #e5e7eb;
    text-decoration: none;
  border-radius: 8px;
    border-left: 3px solid transparent;
  background: #f9fafb;
    transition: all 0.3s;
  color: #374151;
    border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
 
.subgenres a::before {
  content: '•';
  margin-right: 8px;
  color: #f59e0b;
  font-weight: bold;
}
}


.subgenres a:hover {
.subgenres a:hover {
    background: #fff;
  background: #fff;
    border-left-color: #000;
  border-color: #f59e0b;
    transform: translateX(5px);
  color: #d97706;
     box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}
 
/* ========================================
  ダークモード
======================================== */
.skin-theme-clientpref-night .genre-card {
  background: #2a2a2a;
  border-color: #3a3a3a;
}
 
.skin-theme-clientpref-night .genre-title {
  color: #f9fafb;
  border-color: #f59e0b;
}
 
.skin-theme-clientpref-night .genre-actions a,
.skin-theme-clientpref-night .subgenres a {
  background: #1e1e1e;
  border-color: #3a3a3a;
  color: #e5e7eb;
}
 
.skin-theme-clientpref-night .genre-actions a::after {
  color: #6b7280;
}
 
.skin-theme-clientpref-night .genre-actions a:hover {
  background: #374151;
  border-color: #f59e0b;
  color: #fbbf24;
}
 
.skin-theme-clientpref-night .genre-actions a:hover::after {
  color: #fbbf24;
}
 
.skin-theme-clientpref-night .subgenres a {
  background: #1e1e1e;
}
 
.skin-theme-clientpref-night .subgenres a::before {
  color: #fbbf24;
}
 
.skin-theme-clientpref-night .subgenres a:hover {
  background: #2a2a2a;
  border-color: #f59e0b;
  color: #fbbf24;
}
 
/* ========================================
  ダークモード(自動)
======================================== */
@media (prefers-color-scheme: dark) {
  .skin-theme-clientpref-os .genre-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
  }
 
  .skin-theme-clientpref-os .genre-title {
    color: #f9fafb;
     border-color: #f59e0b;
  }
 
  .skin-theme-clientpref-os .genre-actions a,
  .skin-theme-clientpref-os .subgenres a {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #e5e7eb;
  }
 
  .skin-theme-clientpref-os .genre-actions a::after {
    color: #6b7280;
  }
 
  .skin-theme-clientpref-os .genre-actions a:hover {
    background: #374151;
    border-color: #f59e0b;
    color: #fbbf24;
  }
 
  .skin-theme-clientpref-os .genre-actions a:hover::after {
    color: #fbbf24;
  }
 
  .skin-theme-clientpref-os .subgenres a {
    background: #1e1e1e;
  }
 
  .skin-theme-clientpref-os .subgenres a::before {
    color: #fbbf24;
  }
 
  .skin-theme-clientpref-os .subgenres a:hover {
    background: #2a2a2a;
    border-color: #f59e0b;
    color: #fbbf24;
  }
}
}


/* ========================================
/* ========================================
   レスポンシブ
   レスポンシブ
  ======================================== */
======================================== */
@media (max-width: 768px) {
@media (max-width: 768px) {
    .genre-grid {
  .genre-grid {
        grid-template-columns: 1fr;
    grid-template-columns: 1fr;
        gap: 1.5rem;
  }
        padding: 0 1rem;
 
    }
  .genre-card {
 
    padding: 20px;
    .genre-card {
  }
        padding: 1.5rem;
 
    }
  .genre-title {
 
    font-size: 18px;
    .genre-title {
  }
        font-size: 1.5rem;
 
     }
  .genre-actions a,
  .subgenres a {
    font-size: 13px;
     padding: 12px 14px;
  }
}
}
</style>
</style>
<script>
document.querySelectorAll('.genre-actions a[href^="#"]').forEach(button => {
    button.addEventListener('click', (e) => {
        e.preventDefault();
        const card = button.closest('.genre-card');
        card.classList.toggle('active');
    });
});
</script>
</html>
</html>
= ジャンルから探す =
= ジャンルから探す =

2026年1月28日 (水) 19:35時点における版

ジャンルから探す

川西の情報を、ジャンルごとに整理しています。 気になるジャンルを選んでください。