/*
 * 固定ページ（モック Page.dc.html）
 * 本文の見た目（.entry-body）は components.css。ここでは見出し・目次・関連ページ。
 * お問い合わせ（/contact/）は contact.css（このファイルも一緒に読み込む）。
 */

.page-layout {
	padding-top: 40px;
}

/* 見出し：小さいラベル → 英字 → ページ名 */
.page-title-block {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 56px 0 48px;
	border-bottom: 1px solid var(--vnoco-rule);
}

.page-title-block__en {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(48px, 6vw, 72px);
	font-style: italic;
	font-weight: 800;
	line-height: 1;
	text-shadow: -2px 0 var(--wp--preset--color--pink), 2px 0 var(--wp--preset--color--cyan);
}

.page-title-block__title {
	margin: 6px 0 0;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.5;
}

/* 本文：左に目次（スクロールしても付いてくる）、右に本文 */
.page-body {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 64px;
	padding-top: 56px;
}

.page-article {
	flex: 1 1 560px;
	min-width: 0;
	max-width: 800px;
}

.page-body:not(.page-body--toc) .page-article {
	margin-inline: auto;
}

.toc {
	position: sticky;
	top: calc(var(--vnoco-header-height) + 16px);
	flex: 0 1 260px;
}

.toc__en {
	display: block;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--display);
	font-size: 14px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.08em;
}

.toc__list {
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--wp--preset--color--ink);
	list-style: none;
}

.toc__list a {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #e4e4ee;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.toc__no,
.toc-no {
	color: var(--vnoco-purple);
	font-family: var(--wp--preset--font-family--display);
	font-style: italic;
	font-weight: 800;
}

/* 目次の対象になった見出し：番号（紫）を前に付け、四角の印は付けない */
.entry-body .is-toc-heading {
	align-items: baseline;
	gap: 14px;
}

.entry-body .is-toc-heading::before {
	content: none;
}

.entry-body h2.is-toc-heading {
	font-size: 24px;
}

.entry-body .is-toc-heading:first-child {
	margin-top: 0;
}

.toc-no {
	font-size: 22px;
}

/* 目次の対象が h3 のとき（例：二次創作ガイドラインの「第1条」）は h2 と同じ見た目にする */
.entry-body h3.is-toc-heading {
	margin: 64px 0 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--wp--preset--color--ink);
	font-size: 24px;
}

.page-dates {
	margin: 48px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--vnoco-rule);
	color: var(--vnoco-mute);
	font-size: 14px;
	text-align: right;
}

/* 関連ページ */
.page-related {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 100px 0 40px;
}

.page-related__links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

/* 行のリンク（タイトル＋VIEW）。お問い合わせの「よくある質問」でも使う */
.link-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	box-sizing: content-box; /* モックどおり、高さ 64px の外側に線 1px */
	min-height: 64px;
	padding: 0 20px;
	border: 1px solid var(--vnoco-rule);
	background: var(--wp--preset--color--white);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.link-row:hover {
	background: var(--vnoco-hover-bg);
}

.link-row__en {
	flex: 0 0 auto;
	border-bottom: 2px solid var(--wp--preset--color--pink);
	font-family: var(--wp--preset--font-family--display);
	font-size: 13px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: 0.06em;
}

/* スマホ：モックは目次を本文の上に置くだけ（余白・文字の大きさは PC のまま） */
@media (max-width: 767px) {
	.toc {
		position: static;
		flex-basis: 100%;
	}
}
