/* エピソード詳細（Figma「04 エピソード詳細・山本哲也｜PC」83:3583）。
   寸法は 1440px 幅の設計の値。860px 以下の割り付けは、設計が PC だけのため Claude が決めた */

.ep {
  --ep-side: max(var(--gutter), calc((100% - 1120px) / 2));  /* 1440px で左右 160 */
  --ep-ink: #2b2a26;         /* 見出しの文字（Figma の直値） */
  --ep-muted: #737069;       /* ラベルと出演の文（Figma の直値） */
  --ep-gray: #595a58;        /* 文字/グレー */
}
.ep-sec { display: flex; flex-direction: column; align-items: flex-start; padding: 72px var(--ep-side); }
.ep-h2 { max-width: 1050px; font: 400 31px/1.5 var(--ud-pmincho); color: var(--sumi); }
.ep-h2.is-small { font-size: 28px; line-height: 1.65; letter-spacing: .02em; color: var(--ep-ink); }
.ep-h3 { font: 400 24px/1.5 var(--ud-pmincho); color: var(--sumi); }
.ep-label { font: 500 13px/1.85 var(--sans); letter-spacing: .02em; color: var(--ep-muted); }
.ep a { transition: opacity .2s, background-color .2s, color .2s; }

/* ---------- 冒頭（83:3632） ---------- */
.ep-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 64px var(--ep-side); }
.ep-back { font: 400 13px/1.85 var(--sans); letter-spacing: .02em; color: var(--olive); text-decoration: none; }
.ep-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.ep-title { max-width: 1000px; font: 400 36px/1.65 var(--ud-pmincho); letter-spacing: .02em; color: var(--ep-ink); }
.ep-guest { font: 400 16px/1.85 var(--sans); letter-spacing: .02em; color: var(--ep-ink); }
.ep-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--gray-bg); }
.ep-video img { width: 100%; height: 100%; object-fit: cover; }
.ep-video-btn { position: absolute; left: 32px; bottom: 33.5px; padding: 13px 23px; border-radius: 4px; background: var(--olive); font: 500 15px/1.5 var(--sans); color: var(--white); white-space: nowrap; transition: background-color .2s, color .2s; }
a.ep-video:hover .ep-video-btn, a.ep-video:focus-visible .ep-video-btn { background: var(--white); color: var(--olive); }

/* ---------- 映像の概要（119:3021） ---------- */
.ep-summary { gap: 28px; background: var(--white); }
.ep-summary-text { display: flex; flex-direction: column; gap: 16px; max-width: 1040px; font: 400 18px/1.85 var(--sans); color: var(--sumi); }
.ep-scenes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; width: 100%; }

.ep-scene img { width: 100%; aspect-ratio: 356 / 200.25; object-fit: cover; border-radius: 4px; }


/* ---------- 出演（83:3657） ---------- */
.ep-cast { gap: 21px; padding-top: 70px; padding-bottom: 70px; }
.ep-cast-body { display: flex; align-items: flex-start; gap: 48px; width: 100%; }
.ep-cast-photo { flex: none; width: 280px; height: 300px; border-radius: 4px; overflow: hidden; }
.ep-cast-photo img { width: 100%; height: 100%; object-fit: cover; }
.ep-cast-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; max-width: 700px; }
.ep-cast-name { font: 400 28px/1.65 var(--ud-pmincho); letter-spacing: .02em; color: var(--ep-ink); }
.ep-cast-role { font: 400 15px/1.85 var(--sans); letter-spacing: .02em; color: var(--ep-muted); }
.ep-cast-bio { font: 400 15px/1.8 var(--sans); letter-spacing: .02em; color: var(--ep-muted); }
.ep-cast-link { font: 500 14px/1.85 var(--sans); letter-spacing: .02em; color: var(--olive); text-decoration: none; }
.ep-cast-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 会社情報（119:3034） ---------- */
.ep-company { gap: 24px; background: var(--gray-bg); }
.ep-company-list { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 925px; font-size: 15px; line-height: 1.85; }
.ep-company-row { display: flex; align-items: flex-start; gap: 28px; }
.ep-company-row dt { flex: none; width: 170px; font-weight: 500; font-family: var(--sans); color: var(--ep-gray); }
.ep-company-row dd { flex: 1; min-width: 0; font-family: var(--sans); color: var(--sumi); overflow-wrap: anywhere; }
.ep-company-row dd a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ep-company-row dd a:hover { color: var(--olive); }

