/* =============================================================
   components/detail.css
   作品詳細ページ固有スタイル（detail.php）
   ============================================================= */

/* ─── メインヒーロー画像（横長パッケージ、トリミングなし） ─── */
.detail-hero-img {
  width: 100%;
  aspect-ratio: 800 / 538;
  object-fit: cover;
  display: block;
  background: #E8E8E8;
}

/* ─── 商品情報エリア ─── */
.detail-info {
  background: var(--color-bg-warm);
  padding: 20px var(--content-pad);
}

.detail-title {
  font-family: var(--font-ui);
  font-size: var(--text-product-title);  /* 20px */
  font-weight: var(--fw-medium);
  line-height: var(--lh-product-title);  /* 28px */
  color: var(--color-text);
}

/* ─── レビュー ─── */
.detail-review {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.detail-review__stars {
  display: flex;
  font-size: 16px;
  letter-spacing: 1px;
}

.detail-star--on,
.detail-star--half { color: var(--color-star); }
.detail-star--off  { color: var(--color-border); }

.detail-review__avg {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.detail-review__count {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ─── CTAボタン群 ─── */
.detail-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(15px + var(--space-cta-between));                                                     /* 25px */
  padding: calc(24px + var(--space-cta-top-gap)) 0 calc(8px + var(--space-cta-bottom-gap-top));  /* 29px 0 18px */
}

/* ─── 下部CTAラッパー（サンプル画像直後） ─── */
.detail-cta-wrap {
  background: var(--color-bg-warm);
}
.detail-cta-wrap .detail-cta {
  padding-top:    calc(24px + var(--space-cta-bottom-gap-top));    /* 34px: サンプル → ボタン */
  padding-bottom: calc(8px  + var(--space-cta-bottom-gap-bottom)); /* 38px: ボタン → 女優セクション */
}

/* ─── 商品情報テーブル ─── */
.detail-table {
  border-top: 1px solid var(--color-border);
}

.detail-table__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px var(--content-pad);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-actress-ruby-d);  /* 12px */
  line-height: var(--lh-grid-title);      /* 20px */
}

.detail-table__key {
  flex-shrink: 0;
  width: 68px;
  color: var(--color-text-sub);
}

.detail-table__val {
  flex: 1;
  min-width: 0;
  color: var(--color-text);
  word-break: break-all;
}

/* ─── セクション見出し（サンプル画像 / 同じ女優の作品） ─── */
.detail-section-title {
  font-family: var(--font-ui);
  font-size: var(--text-section-sub);  /* 18px */
  font-weight: var(--fw-medium);
  color: var(--color-black);
  text-align: center;
  padding: 28px 0 16px;
}

/* ─── サンプル画像縦並び ─── */
.detail-samples {
  display: flex;
  flex-direction: column;
  gap: var(--space-sample-gap);  /* 20px */
}

.detail-sample-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── ページ末尾ボタンラッパー ─── */
.detail-back-wrap {
  display: flex;
  justify-content: center;
  padding: 30px 0 20px;
}

/* ─── 動画モーダル ─── */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.video-modal.is-active {
  display: flex;
}
.video-modal-inner {
  width: 92vw;
  max-width: 720px;
}
.video-modal-frame {
  width: 100%;
  height: 275px;
  border: none;
  display: block;
  background: #000;
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 32px;
  color: white;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}
