/* =========================================================
  Layout / Wrapper
========================================================= */
.wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
}

div.section {
  padding: 0;
  margin-top: 60px;
}

/* section 見出し（SP寄せ） */
@media (max-width: 1000px) {
  div.section h2 {
    margin-left: 1%;
  }
}

/* =========================================================
  Breadcrumb
========================================================= */
.breadcrumb {
  margin-top: 80px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.breadcrumb a {
  color: #333;
  text-decoration: none;
}
.breadcrumb span {
  color: #bbb;
}

@media (max-width: 1000px) {
  .breadcrumb {
    margin-left: 2%;
  }
}
@media (max-width: 600px) {
  .breadcrumb {
    margin-top: 40px;
  }
}

/* =========================================================
  Profile Hero
========================================================= */
.profile-hero {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  padding: 18px;
}

/* Grid */
.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Image */
.profile-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid goldenrod;
  box-sizing: border-box;
}
/* 既存のキャプション（通常画像向け） */
.profile-img-caption {
  margin: 0;
}
.profile-img-caption a {
  color: #fff;
  text-decoration: none;
}

/* Name */
.profile-name h1 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.4rem;
  line-height: 1.3;
}
.profile-name h1 small {
  font-weight: normal;
  color: #666;
  font-size: 1rem;
  vertical-align: baseline;
}

/* Badges */
.bt-badge {
  display: inline-block;
  margin: 2px 6px 0 0;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1;
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06) inset;
}

/* Profile table */
.table-clean {
  width: 100%;
  border-collapse: collapse;
}
.table-clean th {
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  color: #555;
  width: 9em;
  border-bottom: 1px solid #f0f0f0;
}
.table-clean td {
  padding: 8px 10px;
  border-bottom: 1px solid #f7f7f7;
}
.table-clean td a {
  text-decoration: none;
}

/* =========================================================
  Biography Boxes (body / person / history)
========================================================= */
#body,
#person,
#history {
  position: relative;
  margin: 2em 0;
  padding: 1.5em 1.5em;
  border: solid 2px #9d8983;
  border-radius: 8px;
}
#body::after,
#person::after,
#history::after {
  content: "紹介文";
  position: absolute;
  display: inline-block;
  top: -13px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  font-size: 1.2em;
  background: #fff;
  color: #333;
  font-weight: bold;
}
#person::after {
  content: "人物";
}
#history::after {
  content: "経歴";
}

.wikipedia {
  display: block;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: right;
  margin: 16px 0 0;
}
.wikipedia a {
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 640px) {
  #body,
  #person,
  #history {
    padding: 1.5em 1em;
  }
}
@media (max-width: 400px) {
  .profile-hero {
    padding: 18px 2%;
  }
}

/* =========================================================
  Hero Slider (プロフィール写真スライド)
  ※ .hero-slide 内でのみキャプションを絶対配置にし、既存と衝突回避
========================================================= */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  /* ドット分の余白を確保して切れ防止（外側） */
  margin-bottom: 12px;
}

.hero-track {
  display: flex;
  transition: transform 0.4s ease;
}

.hero-slide {
  min-width: 100%;
  margin: 0;
  position: relative;
}

.hero-link,
.hero-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* スライダー内キャプション（スコープ限定） */
.hero-slide .profile-img-caption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin: 0; /* 既存の margin:0 を維持 */
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.hero-prev {
  left: 8px;
}
.hero-next {
  right: 8px;
}

@media (hover: hover) {
  .hero-prev,
  .hero-next {
    opacity: 0;
    transition: opacity 0.2s;
  }
  .hero-slider:hover .hero-prev,
  .hero-slider:hover .hero-next {
    opacity: 1;
  }
}

/* ドット：枠外（下）に表示・下切れ防止用パディング */
.hero-dots {
  position: relative; /* 通常フロー */
  margin-top: 10px; /* 画像枠との間隔 */
  display: flex;
  gap: 6px;
  justify-content: center;
  padding-bottom: 6px; /* 下が切れないように拡張（2px→6px） */
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #cbd5e1; /* 通常：グレー */
  opacity: 0.8;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dots button[aria-selected="true"] {
  background: #ff8800; /* 現在：オレンジ */
  opacity: 1;
  transform: scale(1.2);
}

/* =========================================================
  Card Grid (汎用)
========================================================= */
.card-grid {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

/* 動画：1列 */
.card-grid.videos {
  grid-template-columns: 1fr;
}

/* 写真集：可変2列（約44%） */
.card-grid.photobooks {
  grid-template-columns: repeat(auto-fill, minmax(44%, 1fr));
}

/* Card */
.card-grid .card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}
.card-grid .card:hover {
  transform: translateY(-2px);
}
.card-grid .card a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.card-grid .card .thumb {
  background: none;
  line-height: 0;
  font-size: 0;
}
.card-grid.actresses .card .thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: none;
}
.card-grid .card .thumb img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.card-grid .card .meta {
  background-color: #333;
  padding: 8px 10px;
}
.card-grid .card .ttl {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
}
.card-grid .card .date {
  font-size: 0.8rem;
  color: #666;
}

