/**
 * interview.css － インタビュー記事（日本語 / English タブ）
 *
 * PANCAKE のトーン（黒 + ロゴのオレンジ #FC9B03）。
 * Q&A の可読性・余白・写真の見せ方を整えています。
 * レスポンシブ対応（スマホ・PC）。
 */

:root {
	--pancake-orange: #FC9B03;
}

.pancake-interview {
	max-width: 820px;
	margin: 0 auto;
	padding: 32px 16px 64px;
}

/* ── ヒーロー画像 ─────────────────────────────────── */
.pancake-interview__hero {
	margin: 0 0 20px;
}

.pancake-interview__hero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.pancake-interview__head {
	margin-bottom: 12px;
}

/* ── 言語タブ ─────────────────────────────────────── */
.pancake-lang-tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #111;
	margin-bottom: 28px;
}

.pancake-lang-tab {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	/* Kadence の標準ボタン色（青）を確実に打ち消す */
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	border-radius: 0;
	cursor: pointer;
	padding: 12px 24px;
	font-weight: 800;
	font-size: .95rem;
	letter-spacing: .04em;
	color: #999;
	position: relative;
	transition: color .15s ease;
}

.pancake-lang-tab:hover {
	color: #111;
}

.pancake-lang-tab.is-active {
	color: #111;
}

/* アクティブタブの下にオレンジのバー */
.pancake-lang-tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;          /* 親の border-bottom に重ねる */
	height: 4px;
	background: var(--pancake-orange, #FC9B03);
}

.pancake-lang-tab:focus-visible {
	outline: 2px solid var(--pancake-orange, #FC9B03);
	outline-offset: 2px;
}

/* ── パネル ───────────────────────────────────────── */
.pancake-lang-panel[hidden] {
	display: none;
}

.pancake-interview__title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: .01em;
	margin: 0 0 22px;
}

/* 本文の基本タイポ（h1〜h6 / p / a / img / blockquote / list / table / pre・code 等）は
   style.css に一本化（.entry-content と共通）。ここではインタビュー固有の指定のみ残す。 */

/* ════════════════════════════════════════════════
   Q&A の可読性（インタビュー本文）
   ════════════════════════════════════════════════ */

/* 各ブロック（Q&Aペア・写真）の間隔 */
.pancake-interview__content .pancake-block {
	margin: 0 0 2.4em;
}

/* ── リード文（導入） ──
   最初のブロックの斜体を大きめのリードに。
   同内容で重複している太字は隠す。 */
.pancake-article > .pancake-text:first-child {
	margin-bottom: 2.8em;
	padding-bottom: 1.8em;
	border-bottom: 1px solid #e5e5e5;
}
.pancake-article > .pancake-text:first-child em {
	display: block;
	font-style: italic;
	font-size: 1.08rem;
	line-height: 1.95;
	color: #555;
}
.pancake-article > .pancake-text:first-child strong {
	display: none;   /* 斜体と同じ内容の重複表示を抑制 */
}

/* ── 質問（──で始まる先頭の strong）を独立した行に ──
   回答と同じ行に続いていたのを分離。
   文中の強調 <strong> には影響しない（先頭の strong だけ対象）。 */
.pancake-interview__content .pancake-text > strong:first-child {
	display: block;
	margin: 0 0 .65em;
	padding-left: 14px;
	border-left: 3px solid var(--pancake-orange, #FC9B03);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #111;
}

/* 回答内の段落 */
.pancake-interview__content .pancake-text > p {
	margin: 0 0 1.3em;
}
.pancake-interview__content .pancake-text > p:last-child {
	margin-bottom: 0;
}

/* ── 写真ブロック ── */
.pancake-interview__content .pancake-image {
	margin: 3em 0;
}
.pancake-interview__content .pancake-image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 4px;
}

/* ── YouTube / 動画の埋め込み：本文幅いっぱい × 16:9 ── */
.pancake-interview__content .pancake-embed,
.pancake-interview__content .pancake-video,
.pancake-interview__content .wp-block-embed,
.pancake-interview__content figure[class*="embed"] {
	width: 100%;
	margin: 3em 0;
}

.pancake-interview__content .wp-block-embed__wrapper {
	width: 100%;
}

/* iframe 自体を本文幅に合わせ、16:9 で高さを自動計算 */
.pancake-interview__content iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	margin: 0;
	border: 0;
	border-radius: 4px;
}

/* ── フッター ─────────────────────────────────────── */
.pancake-interview__foot {
	margin-top: 48px;
	text-align: center;
}

/* 既存テーマに .pancake-btn が無い場合の保険 */
.pancake-btn {
	display: inline-block;
	padding: 12px 24px;
	border: 2px solid #111;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	color: #111;
	transition: background .15s ease, color .15s ease;
}

.pancake-btn:hover {
	background: #111;
	color: var(--pancake-orange, #FC9B03);
}

/* ── スマホ ───────────────────────────────────────── */
@media (max-width: 768px) {
	.pancake-interview {
		padding: 20px 14px 48px;
	}
	.pancake-lang-tab {
		flex: 1;            /* 2タブを画面幅で等分 */
		padding: 12px 8px;
		text-align: center;
	}
	.pancake-interview__content .pancake-block {
		margin-bottom: 2em;
	}
	.pancake-interview__content .pancake-text > strong:first-child {
		font-size: 1.02rem;
	}
	.pancake-interview__content .pancake-image {
		margin: 2.2em 0;
	}
}