/* ============================================================
   interview.css — インタビュー（入口・キャストの声・会社関連記事）
   入口：2つのアーカイブへの扉（上に明るい写真、下に文字の面）。キャスト側は公式のキャスト写真2枚
   キャスト：縦長（9:16）のカードの列が、スクロールで横に流れる（js/interview.js）。カードは公式のキャスト写真
   会社関連記事：掲載記事を雑誌の表紙のように並べる（媒体名＝題字・見出し＝表紙の文句・日付＝号）
   3ページとも、ページの背景（頭・区画・最後の導線）は色の光（css/flow.css）。会社関連記事の表紙の中だけはブランドの背景素材を使う
   キャストの写真は iv_photos()（tools/sitelib/derive.py）が新着キャストから選ぶ。写真の注記は付けない（2026-09-30 ユーザー指示）
   ============================================================ */

/* ================= 入口：2つのアーカイブ ================= */
.doors { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.door { position: relative; container-type: inline-size; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-s); background: var(--night-2); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.door--cast { margin-top: 120px; }
/* 写真は明るいまま、切らずに見せる（3:2 の写真を 3:2 の枠へ） */
.door-bg { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--night-3); }
.door-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
/* キャスト側：公式のキャスト写真（3:4）を2枚並べて 3:2 の枠に入れる（どちらも切らずに見せる） */
.door-bg--cast { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.door-bg--cast img { object-position: 50% 20%; }
.door-body { display: flex; flex-direction: column; width: 100%; padding: 32px 44px 36px; }
.door-for { display: block; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--text-2); margin-bottom: 10px; }
.door-title { display: block; font-size: clamp(26px, 7.6cqi, 52px); font-weight: 900; line-height: 1.25; margin-bottom: 18px; }
.door-desc { display: block; max-width: 30em; color: var(--text-2); }
.door-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.door-count { font-size: 14px; color: var(--text-2); }
.door-count b { font-size: 28px; font-weight: 900; color: var(--text); margin-right: 4px; }
.door-go { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .06em; }
.door-go .arw { width: 20px; height: 20px; transition: transform .4s var(--ease-out); }
.door:hover .door-bg img { transform: scale(1.04); }
.door:hover .door-go .arw { transform: translateX(6px); }
.doors-note { margin-top: 14px; font-size: 12px; letter-spacing: .04em; color: var(--text-3); text-align: right; }
@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; gap: 20px; }
  .door--cast { margin-top: 0; }
}
@media (max-width: 767px) {
  .door-body { padding: 24px 22px 24px; }
  .door-count b { font-size: 24px; }
}

/* ================= 入口：掲載メディア ================= */
.media-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.media-link { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; padding: 24px 4px; border-top: 1px solid var(--line-2); }
.media-list li:nth-last-child(-n+2) .media-link { border-bottom: 1px solid var(--line-2); }
.media-name { font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.35; transition: transform .5s var(--ease-out); }
.media-url { grid-column: 1; font-size: 13px; letter-spacing: .04em; color: var(--text-3); }
.media-link .ico { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; color: var(--text-2); transition: transform .4s var(--ease-out), color .3s; }
.media-link::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.media-link:hover::before, .media-link:focus-visible::before { transform: scaleX(1); }
.media-link:hover .media-name { transform: translateX(6px); }
.media-link:hover .ico { transform: translate(3px, -3px); color: var(--text); }
@media (max-width: 767px) {
  .media-list { grid-template-columns: 1fr; }
  .media-list li:nth-last-child(2) .media-link { border-bottom: 0; }
  .media-link { padding: 18px 2px; }
  .media-name { font-size: 22px; }
}

