@font-face {
  font-family: "New Tegomin";
  src: url("../fonts/new-tegomin.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 記事詳細専用。Figma SP + 提供PNGのPC/SPを参照。
   調整箇所はdocs/article-prototype.md参照。 */
.interview-page {
  --article-body-font: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --article-paragraph-gap: 24px;
  --article-chapter-gap: 64px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* bodyにこのクラスを追加すると、通常本文のみ明朝体で比較できる。 */
.interview-page--serif-body {
  --article-body-font: var(--font-display);
}

.interview-preview {
  width: 100%;
  margin-inline: auto;
}

.interview-inset,
.interview-body--blocks > :not(.alignfull) { margin-inline: 20px; }
.interview figure { margin: 0; }
.interview-photo { width: 100%; aspect-ratio: 3 / 2; background: #d9d9d9; }
/* 実写真への差し替え時は同じクラスをimgへ付ける。 */
img.interview-photo { display: block; object-fit: cover; }

.interview-hero { padding-top: 24px; }
.interview-hero__number {
  margin: 0 20px 40px;
  font-family: "Jost", "Avenir Next", sans-serif;
  font-size: 48px;
  line-height: 1;
  text-align: left;
}
.interview-hero__photo { position: relative; height: auto; aspect-ratio: 390 / 320; }
.interview-hero__photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 写真の下部を中心に白くぼかし、上部は元写真を維持する。 */
.interview-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 65% at 45% 100%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.65) 30%, rgba(255, 255, 255, 0.25) 65%, rgba(255, 255, 255, 0) 100%);
}
.interview-hero__intro { position: relative; margin: -86px 20px 0; }
.interview-hero__subtitle { margin: 8px 0 0; color: #666; font-size: 1em; font-weight: 600; line-height: 1.8; letter-spacing: 0.1em; }
.interview-hero__person { margin: 24px 0 0; font-size: 1em; line-height: 1.8; }
.interview-hero__catchphrase { font-size: 1em; }
.interview-hero__name { font-size: 1.2em; }
.interview-hero__person-number { display: inline-block; margin-inline-start: 1em; font-size: 0.8em; }

/* 本文の既存の上余白内に配置し、本文開始位置を動かさない。 */
.interview-date { position: relative; height: 0; }
.interview-date__label {
  position: absolute;
  top: 20px;
  left: 0;
  padding: 2px 6px;
  background: #596575;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .interview-date__label { top: 60px; }
}

.interview-body { font-family: var(--article-body-font); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.interview-body p { margin: 0; font-size: 16px; }
.interview-body p + p { margin-top: var(--article-paragraph-gap); }
.interview-text { padding-block: 60px; }
.interview-body .chapter-break { margin-top: var(--article-chapter-gap); }
.interview .interview-full-image,
.interview-body--blocks > .wp-block-image { padding-block: 40px; }
.interview-full-image .interview-photo { aspect-ratio: 390 / 262; }
.interview-full-image figcaption,
.interview-body--blocks > .wp-block-image figcaption { margin: 8px 11px 0; font-size: 16px; }
/* Gutenberg標準画像。通常画像は元の比率、全幅画像は静的版の比率を使用。 */
.interview-body--blocks > .wp-block-image img { display: block; max-width: 100%; height: auto; }
.interview-body--blocks > .wp-block-image.alignfull { margin-inline: 0; }
.interview-body--blocks > .wp-block-image.alignfull img { width: 100%; aspect-ratio: 390 / 262; object-fit: cover; }
.interview-image-text { display: flex; flex-direction: column; gap: 40px; padding-block: 40px; }
.interview-image-text figure { width: calc(100% - 8px); align-self: center; }

.interview-pagination a:focus-visible,
.interview-tags a:focus-visible,
.interview-related__link:focus-visible { outline: 1px solid var(--latest-accent); outline-offset: 4px; }

.interview-closing { display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 20px 40px 64px; }
.interview-closing__photo { width: min(240px, 100%); height: auto; transform: rotate(-6deg); }
.interview-closing blockquote { width: 100%; margin: 0; }
.interview-closing blockquote p { margin: 0; font-family: "New Tegomin", var(--font-display); font-size: 28px; line-height: 1.6; }
.interview-profile { border-top: 1px solid rgb(43 43 43 / 22%); margin-top: 40px; padding: 40px 40px 60px; }
.interview-profile__inner { width: min(240px, 100%); margin-left: auto; container-type: inline-size; }
.interview-profile__text { margin-top: 20px; font-size: 14px; line-height: 1.8; }
.interview-profile__text p { margin: 0; }
.interview-profile h2 { margin: 0 0 20px; font-size: 16px; font-weight: 400; line-height: 1.8; }
.interview-profile h2 span { font-size: 14px; }
.interview-profile h2 .interview-profile__number { display: block; font-size: 12px; }
.interview-profile__inner > img.interview-photo { aspect-ratio: 1 / 1; width: 100%; height: 100%; max-height: 100cqw; object-fit: cover; align-self: start; }
.interview-profile__bio p + p { margin-top: 1em; }
.interview-profile__links { margin-top: 16px; color: #666; font-size: 12px; font-weight: 700; }
.interview-profile__links a { display: inline-block; color: inherit; text-underline-offset: 0.2em; }
.interview-profile__links .interview-profile__social + .interview-profile__web { margin-top: 6px; }
.interview-profile__links .interview-profile__web { display: flex; align-items: baseline; gap: 1em; }
.interview-profile__web > span { flex-shrink: 0; }
.interview-profile__web > a { min-width: 0; font-weight: 400; overflow-wrap: anywhere; }

/* Tags / CreditはFigmaに指定なし。依頼に基づく仮値。 */
.interview-classifications { padding-block: 24px; color: #687f8c; font-size: 12px; line-height: 1.6; }
.interview-classifications.interview-meta-aligned { box-sizing: border-box; width: calc(100% - 80px); margin-inline: 40px; }
.interview-classifications__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.interview-classifications__item { display: flex; align-items: baseline; gap: 0.75em; max-width: 100%; }
.interview-classifications__item dt { flex: 0 0 4em; }
.interview-classifications__item dd { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; }
.interview-classifications__term { padding: 3px 8px; border: 1px solid #bccbd3; border-radius: 5px; white-space: nowrap; }
.interview-meta-aligned { width: min(240px, calc(100% - 80px)); margin-left: auto; margin-right: 40px; }
.interview-tags { padding-block: 24px; }
.interview-tags h2,
.interview-credit h2 { margin: 0 0 16px; color: #666; font-size: 13px; font-weight: 400; letter-spacing: 0.08em; }
.interview-tags ul { display: flex; flex-wrap: wrap; gap: 12px 8px; margin: 0; padding: 0; list-style: none; }
.interview-tags a { display: block; padding: 8px 12px; border: 1px solid var(--latest-accent); border-radius: 999px; color: inherit; font-size: 12px; line-height: 1.8; text-decoration: none; }
.interview-pagination a:hover,
.interview-tags a:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.interview-credit { padding-block: 32px 60px; font-size: 14px; line-height: 1.8; }
.interview-credit dl { margin: 0; }
.interview-credit dt { color: #666; }
.interview-credit dd { margin: 0; }
.interview-credit.interview-credit--acf { box-sizing: border-box; width: calc(100% - 40px); margin-inline: 20px; margin-bottom: 40px; padding: 24px 20px 48px; border-block: 1px solid #ddd; color: #666; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.interview-credit--acf .interview-credit__detail { margin: 0; }
.interview-credit.interview-credit--acf { border-top-color: transparent; }

.interview-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; font-size: 12px; line-height: 1.8; }
.interview-pagination a { color: #666; text-decoration: none; white-space: nowrap; }
.interview-pagination__separator { width: 1px; height: 1em; flex-shrink: 0; background: rgb(43 43 43 / 22%); }

.interview-adjacent.interview-meta-aligned { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: calc(100% - 40px); margin: 0 20px 64px; }
.interview-adjacent__item { min-width: 0; padding: 16px 0; color: #666; text-decoration: none; line-height: 1.8; }
.interview-adjacent__label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.interview-adjacent__item:last-child .interview-adjacent__label { justify-content: flex-end; }
.interview-adjacent__item:first-child .interview-adjacent__label::before,
.interview-adjacent__item:last-child .interview-adjacent__label::after { content: ""; flex: 0 0 32px; width: 32px; height: 8px; background-color: currentColor; -webkit-mask: url("../images/arrow.svg") center / contain no-repeat; mask: url("../images/arrow.svg") center / contain no-repeat; }
.interview-adjacent__item:first-child .interview-adjacent__label::before { transform: scaleX(-1); }
.interview-adjacent__title { display: block; font-size: 14px; overflow-wrap: anywhere; }
.interview-adjacent__item--disabled { color: #aaa; }
.interview-adjacent__item:focus-visible { outline: 1px solid #a4a8d4; outline-offset: 4px; }
@media (max-width: 767px) {
  .interview-adjacent.interview-meta-aligned { position: relative; }
  .interview-adjacent.interview-meta-aligned::before { content: ""; position: absolute; top: 16px; bottom: 16px; left: 50%; border-left: 1px solid #ddd; transform: translateX(-50%); pointer-events: none; }
  .interview-adjacent__item:first-child { padding-right: 8px; }
  .interview-adjacent__item:last-child { padding-left: 8px; }
}
@media (min-width: 768px) {
  .interview-adjacent.interview-meta-aligned { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: space-between; width: min(calc(100% - 2 * var(--article-outer-space)), 75rem); margin-inline: auto; }
}

.interview-related { padding-block: 50px 100px; }
.interview-related > h2 { margin: 0 20px 64px; font-family: var(--font-display); font-size: clamp(18px, 6.2vw, 26px); font-weight: 400; line-height: 1.8; text-align: center; white-space: nowrap; }
.interview-related__link { display: block; width: calc(100% - 80px); margin-inline: auto; color: inherit; text-decoration: none; }
.interview-related .person-card__photo > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* hoverはstyle.cssの共通.person-cardに揃える。 */

@media (min-width: 768px) {
  .interview-page {
    --article-chapter-gap: 96px;
    --article-measure: var(--about-text-measure);
    --article-wide-measure: 75rem;
    --article-outer-space: clamp(2rem, 6vw, 5rem);
    --profile-content-width: 580px;
  }

  .interview-hero { position: relative; min-height: 576px; padding: 28px 0 24px; }
  /* 001をフローから外しても、元の48px分を残しHEROの寸法を維持する。 */
  .interview-hero::before { content: ""; display: block; height: 48px; }
  /* 写真直下の本文上余白に置く。本文の100pxの上余白内に収める。 */
  .interview-hero__number {
    position: absolute;
    z-index: 1;
    top: calc(100% + 4px);
    right: clamp(24px, 3vw, 44px);
    width: max-content;
    margin: 0;
    font-size: clamp(72px, 6.25vw, 90px);
    color: #c6d4dc;
    background: linear-gradient(110deg, #bccbd3 0%, #ccdae1 55%, #dce8ed 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    user-select: none;
  }
  /* 図の実測よりも、ワイヤー注記の「左40%・写真右60%」を優先。 */
  .interview-hero__photo { position: absolute; top: 0; right: 0; width: 60%; height: 100%; aspect-ratio: auto; }
  .interview-hero__photo::after {
    background: radial-gradient(ellipse 100% 70% at 0% 85%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 20%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  }
  .interview-hero__intro { margin: 380px 5% 0; }
  .interview-hero__person { margin-top: 24px; }

  .interview-inset,
  .interview .interview-full-image,
  .interview-body--blocks > :not(.alignfull),
  .interview-body--blocks > .wp-block-image.alignfull { width: min(calc(100% - 2 * var(--article-outer-space)), var(--article-measure)); margin-inline: auto; }
  .interview-text { padding-block: 100px; }
  .interview .interview-full-image { padding-block: 40px; }
  .interview-full-image .interview-photo,
  .interview-body--blocks > .wp-block-image.alignfull img { aspect-ratio: 3 / 2; }
  .interview-full-image figcaption,
  .interview-body--blocks > .wp-block-image figcaption { margin-inline: 0; }
  .interview-image-text { display: grid; grid-template-columns: minmax(0, 480fr) minmax(0, 180fr); align-items: end; gap: 40px; padding-block: 40px; }
  .interview-image-text figure { width: 100%; }

  .interview-closing { flex-direction: row; justify-content: center; width: min(calc(100% - 2 * var(--article-outer-space)), var(--article-wide-measure)); margin-inline: auto; padding: 40px 40px 100px; gap: 70px; }
  .interview-closing__photo { width: 44%; max-width: 400px; flex-shrink: 0; }
  .interview-closing blockquote { min-width: 0; }
  .interview-profile,
  .interview-meta-aligned { width: min(calc(100% - 2 * var(--article-outer-space)), 75rem); margin-inline: auto; }
  .interview-profile { border-top: 0; padding: 40px 0 80px; }
  .interview-profile__inner { display: grid; grid-template-columns: 220px minmax(0, 320px); gap: 40px; width: min(100%, var(--profile-content-width)); margin: 0; }
  .interview-classifications.interview-meta-aligned { width: min(calc(100% - 2 * var(--article-outer-space)), 75rem); margin-inline: auto; padding-left: 260px; }
  .interview-credit.interview-credit--acf { position: relative; width: min(calc(100% - 2 * var(--article-outer-space)), 75rem); margin-inline: auto; padding-inline: 0; border-block-color: transparent; }
  .interview-credit.interview-credit--acf::before,
  .interview-credit.interview-credit--acf::after { content: ""; position: absolute; left: 0; width: min(100%, var(--profile-content-width)); border-top: 1px solid #ddd; pointer-events: none; }
  .interview-credit.interview-credit--acf::before { content: none; }
  .interview-credit.interview-credit--acf::after { bottom: -1px; width: 100%; }
  .interview-profile__text { margin-top: 0; }
  .interview-profile__inner > img.interview-photo { width: 220px; height: 220px; max-height: 220px; }
  .interview-related { width: min(calc(100% - 2 * var(--article-outer-space)), 75rem); margin-inline: auto; padding-block: 100px 180px; }
  .interview-related > h2 { margin-bottom: 100px; font-size: 28px; text-align: center; }
  .interview-related__link { width: min(100%, 400px); }
}

/* 対象ブロックのみ、既存main.jsの一度きりの表示処理を利用する。
   reduce時はstyle.cssの静止表示を使い、JS無効時も最初から表示する。 */
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .interview [data-reveal="interview"] {
    --reveal-y: 12px;
    transition: opacity 650ms ease-out, transform 650ms ease-out;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-reveal .interview [data-reveal="interview"] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* HERO試作：初回描画からCSSで隠し、JSの起動待ちによるちらつきを防ぐ。
   フロー・座標は動かさず、PCは左から右へ紙面を開く。reduceは静止表示。 */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .interview-hero {
    animation: article-hero-wipe 800ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .interview-hero__intro {
    animation: article-hero-fade 480ms ease-out 220ms both;
  }
  .interview-hero__number {
    animation: article-hero-fade 280ms ease-out 560ms both;
  }
}

@keyframes article-hero-wipe {
  /* HERO外の001もマスク範囲に含め、最後のフェードを切らない。 */
  from { clip-path: inset(0 100% -100px 0); }
  to { clip-path: inset(0 0 -100px 0); }
}

@keyframes article-hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* SP HEROのみ。001の既存ボックスは変えず、文字幅にグラデーションを合わせる。 */
@media (max-width: 767px) {
  .interview-closing__photo { width: min(280px, 100%); }
  .interview-profile__inner > img.interview-photo { width: 200px; height: 200px; max-height: 200px; }
  .interview-hero__intro h1 { line-height: 1.3; margin-bottom: 24px; }
  .interview-hero__subtitle { font-size: 0.9em; line-height: 1.3; letter-spacing: 0; }
  .interview-hero__person { margin-top: 32px; margin-bottom: 40px; }
  .interview-hero__number {
    position: relative;
    top: -12px;
    color: #c6d4dc;
    background: linear-gradient(110deg, #bccbd3 0%, #ccdae1 55%, #dce8ed 100%);
    background-size: 3ch 100%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* CSSの初回描画から適用。位置を動かさず、840ms以内にすべて表示する。 */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .interview-hero__photo {
    animation: article-hero-photo-wipe-sp 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .interview-hero__intro h1 {
    animation: article-hero-fade 300ms ease-out 480ms both;
  }
  .interview-hero__number,
  .interview-hero__person {
    animation: article-hero-fade 260ms ease-out 580ms both;
  }
}

@keyframes article-hero-photo-wipe-sp {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
