.news-detail {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
}

.article-title {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 20px;
}

.article-inner-title {
	font-size: 24px;
	font-weight: 700;
	margin-top: 50px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: solid 1px #444;
}

.article-title .date-tag {
	display: flex;
	gap: 20px;
	width: 100%;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: solid 1px var(--key-blue);
	align-items: center;
}

.news-date {
	color: var(--key-blue);
	font-size: 14px;
	font-weight: 600;
}

.news-tag {
	padding: 3px 12px;
	background: var(--key-grn);
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	border-radius: 6px;
}

.news-detail p {
	font-size: 18px;
	margin-bottom: 20px;
}

.news-detail a {
	text-decoration: underline;
	color: var(--key-blue);
	line-height: 1.8;
	word-break: break-all;
	overflow-wrap: break-word;
}

.news-detail a:hover {
	text-decoration: none;
}

/* 動画埋め込み（YouTube等のoEmbed） */
.news-detail .wp-block-embed,
.news-detail figure.wp-embed-aspect-16-9 {
	width: 100%;
	max-width: 720px;
	margin: 20px auto;
}

.news-detail iframe {
	display: block;
	width: 100%;
	max-width: 720px;
	aspect-ratio: 16 / 9;
	height: auto;
	margin: 20px auto;
}

.news-detail figure {
	margin: 20px auto;
	padding: 20px 0;
}

.news-detail figure figcaption {
	font-size: 14px;
	padding: 10px 0;
}

/* テーブルブロックはfigureで包まれるが、画像figureとは扱いを分ける */
.news-detail figure.wp-block-table {
	width: 100%;
	margin: 20px 0;
	padding: 0;
	overflow-x: auto;
}

/* 画像（クラシックエディタ形式の裸imgを含む） */
.news-detail img {
	max-width: 100%;
	height: auto;
}

.news-detail p > img:only-child:not(.alignleft):not(.alignright) {
	display: block;
	margin: 20px 0;
}

.news-detail .alignleft {
	float: left;
	margin: 8px 24px 16px 0;
}

.news-detail .alignright {
	float: right;
	margin: 8px 0 16px 24px;
}

.news-detail .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.news-detail .wp-caption {
	max-width: 100%;
	margin: 20px auto;
}

.news-detail .wp-caption img {
	display: block;
	width: 100%;
}

.news-detail .wp-caption.alignleft,
.news-detail .wp-caption.alignright {
	max-width: 45%;
}

.news-detail .wp-caption-text {
	font-size: 14px;
	color: #555;
	padding: 10px 0;
}

.act-list {
	display: flex;
	gap: 30px;
	padding: 20px 0 40px;
}

.act-list div {
	width: calc((100% - 30px * 3) / 4);
}

/* Gutenbergブロック対応 */
.news-detail h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 50px 0 20px;
	padding-bottom: 10px;
	border-bottom: solid 1px #444;
}

.news-detail>h2.article-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 20px;
	border: none;
}

.news-detail h3 {
	font-size: 24px;
	font-weight: 700;
	margin-top: 50px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: solid 1px #444;
}

.news-detail h4 {
	font-size: 20px;
	font-weight: 700;
	margin: 40px 0 16px;
}

.news-detail h5,
.news-detail h6 {
	font-size: 18px;
	font-weight: 700;
	margin: 30px 0 12px;
}

/* リスト（Gutenbergのリストブロック .wp-block-list のみを対象。cast-grid等の独自UIリストは対象外） */
.news-detail ul.wp-block-list,
.news-detail ol.wp-block-list,
.news-detail .wp-block-list ul,
.news-detail .wp-block-list ol {
	margin: 20px 0;
	padding-left: 1.6em;
	list-style: none;
}

.news-detail .wp-block-list li {
	position: relative;
	padding-left: 1.6em;
	font-size: 18px;
	line-height: 1.8;
	margin-bottom: 10px;
}

.news-detail .wp-block-list li:last-child {
	margin-bottom: 0;
}

/* 箇条書き：キーカラーの角丸ダイヤ */
.news-detail ul.wp-block-list > li::before,
.news-detail .wp-block-list ul > li::before {
	content: "";
	position: absolute;
	left: 0.15em;
	top: 0.72em;
	width: 6px;
	height: 6px;
	background: var(--key-blue);
	border-radius: 2px;
	transform: rotate(45deg);
}

/* 番号付き：キーカラーの太字ナンバリング */
.news-detail ol.wp-block-list,
.news-detail .wp-block-list ol {
	counter-reset: fw-list;
}

