/* av-recohub base styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif; line-height: 1.6; color: #333; background: #f8f8f8; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

.page-content { background: #fff; border-radius: 8px; padding: 2rem; }

header { background: #1a1a2e; color: #fff; padding: 1rem 0; margin-bottom: 2rem; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.site-title { color: #e94560; font-size: 1.5rem; font-weight: bold; text-decoration: none; }
header nav a { color: #ccc; text-decoration: none; margin-left: 1rem; }

main { padding: 0 0 2rem; }

/* 2カラムレイアウト */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.sidebar {
  /* position: sticky; top: 2rem; */ /* sticky固定を無効化 */
}

.sidebar__section {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.sidebar__title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e94560;
  color: #333;
}

.popular-works {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popular-works li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.popular-works li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-work {
  display: flex;
  gap: 0.75rem;
}

.popular-work__image {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.popular-work__info {
  flex: 1;
  min-width: 0;
}

.popular-work__title {
  font-size: 0.85rem;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-work__title a {
  color: #333;
  text-decoration: none;
}

.popular-work__title a:hover {
  color: #e94560;
}

.popular-work__meta {
  font-size: 0.75rem;
  color: #666;
}

.popular-work__rating {
  font-size: 0.7rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.popular-work__rating__star {
  color: #ffa500;
}

.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.work-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: transform .2s; }
.work-card:hover { transform: translateY(-4px); }
.work-card img { width: 100%; aspect-ratio: 400/269; object-fit: cover; }
.work-card__info { padding: .75rem; }
.work-card__info h2 { font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .5rem; }
.work-card__info h2 a { color: #333; text-decoration: none; }
.work-card__meta { font-size: .75rem; color: #666; line-height: 1.3; }
.work-card__actresses { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .25rem; }
.work-card__date { font-size: .7rem; color: #888; text-align: right; }
.price { color: #e94560; font-weight: bold; margin-top: .25rem; }

.article-detail { background: #fff; padding: 2rem; border-radius: 8px; }
.article-detail h1 { font-size: 1.4rem; margin-bottom: 1rem; }
.article-detail h2 { font-size: 1rem; }
.article-images { display: grid; grid-template-columns: 1fr 2fr; gap: 1rem; margin-bottom: 1.5rem; }
.article-images img { width: 100%; border-radius: 4px; }
.article-body { line-height: 1.8; margin-bottom: 1.5rem; }
.meta-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.meta-tag { background: #f0f0f0; padding: .25rem .5rem; border-radius: 4px; font-size: .85rem; text-decoration: none; color: #333; transition: opacity .2s; }
.meta-tag:hover { opacity: .7; }
.cta-button { display: inline-block; background: #e94560; color: #fff; padding: .75rem 2rem; border-radius: 4px; text-decoration: none; font-weight: bold; margin: 1rem 0; transition: opacity .2s; }
.cta-button:hover { opacity: .7; }

.sample-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: 1rem; }
.sample-images img { width: 100%; border-radius: 4px; }

.breadcrumb { font-size: .82rem; color: #999; margin-bottom: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.breadcrumb a { color: #999; text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #e94560; }
.breadcrumb__sep { color: #ccc; }
.breadcrumb__current { color: #555; }

.static-page { max-width: 800px; margin: 0 auto; }
.static-page h1 { font-size: 1.6rem; margin-bottom: 2rem; padding-bottom: .75rem; border-bottom: 2px solid #e94560; }
.static-page h2 { font-size: 1.1rem; font-weight: bold; margin: 2rem 0 .75rem; padding-left: .75rem; border-left: 4px solid #e94560; }
.static-page h3 { font-size: 1rem; font-weight: bold; margin: 1.25rem 0 .5rem; color: #444; }
.static-page p { margin-bottom: 1rem; line-height: 1.9; }
.static-page ul, .static-page ol { margin: .5rem 0 1rem 1.5rem; line-height: 1.9; }
.static-page li { margin-bottom: .25rem; }
.static-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.static-page table th, .static-page table td { padding: .6rem .75rem; border: 1px solid #e0e0e0; text-align: left; vertical-align: top; }
.static-page table th { background: #f5f5f5; white-space: nowrap; width: 8rem; font-weight: bold; color: #555; }

.fanza-credit { text-align: right; margin-top: .75rem; }
.item-detail-table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: .9rem; }
.item-detail-table th, .item-detail-table td { padding: .6rem .75rem; border: 1px solid #e0e0e0; vertical-align: top; text-align: left; }
.item-detail-table th { background: #f5f5f5; white-space: nowrap; width: 8rem; font-weight: bold; color: #555; }

footer { background: #1a1a2e; color: #888; text-align: center; padding: 1.5rem 0; margin-top: 3rem; }
footer nav a { color: #aaa; text-decoration: none; margin: 0 .75rem; font-size: .85rem; transition: color .2s; display: inline-block; }
footer nav a:hover { color: #fff; }

.taxonomy-index { list-style: none; margin-top: 1.5rem; }
.taxonomy-index li { display: flex; justify-content: space-between; align-items: center; padding: .6rem .75rem; border-bottom: 1px solid #f0f0f0; }
.taxonomy-index li:first-child { border-top: 1px solid #f0f0f0; }
.taxonomy-index a { color: #333; text-decoration: none; transition: color .2s; }
.taxonomy-index a:hover { color: #e94560; }
.taxonomy-index__count { font-size: .82rem; color: #999; white-space: nowrap; margin-left: 1rem; }

.sample-movie { margin-top: 2rem; text-align: center; }
.sample-movie h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.sample-movie__iframe { width: 100%; max-width: 720px; aspect-ratio: 720 / 480; border: none; border-radius: 4px; background: #000; }

.related-works { margin-top: 3rem; }
.related-works__title { font-size: 1.1rem; font-weight: bold; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid #e94560; }

.pagination { margin: 2rem 0; }
.pagination ul { display: flex; justify-content: center; align-items: center; gap: .375rem; list-style: none; padding: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pagination ul::-webkit-scrollbar { display: none; }
.pagination li a, .pagination li span { display: block; padding: .4rem .7rem; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #333; font-size: .9rem; white-space: nowrap; min-width: 2rem; text-align: center; }
.pagination li a:hover { background: #e94560; color: #fff; border-color: #e94560; }
.pagination li.active span { background: #e94560; color: #fff; border-color: #e94560; }
.pagination li.prev a, .pagination li.next a { font-weight: bold; }
.pagination li.ellipsis span { border: none; background: none; color: #999; padding: .4rem .2rem; min-width: auto; }
.pagination li.disabled span { color: #bbb; cursor: not-allowed; }

/* Mobile styles */
@media (max-width: 768px) {
  header .container {
    display: block;
  }

  header nav a {
    margin-left: 0;
    margin-right: 1rem;
    display: inline-block;
  }

  header nav a:last-child {
    margin-right: 0;
  }

  /* モバイルでは1カラムレイアウト */
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    order: -1;
  }

  .sidebar__section {
    margin-bottom: 1rem;
  }
}
