/* =========================================
   page-talent-detail.css
   Talent Detail – Professional Final Version
========================================= */

/* ===== レイアウト ===== */

.talent-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.talent-photo {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.photo-main {
  width: 100%;
  border-radius: 18px;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.25),
    0 8px 18px rgba(0,0,0,0.15);
}

.photo-sub {
  width: 100%;
  border-radius: 14px;
  opacity: 0.92;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.15);
}

/* 極薄グラデ背景 */
.talent-photo::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(240,245,250,0.6),
    rgba(255,255,255,0)
  );
  z-index: -1;
  border-radius: 22px;
}

/* ===== 本文側 ===== */

.talent-body {
  flex: 1;
  min-width: 0;
}

.card {
  background: #fff;
  padding: 28px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  margin-bottom: 36px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 22px;
  padding-left: 14px;
  border-left: 5px solid #1593b8;
}

/* ===== プロフィール ===== */

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.badge {
  min-width: 74px;
  height: 30px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b-size     { background: #dbeaf4; color:#226d9a; }
.b-license  { background: #f5dede; color:#9a3232; }
.b-skill    { background: #e2f2de; color:#3d7d38; }
.b-hobby    { background: #f6e9c7; color:#8a6b00; }

.profile-row dd {
  margin: 0;
  line-height: 1.8;
}

/* ========================================
   芸歴タイムライン（丸なし・縦線あり）
======================================== */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 18px;
  position: relative;
  padding-bottom: 26px;
}

/* 縦ライン */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 64px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e6eef4;
}

/* 年号 */
.timeline-year {
  min-width: 58px;
  height: 26px;
  border-radius: 18px;
  background: #dfe9f2;
  color: #226d9a;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 内容 */
.timeline-content {
  padding-left: 14px;
}

.timeline-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.timeline-list li {
  margin-bottom: 6px;
  line-height: 1.8;
}

/* PCでは1行優先表示 */
@media (min-width: 1024px) {
  .timeline-list li {
    white-space: nowrap;
  }
}

/* ===== セクション見出し ===== */

.career-title {
  font-weight: 600;
  margin: 22px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e4e9ef;
}

/* ===== レスポンシブ ===== */

@media (max-width: 1024px) {
  .talent-layout {
    flex-direction: column;
  }

  .talent-photo {
    width: 100%;
    max-width: 420px;
  }

  .timeline-list li {
    white-space: normal;
  }
}

/* =========================
   タイムライン：バランス調整（推奨）
   右メニュー幅は触らず、自然な折り返しにする20260222 21:45
========================= */

/* PCでも「できたら1行」程度に戻す（強制しない） */
@media (min-width: 1024px) {
  .timeline-list li {
    white-space: normal;   /* ← nowrap を無効化 */
  }
}

/* 年号を詰めすぎない範囲で少しだけ左へ（本文も少し広く） */
.timeline-item {
  grid-template-columns: 72px 1fr;  /* 64pxは攻めすぎ → 72pxで上品に */
  column-gap: 18px;
}
.timeline-item::before {
  left: 72px; /* 縦線位置を年号幅に合わせる */
}

/* 年号チップをほんの少しだけ小さく（可読性は維持） */
.timeline-year {
  min-width: 64px;
  height: 28px;
  font-size: 13px;
  padding: 0 12px;
}

/* 本文の左余白も “詰まりすぎない” バランスに */
.timeline-content {
  padding-left: 14px;
}

/* =================================
   写真と本文の間を詰めて横幅拡張20260222 21:55
================================= */

/* 写真と本文の間隔を縮小 */
.talent-layout {
  gap: 28px;   /* 48px → 28px */
}

/* 写真ブロックの不要余白を削減 */
.talent-photo {
  margin-right: 0;
}

/* 本文を最大限広げる */
.talent-body {
  flex: 1;
  min-width: 0;
}

/* 芸歴カード内の横余白を少し縮小 */
.card {
  padding: 26px 28px;  /* 32px → 28px */
}




/* =================================
   最終横幅バランス最適化(20260222 22:03)
================================= */

/* 写真と本文の間をもう少しだけ詰める */
.talent-layout {
  gap: 22px;   /* 28px → 22px */
}

/* カードの左右余白を少し締める */
.card {
  padding: 24px 22px;   /* 28px → 22px */
}

/* タイムラインの横幅をさらに自然に広げる */
.timeline-item {
  grid-template-columns: 70px 1fr;
  column-gap: 14px;
}

.timeline-item::before {
  left: 70px;
}

/* 年号チップ微調整 */
.timeline-year {
  min-width: 60px;
  height: 26px;
  font-size: 13px;
  padding: 0 10px;
}

/* =================================
   写真縦比率を抑えて横幅を広げる最終調整(20260222 22:10)
================================= */

/* 写真の最大高さを少し抑える */
.photo-main,
.photo-sub {
  max-height: 420px;   /* ← これがポイント */
  object-fit: cover;
}

/* 写真ブロックを少しコンパクトに */
.talent-photo {
  width: 280px;   /* 300px → 280px */
}

/* 本文側をより広げる */
.talent-body {
  flex: 1;
  min-width: 0;
}

/* 写真と本文の間を最適バランスに */
.talent-layout {
  gap: 20px;
}
