/*
 * cast-profile.css
 * キャスト詳細ページ スタイルシート
 * Cherrydays 新宿店
 *
 * ブレークポイント
 *   〜 599px  : スマホ  (1カラム)
 *   600〜1029px: タブレット / iPad (2カラム・コンパクト)
 *   1030px〜  : PC (2カラム・フル)
 */

/* =============================================
   CSS Variables
============================================= */
:root {
  --red:        #e60712;
  --red-dark:   #b00008;
  --red-pale:   #fde8e9;
  --red-light:  #f88a90;
  --warm-white: #fffafa;
  --text-dark:  #2a1010;
  --text-mid:   #6a3030;
  --text-soft:  #b07070;
  --gold:       #c8a86c;
  --gold-light: #e8d4a8;
  --border:     rgba(230, 7, 18, 0.15);
  --shadow:     rgba(176, 0, 8, 0.13);
}

/* =============================================
   Wrapper
============================================= */
.cast-detail-wrap *,
.cast-detail-wrap *::before,
.cast-detail-wrap *::after {
  box-sizing: border-box;
}
.cast-detail-wrap {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  max-width: 1030px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* =============================================
   アニメーション
============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up              { animation: fadeUp 0.5s ease both; }
.fade-up:nth-child(2) { animation-delay: 0.08s; }
.fade-up:nth-child(3) { animation-delay: 0.16s; }
.fade-up:nth-child(4) { animation-delay: 0.24s; }
.fade-up:nth-child(5) { animation-delay: 0.32s; }

/* =============================================
   共通タグ・バッジ
============================================= */
.title-tag {
  background: linear-gradient(135deg, var(--red-pale), #ffe0e0);
  border: 1px solid var(--red-light);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11px;
  color: var(--red-dark);
  font-weight: 500;
}
.new-badge {
  color: var(--red);
  font-weight: 700;
}
.tag-pill {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-pale), #ffe0e0);
  border: 1px solid var(--red-light);
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 11px;
  color: var(--red-dark);
  margin: 1px 2px;
}
.schedule-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 8px;
  margin-left: 6px;
}

/* =============================================
   セクション区切り（スマホのみ表示）
============================================= */
.section-divider {
  height: 6px;
  background: linear-gradient(90deg, var(--red-pale), #fff4f4, var(--red-pale));
  margin: 4px 0;
}

/* =============================================
   セクションタイトル
============================================= */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
}
.section-title h2 {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 17px;
  color: var(--red);
  letter-spacing: 0.05em;
  font-style: italic;
}
.section-title h2::before {
  content: '— ';
  color: var(--red-light);
  font-size: 13px;
}
.section-title .sub-link {
  font-size: 11px;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-light);
}

/* =============================================
   カードヘッダー（共通）
============================================= */
.card-header {
  background: linear-gradient(135deg, #1a0000, #6a0008);
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  font-style: italic;
}
.card-header .sub {
  font-size: 11px;
  color: var(--red-light);
  letter-spacing: 0.1em;
}

/* =============================================
   メイン写真ブロック
============================================= */
.cp-photo-block {
  position: relative;
  background: #1a0000;
}
.cp-photo-block .main-photo {
  width: 100%;
  display: block;
  object-fit: cover;
}
.cp-photo-block .pickup-badge {
  position: absolute;
  left: 0;
  top: 0;
}
/* 名前オーバーレイ（タブレット・PC のみ表示） */
.photo-name-overlay {
  display: none;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(26,0,0,0.78) 0%, transparent 100%);
  align-items: flex-end;
  padding: 16px;
}
.photo-name-overlay .cast-name-large {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 28px;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.photo-name-overlay .cast-name-large .new-label {
  font-size: 13px;
  color: var(--red-light);
  margin-right: 8px;
}

/* =============================================
   サムネイル
============================================= */
.cp-thumbs {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #1a0000;
}
.cp-thumbs img {
  flex: 1;
  min-width: 0;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 3px;
  opacity: 0.72;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.cp-thumbs img:hover,
.cp-thumbs img.active {
  opacity: 1;
  border-color: var(--red);
}

/* =============================================
   次回出勤バー
============================================= */
.next-time-bar {
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  color: #fff;
  font-size: 12px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.next-time-bar .label {
  background: rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 10px;
}
.next-time-bar .time {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* =============================================
   スケジュールカード
============================================= */
.cp-schedule-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-top: 10px;
}
.card-header {
  background: linear-gradient(135deg, #8b0000, #c0002a);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-header h3 {
  color: #fff;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.08em;
}
.card-header .sub {
  color: rgba(255,255,255,0.80);
  font-size: 0.72rem;
}
.cp-schedule-list {
  padding: 8px 0;
}
.cp-week-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cp-week-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f5e8f0;
  gap: 12px;
}
.cp-week-row:last-child { border-bottom: none; }
.cp-week-row--today {
  background: linear-gradient(90deg, #fff5f8, #fff0f5);
}
.cp-week-date {
  font-size: 0.88rem;
  font-weight: bold;
  color: #555;
  min-width: 80px;
}
.cp-week-row--today .cp-week-date {
  color: #c0004a;
}
.cp-week-time {
  font-size: 0.88rem;
  font-weight: 600;
}
.cp-week-time.attend {
  color: #c0004a;
  background: #fff0f4;
  border: 1px solid #f5b0c0;
  border-radius: 20px;
  padding: 3px 12px;
}
.cp-week-time.rest {
  color: #bbb;
}

/* =============================================
   名前・予約エリア
============================================= */
.cp-name-block {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--warm-white);
}
.cp-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cp-size-row {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.cast-name-ja {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 22px;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}
.reserve-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #3a7bd5, #2a5faa);
  color: #fff;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: 'Noto Sans JP', sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(42,95,170,0.28);
  transition: all 0.2s;
}
.reserve-btn:hover {
  transform: translateY(-1px);
}

/* 次回出勤（名前ブロック内・タブレット+で表示） */
.cp-next-row {
  display: none;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(230,7,18,0.07), rgba(176,0,8,0.05));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
}
.cp-next-label {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.1em;
}
.cp-next-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--red);
}

