/*
Theme Name: Hitozuma Theme
Theme URI: https://av-hitozuma-jukujyo.com
Author: ERO-GYM運営部
Description: 人妻・熟女系アダルトアフィリエイトテーマ
Version: 1.0
*/

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

:root {
  --wine: #8B1A2F;
  --wine-dark: #6B1424;
  --navy: #1a1f3a;
  --navy-light: #252b4a;
  --white: #ffffff;
  --gray-bg: #f5f5f7;
  --gray-border: #e0e0e0;
  --text-main: #1a1a1a;
  --text-sub: #666666;
  --accent: #C0392B;
}

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

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

/* ===== ヘッダー ===== */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--wine);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
}

.site-logo span {
  color: var(--wine);
}

.site-logo small {
  font-size: 11px;
  color: #aaa;
  font-weight: 400;
  margin-left: 6px;
}

.header-search {
  display: flex;
  gap: 6px;
}

.header-search input {
  padding: 6px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 13px;
  width: 200px;
  background: #fff;
}

.header-search button {
  padding: 6px 14px;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

/* ===== グローバルナビ ===== */
.global-nav {
  background: var(--navy-light);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.global-nav ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  list-style: none;
  gap: 0;
}

.global-nav ul li a {
  display: block;
  padding: 10px 18px;
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.global-nav ul li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

/* ===== メインレイアウト ===== */
.site-wrap {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* ===== セクションタイトル ===== */
.section-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  border-left: 4px solid var(--wine);
  padding: 6px 12px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 0 4px 4px 0;
}

/* ===== カードグリッド ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.card-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #111;
}

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

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

.card-cat {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
  background: var(--wine);
}

.card-new {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
  background: var(--accent);
}

.card-body {
  padding: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.card-tag {
  font-size: 10px;
  padding: 2px 7px;
  background: #f0f0f5;
  color: var(--navy);
  border-radius: 20px;
  font-weight: 500;
}

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

.card-excerpt {
  font-size: 11px;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.card-meta {
  font-size: 11px;
  color: #999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== サイドバー ===== */
.sidebar-widget {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.widget-title {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-left: 4px solid var(--wine);
}

.widget-body {
  padding: 14px;
}

/* サイドバーランキング */
.side-ranking-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-border);
}

.side-ranking-item:last-child { border-bottom: none; }

.side-rank-num {
  font-size: 18px;
  font-weight: 900;
  min-width: 28px;
  color: var(--navy);
}

.side-rank-num.top { color: var(--wine); }

.side-rank-thumb {
  width: 70px;
  min-width: 70px;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 4px;
}

.side-rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* カテゴリウィジェット */
.cat-list { list-style: none; }

.cat-list li {
  border-bottom: 1px solid var(--gray-border);
}

.cat-list li:last-child { border-bottom: none; }

.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  font-size: 13px;
  color: var(--text-main);
  transition: color 0.2s;
}

.cat-list li a:hover { color: var(--wine); }

.cat-count {
  font-size: 11px;
  color: #999;
  background: #f5f5f5;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ===== フッター ===== */
.site-footer {
  background: var(--navy);
  color: #aaa;
  margin-top: 48px;
  padding: 40px 0 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

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

.footer-desc {
  font-size: 12px;
  line-height: 1.8;
  color: #888;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links li a {
  font-size: 12px;
  color: #888;
  transition: color 0.2s;
}

.footer-links li a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .site-wrap {
    grid-template-columns: 1fr;
    padding: 0 8px;
    margin: 12px auto;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .header-search input {
    width: 140px;
  }
  .single-post {
    padding: 12px !important;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== 記事ページ ===== */
.single-post {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.single-cat {
  margin-bottom: 10px;
}

.single-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 12px;
}

.single-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-border);
}

.single-thumb {
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
}

.single-thumb img {
  width: 100%;
  height: auto;
}

.single-content {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-main);
  margin-bottom: 32px;
}

.single-content h2 {
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
  border-left: 4px solid var(--wine);
  padding: 6px 12px;
  margin: 28px 0 16px;
  background: #f8f8fc;
  border-radius: 0 4px 4px 0;
}

.single-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gray-border);
}

.single-content p {
  margin-bottom: 16px;
}

.single-content img {
  border-radius: 6px;
  margin: 16px 0;
}

/* FANZAボタン */
.fanza-btn-wrap {
  text-align: center;
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  border-radius: 10px;
  padding: 24px;
  margin-top: 32px;
}

.fanza-btn {
  display: inline-block;
  background: #fff;
  color: var(--wine);
  font-size: 16px;
  font-weight: 900;
  padding: 14px 40px;
  border-radius: 50px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fanza-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.fanza-note {
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  margin-top: 10px;
}