/* =========================================================
  Wrapper / Headings
========================================================= */
.wrapper {
  width: 90%;
  max-width: 1000px;
  margin: 60px auto 0;
}
.wrapper h1 {
  font-size: 18px;
  line-height: 28px;
  margin: 40px auto;
  text-align: center;
}
.wrapper h1 span {
  font-size: 24px;
  background: linear-gradient(to bottom, transparent 50%, #ff6 50%);
}
.wrapper h1 + small {
  font-size: 12px;
  display: block;
  text-align: center;
  margin: 10px;
}
.wrapper a {
  text-decoration: none;
}

/* =========================================================
  Breadcrumb
========================================================= */
.breadcrumb {
  margin-top: 80px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.breadcrumb a {
  color: #333;
  text-decoration: none;
}
.breadcrumb span {
  color: #bbb;
}

/* =========================================================
  View Switch Link
========================================================= */
.change-link {
  text-align: center;
}
.change-link a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #333;
  margin-top: 0;
  margin-bottom: 40px;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(100, 149, 237, 0.5) 50%
  );
}
.change-link a:hover {
  opacity: 0.8;
}

/* =========================================================
  Grid / Card
========================================================= */
/* 親：2列グリッド（実体はflex） */
.actress-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem auto;
  padding: 0 0 60px;
  box-sizing: border-box;
  justify-content: space-between;
}

/* 各カード（左画像＋右テキスト） */
.actress-box {
  width: calc(50% - 1rem);
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: top; /* 既存値を維持（無効だけどレイアウトは維持される） */
}

/* 左：画像 */
.actress-left {
  flex: 0 0 40%;
  overflow: hidden;
  border-radius: 6px;
}
.actress-left img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.actress-left img:hover {
  transition: all 0.3s ease;
  transform: scale(1.05);
}

/* 右：テキスト */
.actress-right {
  flex: 1 1 auto;
}
.actress-right h2,
.actress-right h3 {
  position: relative;
  font-size: 1rem;
  height: auto;
  max-height: 46px;
  overflow: hidden;
  margin: 0 0 0.4rem 0;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2rem;
}
.actress-right h2 a,
.actress-right h3 a {
  color: #333;
  text-decoration: none;
}
.actress-right h2 a:hover,
.actress-right h3 a:hover {
  opacity: 0.6;
  transition: all 0.3s ease;
}

/* プロフィール行 */
.profile-basic {
  list-style: none;
  padding: 0;
  margin: 0 0 0.6rem 0;
  font-size: 0.8rem;
}
.profile-basic li {
  margin-bottom: 0.2rem;
}
.profile-summary {
  font-size: 0.8rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* =========================================================
  About Box
========================================================= */
.frame {
  position: relative;
  margin: 2em 0;
  padding: 0.5em 1em;
  border: solid 2px #da3;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.frame .box-title {
  position: absolute;
  display: inline-block;
  top: -13px;
  left: 10px;
  padding: 0 9px;
  line-height: 1;
  font-size: 1rem;
  background: #f9f9f9;
  color: #da3;
  font-weight: bold;
  text-transform: uppercase;
}
.frame p {
  font-size: 0.8rem;
  margin: 0;
  padding: 12px 0;
  line-height: 1.4rem;
}

/* =========================================================
  Back Button
========================================================= */
.back-btn {
  margin-bottom: 40px;
  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;
}
.back-btn button:hover {
  background-color: #d44;
  transition: all 0.3s ease;
}

/* =========================================================
  Pagination
========================================================= */
.wrapper .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0 40px;
  flex-wrap: wrap;
}
.wrapper .pagination .page-numbers {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  line-height: 34px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.wrapper .pagination .page-numbers:hover {
  background: #f3f4f6;
}
.wrapper .pagination .page-numbers.current {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
  cursor: default;
}
.wrapper .pagination .page-numbers.disabled {
  pointer-events: none;
  opacity: 0.5;
}
.wrapper .pagination .page-numbers.prev,
.wrapper .pagination .page-numbers.next {
  font-weight: 700;
}
.wrapper .pagination .page-numbers.dots {
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  min-width: auto;
  padding: 0 4px;
}

/* =========================================================
  Responsive
========================================================= */
/* 1000, 600: パンくず */
@media (max-width: 1000px) {
  .breadcrumb {
    margin-left: 2%;
  }
}
@media (max-width: 600px) {
  .breadcrumb {
    margin-top: 40px;
  }
}

/* 768, 601: カードを1列落とし */
@media (max-width: 768px) {
  .wrapper {
    width: 96%;
  }
  .actress-grid {
    gap: 1rem;
  }
  .actress-box {
    flex-direction: column;
    flex: 1 1 47%;
  }
  .actress-left {
    text-align: center;
    flex: 0 0 auto;
  }
  .actress-left img {
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 601px) {
  .actress-box {
    flex-direction: column;
    flex: 1 1 100%;
  }
}

/* 767, 480: ページネーションの微調整 */
@media (max-width: 767px) {
  .wrapper .pagination .page-numbers.prev,
  .wrapper .pagination .page-numbers.next {
    display: none !important;
  }
}
@media (max-width: 480px) {
  .wrapper .pagination {
    gap: 6px;
  }
  .wrapper .pagination .page-numbers {
    min-width: 34px;
    height: 34px;
    line-height: 32px;
    border-radius: 6px;
    font-size: 0.85rem;
  }
  .actress-right {
    padding: 16px 8px 16px 0;
  }
}