/* =============================================
   スケジュールカード
============================================= */
.cp-schedule-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cp-schedule-list {
  padding: 2px 0;
}
.cp-schedule-item {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  transition: background 0.15s;
  font-size: 13px;
}
.cp-schedule-item:last-child {
  border-bottom: none;
}
.cp-schedule-item:hover {
  background: var(--red-pale);
}
.cp-sched-date {
  width: 84px;
  font-weight: 600;
  color: var(--text-dark);
  flex-shrink: 0;
}
.cp-sched-date .wday {
  display: inline-block;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 3px;
  background: var(--red-pale);
  color: var(--red);
  font-weight: 400;
}
.cp-sched-date .wday.sat { background: #e8f0ff; color: #4060c8; }
.cp-sched-date .wday.sun { background: #ffe8e8; color: #c84040; }
.cp-sched-time {
  flex: 1;
  color: var(--text-dark);
  font-weight: 500;
}
.cp-sched-time .off {
  color: var(--text-soft);
  font-weight: 400;
}
.cp-sched-tag {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
}

/* =============================================
   プロフィールカード
============================================= */
.cp-profile-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cp-profile-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
}
.cp-profile-label {
  background: var(--red-pale);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.cp-profile-value {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}
.cp-profile-label:last-of-type,
.cp-profile-value:last-child {
  border-bottom: none;
}

/* =============================================
   店長コメントカード
============================================= */
.cp-comment-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cp-comment-inner {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-mid);
  position: relative;
  background: linear-gradient(135deg, var(--red-pale), #fff4f4);
}
.cp-comment-inner::before {
  content: '❝';
  position: absolute;
  top: -4px; left: 8px;
  font-size: 46px;
  color: var(--red-light);
  opacity: 0.28;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1;
}
.cp-comment-inner > * {
  position: relative;
  z-index: 1;
}
.cp-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: none;
  font-size: 13px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: filter 0.2s;
}
.cp-more-btn:hover { filter: brightness(1.1); }
.cp-more-btn .arrow {
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.22);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}

/* =============================================
   Q&Aカード
============================================= */
.cp-qa-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cp-qa-item {
  border-bottom: 1px solid var(--border);
}
.cp-qa-item:last-child { border-bottom: none; }
.cp-qa-q {
  padding: 10px 16px;
  background: rgba(230,7,18,0.05);
  font-size: 13px;
  color: var(--red-dark);
  display: flex;
  gap: 8px;
}
.cp-qa-q::before {
  content: 'Q';
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  font-style: italic;
  color: var(--red);
  flex-shrink: 0;
}
.cp-qa-a {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  gap: 8px;
}
.cp-qa-a::before {
  content: 'A';
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  font-style: italic;
  color: var(--gold);
  flex-shrink: 0;
}