/* ---------- 対話の背景（119:3052） ---------- */
.ep-bg { gap: 35px; background: var(--white); }
.ep-bg-block { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.ep-bg-block p { font: 400 17px/1.85 var(--sans); color: var(--sumi); }

/* ---------- 手帳に残した問い（83:3667） ---------- */
.ep-question { gap: 21px; padding-top: 70px; padding-bottom: 70px; background: var(--gray-bg); }
.ep-question-body { display: flex; align-items: flex-start; gap: 64px; width: 100%; }
.ep-question-scan { flex: none; width: 520px; height: 360px; border-radius: 4px; overflow: hidden; }
.ep-question-scan img { width: 100%; height: 100%; object-fit: contain; }
.ep-question-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; max-width: 520px; }
.ep-question-q { font: 400 30px/1.65 var(--ud-pmincho); letter-spacing: .02em; color: var(--ep-ink); }
.ep-question-name { font: 400 15px/1.85 var(--sans); letter-spacing: .02em; color: var(--ep-muted); }
.ep-question-link { font: 500 14px/1.85 var(--sans); letter-spacing: .02em; color: var(--olive); text-decoration: none; white-space: pre; }
.ep-question-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 対談の全文（83:3676）：枠の中を縦にスクロールして読む ---------- */
.ep-transcript { gap: 20px; padding-top: 70px; padding-bottom: 70px; }
.ep-transcript-note { max-width: 1000px; font: 400 16px/1.85 var(--sans); letter-spacing: .02em; color: var(--ep-ink); }
.ep-transcript-box { width: 100%; height: 544px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--gray-bg); border-radius: 4px; padding: 16px 32px; }
.ep-transcript-list { list-style: none; }
.ep-line { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--gray-bg); }
.ep-line-time { flex: none; width: 88px; font: 400 13px/29px var(--sans); color: var(--olive); font-variant-numeric: tabular-nums; }
a.ep-line-time { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.ep-line-time:hover { color: var(--sumi); }
.ep-line-speaker { flex: none; width: 84px; font: 500 14px/29px var(--sans); color: var(--olive); }
.ep-line-text { flex: 1; min-width: 0; max-width: 850px; font: 400 16px/29px var(--sans); color: var(--sumi); }

/* ---------- ほかの対話（119:3066） ---------- */
.ep-others { gap: 25px; background: var(--gallery); }
.ep-others-title { max-width: 1050px; font: 400 29px/1.85 var(--ud-pmincho); color: var(--white); }
.ep-others-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; width: 100%; }
.ep-other { min-width: 0; }
.ep-other-link { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.ep-other-thumb { display: block; aspect-ratio: 262 / 147.375; border-radius: 5px; overflow: hidden; background: #3a4a3b; }
.ep-other-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ep-other-link:hover .ep-other-thumb img { transform: scale(1.03); }
.ep-other-title { display: block; min-height: 51px; font: 500 17px/1.5 var(--sans); color: var(--paper-50); }
.ep-other-guest { display: block; margin-top: -7px; font: 400 13px/1.5 var(--sans); color: var(--paper-100); }
.ep-others-btn { display: inline-flex; padding: 12px 20px; border: 1px solid var(--olive); border-radius: 4px; background: var(--olive); font: 500 14px/1.5 var(--sans); color: var(--white); text-decoration: none; }
.ep-others-btn:hover { background: var(--white); color: var(--olive); border-color: var(--white); }

/* ---------- サポーター制度（83:3691） ---------- */
.ep-support { gap: 18px; padding-top: 80px; padding-bottom: 80px; background: var(--gray-bg); }
.ep-support .ep-h2 { max-width: 1040px; }
.ep-support-text { display: flex; flex-direction: column; gap: 12px; max-width: 864px; font: 400 16px/1.85 var(--sans); letter-spacing: .02em; color: var(--ep-ink); }

/* ---------- 中くらいの幅 ---------- */
@media (max-width: 1100px) {
  .ep-others-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ep-question-scan { width: 44%; height: auto; aspect-ratio: 520 / 360; }
  .ep-question-body { gap: 40px; }
}

/* ---------- スマートフォン（Claude の割り付け） ---------- */
@media (max-width: 860px) {
  .ep-sec, .ep-cast, .ep-question, .ep-transcript, .ep-support { padding-top: 48px; padding-bottom: 48px; }
  .ep-head { gap: 14px; padding-top: 32px; padding-bottom: 40px; }
  .ep-title { font-size: 24px; }
  .ep-guest { font-size: 14px; }
  .ep-video-btn { left: 12px; bottom: 12px; padding: 8px 14px; font-size: 13px; }
  .ep-h2 { font-size: 24px; }
  .ep-h2.is-small { font-size: 24px; }
  .ep-h3 { font-size: 20px; }
  .ep-summary-text { font-size: 16px; }
  .ep-scenes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ep-cast-body { flex-direction: column; gap: 24px; }
  .ep-cast-photo { width: min(280px, 100%); height: auto; aspect-ratio: 280 / 300; }
  .ep-cast-name { font-size: 24px; }
  .ep-company-row { flex-direction: column; gap: 0; }
  .ep-company-row dt { width: auto; font-size: 13px; }
  .ep-bg-block p { font-size: 16px; }
  .ep-question-body { flex-direction: column; gap: 24px; }
  .ep-question-scan { width: 100%; }
  .ep-question-q { font-size: 22px; }
  .ep-transcript-box { height: 70vh; max-height: 560px; padding: 8px 16px; }
  .ep-line { flex-wrap: wrap; gap: 0 12px; padding: 12px 0; }
  .ep-line-time { width: auto; }
  .ep-line-speaker { width: auto; }
  .ep-line-text { flex-basis: 100%; font-size: 15px; line-height: 1.85; }
  .ep-others-title { font-size: 24px; }
  .ep-others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .ep-other-title { font-size: 15px; min-height: 0; }
}
@media (max-width: 560px) {
  .ep-others-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 日本語以外のページ（2026-11-28、多言語）：「問いが生まれた場面へ」の訳は長いので、スマートフォンの幅で折り返す */
html:not([lang="ja"]) .ep-question-link { white-space: pre-wrap; }