.news-detail ol.wp-block-list > li,
.news-detail .wp-block-list ol > li {
	counter-increment: fw-list;
	padding-left: 1.8em;
}

.news-detail ol.wp-block-list > li::before,
.news-detail .wp-block-list ol > li::before {
	content: counter(fw-list) ".";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--key-blue);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.news-detail .wp-block-list ul,
.news-detail .wp-block-list ol {
	margin: 10px 0 0;
}

/* ネストしたリスト（深さに関わらず）は控えめなマーカーに */
.news-detail .wp-block-list li ul > li::before {
	background: none;
	border: 1.5px solid var(--key-blue);
	width: 5px;
	height: 5px;
}

.news-detail .wp-block-list li ol > li::before {
	color: #555;
}

/* 目次（AIOSEO Table of Contents） */
.news-detail .wp-block-aioseo-table-of-contents {
	margin: 20px 0;
	padding: 20px;
	background: #f4f4ff;
	border: 1px dashed var(--key-blue);
	border-radius: 10px;
}

.news-detail .wp-block-aioseo-table-of-contents ul {
	margin: 0;
}

.news-detail .wp-block-aioseo-table-of-contents li {
	margin-bottom: 8px;
}

.news-detail .wp-block-aioseo-table-of-contents li:last-child {
	margin-bottom: 0;
}

.news-detail .aioseo-toc-item {
	color: var(--key-blue);
	text-decoration: underline;
	font-weight: 600;
}

.news-detail .aioseo-toc-item:hover {
	text-decoration: none;
}

/* 引用 */
.news-detail blockquote {
	margin: 20px 0;
	padding: 20px 24px;
	background: #f4f4ff;
	border-left: solid 4px var(--key-blue);
}

.news-detail blockquote p {
	margin-bottom: 10px;
}

.news-detail blockquote p:last-child {
	margin-bottom: 0;
}

.news-detail blockquote cite {
	display: block;
	margin-top: 10px;
	font-size: 14px;
	color: #555;
	font-style: normal;
}

/* 詳細（開閉ブロック） */
.news-detail details {
	margin: 20px 0;
	border: solid 1px var(--key-blue);
	border-radius: 10px;
	overflow: hidden;
}

.news-detail summary {
	position: relative;
	padding: 16px 48px 16px 20px;
	background: #f4f4ff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	list-style: none;
}

.news-detail summary::-webkit-details-marker {
	display: none;
}

.news-detail summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 10px;
	height: 10px;
	margin-top: -7px;
	border-right: solid 2px var(--key-blue);
	border-bottom: solid 2px var(--key-blue);
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.news-detail summary:hover {
	background: #eaeaff;
}

.news-detail details[open] summary::after {
	margin-top: -3px;
	transform: rotate(-135deg);
}

.news-detail details > :not(summary) {
	padding: 0 20px;
}

.news-detail summary + * {
	margin-top: 16px;
}

.news-detail details > :not(summary):last-child {
	margin-bottom: 0;
	padding-bottom: 20px;
}

/* テーブル */
.news-detail table {
	width: 100%;
	margin: 20px 0;
	border-collapse: collapse;
	font-size: 16px;
	overflow-x: auto;
}

.news-detail table th,
.news-detail table td {
	padding: 12px 16px;
	border: solid 1px #ddd;
	text-align: left;
}

.news-detail table th {
	background: var(--key-blue);
	color: #fff;
	font-weight: 700;
}

.news-detail table tr:nth-child(even) td {
	background: #f7f7f7;
}

/* Q&A アコーディオン */
.news-detail .qa-accordion {
	margin: 20px 0;
}

.news-detail .qa-accordion dl {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.news-detail .qa-accordion dt {
	display: flex;
	gap: 20px;
	position: relative;
	align-items: center;
	font-weight: 700;
}

.news-detail .qa-accordion dt p {
	width: calc(100% - 80px);
	margin: 0;
}

.news-detail .qa-accordion dt:before {
	content: "Q";
	display: inline-flex;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	background: var(--key-blue);
	color: #fff;
	font-size: 36px;
	font-weight: 700;
	justify-content: center;
	align-items: center;
	font-family: Arial, Helvetica, sans-serif;
}

.news-detail .qa-accordion dd {
	display: flex;
	gap: 20px;
	position: relative;
	align-items: center;
	font-weight: 500;
}

.news-detail .qa-accordion dd p {
	width: calc(100% - 80px);
	margin: 0;
}

.news-detail .qa-accordion dd:before {
	content: "A";
	display: inline-flex;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	background: #fff;
	color: var(--key-grn);
	font-size: 36px;
	font-weight: 700;
	justify-content: center;
	align-items: center;
	font-family: Arial, Helvetica, sans-serif;
}

.news-detail .qa-accordion .qa-accordion__toggle-icon {
	display: none;
}

/* 区切り線 */
.news-detail hr {
	margin: 40px 0;
	border: none;
	border-top: solid 1px #444;
}

/* ボタンブロック */
.news-detail .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 20px 0;
}