/* ================= ページの頭：明るい素材は少し強めに沈める ================= */
.ph-bg--soft img { object-position: 40% 50%; filter: brightness(.42) saturate(1.1); }
.ph-bg--lift img { filter: brightness(.58) saturate(1.05); }
/* 見出しの横（スマホは下）に明るい人物写真。写真は 3:2 のまま切らずに見せる */
.iv-ph { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 0 4vw; align-items: end; }
.iv-ph .ph-title { font-size: clamp(32px, 4vw, 56px); }
.ph:has(.iv-ph) .ph-bg img { filter: brightness(.26) saturate(1.05); }
.iv-ph .toc { grid-column: 1 / -1; }
.iv-ph-fig { margin: 0 0 6px; }
.iv-ph-photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-s); background: var(--night-3); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.iv-ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.iv-ph-fig figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .04em; color: var(--text-3); text-align: right; }
/* キャストのページ：公式のキャスト写真（3:4）を1〜2枚。2枚なら横に並べて 3:2、1枚なら縦長のまま右に寄せる */
.iv-cast-photos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.iv-cast-photos--n1 { width: min(100%, 300px); margin-left: auto; }
.iv-cast-photo { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-s); background: var(--night-3); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.iv-cast-photo img { width: 100%; height: 100%; object-fit: cover; }
.iv-cast-fig figcaption { width: min(100%, 300px); margin-left: auto; }
.iv-cast-photos--n2 + figcaption { width: auto; }
@media (max-width: 899px) {
  .iv-ph { grid-template-columns: 1fr; }
  .iv-ph-fig { margin: 28px 0 0; }
  .iv-cast-photos--n1, .iv-cast-fig figcaption { width: min(64%, 260px); margin-left: 0; text-align: left; }
}
@media (max-width: 767px) {
  .iv-ph .ph-title { font-size: 30px; }
}

/* ================= キャスト：縦長カードの列 ================= */
.voices { position: relative; padding: 24px 0 var(--s5); }
.vpin { position: relative; }
.vscroll { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.vscroll::-webkit-scrollbar { display: none; }
.vtrack { position: relative; display: flex; align-items: center; gap: 96px; width: max-content; padding: 24px var(--gutter) 56px; }
.vgroup { display: flex; align-items: center; gap: 40px; scroll-margin-left: var(--gutter); }
.vgroup-head { flex: none; width: 250px; scroll-snap-align: start; }
.vgroup-area { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--text-3); margin-bottom: 8px; }
.vgroup-name { font-size: clamp(30px, 2.8vw, 40px); font-weight: 900; line-height: 1.3; }
.vgroup-count { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.vgroup-count b { font-size: 26px; font-weight: 900; color: var(--text); margin-right: 3px; }
.vgroup-note { margin-top: 16px; font-size: 14px; line-height: 1.8; color: var(--text-2); }
.vcards { display: flex; align-items: flex-start; gap: 20px; }

/* カード：9:16。将来は .vc-media に動画が入る */
.vc { --h: min(calc(100svh - 260px), calc(72vw * 16 / 9), 620px); flex: none; width: calc(var(--h) * 9 / 16); height: var(--h); scroll-snap-align: start; }
.vc:nth-child(even) { margin-top: 56px; }
.vc a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 26px 24px 22px; overflow: hidden; isolation: isolate; border-radius: var(--r-s); background: var(--night-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.vc-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; transition: transform 1s var(--ease-out); }
/* 写真（3:4）は明るいまま。顔の入る上の方は沈めず、文字を置く下だけを沈める */
.vc-media img, .vc-media video { position: absolute; top: 0; left: -14%; width: 128%; max-width: none; height: 100%; object-fit: cover; object-position: var(--x, 50%) 18%;
  filter: brightness(.96) saturate(1.02); transition: filter .5s ease-out; }
.vc a::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(13, 10, 11, 0) 0%, rgba(13, 10, 11, 0) 38%, rgba(13, 10, 11, .8) 64%, rgba(13, 10, 11, .94) 100%); }
.vc--voice a::before { background: linear-gradient(rgba(13, 10, 11, 0) 0%, rgba(13, 10, 11, 0) 22%, rgba(13, 10, 11, .82) 50%, rgba(13, 10, 11, .95) 100%); }
/* 写真の無いカード（新着キャストの写真が足りないとき）：背景の光が透ける暗い面 */
.vc--plain a { background: rgba(20, 13, 14, .5); box-shadow: none; }
.vc--plain a::before { content: none; }
/* 写真が無いときは、店名を上に置き、言葉（名前）を大きく下に置いて面を埋める */
.vc--plain .vc-store { margin-top: 0; color: var(--text-2); }
.vc--plain .vc-voice { margin-top: auto; font-size: clamp(24px, 2.1vw, 30px); line-height: 1.55; }
.vc--plain .vc-name:not(.vc-name--s) { margin-top: auto; }
/* 店名と注記は下の文字の塊に入れる（写真の上の方に文字を載せない） */
.vc-note { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .04em; color: var(--text-2); }
/* 画面の枠（四辺同じ細線） */
.vc a::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(244, 238, 234, .2); border-radius: 2px; pointer-events: none; transition: border-color .4s; }
.vc-store { display: block; margin-top: auto; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--text); }
.vc-name { display: block; margin-top: 6px; font-size: clamp(40px, 3.8vw, 56px); font-weight: 900; line-height: 1.15; letter-spacing: .02em; }
.vc-age { display: block; margin-top: 8px; font-size: 15px; color: var(--text-2); }
.vc-voice { display: block; margin-top: 10px; font-size: clamp(21px, 1.8vw, 26px); font-weight: 900; line-height: 1.6; }
.vc-name--s { margin-top: 18px; font-size: 20px; }
.vc-go { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--text-2); transition: color .3s; }
.vc-go .ico { width: 15px; height: 15px; }
.vc--voice .vc-go .ico path { fill: currentColor; stroke: none; }
.vc a:hover .vc-media { transform: scale(1.04); }
.vc a:hover .vc-media img, .vc a:hover .vc-media video { filter: brightness(1.04) saturate(1.06); }
.vc--plain a:hover { background: rgba(20, 13, 14, .32); }
.vc a:hover::after { border-color: rgba(244, 238, 234, .45); }
.vc a:hover .vc-go { color: var(--text); }

