/*
Theme Name: 男魂塾
Theme URI: https://example.com
Author: 男鹿島豪八
Description: 男魂塾・映画道場ブログテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: otoko-damashii-juku
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:       #0e0a04;
  --color-bg2:      #1c1004;
  --color-bg3:      #261508;
  --color-gold:     #c07820;
  --color-gold-lt:  #f0c040;
  --color-gold-dk:  #8b5e10;
  --color-text:     #f0e0b0;
  --color-text-sub: #b08850;
  --color-text-mut: #806030;
  --color-border:   #3a2510;
  --font-serif:     'Noto Serif JP', serif;
  --font-sans:      'Noto Sans JP', sans-serif;
  --radius-card:    12px;
  --radius-btn:     4px;
  --max-width:      1100px;
}

body {
  font-family: var(--font-sans);
  background: #111008;
  color: var(--color-text);
  line-height: 1.7;
  font-size: 15px;
}

a { color: var(--color-gold); text-decoration: none; }
a:hover { color: var(--color-gold-lt); }
img { max-width: 100%; height: auto; display: block; }

/* ===== レイアウト ===== */
.site-wrapper { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* ===== サイトヘッダー ===== */
.site-header {
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-gold-dk);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-gold-lt);
  letter-spacing: 0.05em;
}

