/*
Theme Name: EroHub
Theme URI: https://ero-hub-chan.com
Description: アダルトまとめサイト用テーマ
Version: 1.0
Author: EroHub
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "游ゴシック体", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #333;
  background: #f0f0f0;
  line-height: 1.7;
}

a { color: #0284c7; text-decoration: none; }
a:hover { color: #0ea5e9; }
img { max-width: 100%; height: auto; display: block; }

/* ===== WRAPPER ===== */
.l-wrapper { max-width: 1108px; margin: 0 auto; padding: 0 12px; }

/* ===== HEADER ===== */
.l-header {
  background: #0ea5e9;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1108px;
  margin: 0 auto;
  padding: 0 12px;
}
.l-header__logo a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .05em;
}

/* ===== GLOBAL NAV ===== */
.c-gnav { display: flex; align-items: center; gap: 0; margin-left: auto; }

.c-gnav__item {
  position: relative;
}
.c-gnav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  padding: 0 14px;
  height: 56px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .2s;
}
.c-gnav__link:hover { background: rgba(0,0,0,.2); color: #fff; }
.c-gnav__arrow { font-size: 10px; opacity: .8; }

/* ドロップダウン */
.c-gnav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  list-style: none;
  z-index: 200;
  overflow: hidden;
}
.c-gnav__item:hover .c-gnav__dropdown { display: block; }
.c-gnav__dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s, color .15s;
}
.c-gnav__dropdown li:last-child a { border-bottom: none; }
.c-gnav__dropdown li a:hover { background: #e0f2fe; color: #0369a1; }

/* ヘッダー検索 */
.c-header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.18);
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.4);
  transition: background .2s;
  flex-shrink: 0;
}
.c-header-search:focus-within {
  background: rgba(255,255,255,.28);
  border-color: #fff;
}
.c-header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  padding: 7px 12px;
  width: 160px;
  font-family: inherit;
}
.c-header-search input::placeholder { color: rgba(255,255,255,.7); }
.c-header-search button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 7px 12px 7px 4px;
  font-size: 14px;
  line-height: 1;
}

/* ===== HAMBURGER ===== */
.c-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.c-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}