/* =========================================================
  Recommendation List (関連女優など)
========================================================= */
.card-list {
  gap: 10px;
}
.card-list .card p {
  color: #fff;
  text-decoration: none;
}
.card-list .card a {
  text-decoration: none;
}
@media (max-width: 1000px) {
  .card-list {
    padding: 0 10px;
  }
}

/* =========================================================
  Recent Videos (movie風)
========================================================= */
.actress-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.recent-videos .actress-box {
  display: flex;
  gap: 20px;
  padding: 12px;
  margin: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.recent-videos .actress-left {
  width: 48%;
}
.recent-videos .actress-left a {
  display: block;
}
.recent-videos .actress-left img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.recent-videos .actress-right {
  width: 48%;
}
.recent-videos .actress-right h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  height: 46px;
  overflow: hidden;
}
.recent-videos .actress-right h3 > a {
  color: #333;
  text-decoration: none;
}
.recent-videos .actress-right h3 > a:hover {
  opacity: 0.6;
}
.recent-videos .actress-right h3 span a {
  margin-left: 0.5em;
  font-size: 0.9rem;
  text-decoration: none;
}
.recent-videos .profile-basic {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: #555;
}
.recent-videos .profile-basic li {
  margin: 0.2rem 0;
  border-bottom: 1px solid #ddd;
  padding: 4px 0;
}
.recent-videos .profile-basic li a {
  text-decoration: none;
}

/* 親の縮み許容（横スクロール抑止） */
.section.recent-videos .actress-box,
.section.recent-videos .actress-right {
  min-width: 0;
}

/* サンプル画像（横スクロール・高さ固定/比率維持） */
.section.recent-videos .sample-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.section.recent-videos .sample-thumbs .thumb {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.section.recent-videos .sample-thumbs .thumb img {
  display: block;
  height: 78px;
  width: auto;
  background: #f5f5f5;
  border-radius: 6px;
}

/* レスポンシブ（動画ボックス縦並び & サムネ縮小） */
@media (max-width: 768px) {
  .section.recent-videos .actress-box {
    flex-direction: column;
  }
  .recent-videos .actress-right,
  .recent-videos .actress-left {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .section.recent-videos .sample-thumbs .thumb img {
    height: 64px;
  }
}

/* =========================================================
  Recent Photobooks（photo/detail.phpの右側項目風）
========================================================= */
.recent-photobooks .book-box {
  display: flex;
  gap: 20px;
  padding: 12px;
  margin: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.recent-photobooks .book-left {
  width: 48%;
}
.recent-photobooks .book-left a {
  display: block;
}
.recent-photobooks .book-left img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.recent-photobooks .book-right {
  width: 48%;
  min-width: 0;
}
.recent-photobooks .book-right h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  height: 42px;
  overflow: hidden;
}
.recent-photobooks .book-right h3 .detail-chip {
  margin-left: 0.6em;
  display: inline-block;
  padding: 0.2em 0.6em;
  background: #e11d48;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}
.recent-photobooks .book-right h3 .detail-chip:hover {
  background: #be123c;
}

.recent-photobooks .profile-basic {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  color: #555;
}
.recent-photobooks .profile-basic li {
  margin: 0.2rem 0;
  border-bottom: 1px solid #ddd;
  padding: 4px 0;
}
.recent-photobooks .profile-basic a {
  text-decoration: none;
}

/* grid 切替（写真集の一覧セクション） */
.recent-photobooks .actress-grid {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .recent-photobooks .actress-grid {
    grid-template-columns: 1fr;
  }
}

/* レスポンシブ（縦並び） */
@media (max-width: 680px) {
  .recent-photobooks .book-box {
    flex-direction: column;
  }
  .recent-photobooks .book-left,
  .recent-photobooks .book-right {
    width: 100%;
  }
}

/* =========================================================
  Lists / Others
========================================================= */
.rec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rec-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px 10px;
}
.list-unstyled {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Back link (old) */
.back {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 16px;
  border-radius: 6px;
  background: #f3f4f6;
}
.back:hover {
  background: #e5e7eb;
}

/* =========================================================
  Buttons
========================================================= */
.list-btn {
  width: 160px;
  height: 30px;
  line-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto;
  border: 1px solid #fff;
  border-radius: 5px;
  box-shadow: 0 0 0 3px cornflowerblue;
  background-color: cornflowerblue;
  color: #fff;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}
.list-btn a {
  color: #fff;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
}
.list-btn:hover {
  opacity: 0.8;
  transform: translateY(-4px);
  transition: all 0.4s ease;
}
.list-btn-photo {
  box-shadow: 0 0 0 3px #f66;
  background-color: #f66;
}

.back-btn {
  margin: 40px 0;
  text-align: center;
}
.back-btn button {
  padding: 10px 20px;
  vertical-align: middle;
  background: #f66;
  border: 2px solid #f66;
  color: #fff;
  letter-spacing: 0.325em;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
}