.news-detail .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border-radius: 48px;
	background: var(--key-blue);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.news-detail .wp-block-button__link:hover {
	opacity: 0.8;
	text-decoration: none;
}

.act-list div img {
	width: 100%;
}

/* 出演モデル一覧ブロック（freewave/cast-list） */
.news-detail .cast-grid {
	margin: 20px 0 40px;
}

.news-detail .cast-grid__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.news-detail .cast-grid__item {
	margin: 0;
}

.news-detail .cast-grid__link {
	display: block;
	text-decoration: none;
}

.news-detail .cast-grid__link:hover {
	opacity: 0.8;
}

.cast-grid__photo {
	display: block;
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
}

.news-detail .cast-grid__name {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	line-height: 1.5;
	color: #000;
}

.news-detail .cast-grid__note {
	margin: 2px 0 0;
	font-size: 14px;
	font-weight: 400;
	text-align: center;
	line-height: 1.5;
	color: #000;
}

/* 執筆者ブロック（freewave/author-box） */
.news-detail .author-box {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin: 20px 0 40px;
	padding: 24px;
	background: #f7f9fb;
	border-radius: 6px;
}

.news-detail .author-box__photo {
	display: block;
	width: 300px;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.news-detail .author-box__name {
	display: inline-block;
	font-size: 16px;
	font-weight: 700;
	color: var(--key-blue);
	text-decoration: none;
	border-bottom: 1px solid var(--key-blue);
}

.news-detail .author-box__name:hover {
	opacity: 0.8;
}

.news-detail .author-box__bio {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: #222;
}

/* ページネーションのスタイルは style.css の .pagination__list / .pagination__link を使う */

/* ===== レスポンシブ（詳細ページ） ===== */
@media (max-width: 1080px) {
	.act-list {
		flex-wrap: wrap;
		gap: 20px;
	}

	.act-list div {
		width: calc((100% - 20px) / 2);
	}
}

@media (max-width: 768px) {
	:root {
		/* 記事タイトル（h2 要素）→ デザインシステムの --h2 に追従 */
		--article-title-size: var(--h2);
		--article-title-lh: 1.5;

		/* 記事内見出し（h2/h3）→ --h3 に追従（≤576px で自動的に 18px に収束） */
		--article-heading-size: var(--h3);
		--article-heading-mt: var(--space-y-lg);
		--article-heading-mb: var(--space-y-ms);
		--article-heading-pb: var(--space-y-sm);

		/* 本文テキスト */
		--article-body-lh: 1.85;
		--article-body-mb: 1.1em;

		/* メタ情報エリア（日付・タグ行）の横方向 gap と下 padding */
		--article-meta-gap: var(--space-x-sm);
		--article-meta-pb: var(--space-y-ms);

		/* 画像・動画ブロックの縦マージン */
		--article-media-my: var(--space-y-ms);
	}

	.article-title {
		font-size: var(--article-title-size);
		line-height: var(--article-title-lh);
	}

	.news-detail>h2.article-title {
		font-size: var(--article-title-size);
		line-height: var(--article-title-lh);
		margin: 0 0 var(--space-y-ms);
	}

	.article-title .date-tag {
		gap: var(--article-meta-gap);
		padding-bottom: var(--article-meta-pb);
		margin-bottom: var(--article-meta-pb);
		flex-wrap: wrap;
	}

	.news-date {
		font-size: var(--s-text);
	}

	.news-tag {
		font-size: var(--s-text);
		padding: var(--space-y-2xs) var(--space-x-sm);
	}

	.article-inner-title,
	.news-detail h2,
	.news-detail h3 {
		font-size: var(--article-heading-size);
		margin-top: var(--article-heading-mt);
		margin-bottom: var(--article-heading-mb);
		padding-bottom: var(--article-heading-pb);
	}

	.news-detail p {
		font-size: var(--text);
		line-height: var(--article-body-lh);
		margin-bottom: var(--article-body-mb);
	}

	.news-detail p.is-blank-row {
		margin-bottom: 0;
	}

	.news-detail p.is-blank-row + * {
		margin-top: 0;
	}

	.news-detail *:has( + p.is-blank-row) {
		margin-bottom: 0;
	}
	
	.news-detail figure {
		width: 100%;
		margin: var(--article-media-my) auto;
		padding: var(--space-y-sm) 0;
	}

	.news-detail figure figcaption {
		font-size: var(--s-text);
		padding: var(--space-y-xs) 0;
	}

	.news-detail iframe {
		margin: var(--article-media-my) auto;
	}

	.news-detail h4 {
		font-size: var(--text);
		margin-top: var(--article-heading-mt);
		margin-bottom: var(--space-y-sm);
	}

	.news-detail h5,
	.news-detail h6 {
		font-size: var(--s-text);
		margin-top: var(--space-y-sm);
		margin-bottom: var(--space-y-xs);
	}

	.news-detail p > img:only-child:not(.alignleft):not(.alignright) {
		margin: var(--article-media-my) 0;
	}

	.news-detail ul,
	.news-detail ol {
		margin: var(--article-media-my) 0;
	}

	.news-detail li {
		font-size: var(--text);
		line-height: var(--article-body-lh);
		margin-bottom: var(--space-y-xs);
	}

	.news-detail blockquote {
		margin: var(--article-media-my) 0;
		padding: var(--space-y-sm) var(--space-x-sm);
	}

	.news-detail details {
		margin: var(--article-media-my) 0;
	}

	.news-detail summary {
		padding: var(--space-y-sm) calc(var(--space-x-sm) * 2 + 10px) var(--space-y-sm) var(--space-x-sm);
		font-size: var(--text);
	}

	.news-detail summary::after {
		right: var(--space-x-sm);
	}

	.news-detail details > :not(summary) {
		padding: 0 var(--space-x-sm);
	}

	.news-detail details > :not(summary):last-child {
		padding-bottom: var(--space-y-sm);
	}

	.news-detail .wp-block-aioseo-table-of-contents {
		margin: var(--article-media-my) 0;
		padding: var(--space-y-sm) var(--space-x-sm);
	}

	.news-detail table th,
	.news-detail table td {
		padding: var(--space-y-xs) var(--space-x-sm);
		font-size: var(--s-text);
	}

	.news-detail hr {
		margin: var(--space-y-lg) 0;
	}

	.news-detail .wp-block-button__link {
		width: 100%;
		padding: var(--space-y-sm) var(--space-x-sm);
	}

	.news-detail .qa-accordion dl {
		gap: 24px;
	}

	.news-detail .qa-accordion dt,
	.news-detail .qa-accordion dd {
		gap: 14px;
	}

	.news-detail .qa-accordion dt {
		align-items: flex-start;
		cursor: pointer;
	}

	.news-detail .qa-accordion dt:before,
	.news-detail .qa-accordion dd:before {
		width: auto;
		height: 2em;
		aspect-ratio: 1;
		font-size: min(17px, calc(17 / 14 * 1em));
		align-items: center;
	}

	.news-detail .qa-accordion dt p,
	.news-detail .qa-accordion dd p {
		width: auto;
		flex: 1;
	}

	.news-detail .qa-accordion .qa-accordion__toggle-icon {
		display: inline-block;
		margin-left: auto;
		flex-shrink: 0;
		font-size: 14px;
		color: var(--key-blue);
		transition: transform 0.3s ease;
	}

	.news-detail .qa-accordion dt.is-open .qa-accordion__toggle-icon {
		transform: rotate(180deg);
	}

	.news-detail .qa-accordion dd {
		display: none;
	}

	.news-detail .qa-accordion dt.is-open + dd {
		display: flex;
	}

	/* リストのgap（--block-list-gap-ym）に`.--space-y-area`を使っているので、それより広い`.--space-y-section`になる */
	.pagination__list {
		margin: var(--space-y-section) auto var(--space-y-sm);
		padding: 0;
	}
}

@media (max-width: 768px) {
	.news-detail .cast-grid__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.news-detail .cast-grid__name {
		font-size: var(--text);
	}

	.news-detail .author-box {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.act-list {
		gap: 12px;
	}

	.act-list div {
		width: calc((100% - 12px) / 2);
	}

	.news-detail .cast-grid__list {
		gap: 12px;
	}
}