/* サイエントーク エピソードページ（B改デザイン） */
/* 文字のデータ（CorporateLogo）はサイト共通の fonts.css から読む（必要な字だけ読み込む） */

:root {
	--ste-bg: #2ebbcf;
	--ste-ink: #07323f;
	--ste-deep: #04303d;
	--ste-panel: #ffffff;
	--ste-soft: #bfe6ec;
	--ste-accent: #fff200;
	--ste-line: #c3ccd0;
	--ste-text: #1c2b30;
}

body.single-episode,
body.post-type-archive-episode,
body.tax-episode_tag,
body.tax-episode_season {
	background: var(--ste-bg);
}

.ste {
	max-width: 1040px;
	margin: 0 auto;
	padding: 24px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
	color: var(--ste-text);
	font-size: 16px;
	line-height: 1.8;
	display: flex;
	flex-direction: column;
	gap: 32px;
}
.ste a { color: inherit; }
.ste h1, .ste h2, .ste-title, .ste-h2 { font-family: 'CorporateLogo', 'Hiragino Sans', 'Noto Sans JP', sans-serif; font-weight: 700; }

.ste-crumb { font-size: 13px; color: var(--ste-ink); display: flex; flex-wrap: wrap; gap: 6px; }
.ste-crumb a { text-decoration: none; }
.ste-crumb a:hover { text-decoration: underline; }

