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

テンプレート:ジャンル一覧/styles.css

提供: 川西図鑑
/* ========================================
   ジャンル一覧
======================================== */
.list {
  margin: 2em 0;
}

.list a,
.list a:link,
.list a:visited,
.list a:hover,
.list a:active {
  color: inherit;
  text-decoration: none;
}

.list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.list li {
  margin: 0;
  position: relative;
}

.list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 50px 18px 20px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* アイコン表示エリア */
.list a::before {
  content: attr(data-icon);
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* 右矢印 */
.list a::after {
  content: '›';
  position: absolute;
  right: 20px;
  font-size: 24px;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.list a:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.list a:hover::before {
  transform: scale(1.1);
}

.list a:hover::after {
  color: #f59e0b;
  transform: translateX(4px);
}

.list a:active {
  transform: translateX(2px);
}

/* ========================================
   ダークモード
======================================== */
html.skin-theme-clientpref-night .list a {
  border-color: #3a3a3a;
  background: #2a2a2a;
  color: #e5e7eb;
}

html.skin-theme-clientpref-night .list a::after {
  color: #6b7280;
}

html.skin-theme-clientpref-night .list a:hover {
  background: #374151;
  border-color: #f59e0b;
}

html.skin-theme-clientpref-night .list a:hover::after {
  color: #fbbf24;
}

/* ========================================
   ダークモード(自動)
======================================== */
@media (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .list a {
    border-color: #3a3a3a;
    background: #2a2a2a;
    color: #e5e7eb;
  }
  
  html.skin-theme-clientpref-os .list a::after {
    color: #6b7280;
  }
  
  html.skin-theme-clientpref-os .list a:hover {
    background: #374151;
    border-color: #f59e0b;
  }
  
  html.skin-theme-clientpref-os .list a:hover::after {
    color: #fbbf24;
  }
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .list ul {
    grid-template-columns: 1fr;
  }
  
  .list a {
    padding: 16px 50px 16px 18px;
    font-size: 14px;
  }
  
  .list a::before {
    font-size: 24px;
  }
}