/* =============================================
   ブログタグ・その他カード
============================================= */
.cp-extra-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.cp-extra-inner {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.9;
}

/* =============================================
   カード共通：角丸・影（タブレット+で付与）
============================================= */
.cp-card {
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
}


/* ============================================================
   MOBILE (〜599px) ： 1カラム縦積み
============================================================ */
@media (max-width: 599px) {

  .cast-detail-wrap {
    padding-bottom: 32px;
  }

  /* 写真フルワイド */
  .cp-photo-block .main-photo {
    max-height: none;
    object-fit: unset;
  }

  /* 名前ブロック */
  .cast-name-ja { font-size: 20px; }

  /* セクション間パディング */
  .cp-schedule-card,
  .cp-profile-card,
  .cp-comment-card,
  .cp-qa-card,
  .cp-extra-card {
    margin: 0 0 0 0;
  }

  /* section-divider を表示 */
  .section-divider { display: block; }

  /* section-title パディング */
  .section-title { padding: 10px 14px 6px; }

  /* カード内パディング少し詰める */
  .cp-schedule-item { padding: 8px 14px; }
  .cp-comment-inner { padding: 14px 14px; }
  .cp-qa-q, .cp-qa-a { padding: 9px 14px; }
}


/* ============================================================
   TABLET / iPad (600px〜1029px) ： 2カラム
============================================================ */
@media (min-width: 600px) {

  .cast-detail-wrap {
    padding: 16px 16px 40px;
  }

  /* section-divider 非表示（カード形式になるので不要） */
  .section-divider { display: none; }

  /* 2カラムグリッド */
  .cp-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    align-items: start;
  }

  /* カード共通：角丸・影・マージン */
  .cp-photo-block,
  .cp-schedule-card,
  .cp-profile-card,
  .cp-comment-card,
  .cp-qa-card,
  .cp-extra-card,
  .cp-name-block {
    border-radius: 10px;
    box-shadow: 0 3px 14px var(--shadow);
    overflow: hidden;
    margin-bottom: 14px;
  }

  /* 写真に名前オーバーレイ表示 */
  .photo-name-overlay { display: flex; }

  /* 次回出勤行を表示 */
  .cp-next-row { display: flex; }

  /* 名前バーのボーダー不要 */
  .cp-name-block { border-bottom: none; }

  /* schedule card header */
  .cp-schedule-card .card-header { border-radius: 10px 10px 0 0; }

  /* プロフィールラベル幅 */
  .cp-profile-grid { grid-template-columns: 80px 1fr; }

  /* 名前サイズ */
  .cast-name-ja { font-size: 22px; }

  /* 次回バーは名前ブロック内に統合済みなので非表示 */
  .next-time-bar { display: none; }
}


/* ============================================================
   PC (1030px〜) ： 2カラム・フル
============================================================ */
@media (min-width: 1030px) {

  .cast-detail-wrap {
    padding: 24px 20px 60px;
  }

  /* 左カラム広げる */
  .cp-layout {
    grid-template-columns: 400px 1fr;
    gap: 24px;
  }

  /* カード共通：影強め */
  .cp-photo-block,
  .cp-schedule-card,
  .cp-profile-card,
  .cp-comment-card,
  .cp-qa-card,
  .cp-extra-card,
  .cp-name-block {
    border-radius: 14px;
    box-shadow: 0 6px 28px var(--shadow);
    margin-bottom: 20px;
  }

  /* 写真：高さ制限 */
  .cp-photo-block .main-photo {
    max-height: 560px;
  }

  /* 名前オーバーレイ：文字大きく */
  .photo-name-overlay .cast-name-large {
    font-size: 32px;
  }

  /* 名前ブロック：パディング広げる */
  .cp-name-block {
    padding: 20px 22px 18px;
  }
  .cast-name-ja { font-size: 28px; }
  .cp-next-val  { font-size: 18px; }

  /* プロフィールラベル幅 */
  .cp-profile-grid { grid-template-columns: 110px 1fr; }
  .cp-profile-label { padding: 12px 14px; }
  .cp-profile-value { padding: 12px 16px; }

  /* スケジュール：行パディング */
  .cp-schedule-item { padding: 10px 18px; }

  /* コメント */
  .cp-comment-inner { padding: 18px 20px; }

  /* Q&A */
  .cp-qa-q, .cp-qa-a { padding: 11px 20px; }
}
