@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* ============================================================
   快楽書店 — Cocoon 子テーマ用スタイルシート
   ============================================================ */

:root {
  --bg-primary:   #0a0a0d;
  --bg-secondary: #1a1a20;
  --bg-surface:   #25252e;
  --accent-red:   #e63946;
  --accent-gold:  #e09a2a;
  --text-primary: #e8e6e1;
  --text-muted:   #666;
  --border:       rgba(255, 255, 255, 0.08);
}

/* ============================================================
   全体
   ============================================================ */
body,
#container {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* ============================================================
   ヘッダー
   ============================================================ */
#header {
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* サイトタイトル：「快楽」白・「書店」赤・イタリック */
#site-title a,
.site-name a {
  font-style: italic;
  text-decoration: none;
  color: var(--text-primary);
}

/* 「快楽」部分 → ::before で白、「書店」を span.red でラップ想定 */
.site-name-kairaku {
  color: #fff;
  font-style: italic;
}
.site-name-shoten {
  color: var(--accent-red);
  font-style: italic;
}

/* ============================================================
   本棚グリッド（トップ・アーカイブ）
   ============================================================ */
.bookshelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px;
}

.book-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-secondary);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease;
}

.book-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.book-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* バッジ */
.book-badge {
  position: absolute;
  top: 7px;
  left: 0;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0 3px 3px 0;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.03em;
}

.book-badge.new    { background: #e63946; }
.book-badge.fc     { background: #e07b2a; }
.book-badge.top    { background: #1a9d8f; }

/* カードオーバーレイ（タイトル等） */
.book-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(5, 5, 8, 0.95));
  padding: 22px 8px 8px;
  font-size: 10px;
  color: #f0ede8;
  line-height: 1.4;
}

/* ============================================================
   作品個別ページ
   ============================================================ */
.comic-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  font-size: 12px;
  color: #888;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comic-cover img {
  width: 100%;
  max-width: 300px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 16px auto;
}

/* サンプル画像（縦スクロール） */
.sample-images {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 16px 0;
}

.sample-img img {
  width: 100%;
  display: block;
  border-radius: 3px;
}

/* ============================================================
   CTAボタン
   ============================================================ */
.cta-wrap {
  margin: 20px 0;
  text-align: center;
}

.cta-main {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #e63946, #c1121f);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.cta-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(230, 57, 70, 0.6);
  color: #fff;
  text-decoration: none;
}

.cta-sub {
  display: block;
  width: 100%;
  background: transparent;
  border: 2px solid var(--accent-red);
  color: var(--accent-red);
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
  box-sizing: border-box;
  margin-top: 10px;
}

.cta-sub:hover {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent-red);
  text-decoration: none;
}

/* ============================================================
   短評タグ
   ============================================================ */
.short-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.short-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  line-height: 1.4;
}

/* ============================================================
   作品情報テーブル
   ============================================================ */
.comic-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}

.comic-info-table th {
  background: var(--bg-secondary);
  color: #888;
  padding: 8px 12px;
  text-align: left;
  width: 30%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 500;
}

.comic-info-table td {
  padding: 8px 12px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================================
   作者ページ：ジャンル傾向バッジ
   ============================================================ */
.genre-tendency {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.gt-badge {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--accent-red);
}

/* ============================================================
   ランキングリスト
   ============================================================ */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rank-num {
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}

.rank-num.gold   { color: #d4a017; }
.rank-num.silver { color: #9aa0a6; }
.rank-num.bronze { color: #b07040; }
.rank-num.other  { color: #444; }

/* ============================================================
   ジャンルピル
   ============================================================ */
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.genre-pill {
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #999;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.genre-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  text-decoration: none;
}

/* ============================================================
   セクションヘッダー
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 12px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 15px;
  background: var(--accent-red);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============================================================
   フッター
   ============================================================ */
#footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #444;
  font-size: 11px;
}

/* ============================================================
   モバイル対応
   ============================================================ */
@media (max-width: 600px) {
  .bookshelf-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
  }

  .cta-main,
  .cta-sub {
    font-size: 1rem;
    padding: 16px;
  }
}





/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
