/*
Theme Name: MyTheme
Author: you
Description: AV custom theme
Version: 1.0
*/

body {
  margin: 0;
  background: #111;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2 {
  margin: 20px;
}

/* ===== カードレイアウト ===== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 0 20px 20px;
}

.card {
  background: #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 10px;
}

.card-title {
  font-size: 13px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
}

.card-meta {
  font-size: 11px;
  color: #aaa;
  margin-top: 6px;
}

/* ===== 作品ページ ===== */

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.thumb {
  flex: 0 0 300px;
}

.thumb img {
  width: 100%;
  border-radius: 8px;
}

.info {
  flex: 1;
}

.meta {
  font-size: 13px;
  color: #aaa;
  margin: 10px 0;
}

.btn {
  display: inline-block;
  background: #e60033;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  margin: 15px 0;
  font-weight: bold;
}
.single-av-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
  color: #fff;
}

.av-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.av-thumb img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}

.av-content {
  line-height: 1.7;
  margin-bottom: 20px;
}

.av-meta {
  margin-bottom: 10px;
}

.av-meta a {
  margin-right: 8px;
}

.av-fanza a {
  display: inline-block;
  background: #ff4081;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
}

.av-back {
  margin-top: 30px;
}
.top-title {
  text-align: center;
  margin: 40px 0;
}

.top-section {
  margin-bottom: 60px;
}

.actress-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actress-chip {
  background: #222;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 14px;
}
/* 右上メニュー */
.top-right-menu {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.top-right-menu button {
  background: #222;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}



.search-panel.open {
  transform: translateX(0);
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.search-header button {
  background: none;
  color: #fff;
  font-size: 20px;
  border: none;
  cursor: pointer;
}

/* タブ */
.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-tabs .tab {
  flex: 1;
  background: #222;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
}

.search-tabs .tab.active {
  background: #ff4081;
}

/* タブ中身 */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}
#search-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: #111;
  color: #fff;
  z-index: 99999;

  /* ここが重要 */
  transform: translateX(110%);
  visibility: hidden;
  pointer-events: none;
}

#search-panel.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