.site-logo span { color: #e09030; }

.site-nav { display: flex; gap: 0; }
.site-nav a {
  font-size: 13px;
  color: var(--color-text-sub);
  padding: 0 1rem;
  line-height: 60px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.current-menu-item { color: var(--color-gold-lt); border-bottom: 2px solid #e09030; }

/* ===== ヒーローバナー ===== */
.hero {
  background: var(--color-bg);
  padding: 3rem 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--color-gold-dk);
}

.hero__bg-kanji {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 14rem;
  font-weight: 900;
  color: rgba(180,110,20,0.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero__inner { max-width: var(--max-width); margin: 0 auto; position: relative; }

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero__title em {
  color: #e09030;
  font-style: normal;
}

.hero__catch {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.9;
  max-width: 560px;
  border-left: 3px solid var(--color-gold);
  padding-left: 1rem;
}

/* ===== カテゴリーナビ ===== */
.cat-nav {
  background: var(--color-bg2);
  border-bottom: 1px solid var(--color-border);
}

.cat-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cat-nav__inner::-webkit-scrollbar { display: none; }

.cat-nav a {
  font-size: 12px;
  color: var(--color-text-mut);
  padding: 0.7rem 1.1rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s;
}

.cat-nav a:hover,
.cat-nav a.current { color: var(--color-gold-lt); border-bottom-color: #e09030; background: #261508; }

/* ===== メインレイアウト ===== */
.content-area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  align-items: start;
}

/* ===== 注目記事カード ===== */
.featured-post {
  background: #181008;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.featured-post__header {
  background: var(--color-bg2);
  padding: 1.25rem 1.5rem;
  border-bottom: 3px solid var(--color-gold);
}

.featured-post__badge {
  display: inline-block;
  background: var(--color-gold);
  color: #0e0802;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.featured-post__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: #f0d89a;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.featured-post__meta { font-size: 11px; color: var(--color-text-mut); }

.featured-post__body {
  padding: 1.1rem 1.5rem;
  font-size: 13.5px;
  color: #c8a870;
  line-height: 1.85;
  border-bottom: 1px solid var(--color-border);
}

.塾長-quote {
  border-left: 3px solid var(--color-gold);
  padding-left: 1rem;
  margin: 0.75rem 0;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.7;
}

.featured-post__footer {
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.star-rating { color: #e09030; font-size: 14px; letter-spacing: 2px; }
.star-label { font-size: 11px; color: var(--color-text-mut); margin-left: 4px; }

/* ===== 記事一覧 ===== */
.post-list { display: flex; flex-direction: column; gap: 0.8rem; }

.post-card {
  background: #181008;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.post-card:hover { border-color: var(--color-gold-dk); }

.post-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg3);
}

.post-card__info { flex: 1; min-width: 0; }
.post-card__genre { font-size: 10px; color: var(--color-gold); letter-spacing: 0.08em; margin-bottom: 3px; }
.post-card__title { font-size: 14px; font-weight: 700; color: var(--color-text); line-height: 1.5; margin-bottom: 4px; }
.post-card__excerpt { font-size: 12px; color: var(--color-text-sub); line-height: 1.6; }
.post-card__stars { font-size: 11px; color: #e09030; margin-top: 4px; }

/* ===== ページネーション ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--color-text-sub);
  transition: all 0.2s;
}

.pagination a:hover { border-color: var(--color-gold); color: var(--color-gold); }
.pagination .current { background: var(--color-gold); color: #0e0802; border-color: var(--color-gold); font-weight: 700; }

/* ===== サイドバー ===== */
.sidebar { display: flex; flex-direction: column; gap: 1.1rem; }

.widget {
  background: #181008;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.widget__head {
  background: var(--color-bg2);
  color: var(--color-gold-lt);
  padding: 0.6rem 1rem;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--color-gold-dk);
}

/* プロフィールウィジェット */
.profile-widget { padding: 1rem; text-align: center; }

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--color-bg3);
  border: 3px solid var(--color-gold);
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-gold);
  overflow: hidden;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-serif); font-size: 15px; font-weight: 900; color: var(--color-text); }
.profile-role { font-size: 11px; color: var(--color-text-mut); margin-bottom: 0.5rem; }
.profile-bio { font-size: 12px; color: var(--color-text-sub); line-height: 1.7; text-align: left; }

/* カテゴリーウィジェット */
.cat-widget { padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cat-tag {
  background: #201408;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--color-text-sub);
  padding: 3px 9px;
  transition: border-color 0.2s;
}
.cat-tag:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ランキングウィジェット */
.ranking-list { padding: 0.5rem 0; }
.ranking-item {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.ranking-item:last-child { border-bottom: none; }
.ranking-no { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 900; color: var(--color-gold); min-width: 1.4rem; }
.ranking-text { font-size: 12px; color: var(--color-text-sub); line-height: 1.5; }
.ranking-text strong { color: var(--color-text); display: block; font-size: 13px; }

/* ===== 単記事ページ ===== */
.single-post { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.25rem; }

.single-header {
  background: var(--color-bg2);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--color-gold);
}

.single-genre { font-size: 11px; color: var(--color-gold); letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.single-title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 900; color: #f0d89a; line-height: 1.35; }
.single-meta { font-size: 12px; color: var(--color-text-mut); margin-top: 0.5rem; }

.single-content {
  background: #181008;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  font-size: 15px;
  line-height: 1.9;
  color: #d0b880;
}

.single-content h2 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; color: var(--color-text); margin: 2rem 0 1rem; border-left: 4px solid var(--color-gold); padding-left: 0.75rem; }
.single-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--color-text); margin: 1.5rem 0 0.75rem; }
.single-content p { margin-bottom: 1.25rem; }
.single-content blockquote { border-left: 3px solid var(--color-gold); padding-left: 1rem; margin: 1.5rem 0; font-family: var(--font-serif); font-size: 1rem; color: var(--color-text); font-weight: 700; line-height: 1.7; }
.single-content img { border-radius: 8px; margin: 1.5rem 0; }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  background: var(--color-gold);
  color: #0e0802;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.btn:hover { background: #d08930; color: #0e0802; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-gold-dk);
  color: var(--color-gold);
}
.btn-outline:hover { background: var(--color-bg3); }

/* ===== フッター ===== */
.site-footer {
  background: var(--color-bg);
  border-top: 2px solid var(--color-gold-dk);
  padding: 2rem 1.25rem;
  margin-top: 3rem;
  text-align: center;
}

.site-footer__title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 900; color: var(--color-gold-lt); margin-bottom: 0.4rem; }
.site-footer__copy { font-size: 12px; color: var(--color-text-mut); }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .hero__bg-kanji { font-size: 7rem; opacity: 0.5; }
  .site-nav { display: none; }
  .featured-post__title { font-size: 1.1rem; }
}

