/* Prime Video映画ナビ — 全スタイル（ダーク基調）
   アクセントは2色:
   - ゴールド: 最重要アクション・強調（編集部誌トーン）
   - ブルー(#00A8E1系): Prime操作・見放題
*/

:root {
  --accent-gold: #c19a6b;
  --accent-gold-deep: #a37d4f;
  --accent-gold-bright: #e2c39a;
  --accent-ui: #00a8e1;
  --accent-ui-deep: #0086b3;
  --rank-silver: #c0c7d1;
  --rank-silver-deep: #7b8494;
  --rank-bronze: #d97706;
  --rank-bronze-deep: #92400e;
  --rank-muted: #334155;
  --bg: #070707;
  --bg-elev: #121212;
  --text: #f4eee4;
  --text-muted: #b8b0a4;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, .site-logo-text, .hero-yellow, .hero-white, .section-head h2, .count-badge,
.feature-card h2, .detail-body h1, .daily-card h3, .footer-mark {
  font-family: var(--font-serif);
}
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ===== サイトヘッダー ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 7, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(193, 154, 107, .18);
}
.site-header-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--accent-gold);
  letter-spacing: .04em;
}
.site-logo-icon { flex-shrink: 0; border-radius: 4px; }
.site-logo-text { line-height: 1.2; }
.site-logo:hover .site-logo-text { color: var(--accent-gold-bright); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  padding: 10px 12px; border-radius: 0; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; color: var(--text-muted); min-height: 44px;
  display: inline-flex; align-items: center; border-bottom: 2px solid transparent;
}
.site-nav a:hover { background: transparent; color: var(--text); }
.site-nav a.active {
  background: transparent; color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 168, 225, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(2, 132, 199, 0.12) 0%, transparent 50%),
    linear-gradient(to bottom, #0f172a, #020617);
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero-has-bg {
  background: #020617;
  min-height: clamp(360px, 52vh, 520px);
}
.hero-bg {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0;
  overflow: hidden;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 100px 40px rgba(2, 6, 23, 0.55);
}
.hero-bg-panel {
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.1);
  filter: saturate(0.9) brightness(0.72);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
.hero-bg-panels-1 { grid-template-columns: 1fr; }
.hero-bg-panels-2 { grid-template-columns: 1fr 1fr; }
.hero-bg-panels-3 {
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.hero-bg-panels-3 .hero-bg-panel:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.hero-bg-panels-3 .hero-bg-panel:nth-child(2) { grid-column: 2; grid-row: 1; }
.hero-bg-panels-3 .hero-bg-panel:nth-child(3) { grid-column: 2; grid-row: 2; }
.hero-bg-panels-4 {
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.hero-bg-panels-4 .hero-bg-panel:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.hero-bg-panels-4 .hero-bg-panel:nth-child(2) { grid-column: 2 / 4; grid-row: 1; }
.hero-bg-panels-4 .hero-bg-panel:nth-child(3) { grid-column: 2; grid-row: 2; }
.hero-bg-panels-4 .hero-bg-panel:nth-child(4) { grid-column: 3; grid-row: 2; }
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.72) 48%, rgba(7, 7, 7, 0.98) 100%);
}
.hero-has-bg .hero-inner { position: relative; z-index: 1; }
@media (max-width: 640px) {
  .hero-bg-panels-3,
  .hero-bg-panels-4 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .hero-bg-panels-3 .hero-bg-panel:not(:first-child),
  .hero-bg-panels-4 .hero-bg-panel:not(:first-child) { display: none; }
  .hero-bg-panels-3 .hero-bg-panel:nth-child(1),
  .hero-bg-panels-4 .hero-bg-panel:nth-child(1) { grid-column: 1; grid-row: 1; }
  .hero-bg-panel {
    -webkit-mask-image: radial-gradient(ellipse 105% 95% at 50% 40%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 105% 95% at 50% 40%, #000 45%, transparent 100%);
  }
}
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 72px 20px 56px; text-align: center; }
.hero-compact .hero-inner { padding: 40px 20px; }
.hero-compact h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.hero-badge {
  display: inline-block;
  padding: 6px 14px; font-weight: 700; font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase;
  box-shadow: none;
  border-radius: 0;
  background: transparent; color: var(--accent-gold);
  border: 1px solid rgba(193, 154, 107, .55);
  transform: none;
  font-family: var(--font-sans);
}
.hero-badge-free {
  background: transparent; color: var(--accent-ui);
  border-color: rgba(0, 168, 225, .5);
  transform: none;
}
.hero-badge-mood {
  background: transparent; color: var(--accent-gold);
  transform: none;
}
.hero h1 { font-size: clamp(1.85rem, 5.4vw, 3.4rem); font-weight: 700; line-height: 1.25; margin-bottom: 16px; }
.hero-yellow { color: var(--accent-gold); text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.hero-white { color: var(--text); text-shadow: 0 2px 18px rgba(0,0,0,.7); }
.hero-sub { font-size: 1.02rem; color: var(--text-muted); margin-bottom: 12px; font-weight: 400; line-height: 1.7; }
.hero-sub strong { color: var(--accent-gold); }
.hero-free-note { font-size: .8rem; color: #8a847a; margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero-updated { color: #8a847a; font-size: .85rem; margin-top: 16px; }
.hero-prime-signup { color: #8a847a; font-size: .82rem; margin-top: 10px; }
.today-cta { margin-bottom: 14px; }
.prime-signup-cta { margin-bottom: 16px; }
.prime-signup-link {
  color: #7dd3fc;
  font-size: .95rem;
  text-decoration: underline;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.prime-signup-link:hover { color: #bae6fd; }
.today-cta a {
  display: inline-block; font-weight: 700;
  padding: 14px 28px; border-radius: 0; font-size: .95rem;
  letter-spacing: .08em;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  background: var(--accent-gold); color: #111;
  box-shadow: none;
  font-family: var(--font-sans);
}
.today-cta a:hover { transform: translateY(-1px); background: var(--accent-gold-bright); }
.today-cta-primary a {
  background: var(--accent-gold); color: #111;
  box-shadow: none;
}
.today-cta-primary a:hover { background: var(--accent-gold-bright); }
.today-cta-secondary a {
  background: transparent; color: var(--accent-gold);
  border: 1px solid rgba(193, 154, 107, .75);
  box-shadow: none;
}
/* JustWatch風: TOPの入口3つ（今日 / 新着 / 気分） */
.discover-doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 8px;
}
.discover-door {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s, transform .15s;
  min-height: 72px;
}
.discover-door:hover {
  border-color: rgba(193, 154, 107, 0.55);
  background: rgba(193, 154, 107, 0.08);
  transform: translateY(-1px);
}
.discover-door-label {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}
.discover-door-desc {
  font-size: 0.85rem;
  color: #9ca3af;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .discover-doors {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .discover-door {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 14px 16px;
  }
  .discover-door-desc { text-align: right; }
}

.today-cta-secondary a:hover {
  background: rgba(250, 204, 21, .12);
  border-color: var(--accent-gold);
}

.searchbox input {
  width: 100%; max-width: 560px; padding: 14px 20px;
  font-size: 1rem; border: 2px solid rgba(255,255,255,.2); border-radius: 12px;
  background: rgba(0,0,0,.5); color: #fff; outline: none;
}
.searchbox input:focus { border-color: var(--accent-ui); }

/* ===== レイアウト ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 48px 16px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.toolbar .genre-chips {
  flex: 1 1 200px; flex-wrap: nowrap; overflow-x: auto; max-width: 100%;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
@media (min-width: 900px) {
  .toolbar .genre-chips { flex-wrap: wrap; overflow-x: visible; }
}
.toolbar-label { color: #d1d5db; font-weight: 500; margin-right: 4px; }
.genre-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  background: rgba(255, 255, 255, 0.05); color: #d1d5db; border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px); cursor: pointer;
  padding: 10px 16px; border-radius: 9999px; font-size: .85rem; font-weight: 700;
  transition: background .2s, border-color .2s, transform .2s; min-height: 44px; flex-shrink: 0;
}
.chip:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.chip.active {
  background: var(--accent-ui); color: #fff;
  border-color: var(--accent-ui);
  box-shadow: 0 4px 12px rgba(0, 168, 225, 0.28);
}
.chip-more {
  border-style: dashed;
  color: #7dd3fc;
  border-color: rgba(0, 168, 225, 0.45);
}
.genre-chips-extra { display: contents; }
.genre-chips-extra[hidden] { display: none !important; }
.sort-box select {
  background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer;
  padding: 10px 16px; border-radius: 8px; font-size: .9rem; backdrop-filter: blur(4px);
  min-height: 44px;
  transition: background .2s, border-color .2s;
}
.sort-box select:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }

.section-head { text-align: center; margin-bottom: 40px; }
.count-badge {
  display: inline-block; background: transparent; color: var(--accent-gold);
  padding: 6px 0; font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; transform: none; border-radius: 0; box-shadow: none;
  margin-bottom: 12px; border-bottom: 1px solid var(--accent-gold);
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 1rem; }

/* ===== カードグリッド ===== */
.grid {
  display: grid; gap: 24px 16px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.card {
  display: block;
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: translateY(-6px);
}
.poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
  transition: border-color .3s, box-shadow .3s;
}
.card:hover .poster {
  border-color: rgba(193, 154, 107, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(193, 154, 107, 0.12);
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, filter .3s; }
.card:hover .poster img { transform: scale(1.05); filter: brightness(1.1); }
.poster-fallback {
  height: 100%; display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center; color: #9ca3af; font-weight: 600;
  background: linear-gradient(to bottom right, #374151, #111827);
}
.rank {
  position: absolute; top: -4px; left: -4px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.15rem; color: #e2e8f0;
  border: 2px solid #0f172a; box-shadow: 0 4px 8px rgba(0,0,0,.5);
  background: linear-gradient(135deg, #475569, var(--rank-muted));
}
.rank-1 {
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold-deep));
  color: #111;
  box-shadow: 0 4px 12px rgba(193, 154, 107, .35);
}
.rank-2 {
  background: linear-gradient(135deg, #f1f5f9, var(--rank-silver-deep));
  color: #111;
}
.rank-3 {
  background: linear-gradient(135deg, #fbbf24, var(--rank-bronze-deep));
  color: #111;
}
.rank-n {
  background: linear-gradient(135deg, #475569, var(--rank-muted));
  color: #e2e8f0;
}
.kami {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-gold); color: #111; padding: 4px 14px; font-size: .7rem; font-weight: 700;
  border-radius: 0; box-shadow: none; white-space: nowrap; letter-spacing: .08em;
}
.card h3 {
  margin-top: 12px; font-size: .95rem; font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover h3 { color: var(--accent-gold); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: .78rem; color: #9ca3af; }
.card-meta span { background: #1f2937; padding: 3px 8px; border-radius: 4px; }
.card-meta .star { background: rgba(234,179,8,.15); color: var(--accent-gold); font-weight: 700; }
.card-meta .votes { background: transparent; padding: 3px 0; color: #6b7280; }
.card-overview {
  margin-top: 8px; font-size: .8rem; color: #9ca3af; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.grid-empty { text-align: center; color: #9ca3af; font-size: 1.2rem; padding: 60px 0; }
.grid-note { text-align: center; color: #6b7280; font-size: .9rem; margin-top: 24px; }

/* ===== 詳細ページ ===== */
.backdrop { position: relative; height: 380px; overflow: hidden; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.backdrop-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #111827 5%, rgba(17,24,39,.7) 40%, transparent);
}
.detail.has-backdrop { margin-top: -140px; position: relative; z-index: 1; }
.detail-cols { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) { .detail-cols { flex-direction: row; } }
.detail-poster { flex-shrink: 0; width: 260px; max-width: 100%; }
.detail-poster img { border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.6); }
.detail-body { flex: 1; }
.back {
  display: inline-flex; align-items: center;
  color: #9ca3af; font-size: .95rem;
  padding: 10px 4px; margin: -10px -4px;
  min-height: 44px;
}
.back:hover { color: #fff; }
.share-row { margin: 28px 0 16px; }
.share-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
  transition: background .15s, border-color .15s;
}
.share-btn:hover { background: #374151; border-color: #4b5563; color: #fff; }
.today-archive { margin: 32px 0 24px; padding-top: 24px; border-top: 1px solid #1f2937; }
.today-archive h2 { font-size: 1rem; color: #9ca3af; margin-bottom: 12px; font-weight: 600; }
.today-archive-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.today-archive-list a {
  display: inline-flex; align-items: center;
  color: #9ca3af; font-size: .9rem;
  padding: 8px 4px; min-height: 44px;
}
.today-archive-list a:hover { color: var(--accent-gold); }
.detail-body h1 { font-size: 2.2rem; font-weight: 700; margin: 12px 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #9ca3af; margin-bottom: 16px; }
.detail-rating { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.rating-source { font-size: .8rem; font-weight: 400; color: #9ca3af; margin-left: 6px; }
.hero-updated a { color: #9ca3af; text-decoration: underline; }
.star-big { color: var(--accent-gold); }
.prime-badge { display: inline-block; background: var(--accent-ui); padding: 8px 16px; font-size: .8rem; font-weight: 700; border-radius: 0; margin-bottom: 20px; letter-spacing: .04em; }
.detail-genres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.genre-tag {
  display: inline-flex; align-items: center;
  background: #374151; padding: 10px 16px; border-radius: 9999px;
  font-size: .9rem; min-height: 44px;
}
.detail-cast { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cast-tag {
  display: inline-flex; align-items: center;
  background: #1f2937; padding: 10px 16px; border-radius: 9999px; font-size: .9rem;
  border: 1px solid #374151; color: #e5e7eb; min-height: 44px;
}
a.cast-tag:hover { background: #374151; border-color: #4b5563; color: var(--accent-gold); }
.detail-director { color: #9ca3af; font-size: .9rem; margin-bottom: 20px; }
.detail-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.overview { color: #d1d5db; line-height: 1.8; margin-bottom: 28px; }
.prime-btn {
  display: inline-block; background: var(--accent-ui); padding: 14px 28px;
  border-radius: 0; font-weight: 700; font-size: 1rem; transition: background .15s;
  letter-spacing: .04em;
}
.prime-btn:hover { background: var(--accent-ui-deep); }
.prime-note { color: #6b7280; font-size: .8rem; margin-top: 10px; }

/* ===== 手動キュレーション特集（縦積み・コメント付き） ===== */
.curated-list { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; }
.curated-item {
  display: flex; gap: 20px; background: #1f2937; border-radius: 14px; padding: 16px;
  transition: background .15s;
}
.curated-item:hover { background: #263244; }
.curated-poster { flex-shrink: 0; width: 100px; }
.curated-poster img, .curated-poster .poster-fallback {
  border-radius: 8px; aspect-ratio: 2/3; object-fit: cover; width: 100%;
}
.curated-poster .poster-fallback {
  display: flex; align-items: center; justify-content: center; padding: 8px;
  text-align: center; font-size: .75rem; color: #9ca3af; background: #374151;
}
.curated-body h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.curated-comment { color: #d1d5db; font-size: .9rem; line-height: 1.7; margin-top: 10px; }
.comment-strong { color: var(--accent-gold); font-weight: 800; font-style: normal; }
.today-label {
  display: inline-block; background: transparent; color: var(--accent-gold); font-weight: 700;
  font-size: .72rem; padding: 0; border-radius: 0; margin-bottom: 8px; letter-spacing: .12em;
}

/* ===== 特集カード（トップ・TOP100の直前） ===== */
.feature-links {
  margin-bottom: 48px; display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .feature-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-links { grid-template-columns: 1fr; } }
.feature-card {
  display: block; position: relative; overflow: hidden;
  background-color: #0f172a; background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.08); border-radius: 0; padding: 18px 20px;
  min-height: 148px;
  transition: transform .15s, border-color .15s;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .35) 0%, rgba(2, 6, 23, .55) 40%, rgba(2, 6, 23, .92) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, .45) 0%, transparent 55%);
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--accent-gold); }
.feature-card > * { position: relative; z-index: 1; }
.feature-badge {
  display: inline-block; background: transparent; color: var(--accent-gold); font-weight: 700;
  font-size: .68rem; padding: 0; border-radius: 0; margin-bottom: 8px; letter-spacing: .14em;
}
.feature-card h2 {
  font-size: 1.1rem; font-weight: 900; margin-bottom: 4px; line-height: 1.3;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.feature-card p { color: #e5e7eb; font-size: .82rem; line-height: 1.4; }
.feature-more { text-align: center; margin: -24px 0 48px; }
.feature-more a { color: var(--accent-gold); font-weight: 700; font-size: .95rem; }
.feature-more a:hover { text-decoration: underline; }

/* ===== ジャンル別リンク（トップ下部・SEO内部リンク） ===== */
.genre-links { margin-top: 64px; text-align: center; }
.genre-links h2 { font-size: 1.4rem; font-weight: 900; margin-bottom: 16px; }
.genre-links .genre-chips { justify-content: center; }
a.chip { display: inline-block; }
.genre-tag:hover { background: #4b5563; }

/* ===== フッター ===== */
.footer { text-align: center; color: #6b7280; font-size: .85rem; padding: 56px 16px 40px; line-height: 1.7; border-top: 1px solid rgba(193,154,107,.16); }
.footer-mark {
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  color: rgba(193, 154, 107, .28);
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 8px;
  line-height: 1;
}
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 18px;
}
.footer p { margin-bottom: 12px; }
.footer p:first-child {
  display: block;
}
.footer a {
  display: inline-flex; align-items: center;
  color: #9ca3af; text-decoration: none;
  padding: 6px 4px; min-height: 44px;
  letter-spacing: .08em; font-size: .78rem;
}
.footer a:hover { color: var(--accent-gold); }
.footer-sisters { font-size: .8rem; color: #6b7280; }
.footer-sisters a { min-height: auto; padding: 2px 4px; }

/* AIO: AI回答エンジンが引用しやすい事実ベースの要約 */
.aio-summary {
  background: #1a1d24;
  border: 1px solid #2d3139;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 32px;
  color: #d1d5db;
  font-size: .9rem;
  line-height: 1.7;
}
.aio-summary p { margin-bottom: 8px; }
.aio-summary a { color: #93c5fd; text-decoration: underline; }

/* 特集: こんな人・こんなとき（検索意図の明示） */
.feature-fit {
  margin: -8px 0 36px;
  padding: 20px 0 0;
  border-top: 1px solid #2d3139;
}
.feature-fit-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f3f4f6;
  margin: 0 0 16px;
}
.feature-fit-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feature-fit-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-fit-card {
  background: #141820;
  border: 1px solid #2d3139;
  border-radius: 8px;
  padding: 14px 16px;
}
.feature-fit-card h3 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: .02em;
  margin: 0 0 10px;
}
.feature-fit-card ul {
  margin: 0;
  padding: 0 0 0 1.1em;
  color: #d1d5db;
  font-size: .85rem;
  line-height: 1.65;
}
.feature-fit-card li { margin-bottom: 6px; }
.feature-fit-card-muted {
  background: transparent;
  border-style: dashed;
}
.feature-fit-card-muted h3 { color: #9ca3af; }
.feature-fit-card-muted ul { color: #9ca3af; }

/* ===== 運営について ===== */
.about-page { max-width: 720px; }
.about-brand {
  display: flex; justify-content: center; margin: 8px 0 32px;
}
.about-brand img {
  width: min(280px, 72vw); height: auto; border-radius: 12px;
}
.about-section { margin-bottom: 36px; }
.about-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: var(--accent-gold); }
.about-section p, .about-list { color: #d1d5db; line-height: 1.8; font-size: .95rem; }
.about-list { margin-left: 1.2em; }
.about-list li { margin-bottom: 8px; }
.about-note { color: #9ca3af; font-size: .85rem; margin-top: 8px; }
.about-section code { background: #1f2937; padding: 2px 6px; border-radius: 4px; font-size: .85em; }
.about-contact {
  display: inline-block; margin-top: 8px; padding: 12px 20px;
  background: #1f2937; border-radius: 8px; font-weight: 700; color: #93c5fd;
}
.about-contact:hover { background: #374151; }

/* ===== 関連作品（作品ページ） ===== */
.related { margin-top: 48px; padding-top: 32px; border-top: 1px solid #1f2937; }
.related h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; }
.related-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.related-card {
  display: flex; flex-direction: column; gap: 8px;
  background: #1f2937; border-radius: 10px; padding: 12px; transition: background .15s;
}
.related-card:hover { background: #263244; }
.related-card img { border-radius: 6px; aspect-ratio: 2/3; object-fit: cover; width: 100%; }
.related-title { font-size: .9rem; font-weight: 700; line-height: 1.45; }
.related-rating { font-size: .82rem; color: var(--accent-gold); }
.related-more { margin-top: 16px; font-size: .95rem; }
.related-more a {
  display: inline-flex; align-items: center;
  color: #93c5fd; text-decoration: underline;
  padding: 8px 4px; min-height: 44px;
}

.aio-summary dl { margin-top: 12px; }
.aio-summary dt { color: var(--accent-gold); font-weight: 700; font-size: .85rem; margin-top: 8px; }
.aio-summary dd { margin-left: 0; color: #9ca3af; font-size: .85rem; }
.site-howto-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f3f4f6;
  margin: 0 0 12px;
}
.aio-today-list { margin: 8px 0 0 1.2em; padding: 0; }
.aio-today-list li { margin-bottom: 4px; }
.detail-body > .aio-summary {
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: .85rem;
}

.sp-only { display: inline; }
@media (min-width: 768px) { .sp-only { display: none; } }

/* ヒーロー直下の気分クイック */
.hero-mood-quick {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  margin: 22px auto 0; max-width: 720px;
}
.hero-mood-quick a {
  color: var(--text-muted); font-size: .78rem; letter-spacing: .08em;
  min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 1px solid transparent;
}
.hero-mood-quick a:hover { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.hero-mood-quick-label {
  color: #6b6560; font-size: .68rem; letter-spacing: .16em;
  min-height: 44px; display: inline-flex; align-items: center;
}

/* 気分バー（特集への横スクロール） */
.mood-bar {
  margin: 8px 0 36px;
  padding: 18px 0 8px;
  border-top: 1px solid rgba(193,154,107,.16);
  border-bottom: 1px solid rgba(193,154,107,.16);
}
.mood-bar-label {
  display: block;
  font-size: .68rem;
  letter-spacing: .18em;
  color: #8a847a;
  margin-bottom: 12px;
}
.mood-bar-track {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  max-width: 100%;
  overflow: visible;
  padding-bottom: 0;
}
.mood-bar-track a {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: rgba(244, 238, 228, .42);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  max-width: 12em;
}
.mood-bar-track a:hover,
.mood-bar-track a.is-lead { color: var(--accent-gold); }

/* Daily 5 5本横並び */
.daily5 { max-width: 1100px; margin: 0 auto 48px; }
.daily5-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 20px;
  max-width: 1100px;
}
.daily5-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: inherit;
}
.daily5-tile-num {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: rgba(244, 238, 228, .28);
  line-height: 1;
}
.daily5-tile-poster {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
}
.daily5-tile-poster img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.7) contrast(1.04);
}
.daily5-tile:hover .daily5-tile-poster { border-color: var(--accent-gold); }
.daily5-tile .today-label {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.daily5-tile-title {
  font-family: var(--font-serif);
  font-size: .95rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.daily5-tile:hover .daily5-tile-title { color: var(--accent-gold); }
@media (max-width: 800px) {
  .daily5-row {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(193, 154, 107, .4) transparent;
  }
  .daily5-row::-webkit-scrollbar { height: 3px; }
  .daily5-row::-webkit-scrollbar-track { background: transparent; }
  .daily5-row::-webkit-scrollbar-thumb { background: rgba(193, 154, 107, .4); }
  .daily5-row::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  .daily5-tile {
    flex: 0 0 132px;
    max-width: 132px;
  }
}

/* 編集部誌: 全面ブリード / オーバーラップ */
.editorial-stack { max-width: 1100px; margin: 0 auto 40px; }
.ed-pick { position: relative; margin: 0 0 52px; }
.ed-num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: .85;
  color: var(--accent-gold);
  letter-spacing: -.04em;
  margin: 0 0 8px;
}
.ed-pick h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 700;
  margin: 6px 0 10px;
  line-height: 1.3;
}
.ed-media { background: #111; overflow: hidden; }
.ed-media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.5) contrast(1.08);
}

.ed-bleed .ed-media { min-height: min(52vh, 480px); }
.ed-bleed .ed-media img { min-height: min(52vh, 480px); }
.ed-bleed .ed-panel {
  position: absolute;
  left: 24px; bottom: 28px;
  width: min(420px, calc(100% - 48px));
  background: rgba(7, 7, 7, .88);
  padding: 28px 26px 24px;
  z-index: 1;
}
.ed-bleed.ed-rev .ed-panel { left: auto; right: 24px; }

.ed-overlap {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  align-items: end;
}
.ed-overlap .ed-media img { min-height: 280px; aspect-ratio: 16 / 9; }
.ed-overlap .ed-panel {
  position: relative;
  z-index: 2;
  background: #0c0c0c;
  padding: 32px 28px 26px;
  margin: 0 8px 28px -80px;
}
.ed-overlap.ed-rev {
  grid-template-columns: .85fr 1.25fr;
  align-items: start;
}
.ed-overlap.ed-rev .ed-media { grid-column: 2; grid-row: 1; }
.ed-overlap.ed-rev .ed-panel {
  grid-column: 1; grid-row: 1;
  margin: 40px -80px 0 8px;
}

.daily-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 16px;
  border: 1px solid rgba(193,154,107,.7); color: var(--accent-gold);
  font-size: .82rem; letter-spacing: .06em; font-weight: 700;
}
.btn-ghost:hover { background: rgba(193,154,107,.12); }
.daily-actions .prime-btn { min-height: 44px; padding: 10px 16px; font-size: .82rem; }

@media (max-width: 800px) {
  .ed-bleed .ed-panel, .ed-bleed.ed-rev .ed-panel {
    position: relative; left: auto; right: auto; bottom: auto;
    width: auto; margin: -48px 12px 0;
  }
  .ed-overlap, .ed-overlap.ed-rev { grid-template-columns: 1fr; align-items: stretch; }
  .ed-overlap .ed-panel, .ed-overlap.ed-rev .ed-panel {
    grid-column: 1; grid-row: auto; margin: -36px 12px 0;
  }
  .ed-overlap.ed-rev .ed-media { grid-column: 1; }
}

/* ランキング下位: 細いリスト */
.rank-list {
  max-width: 820px;
  margin: 8px auto 40px;
  border-top: 1px solid rgba(193,154,107,.18);
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: inherit;
}
.rank-row-num {
  flex: 0 0 2rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--accent-gold);
  text-align: right;
}
.rank-row-thumb {
  flex: 0 0 48px;
  width: 48px; height: 72px;
  overflow: hidden; background: #111;
}
.rank-row-thumb img { width: 48px; height: 72px; object-fit: cover; }
.rank-row-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rank-row-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.rank-row-meta { color: var(--text-muted); font-size: .8rem; }
.rank-row-score {
  flex: 0 0 auto;
  color: var(--accent-gold);
  font-size: .9rem;
  font-weight: 700;
}
.rank-row:hover .rank-row-title { color: var(--accent-gold); }