/* 現在地のバー（どの店舗か・全体のどこか） */
.vindex { display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); }
.vbar { flex: none; width: 140px; height: 2px; background: var(--line-2); overflow: hidden; }
.vbar span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
.vindex ol { display: flex; flex-wrap: wrap; gap: 0 22px; }
.vindex a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: .06em; color: var(--text-3); white-space: nowrap; transition: color .3s; }
.vindex a:hover { color: var(--text); }
.vindex a[aria-current="true"] { color: var(--text); font-weight: 700; }
.vindex-pos { display: none; margin-left: auto; font-size: 13px; color: var(--text-3); }
.vnote { margin-top: var(--s4); font-size: 14px; color: var(--text-3); max-width: 46em; }

/* 横に流れるモード（動きがあるとき・JS が .is-h を付ける） */
.voices.is-h { padding-top: 0; }
.voices.is-h .vpin { display: flex; flex-direction: column; height: 100svh; padding: 92px 0 20px; }
.voices.is-h .vscroll { flex: 1; min-height: 0; display: flex; align-items: center; overflow: hidden; scroll-snap-type: none; }
.voices.is-h .vtrack { padding-top: 0; padding-bottom: 0; will-change: transform; }
.voices.is-h .vindex { flex: none; padding-top: 14px; }