/* 見出しまわり */
.ste-hero { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.ste-cover img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 10px 0 var(--ste-ink); }
.ste-head { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ste-meta { margin: 0; font-size: 14px; color: var(--ste-ink); }
.ste-title { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.35; color: var(--ste-deep); text-wrap: balance; }
.ste-lead { margin: 0; font-size: 17px; color: var(--ste-ink); }

/* 白いパネル */
.ste-panel { background: var(--ste-panel); border-radius: 18px; padding: 24px 28px; min-width: 0; }
.ste-panel h2 { margin: 0 0 12px; font-size: 20px; color: var(--ste-deep); }
.ste-panel h2 small { font-size: 13px; color: #2a5a68; font-family: inherit; }
.ste-h2 { margin: 0 0 14px; font-size: 24px; color: var(--ste-deep); }
.ste-note { margin: -6px 0 10px; font-size: 13px; color: #2a5a68; }

/* 配信先 */
.ste-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.ste-badges a { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 99px; background: #fff; border: 1.5px solid rgba(4,48,61,.14); color: var(--ste-deep); text-decoration: none; font-size: 15px; line-height: 1.2; box-shadow: 0 3px 0 rgba(4,48,61,.22); transition: transform .2s, box-shadow .2s; }
.ste-badges img { width: 34px; height: 34px; display: block; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.ste-badges b { white-space: nowrap; }
.ste-badges a:hover { transform: translateY(-3px); box-shadow: 0 6px 0 rgba(4,48,61,.22); }
.ste-badges a:hover img { transform: rotate(-12deg) scale(1.1); }

/* 名言 */
.ste-quotes { background: var(--ste-ink); color: #fff; border-radius: 22px; padding: 28px; }
.ste-quotes .ste-h2 { color: var(--ste-accent); }
.ste-qmain { display: flex; gap: 18px; align-items: center; }
.ste-qtext { margin: 0; font-size: clamp(20px, 3vw, 28px); line-height: 1.5; font-family: 'CorporateLogo', sans-serif; font-weight: 700; }
.ste-qat { margin: 6px 0 0; font-size: 13px; color: #8ff0fa; }
.ste-qat a { color: #8ff0fa; }
.ste-qcards { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ste-qcard { background: #0d4453; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ste-say { display: flex; gap: 10px; align-items: flex-start; }
.ste-say.r { flex-direction: row-reverse; text-align: right; }
.ste-say b { font-weight: 500; background: #fff; color: var(--ste-text); border-radius: 14px; padding: 8px 12px; line-height: 1.6; }
.ste-face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ste-soft); }
.ste-face.sm { width: 40px; height: 40px; }
.ste-ini { display: inline-flex; align-items: center; justify-content: center; color: var(--ste-ink); font-weight: 700; font-size: 18px; }

/* チャプター・参考文献 */
.ste-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.ste-two > :only-child { grid-column: 1 / -1; }
.ste-chapters, .ste-refs, .ste-topics { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ste-chapters a { display: flex; gap: 12px; padding: 6px 8px; border-radius: 8px; text-decoration: none; }
.ste-chapters a:hover { background: var(--ste-soft); }
.ste-chapters span { font-variant-numeric: tabular-nums; color: #2a5a68; flex: none; min-width: 3.4em; }
.ste-refs { counter-reset: r; font-size: 14px; }
.ste-refs li { counter-increment: r; display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--ste-line); }
.ste-refs li::before { content: counter(r); color: #2a5a68; min-width: 1.6em; }
.ste-refs a { word-break: break-word; }
.ste-topics li::before { content: '・'; }

/* タグ */
.ste-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ste-tags a { padding: 4px 15px; border-radius: 99px; background: var(--ste-ink); color: #fff; text-decoration: none; font-size: 15px; transition: background .15s, color .15s; }
.ste-tags a:hover { background: var(--ste-accent); color: var(--ste-ink); }

/* 関連・一覧 */
.ste-rel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ste-rel a { background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s; }
.ste-rel a:hover { transform: translateY(-3px); }
.ste-rel img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.ste-rel span { padding: 10px 12px; font-size: 14px; line-height: 1.5; }

.ste-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ste-nav a { background: var(--ste-ink); color: #fff; padding: 10px 20px; border-radius: 99px; text-decoration: none; }
.ste-nav a:hover { background: var(--ste-accent); color: var(--ste-ink); }

.ste-count { margin: -20px 0 0; color: var(--ste-ink); }
.ste-search { display: flex; gap: 8px; }
.ste-search input[type=search] { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 99px; border: 2px solid var(--ste-ink); font-size: 16px; background: #fff; }
.ste-search button { padding: 12px 24px; border-radius: 99px; border: 0; background: var(--ste-ink); color: #fff; font-size: 16px; cursor: pointer; }
.ste-list { display: flex; flex-direction: column; gap: 8px; }
.ste-row { display: grid; grid-template-columns: 64px 5.5em 1fr auto; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 8px 16px 8px 8px; text-decoration: none; transition: transform .15s; }
.ste-row:hover { transform: translateX(3px); }
.ste-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; display: block; }
.ste-row-no { font-weight: 700; color: #2a5a68; }
.ste-row-t { min-width: 0; font-weight: 700; color: var(--ste-deep); }
.ste-row-d { font-size: 13px; color: #2a5a68; }
.ste-pager .nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.ste-pager .page-numbers { padding: 6px 14px; border-radius: 99px; background: #fff; text-decoration: none; }
.ste-pager .current { background: var(--ste-ink); color: #fff; }

@media (max-width: 760px) {
	.ste { gap: 24px; padding-top: 12px; }
	.ste-hero { grid-template-columns: 1fr; gap: 18px; }
	.ste-cover { max-width: 260px; }
	.ste-two { grid-template-columns: 1fr; }
	.ste-rel { grid-template-columns: repeat(2, 1fr); }
	.ste-panel, .ste-quotes { padding: 20px; }
	.ste-face { width: 56px; height: 56px; }
	.ste-row { grid-template-columns: 56px 1fr; gap: 4px 12px; }
	.ste-row img { width: 56px; height: 56px; grid-row: span 3; }
	.ste-row-d { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
	.ste * { transition: none !important; }
}

/* X でシェア */
.ste-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: -16px; }
.ste-share a { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 99px; background: #000; color: #fff; text-decoration: none; font-size: 15px; box-shadow: 0 4px 0 rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s; }
.ste-share a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.ste-share svg { width: 18px; height: 18px; fill: currentColor; }
.ste-share p { margin: 0; font-size: 13px; color: var(--ste-ink); }

/* 新しいサイトの枠の中で */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ste-page .gfoot { background: #07323f; }
