.wrapper {
  width: 90%;
  max-width: 1000px;
  margin: 60px auto 0;
}
.wrapper h1 {
  font-size: 18px;
  line-height: 18px;
  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;
}
.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(255, 102, 102, 0.5) 50%
  );
}
.change-link a:hover {
  opacity: 0.8;
}

/* 親コンテナ：3列レイアウト（gapで間隔を管理） */
.actress-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem auto;
  padding: 0 0 60px;
  box-sizing: border-box;
  justify-content: flex-start; /* ★修正: 最終行も含め常に左詰にする */
}

/* 各ボックス：3列時の幅 = (100% - 2ギャップ)/3 */
.actress-box {
  /* ★修正: 固定31%ではなくgapを考慮したcalcで幅を決める */
  flex: 0 0 calc((100% - 4rem) / 3);
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  display: block;
  flex-direction: row;
  gap: 1rem;
  align-items: flex-start;
}

/* 左：画像部分 */
.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 {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* 右：テキスト */
.actress-right {
  flex: 1 1 auto;
}

/* ボタン */
.actress-btn-wrap {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-top: 4px;
}
.actress-btn-item {
  width: 100%;
  height: 26px;
  line-height: 26px;
  text-align: center;
  margin: 4px auto;
  border-radius: 2px;
  background-color: cornflowerblue;
}
.actress-btn-item:hover {
  background-color: #5a86d4;
  transition: 0.3s;
}
.actress-btn-item a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border: 1px solid #fff;
  border-radius: 5px;
  box-shadow: 0 0 0 3px cornflowerblue;
  background-color: cornflowerblue;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.gray-out {
  background-color: #aaa;
}
.modal-btn a {
  box-shadow: 0 0 0 3px #f66;
  background-color: #f66;
}
.modal-btn:hover {
  background-color: #d44;
  transition: 0.3s;
}

/* タイトル */
.actress-right h2,.actress-right h3
 {
  position: relative;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.6rem;
  padding-right: 50px;
  font-size: 0.8rem;
}
.actress-right h2 a,
.actress-right h3 a {
  position: absolute;
  right: 0;
  background: crimson;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  padding: 2px 10px;
  border-radius: 4px;
  font-weight: normal;
  letter-spacing: 0.25em;
}
.actress-right h2 a:hover,
.actress-right h3 a:hover {
  opacity: 0.8;
  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-basic li a {
  text-decoration: none;
}
.profile-summary {
  font-size: 0.8rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* 戻るボタン */
.back-btn {
  margin-bottom: 40px;
  text-align: center;
}
.back-btn button {
  padding: 10px 20px;
  vertical-align: middle;
  background: #f66;
  border: none;
  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;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .actress-box {
    flex-direction: column;
    /* ★修正: 2列になるので (100% - 1ギャップ)/2 */
    flex: 0 0 calc((100% - 2rem) / 2);
  }
  .actress-left {
    text-align: center;
    flex: 0 0 auto;
  }
  .actress-left img {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .actress-box {
    flex-direction: column;
    flex: 1 1 100%; /* 1列 */
  }
  .actress-left {
    text-align: center;
    flex: 0 0 auto;
  }
  .actress-left img {
    width: 100%;
    margin: 0 auto;
  }
}
/* =========================================================
  Breadcrumb
========================================================= */
.breadcrumb {
  margin-top: 80px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
}

.breadcrumb span {
  color: #bbb;
}

/* =========================================================
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;
}
/* =========================================================
  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%;
  }
}