@media (max-width: 767px) {
  .vtrack { gap: 64px; }
  .vgroup { gap: 24px; }
  .vgroup-head { width: 62vw; }
  .vgroup-name { font-size: 28px; }
  /* カードは幅 240px まで（新着キャストの写真の元画像の幅）。写真は引き伸ばさず、カードの幅で 3:4 のまま上に置き、下は暗い面に溶かす
     （前はカード 296px・写真を 379×527px に引き伸ばしていて、ぼやけていた。2026-10-18 SPレビュー 中3） */
  .vc { --h: min(calc(100svh - 240px), calc(240px * 16 / 9)); }
  .vc-media img, .vc-media video { left: 0; width: 100%; height: auto; aspect-ratio: 3 / 4;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .vc:nth-child(even) { margin-top: 40px; }
  .vc a { padding: 22px 20px 18px; }
  .vc-name:not(.vc-name--s) { font-size: 40px; }
  .vc-voice { font-size: 21px; }
  .voices.is-h .vpin { padding-top: 76px; }
  .vindex { gap: 16px; }
  .vbar { flex: 1; width: auto; }
  .vindex li:not(.is-active) { display: none; }
  .vindex-pos { display: block; }
}

/* ================= 会社関連記事：雑誌の表紙 ================= */
.press { padding-top: var(--s5); }
.press-block + .press-block { margin-top: var(--s6); }
.press-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: var(--s4); }
.press-year { font-size: clamp(56px, 7vw, 104px); line-height: 1; letter-spacing: -.02em; }
.press-year .press-unit { font-size: .34em; margin-left: .08em; letter-spacing: 0; }
.press-year--word { font-size: var(--fs-h2); letter-spacing: .01em; }
.press-count { font-size: 14px; color: var(--text-3); }
.press-count b { font-size: 20px; font-weight: 900; color: var(--text-2); margin-right: 2px; }

.mz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 24px; }
/* 表紙の比率は「幅から決まる最低の高さ」で持たせ、文字が多いときは下へ伸びる（切らない）。
   aspect-ratio は使わない：行の高さへ引き伸ばすと比率から幅が逆算され、幅基準（cqi）の文字が
   大きくなって行がさらに伸びる循環が起きる（動きを減らす設定で高さが数百万pxになった） */
.mz { container-type: inline-size; align-self: stretch; display: flex; flex-direction: column; }
.mz--w { grid-column: span 2; }
.mz--l { grid-column: span 2; grid-row: span 2; }
.mz--x { grid-column: 1 / -1; }

.mz-link { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; min-height: calc(100cqi * 4 / 3); isolation: isolate; padding: 6cqi 6.4cqi 5.6cqi;
  border-radius: 2px; background: var(--night-2); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
.mz-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.mz-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--x, 50%) 50%; filter: brightness(.4) saturate(1.05); transition: transform 1s var(--ease-out), filter .5s ease-out; }
/* 題字の下と、表紙の文句の下を沈める */
.mz-link::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(13, 10, 11, .6) 0%, rgba(13, 10, 11, 0) 34%, rgba(13, 10, 11, .15) 50%, rgba(13, 10, 11, .9) 100%); }
.mz-head { display: block; }
.mz-media { display: block; overflow: hidden; white-space: nowrap; font-size: 11cqi; font-weight: 900; line-height: 1; letter-spacing: -.01em; color: #fff; }
.mz-issue { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin-top: 2.6cqi; padding: 7px 0; border-top: 1px solid rgba(244, 238, 234, .4); border-bottom: 1px solid rgba(244, 238, 234, .4);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--text); }
.mz-issue time { font-variant-numeric: tabular-nums; }
.mz-cat { color: var(--text-2); }
.mz-text { display: block; margin-top: auto; padding-top: 24px; }
.mz-title { font-size: 6.3cqi; font-weight: 900; line-height: 1.45; letter-spacing: .01em; text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
  word-break: normal; word-break: auto-phrase; overflow-wrap: break-word; }
