/*
Theme Name: AVINFO
Theme URI: https://yoursite.com
Description: FANZAアフィリエイト特化カスタムテーマ。ダークテーマ・レッドアクセント・モバイルファースト設計。
Author: AVINFO
Version: 1.0.0
License: Private
Text Domain: avinfo
*/

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

:root {
  --red: #e8001d;
  --red-dark: #b0001a;
  --red-light: #ff1a35;
  --black: #0a0a0a;
  --dark: #141414;
  --surface: #1e1e1e;
  --surface2: #252525;
  --border: #2e2e2e;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #555;
  --gold: #d4a017;
}

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

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ===== HEADER ===== */
#site-header {
  background: var(--dark);
  border-bottom: 2px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(232,0,29,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo span {
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  font-size: 22px;
}

#site-navigation {
  display: flex;
  gap: 24px;
  align-items: center;
}

#site-navigation a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

#site-navigation a:hover,
#site-navigation .current-menu-item > a { color: var(--text); }

.header-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 7px 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 3px;
  transition: background 0.2s !important;
  letter-spacing: 0.5px;
}

.header-cta:hover { background: var(--red-light) !important; }

/* ===== TAG NAV ===== */
.tag-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  overflow-x: auto;
  white-space: nowrap;
}

.tag-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.tag-nav-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 4px;
  flex-shrink: 0;
}

.tag-pill {
  display: inline-block;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  flex-shrink: 0;
}

.tag-pill:hover,
.tag-pill.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

/* ===== TOP BANNER ===== */
.top-banner {
  background: linear-gradient(135deg, #1a0005 0%, #2d000a 50%, #1a0005 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.top-banner::before {
  content: attr(data-label);
  position: absolute;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 300px;
  color: rgba(232,0,29,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  letter-spacing: -10px;
}

.banner-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.banner-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 4px;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.banner-title span { color: var(--red-light); }

.banner-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}

.banner-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 36px;
  border-radius: 3px;
  letter-spacing: 1px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(232,0,29,0.4);
}

.banner-btn:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232,0,29,0.5);
}

/* ===== LAYOUT ===== */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: start;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--red);
  flex-shrink: 0;
}

.section-count {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

/* ===== ARTICLE GRID ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s;
  animation: fadeInUp 0.4s ease both;
}

.article-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.article-card:nth-child(1) { animation-delay: 0.05s; }
.article-card:nth-child(2) { animation-delay: 0.10s; }
.article-card:nth-child(3) { animation-delay: 0.15s; }
.article-card:nth-child(4) { animation-delay: 0.20s; }
.article-card:nth-child(5) { animation-delay: 0.25s; }
.article-card:nth-child(6) { animation-delay: 0.30s; }
.article-card:nth-child(7) { animation-delay: 0.35s; }

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface2);
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-card:hover .card-thumb img { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  letter-spacing: 0.5px;
  z-index: 1;
}

.card-badge.new { background: #e67e00; }
.card-badge.rank { background: var(--gold); color: #000; }

.card-body { padding: 12px; }

.card-cat {
  font-size: 10px;
  color: var(--red-light);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
}

.card-actress { color: var(--text-muted); font-weight: 500; }

.card-cta {
  margin-top: 10px;
  display: block;
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 7px;
  border-radius: 2px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.card-cta:hover { background: var(--red-light); color: #fff; }

/* FEATURED CARD */
.article-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
}

.featured .card-thumb {
  aspect-ratio: unset;
  height: 100%;
  min-height: 200px;
}

.featured .card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured .card-title {
  font-size: 16px;
  -webkit-line-clamp: 3;
}

.card-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SINGLE POST ===== */
.post-header { margin-bottom: 24px; }

.post-cat {
  font-size: 11px;
  color: var(--red-light);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
}

.post-meta {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.post-thumbnail {
  margin-bottom: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.post-content {
  line-height: 1.9;
  font-size: 14px;
}

.post-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
  color: var(--text);
}

.post-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text);
}

.post-content p { margin-bottom: 16px; color: var(--text-muted); }

.post-content a { color: var(--red-light); text-decoration: underline; }