/* ===== MOBILE MENU ===== */
.c-mobile-menu {
  display: none;
  background: #0369a1;
  padding: 8px 0;
}
.c-mobile-menu__parent {
  display: block;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.c-mobile-menu__child {
  display: block;
  color: rgba(255,255,255,.85);
  padding: 8px 20px 8px 32px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.c-mobile-menu__parent:hover,
.c-mobile-menu__child:hover { background: rgba(0,0,0,.15); color: #fff; }
.c-mobile-menu__search {
  display: flex;
  margin: 10px 16px;
  border-radius: 6px;
  overflow: hidden;
}
.c-mobile-menu__search input {
  flex: 1;
  border: none;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}
.c-mobile-menu__search button {
  background: #0ea5e9;
  color: #fff;
  border: none;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.c-mobile-menu.is-open { display: block; }

/* ===== LAYOUT ===== */
.l-main {
  max-width: 1108px;
  margin: 20px auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
.l-main--full {
  grid-template-columns: 1fr;
  max-width: 860px;
}

/* ===== SECTION HEADING ===== */
.c-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: #38bdf8;
  padding: 8px 14px;
  margin-bottom: 14px;
  border-radius: 4px;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
  position: relative;
}
.c-section-heading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #fff;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== CARD GRID ===== */
.c-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.c-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.c-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.c-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #ddd;
}
.c-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.c-card:hover .c-card__thumb img { transform: scale(1.05); }

.c-card__cat {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #0ea5e9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
}

.c-card__body { padding: 10px 12px 12px; }
.c-card__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #222;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-card__title a { color: #222; }
.c-card__title a:hover { color: #0ea5e9; }

.c-card__meta {
  font-size: 11px;
  color: #999;
  margin-top: 6px;
}

/* ===== PAGINATION ===== */
.c-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 30px;
}
.c-pagination a, .c-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  color: #0ea5e9;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.c-pagination a:hover { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.c-pagination .current { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }

/* ===== SIDEBAR ===== */
.l-sidebar {}

.c-widget {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  margin-bottom: 18px;
}
.c-widget__title {
  background: #0ea5e9;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
}
.c-widget__body { padding: 12px; }

.c-widget ul { list-style: none; }
.c-widget ul li {
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  font-size: 13px;
}
.c-widget ul li:last-child { border-bottom: none; }
.c-widget ul li a { color: #333; }
.c-widget ul li a:hover { color: #0ea5e9; }

/* ===== SIDEBAR CATEGORY ===== */
.c-cat-parent { margin-bottom: 4px; }
.c-cat-parent__link {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #f0f0f0;
}
.c-cat-parent__link span { color: #aaa; font-weight: 400; }
.c-cat-parent__link:hover { color: #0ea5e9; }
.c-cat-children { list-style: none; margin: 0; }
.c-cat-children li a {
  display: block;
  padding: 6px 0 6px 8px;
  font-size: 12px;
  color: #555;
  border-bottom: 1px solid #f8f8f8;
}
.c-cat-children li a span { color: #bbb; }
.c-cat-children li a:hover { color: #0ea5e9; }

/* ===== RANKING ===== */
.c-ranking-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
}
.c-ranking-item:last-child { border-bottom: none; }
.c-ranking-num {
  font-size: 22px;
  font-weight: 700;
  color: #ccc;
  min-width: 28px;
  line-height: 1;
  padding-top: 4px;
  text-align: center;
}
.c-ranking-num.is-1 { color: #f0a500; }
.c-ranking-num.is-2 { color: #aaa; }
.c-ranking-num.is-3 { color: #c07850; }
.c-ranking-thumb {
  width: 110px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
  border-radius: 6px;
}
.c-ranking-thumb img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform .25s;
}
.c-ranking-thumb:hover img { transform: scale(1.05); }
.c-ranking-title { font-size: 13px; line-height: 1.6; color: #333; flex: 1; }
.c-ranking-title a { color: #333; }
.c-ranking-title a:hover { color: #0ea5e9; }

/* ===== SINGLE POST ===== */
.l-single { background: #fff; border-radius: 8px; padding: 20px 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.l-single h1 { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.5; }
.l-single .post-meta { font-size: 12px; color: #999; margin-bottom: 16px; }
.l-single .post-thumbnail { margin-bottom: 16px; border-radius: 6px; overflow: hidden; }
.l-single .post-content { font-size: 15px; line-height: 1.9; }
.l-single .post-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: #38bdf8;
  padding: 8px 14px;
  margin: 24px 0 12px;
  border-radius: 4px;
}
.l-single .post-content h3 {
  font-size: 16px;
  font-weight: 700;
  border-left: 4px solid #0ea5e9;
  padding-left: 10px;
  margin: 20px 0 10px;
}
.l-single .post-content p { margin-bottom: 14px; }
.l-single .post-content img { border-radius: 6px; margin: 12px auto; }

/* ===== BREADCRUMB ===== */
.c-breadcrumb {
  font-size: 12px;
  color: #999;
  padding: 10px 0;
  max-width: 1108px;
  margin: 0 auto;
  padding: 10px 12px;
}
.c-breadcrumb a { color: #0ea5e9; }
.c-breadcrumb span { margin: 0 5px; }

/* ===== FOOTER ===== */
.l-footer {
  background: #333;
  color: #aaa;
  text-align: center;
  padding: 24px 12px;
  font-size: 12px;
  margin-top: 30px;
}
.l-footer a { color: #0ea5e9; }
.l-footer__nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.l-footer__nav a { color: #aaa; font-size: 12px; }
.l-footer__nav a:hover { color: #0ea5e9; }

/* ===== NO THUMBNAIL ===== */
.no-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #7dd3fc 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ===== TABS ===== */
.c-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.c-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  background: transparent;
  color: #888;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  letter-spacing: .03em;
}
.c-tab__icon { font-size: 18px; }
.c-tab:hover {
  background: #e0f2fe;
  color: #0369a1;
}
.c-tab.is-active {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,165,233,.4);
}
.c-tab-panel { display: none; }
.c-tab-panel.is-active { display: block; }

.c-empty { padding: 20px; background: #fff; border-radius: 8px; }

/* ===== LIST CARD (HOME用) ===== */
.c-list-card {
  position: relative;
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  margin-bottom: 14px;
  transition: transform .2s, box-shadow .2s;
  border-left: 4px solid transparent;
}
.c-list-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(14,165,233,.18);
  border-left-color: #0ea5e9;
}
/* 全体クリック用オーバーレイ */
.c-list-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* カテゴリ・ボタンはオーバーレイの上に */
.c-list-card__cat,
.c-list-card__btn {
  position: relative;
  z-index: 2;
}

.c-list-card__thumb {
  width: 220px;
  height: 124px;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.c-list-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}
.c-list-card:hover .c-list-card__thumb img { transform: scale(1.06); }

.c-list-card__body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.c-list-card__cat {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  align-self: flex-start;
  text-decoration: none;
  transition: background .2s;
}
.c-list-card__cat:hover { background: #0ea5e9; color: #fff; }
.c-list-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}
.c-list-card__title a { color: #1a1a1a; }
.c-list-card__title a:hover { color: #0ea5e9; }
.c-list-card__excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.c-list-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.c-list-card__date {
  font-size: 12px;
  color: #aaa;
}
.c-list-card__btn {
  font-size: 12px;
  font-weight: 700;
  color: #0ea5e9;
  border: 1.5px solid #0ea5e9;
  border-radius: 20px;
  padding: 4px 14px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.c-list-card__btn:hover {
  background: #0ea5e9;
  color: #fff;
}

@media (max-width: 600px) {
  .c-list-card { flex-direction: column; border-left: none; border-top: 4px solid transparent; }
  .c-list-card:hover { transform: translateY(-2px); border-top-color: #0ea5e9; border-left-color: transparent; }
  .c-list-card__thumb { width: 100%; height: 180px; }
}

/* ===== RANKING HOVER EFFECT ===== */
.c-ranking-thumb {
  position: relative;
  overflow: hidden;
}
.c-ranking-thumb::after {
  content: "▶ 記事を見る";
  position: absolute;
  inset: 0;
  background: rgba(14, 165, 233, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.c-ranking-thumb:hover::after { opacity: 1; }
.c-ranking-thumb img {
  transition: transform .35s ease, filter .35s ease;
}
.c-ranking-thumb:hover img {
  transform: scale(1.12);
  filter: brightness(0.85);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .l-main { grid-template-columns: 1fr; }
  .c-gnav { display: none; }
  .c-header-search { display: none; }
  .c-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .c-card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .l-single { padding: 14px 16px; }
  .l-single h1 { font-size: 17px; }
}

@media (max-width: 400px) {
  .c-card-grid { grid-template-columns: 1fr; }
}

/* ===== ARTICLE RANK CARD ===== */
.p-rank-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0,0,0,.1);
  margin-bottom: 32px;
}
.p-rank-card__head {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-rank-num {
  background: #fff;
  color: #0ea5e9;
  font-size: 20px;
  font-weight: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.p-rank-num.is-1 { background: #f0a500; color: #fff; }
.p-rank-num.is-2 { background: #999; color: #fff; }
.p-rank-num.is-3 { background: #c07850; color: #fff; }
.p-rank-card__title-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.p-rank-card__inner {
  display: flex;
  gap: 20px;
  padding: 20px;
}
.p-rank-card__thumb {
  width: 200px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}
.p-rank-card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s;
}
.p-rank-card__thumb:hover img { transform: scale(1.04); }
.p-rank-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.p-stars__icons { color: #f0a500; font-size: 18px; letter-spacing: 2px; }
.p-stars__score { font-weight: 700; color: #333; font-size: 15px; }
.p-stars__label { font-size: 12px; color: #888; }
.p-rank-card__desc {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  flex: 1;
}
.p-rank-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255,69,0,.35);
  transition: transform .2s, box-shadow .2s;
  align-self: flex-start;
}
.p-rank-card__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,69,0,.4);
  color: #fff !important;
}
.p-intro-box {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  border-left: 4px solid #0ea5e9;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}
.p-summary-box {
  background: #fff;
  border: 2px solid #0ea5e9;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.p-summary-box h3 {
  color: #0284c7;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.p-summary-box ol {
  padding-left: 20px;
  font-size: 14px;
  line-height: 2;
  color: #444;
}
@media (max-width: 600px) {
  .p-rank-card__inner { flex-direction: column; }
  .p-rank-card__thumb { width: 100%; }
  .p-rank-card__btn { align-self: stretch; text-align: center; }
}