.mz-excerpt { display: block; margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.mz-subject { display: block; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.mz-more { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--text-2); transition: color .3s; }
.mz-link:hover .mz-bg img { transform: scale(1.04); filter: brightness(.5) saturate(1.1); }
.mz-link:hover .mz-more { color: var(--text); }
/* 大きさごとの文字組み */
.mz--l .mz-media { font-size: 10.6cqi; }
.mz--l .mz-title { font-size: 4.6cqi; }
.mz--l .mz-excerpt { font-size: 15px; }
.mz--l .mz-link { min-height: 0; }
.mz--w .mz-link { min-height: calc(100cqi / 1.566); }
.mz--x .mz-link { min-height: calc(100cqi / 2.6); }
.mz--w .mz-link, .mz--x .mz-link { padding: 3.4cqi 3.6cqi 3cqi; }
.mz--w .mz-media { font-size: 6.4cqi; }
.mz--w .mz-issue { margin-top: 1.6cqi; }
.mz--w .mz-title { font-size: 3.5cqi; max-width: 26em; }
.mz--x .mz-media { font-size: 5.4cqi; }
.mz--x .mz-issue { margin-top: 1.2cqi; max-width: 60%; }
.mz--x .mz-title { font-size: 2.5cqi; max-width: 24em; }
.mz--x .mz-excerpt { max-width: 36em; }

@media (max-width: 1100px) {
  .mz--s .mz-title { font-size: 7cqi; }
}
@media (max-width: 899px) {
  .mz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .mz--l, .mz--x { grid-column: 1 / -1; grid-row: auto; }
  .mz--l .mz-link, .mz--x .mz-link { min-height: calc(100cqi / 1.5); padding: 3.4cqi 3.6cqi 3cqi; }
  .mz--l .mz-media, .mz--x .mz-media { font-size: 6.4cqi; }
  .mz--l .mz-title, .mz--x .mz-title { font-size: 3.5cqi; }
}
@media (max-width: 599px) {
  .press-head { margin-bottom: var(--s3); }
  .press-year { font-size: 56px; }
  .press-year--word { font-size: 26px; }
  .mz-grid { grid-template-columns: 1fr; gap: 20px; }
  .mz--l .mz-link { min-height: calc(100cqi * 4 / 3); padding: 6cqi 6.4cqi 5.6cqi; }
  .mz--l .mz-media { font-size: 11cqi; }
  .mz--l .mz-title { font-size: 20px; }
  .mz--w, .mz--x { grid-column: auto; }
  .mz--w .mz-link, .mz--x .mz-link { min-height: 320px; padding: 22px 20px 20px; }
  .mz--w .mz-media, .mz--x .mz-media { font-size: 34px; }
  .mz--w .mz-issue, .mz--x .mz-issue { margin-top: 10px; max-width: none; }
  .mz--w .mz-title, .mz--x .mz-title { font-size: 20px; }
  /* 小さな表紙は、左に表紙の縮小・右に文字の「バックナンバー」の並びにする */
  .mz--s .mz-link { min-height: 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; padding: 0 0 20px; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid var(--line); }
  .mz--s .mz-link::before { display: none; }
  .mz--s .mz-bg { position: relative; inset: auto; grid-column: 1; grid-row: 1; z-index: 0; aspect-ratio: 3 / 4; border-radius: 2px; }
  .mz--s .mz-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13, 10, 11, .55), rgba(13, 10, 11, .1) 60%); }
  .mz--s .mz-head { grid-column: 1; grid-row: 1; z-index: 1; align-self: start; padding: 10px 9px; }
  .mz--s .mz-media { white-space: normal; font-size: 13px; line-height: 1.2; overflow-wrap: break-word; }
  .mz--s .mz-issue { flex-direction: column; align-items: flex-start; margin-top: 6px; padding: 4px 0; font-size: 12px; letter-spacing: .02em; gap: 0; }
  .mz--s .mz-cat { overflow-wrap: break-word; }
  .mz--s .mz-text { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
  .mz--s .mz-title { font-size: 17px; line-height: 1.55; text-shadow: none; }
  .mz--s .mz-excerpt { margin-top: 6px; }
}