@media (max-width: 480px) {
  .post-card { flex-direction: column; }
  .post-card__thumb { width: 100%; height: 160px; }
}

/* ===== ランキングページ ===== */
.ranking-page { }

.ranking-hero {
  background: var(--color-bg);
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 3px solid var(--color-gold-dk);
  position: relative;
  overflow: hidden;
}

.ranking-hero::before {
  content: '壱';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 12rem;
  font-weight: 900;
  color: rgba(180,110,20,0.06);
  pointer-events: none;
}

.ranking-hero__inner { max-width: var(--max-width); margin: 0 auto; }
.ranking-hero__eyebrow { font-size: 11px; letter-spacing: 0.2em; color: var(--color-gold); margin-bottom: 0.4rem; }
.ranking-hero__title { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; margin-bottom: 0.5rem; }
.ranking-hero__title em { color: #e09030; font-style: normal; }
.ranking-hero__catch { font-size: 0.9rem; color: var(--color-text-sub); border-left: 3px solid var(--color-gold); padding-left: 0.75rem; }

.ranking-wrap { max-width: var(--max-width); margin: 0 auto; padding: 1.5rem 1.25rem; }

/* エラー表示 */
.api-error {
  background: #2a0a0a;
  border: 1px solid #7a1010;
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  color: #f0a0a0;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* タブ */
.rank-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 2px solid var(--color-border); }
.rank-tab {
  font-size: 13px;
  color: var(--color-text-mut);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s;
}
.rank-tab.active { color: var(--color-gold-lt); border-bottom-color: #e09030; }
.rank-tab:hover { color: var(--color-text-sub); }

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

.rank-item {
  background: #181008;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 48px 100px 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: border-color 0.2s;
}

.rank-item:hover { border-color: var(--color-gold-dk); }

/* 順位バッジ */
.rank-badge {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  line-height: 1;
  min-width: 48px;
}
.rank-badge--gold   { color: #f0c040; text-shadow: 0 0 12px rgba(240,192,64,0.3); }
.rank-badge--silver { color: #c0c8d0; }
.rank-badge--bronze { color: #c08050; }
.rank-badge--normal { color: #604020; font-size: 1.3rem; }

/* サムネイル */
.rank-thumb {
  display: block;
  width: 100px;
  height: 130px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg3);
  border: 1px solid var(--color-border);
}
.rank-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rank-thumb--empty { width: 100px; height: 130px; background: var(--color-bg3); border-radius: 6px; }

/* 情報 */
.rank-info { min-width: 0; }
.rank-title { font-size: 14px; font-weight: 700; color: var(--color-text); line-height: 1.5; margin-bottom: 5px; }
.rank-title a { color: var(--color-text); }
.rank-title a:hover { color: var(--color-gold-lt); }
.rank-cast  { font-size: 12px; color: var(--color-text-sub); margin-bottom: 3px; }
.rank-label { font-size: 11px; color: var(--color-text-mut); margin-bottom: 4px; }
.rank-review { font-size: 12px; color: var(--color-text-sub); margin-bottom: 4px; }
.rank-stars { color: #e09030; letter-spacing: 1px; }
.rank-price { font-size: 15px; font-weight: 700; color: var(--color-gold); }

/* アクション */
.rank-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; min-width: 120px; }
.rank-塾長コメント {
  font-family: var(--font-serif);
  font-size: 11px;
  color: #e09030;
  text-align: right;
  line-height: 1.5;
  max-width: 120px;
}
.rank-btn { white-space: nowrap; font-size: 12px; padding: 7px 14px; }

/* 注記 */
.ranking-note {
  margin-top: 2rem;
  font-size: 11px;
  color: var(--color-text-mut);
  line-height: 1.8;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .rank-item {
    grid-template-columns: 36px 80px 1fr;
    grid-template-rows: auto auto;
  }
  .rank-action {
    grid-column: 2 / 4;
    flex-direction: row;
    align-items: center;
    min-width: unset;
  }
  .rank-thumb { width: 80px; height: 105px; }
  .rank-badge { font-size: 1.4rem; min-width: 36px; }
}

@media (max-width: 400px) {
  .rank-item { grid-template-columns: 32px 1fr; }
  .rank-thumb { display: none; }
}

/* ===== トップページ ランキングセクション ===== */
.top-ranking {
  margin-top: 2rem;
  background: #181008;
  border: 1px solid #3a2510;
  border-radius: 12px;
  overflow: hidden;
}

.top-ranking__head {
  background: #1c1004;
  padding: .75rem 1.25rem;
  border-bottom: 3px solid #c07820;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-ranking__title-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.top-ranking__icon {
  color: #e09030;
  font-size: 14px;
}

.top-ranking__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 900;
  color: #f0c040;
  letter-spacing: .05em;
}

.top-ranking__more {
  font-size: 12px;
  color: #c07820;
  white-space: nowrap;
  flex-shrink: 0;
}

.top-ranking__more:hover { color: #f0c040; }

.top-ranking__notice {
  padding: 1.25rem;
  font-size: 13px;
  color: #806030;
}

.top-ranking__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.trk-item {
  padding: 1rem .75rem;
  border-right: 1px solid #2a1a08;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  transition: background .2s;
}

.trk-item:last-child { border-right: none; }
.trk-item:hover { background: #1c1004; }

.trk-badge {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trk-badge--gold   { background: #f0c040; color: #2a1208; }
.trk-badge--silver { background: #c0c8d0; color: #1a1a20; }
.trk-badge--bronze { background: #c08050; color: #1a0c04; }
.trk-badge--normal { background: #2a1a08; color: #806030; border: 1px solid #3a2510; }

.trk-img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #2a1a08;
  display: block;
}

.trk-img--empty {
  width: 72px;
  height: 96px;
  background: #261508;
  border-radius: 4px;
}

.trk-info { width: 100%; }

.trk-title {
  font-size: 11px;
  color: #d0b880;
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trk-title a { color: #d0b880; }
.trk-title a:hover { color: #f0c040; }

.trk-stars {
  font-size: 11px;
  color: #e09030;
  margin-bottom: 3px;
}

.trk-price {
  font-size: 12px;
  font-weight: 700;
  color: #c07820;
  margin-bottom: 6px;
}

.trk-btn {
  font-size: 10px;
  padding: 4px 8px;
  width: 100%;
  text-align: center;
}

.top-ranking__note {
  font-size: 11px;
  color: #504020;
  padding: .6rem 1.25rem;
  border-top: 1px solid #2a1a08;
}

/* レスポンシブ: タブレット以下は2列 */
@media (max-width: 680px) {
  .top-ranking__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .trk-item { border-right: none; border-bottom: 1px solid #2a1a08; }
  .trk-item:nth-child(odd) { border-right: 1px solid #2a1a08; }
  .trk-item:last-child { border-bottom: none; }
}

/* スマホは1列 */
@media (max-width: 400px) {
  .top-ranking__list { grid-template-columns: 1fr; }
  .trk-item { flex-direction: row; text-align: left; border-right: none; }
  .trk-img { width: 56px; height: 74px; }
  .trk-info { flex: 1; }
}

/* ===== ランキングセクション共通（タブ切り替え対応版） ===== */
.odj-ranking-section {
  margin-top: 2rem;
  background: #181008;
  border: 1px solid #3a2510;
  border-radius: 12px;
  overflow: hidden;
}

.odj-ranking__head {
  background: #1c1004;
  padding: .75rem 1.25rem;
  border-bottom: 3px solid #c07820;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.odj-ranking__title-wrap { display: flex; align-items: center; gap: .5rem; }
.odj-ranking__icon { color: #e09030; font-size: 13px; }
.odj-ranking__title { font-family: 'Noto Serif JP', serif; font-size: 1rem; font-weight: 900; color: #f0c040; }
.odj-ranking__more { font-size: 12px; color: #c07820; white-space: nowrap; }
.odj-ranking__more:hover { color: #f0c040; }

/* タブ */
.odj-ranking__tabs {
  display: flex;
  align-items: center;
  background: #141008;
  border-bottom: 1px solid #2a1a08;
  padding: 0 1rem;
  gap: 0;
}

.odj-ranking__tab {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  font-weight: 700;
  color: #604020;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: .65rem 1.25rem;
  cursor: pointer;
  letter-spacing: .05em;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}

.odj-ranking__tab:hover { color: #c07820; }
.odj-ranking__tab.is-active { color: #f0c040; border-bottom-color: #e09030; }

.odj-ranking__loading {
  font-size: 12px;
  color: #806030;
  margin-left: auto;
  animation: odj-blink 1s step-start infinite;
}

@keyframes odj-blink { 50% { opacity: 0; } }

/* パネル */
.odj-ranking__panel { transition: opacity .2s; }

.odj-ranking__empty {
  padding: 1.25rem;
  font-size: 13px;
  color: #806030;
}

/* グリッド（トップページ: 5列） */
.odj-ranking__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.odj-ranking__grid-item {
  padding: 1rem .65rem;
  border-right: 1px solid #2a1a08;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  text-align: center;
  transition: background .2s;
}

.odj-ranking__grid-item:last-child { border-right: none; }
.odj-ranking__grid-item:hover { background: #1c1004; }

.odj-ranking__grid-info { width: 100%; }

.odj-ranking__grid-title {
  font-size: 11px;
  color: #d0b880;
  line-height: 1.5;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.odj-ranking__grid-title a { color: #d0b880; }
.odj-ranking__grid-title a:hover { color: #f0c040; }

/* リスト（ランキングページ: フル表示） */
.odj-ranking__list { display: flex; flex-direction: column; gap: .7rem; padding: 1rem; }

.odj-ranking__list-item {
  background: #141008;
  border: 1px solid #2a1a08;
  border-radius: 10px;
  padding: .9rem 1.1rem;
  display: grid;
  grid-template-columns: 44px 90px 1fr auto;
  gap: .9rem;
  align-items: center;
  transition: border-color .2s;
}

.odj-ranking__list-item:hover { border-color: #5a3a08; }
.odj-ranking__list-item.is-top { border-color: #c07820; }

.odj-ranking__list-info { min-width: 0; }
.odj-ranking__genre { font-size: 10px; color: #c07820; letter-spacing: .08em; margin-bottom: 3px; }
.odj-ranking__list-title { font-size: 14px; font-weight: 700; color: #f0e0b0; line-height: 1.5; margin-bottom: 4px; }
.odj-ranking__list-title a { color: #f0e0b0; }
.odj-ranking__list-title a:hover { color: #f0c040; }
.odj-ranking__cast { font-size: 12px; color: #b08850; margin-bottom: 3px; }
.odj-ranking__review-count { font-size: 11px; color: #604020; }

.odj-ranking__list-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  min-width: 110px;
}

.odj-ranking__comment {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  color: #e09030;
  text-align: right;
  line-height: 1.5;
}

/* 共通パーツ */
.odj-ranking__badge {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 900;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.odj-ranking__badge--gold   { background: #f0c040; color: #2a1208; }
.odj-ranking__badge--silver { background: #c0c8d0; color: #1a1a20; }
.odj-ranking__badge--bronze { background: #c08050; color: #1a0c04; }
.odj-ranking__badge--normal { background: #2a1a08; color: #806030; border: 1px solid #3a2510; font-size: 11px; }

.odj-ranking__thumb {
  width: 70px;
  height: 92px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #2a1a08;
  display: block;
}

.odj-ranking__thumb--empty {
  width: 70px;
  height: 92px;
  background: #261508;
  border-radius: 5px;
}

.odj-ranking__thumb-link { display: block; }

.odj-ranking__stars { color: #e09030; font-size: 12px; letter-spacing: 1px; margin-bottom: 3px; }
.odj-ranking__price { font-size: 14px; font-weight: 700; color: #c07820; }

.odj-ranking__btn { font-size: 10px; padding: 4px 8px; width: 100%; text-align: center; }

.odj-ranking__note {
  font-size: 11px;
  color: #504020;
  padding: .6rem 1.25rem;
  border-top: 1px solid #2a1a08;
}

/* レスポンシブ */
@media (max-width: 680px) {
  .odj-ranking__grid { grid-template-columns: repeat(2, 1fr); }
  .odj-ranking__grid-item { border-right: none; border-bottom: 1px solid #2a1a08; }
  .odj-ranking__grid-item:nth-child(odd) { border-right: 1px solid #2a1a08; }
  .odj-ranking__grid-item:last-child { border-bottom: none; }
  .odj-ranking__list-item { grid-template-columns: 36px 76px 1fr; grid-template-rows: auto auto; }
  .odj-ranking__list-action { grid-column: 2 / 4; flex-direction: row; align-items: center; min-width: unset; }
}

@media (max-width: 400px) {
  .odj-ranking__grid { grid-template-columns: 1fr; }
  .odj-ranking__grid-item { flex-direction: row; text-align: left; border-right: none; }
  .odj-ranking__list-item { grid-template-columns: 32px 1fr; }
  .odj-ranking__thumb { display: none; }
}

/* ランキングページ専用レイアウト */
.ranking-page-wrap {}
.ranking-hero { background: #0e0a04; padding: 2.5rem 1.25rem 2rem; border-bottom: 3px solid #5a3a08; position: relative; overflow: hidden; }
.ranking-hero::before { content: '壱'; position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); font-family: 'Noto Serif JP', serif; font-size: 12rem; font-weight: 900; color: rgba(180,110,20,0.06); pointer-events: none; }
.ranking-hero__inner { max-width: 1100px; margin: 0 auto; position: relative; }
.ranking-hero__eyebrow { font-size: 11px; letter-spacing: .2em; color: #c07820; margin-bottom: .4rem; }
.ranking-hero__title { font-family: 'Noto Serif JP', serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.2; margin-bottom: .5rem; }
.ranking-hero__title em { color: #e09030; font-style: normal; }
.ranking-hero__catch { font-size: .9rem; color: #b08850; border-left: 3px solid #c07820; padding-left: .75rem; }
.ranking-page-body { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem; }
.ranking-page-body .odj-ranking-section { margin-top: 0; }

/* ===== 年齢確認ページ ===== */
.age-gate-body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #0a0600;
  color: #f0e0b0;
  margin: 0;
}

.age-gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ヒーローバナー */
.age-gate__hero {
  background: #0e0a04;
  border-bottom: 3px solid #7a4e10;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.age-gate__hero::before {
  content: '魂';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Noto Serif JP', serif;
  font-size: 20rem;
  font-weight: 900;
  color: rgba(180, 110, 20, 0.05);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.age-gate__logo {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  color: #f0c040;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 1.25rem;
  font-style: italic;
  position: relative;
}

.age-gate__hero-catch {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: #f0e0b0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  position: relative;
}

.age-gate__hero-sub {
  font-size: 14px;
  color: #b08850;
  position: relative;
}

/* 本文エリア */
.age-gate__body {
  flex: 1;
  background: #111008;
  padding: 3rem 2rem 4rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.age-gate__desc {
  font-size: 14px;
  color: #b08850;
  line-height: 1.95;
  margin-bottom: 1rem;
}

.age-gate__question {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0c040;
  text-align: center;
  margin: 2.5rem 0 1.75rem;
  border-left: 3px solid #c07820;
  padding-left: 1rem;
  text-align: left;
}

.age-gate__buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.age-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.age-gate__btn--yes {
  background: #c07820;
  color: #0a0600;
  border: 2px solid #c07820;
}

.age-gate__btn--yes:hover {
  background: #d08930;
  border-color: #d08930;
  color: #0a0600;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 120, 32, 0.35);
}

.age-gate__btn--no {
  background: transparent;
  color: #604020;
  border: 2px solid #2a1a08;
}

.age-gate__btn--no:hover {
  border-color: #5a3a10;
  color: #906030;
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .age-gate__hero { padding: 2.5rem 1.25rem 2rem; }
  .age-gate__hero::before { font-size: 10rem; }
  .age-gate__body { padding: 2rem 1.25rem 3rem; }
  .age-gate__buttons { flex-direction: column; align-items: center; }
  .age-gate__btn { width: 100%; max-width: 320px; }
}
