/* ============================================================
 * 詳細ページ(女の子・ルーム共通)
 *   枠(.hp-detail__box)の背景は全体デザインの「詳細ページの枠」(--hp-detail-bg / --hp-detail-bg-image)
 *   枠の外(ページの背景)は在籍・ルームのパーツの背景(lib/render.php の hp_detail_bg_settings)
 *   見出し(.hp-detail__head)は全体デザインの「帯タイトル」(base.css)
 *   SP … 写真 → 情報 の縦並び / PC … 左に写真・右に情報
 * ============================================================ */
.hp-detail {
  --hp-detail-line: color-mix(in srgb, var(--hp-accent) 45%, transparent);
  --hp-detail-tint: color-mix(in srgb, var(--hp-text) 6%, transparent);
  max-width: 120rem;
  margin: 0 auto;
}

.hp-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  color: var(--hp-text-sub);
  text-decoration: none;
}

.hp-detail__back:hover {
  color: var(--hp-accent);
}

.hp-detail__box {
  display: grid;
  gap: 2rem;
  padding: 1.6rem;
  /* 枠の背景: 元のパーツ(在籍・出勤・ルーム)の「詳細ページの枠」→ 以前の全体デザインの設定 → カードの背景 */
  background-color: var(--sec-box-bg, var(--hp-detail-bg, var(--hp-surface)));
  background-image: var(--sec-box-image, var(--hp-detail-bg-image, none));
  background-position: center;
  background-size: cover;
  border: 0.1rem solid var(--hp-detail-line, rgba(0, 0, 0, 0.12));
  border-radius: 1.2rem;
}

/* ---------- 写真 ---------- */
.hp-detail__main {
  overflow: hidden;
  border-radius: 0.8rem;
  background: rgba(0, 0, 0, 0.06);
}

.hp-detail__main img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hp-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.hp-detail__thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0.2rem solid transparent;
  border-radius: 0.4rem;
  cursor: pointer;
  opacity: 0.7;
}

.hp-detail__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hp-detail__thumb.is-active,
.hp-detail__thumb:hover {
  border-color: var(--hp-accent);
  opacity: 1;
}

/* ---------- 情報 ---------- */
.hp-detail__info {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  min-width: 0;
}

.hp-detail__catch {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--sec-catch-color, var(--hp-accent));
}

.hp-detail__head {
  margin: 0.6rem 0 0;
  padding: calc(0.8rem * var(--hp-ttl-pad, 1)) calc(1.2rem * var(--hp-ttl-pad, 1));
  font-size: var(--hp-ttl-dsize, 1.4rem);
  font-weight: var(--hp-ttl-weight, 700);
  letter-spacing: 0.15em;
  color: var(--hp-ttl-text, inherit);
  background: var(--hp-detail-tint);
  border-left: calc(var(--hp-ttl-lw, 0.2rem) * 1.5) solid var(--hp-ttl-line, var(--hp-accent));
  border-radius: 0.4rem;
}

.hp-detail__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.3;
}

.hp-detail__flag {
  padding: 0.2rem 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: var(--hp-accent);
  border-radius: 99rem;
}

.hp-detail__flag--pickup {
  background: #d4a017;
}

.hp-detail__flag--busy {
  background: #8a8a8a;
}

.hp-detail__flag--available {
  background: #2e9e5b;
}

.hp-detail__spec {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.hp-detail__spec > div {
  display: flex;
  gap: 1.2rem;
  font-size: 1.4rem;
}

.hp-detail__spec dt {
  flex: 0 0 9rem;
  white-space: nowrap;
  color: var(--hp-text-sub);
}

.hp-detail__spec dd {
  margin: 0;
}

.hp-detail__tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-detail__tags li {
  padding: 0.7rem 0.8rem;
  font-size: 1.3rem;
  text-align: center;
  /* 元のパーツのマニアックな修正(タグの色)を引き継ぐ */
  color: var(--sec-tag-color, inherit);
  background: var(--sec-tag-bg, transparent);
  border: 0.1rem solid var(--sec-tag-bg, var(--hp-detail-line, rgba(0, 0, 0, 0.15)));
  border-radius: 0.4rem;
}

.hp-detail__comment p {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.9;
}

.hp-detail__comment + .hp-detail__comment {
  margin-top: 1.2rem;
}

.hp-detail__comment .hp-detail__comment-ttl {
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--hp-accent);
}

/* ---------- 予約・問い合わせ ---------- */
.hp-detail__cta {
  display: grid;
  gap: 0.8rem;
  padding: 1.4rem;
  border: 0.1rem solid var(--hp-detail-line, rgba(0, 0, 0, 0.15));
  border-radius: 0.8rem;
}

.hp-detail__cta-ttl {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.hp-detail__cta-lead,
.hp-detail__cta-note {
  margin: 0;
  font-size: 1.2rem;
  color: var(--hp-text-sub);
}

.hp-detail__cta-btns {
  display: grid;
  gap: 0.8rem;
}

.hp-detail__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 4.8rem;
  padding: 0.8rem 1.2rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--hp-text);
  text-decoration: none;
  border: 0.1rem solid var(--hp-accent);
  border-radius: 0.6rem;
}

.hp-detail__btn:hover {
  background: var(--hp-detail-tint);
}

.hp-detail__btn--rsv {
  color: var(--hp-on-main);
  background: var(--hp-accent);
}

.hp-detail__btn--rsv:hover {
  background: var(--hp-accent);
  opacity: 0.9;
}

/* ---------- スケジュール ---------- */
.hp-detail__sched {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
}

.hp-detail__sched th,
.hp-detail__sched td {
  padding: 1rem 0.8rem;
  text-align: center;
  border: 0.1rem solid var(--hp-detail-line, rgba(0, 0, 0, 0.12));
}

.hp-detail__sched th {
  width: 38%;
  font-weight: 400;
  background: var(--hp-detail-tint);
}

.hp-detail__sched th.is-sat {
  color: #3b82f6;
}

.hp-detail__sched th.is-sun {
  color: #e05252;
}

.hp-detail__sched tr.is-on td {
  font-weight: 700;
}

.hp-detail__off {
  color: var(--hp-text-sub);
}

/* ============================================================
 * PC
 * ============================================================ */
@media (min-width: 900px) {
  .hp-detail__box {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 3.2rem;
    padding: 3rem;
  }

  .hp-detail__media {
    position: sticky;
    top: 2rem;
    align-self: start;
  }

  .hp-detail__name {
    font-size: 2.8rem;
  }

  .hp-detail__cta-btns {
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }
}

/* ---------- SNS(オリジナルのお店の女の子) ---------- */
.hp-detail__sns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hp-detail__sns a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--hp-text);
  text-decoration: none;
  border: 0.1rem solid rgba(0, 0, 0, 0.15);
  border-radius: 99rem;
}

.hp-detail__sns a:hover {
  color: var(--hp-accent);
  border-color: var(--hp-accent);
}

.hp-detail__sns .bi,
.hp-detail__sns svg {
  font-size: 1.6rem;
}

/* サービスの可否(基本サービス・オプションの ○△×。parts/cast_detail/v1.php)
 *   表はプロフィール(.hp-detail__spec)と同じ形。記号だけ色を付ける */
.hp-detail__svc-ttl {
  margin: 1.2rem 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.hp-detail__svc-mark {
  display: inline-block;
  margin: 0 0.6rem 0 0;
  font-weight: 700;
}

.hp-detail__svc-mark.is-o {
  color: #16a34a;
}

.hp-detail__svc-mark.is-t {
  color: #d97706;
}

.hp-detail__svc-mark.is-x {
  color: var(--hp-text-sub);
}