/* CTA Block inside post */
.cta-block {
  background: linear-gradient(135deg, #1a0005, #2d0010);
  border: 1px solid rgba(232,0,29,0.4);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.cta-block p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cta-block .cta-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(232,0,29,0.4);
  transition: all 0.2s;
  letter-spacing: 1px;
}

.cta-block .cta-btn:hover {
  background: var(--red-light);
  transform: translateY(-1px);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
}

.page-numbers {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  border-radius: 3px;
  transition: all 0.2s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.widget-title,
.widgettitle {
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.widget-title::before,
.widgettitle::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--red);
  flex-shrink: 0;
}

.widget-body,
.widget .textwidget { padding: 14px; }

/* FANZA CTA Widget */
.fanza-widget {
  background: linear-gradient(135deg, #1a0005, #2d0010);
  border: 1px solid rgba(232,0,29,0.4) !important;
  text-align: center;
  padding: 20px 14px;
}

.fanza-widget .widget-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 6px;
}

.fanza-widget .widget-logo span { color: var(--red-light); }

.fanza-widget p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.fanza-widget .fanza-btn {
  display: block;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px;
  border-radius: 3px;
  margin-bottom: 8px;
  transition: background 0.2s;
  box-shadow: 0 3px 12px rgba(232,0,29,0.4);
}

.fanza-widget .fanza-btn:hover { background: var(--red-light); }

.fanza-widget .fanza-sub {
  font-size: 10px;
  color: var(--text-dim);
}

/* Ranking Widget */
.rank-list { list-style: none; }

.rank-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.rank-item:last-child { border-bottom: none; padding-bottom: 0; }
.rank-item:hover { opacity: 0.8; }

.rank-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  line-height: 1;
  min-width: 24px;
  color: var(--text-dim);
}

.rank-num.top1 { color: var(--gold); }
.rank-num.top2 { color: #aaa; }
.rank-num.top3 { color: #cd7f32; }

.rank-thumb {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  background: var(--surface2);
}

.rank-info { flex: 1; min-width: 0; }

.rank-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.rank-actress { font-size: 11px; color: var(--text-muted); }

/* Tag Cloud */
.tag-cloud,
.widget_tag_cloud .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px;
}

.tag-cloud a,
.widget_tag_cloud .tagcloud a {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px !important;
  padding: 4px 10px;
  border-radius: 2px;
  transition: all 0.2s;
}

.tag-cloud a:hover,
.widget_tag_cloud .tagcloud a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* Category list */
.widget_categories ul,
.widget_pages ul { list-style: none; padding: 14px; }

.widget_categories ul li,
.widget_pages ul li {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

.widget_categories ul li:last-child,
.widget_pages ul li:last-child { border-bottom: none; }

.widget_categories ul li a,
.widget_pages ul li a {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  transition: color 0.2s;
}

.widget_categories ul li a:hover,
.widget_pages ul li a:hover { color: var(--red-light); }

/* Actress Grid */
.actress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.actress-item { text-align: center; transition: opacity 0.2s; }
.actress-item:hover { opacity: 0.8; }

.actress-avatar {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface2);
  border-radius: 50%;
  margin-bottom: 5px;
  object-fit: cover;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.actress-item:hover .actress-avatar { border-color: var(--red); }

.actress-name { font-size: 10px; color: var(--text-muted); line-height: 1.3; }

/* ===== FLOATING CTA ===== */
.float-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 40px;
  box-shadow: 0 4px 20px rgba(232,0,29,0.5);
  z-index: 200;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.float-cta:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232,0,29,0.6);
  color: #fff;
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--dark);
  border-top: 2px solid var(--red);
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.footer-logo span { color: var(--red-light); }

.footer-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 400px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-note {
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  line-height: 1.8;
}

.footer-copy { font-size: 11px; color: var(--text-dim); margin-top: 8px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #site-navigation { display: none; }

  .site-container {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 24px;
  }

  .article-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .article-card.featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .featured .card-thumb { min-height: 180px; aspect-ratio: 16/9; }

  .banner-title { font-size: 36px; }
  .top-banner { padding: 28px 16px; }
  .float-cta { bottom: 16px; right: 16px; font-size: 12px; padding: 10px 16px; }
}

@media (max-width: 480px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-card.featured { grid-column: span 1; }
}
