/*
 * 原典記事の表示だけを対象にする。
 * 会員管理やコメントの見た目は扱わない。
 */

.aa-author-mark {
	margin-top: 3em;
	padding-top: 0.75em;
	border-top: 1px solid #bdb8b0;
}

.aa-author-mark__name {
	margin: 0 0 1.5em;
	font-style: italic;
}

h2.aa-editor-note__title,
.wp-block-post-content h2.aa-editor-note__title {
	font-size: inherit;
}

.aa-source-captions {
	margin-top: 3em;
}

.aa-source-captions h2.aa-source-captions__title {
	margin-top: 0;
	margin-bottom: 1.5em;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
}

.aa-source-url,
.aa-source-url a {
	overflow-wrap: anywhere;
}

/* 本文に aa-author-mark がある原典記事だけ、タイトル直下の執筆者・カテゴリー欄を隠す。 */
.wp-block-group:has(+ .wp-block-post-content .aa-author-mark) {
	display: none;
}

/*
 * 2026-10-29 採用の記事ページ。
 * aa_fields_version が 1 の原典記事だけに適用する。
 */
body.aa-article {
	background: #f4f0ea;
	color: #364350;
}

body.aa-article .wp-block-post-content ~ .wp-block-group {
	display: none;
}

body.aa-article .aa-sheet {
	width: min(100%, 36em);
	max-width: none;
	margin: 0 auto;
	padding: 36px 20px 72px;
	color: #364350;
	font-size: 16px;
	font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

body.aa-article .aa-rail,
body.aa-article .aa-column {
	display: contents;
}

body.aa-article .aa-cats {
	display: none;
}

body.aa-article .aa-sheet .eyebrow {
	margin: 0 0 14px;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: 0.14em;
	color: #ae9d96;
}

body.aa-article .aa-sheet h1 {
	margin: 0;
	font-weight: 500;
	font-size: 25px;
	line-height: 1.55;
	letter-spacing: 0.04em;
}

body.aa-article .aa-sheet .legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em 0.9em;
	margin: 18px 0 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: 0.02em;
	color: #8d746c;
	order: 3;
}

body.aa-article .aa-sheet .eyebrow { order: 1; }
body.aa-article .aa-sheet h1 { order: 2; }
body.aa-article .aa-sheet .editor { order: 4; }
body.aa-article .aa-sheet .reading { order: 5; }
body.aa-article .aa-sheet .colophon { order: 6; }

body.aa-article .aa-sheet .legend .category {
	letter-spacing: 0.14em;
}

body.aa-article .aa-sheet .editor {
	margin: 2.2em 0 0;
	padding: 0 0 0 1em;
	border-left: 1px solid #c9b8b1;
}

body.aa-article .aa-sheet .editor-label {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 0.8em;
	margin: 0 0 0.8em;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: 0.12em;
	color: #ae9d96;
}

body.aa-article .aa-sheet .editor p:not(.editor-label),
body.aa-article .aa-sheet .body p {
	margin: 0 0 18px;
	font-size: 17px;
	line-height: 1.65;
	letter-spacing: 0.03em;
}

body.aa-article .aa-sheet .editor p.editor-label {
	margin: 0 0 1.15em;
	font-size: 18.27px;
	line-height: 1.9;
	letter-spacing: 0.03em;
}

body.aa-article .aa-sheet .captions p,
body.aa-article .aa-sheet .translator p {
	margin: 0 0 1.15em;
	font-size: 18.27px;
	line-height: 1.9;
	letter-spacing: 0.03em;
}

body.aa-article .aa-sheet .aa-author-mark {
	margin-top: 3em;
	padding-top: 0.75em;
	border-top: 1px solid #bdb8b0;
}

body.aa-article .aa-sheet .aa-author-mark__name {
	margin: 0 0 1.5em;
	font-size: 18.27px;
	font-style: italic;
	line-height: 1.6;
}

body.aa-article .aa-sheet .colophon {
	margin-top: 3em;
	padding-top: 1.5em;
	border-top: 1px solid #c9b8b1;
}

body.aa-article .aa-sheet .captions h2,
body.aa-article .aa-sheet .translator h2 {
	margin: 0 0 1.5em;
	font-size: 16.45px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.04em;
}

body.aa-article .aa-sheet .translator {
	margin-top: 2.4em;
}

body.aa-article .aa-sheet .source {
	margin: 0 0 0.8em;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 13px;
	line-height: 1.7;
	letter-spacing: 0.04em;
}

body.aa-article .aa-sheet .source a {
	color: inherit;
	overflow-wrap: anywhere;
	text-underline-offset: 0.25em;
	text-decoration-thickness: 1px;
	text-decoration-color: #c9b8b1;
}

body.aa-article .aa-cats-label {
	margin: 0 0 10px;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 11px;
	line-height: 1.6;
	letter-spacing: 0.14em;
	color: #ae9d96;
}

body.aa-article .aa-cats ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.aa-article .aa-cats li {
	margin: 0;
	padding: 0.4em 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: 12px;
	line-height: 1.6;
	letter-spacing: 0.04em;
	color: #8d746c;
}

body.aa-article .aa-cats a {
	color: inherit;
	text-decoration: none;
}

body.aa-article .aa-cats li.is-current {
	color: #364350;
	box-shadow: inset 2px 0 0 #c9b8b1;
	padding-left: 8px;
}

@media (min-width: 861px) {
	body.aa-article {
		--aa-group-shift: 33px;
	}

	body.aa-article .entry-content.has-global-padding {
		padding-left: 0;
		padding-right: 0;
	}

	body.aa-article .aa-sheet {
		margin-top: -40px;
	}
}

@media (min-width: 861px) and (max-width: 1099px) {
	body.aa-article .aa-sheet {
		width: 100%;
		max-width: none;
		margin: -40px 0 0;
		padding: 36px 0 72px calc(var(--aa-group-shift) * 2);
		display: grid;
		grid-template-columns: max-content 36em;
		column-gap: 64px;
		justify-content: center;
		align-items: start;
	}

	body.aa-article .aa-rail,
	body.aa-article .aa-column {
		display: block;
	}

	body.aa-article .aa-rail {
		grid-column: 1;
		grid-row: 1;
		align-self: stretch;
		display: flex;
		flex-direction: column;
		width: max-content;
	}

	body.aa-article .aa-column {
		grid-column: 2;
	}

	body.aa-article .aa-sheet .eyebrow,
	body.aa-article .aa-sheet h1,
	body.aa-article .aa-sheet .legend,
	body.aa-article .aa-sheet .editor,
	body.aa-article .aa-sheet .reading,
	body.aa-article .aa-sheet .colophon {
		order: 0;
	}

	body.aa-article .aa-sheet .legend {
		flex-direction: column;
		gap: 0.7em;
		margin: 0;
		padding-top: 2px;
	}

	body.aa-article .aa-cats {
		display: block;
		margin-top: 32px;
		padding-top: 14px;
		border-top: 1px solid #c9b8b1;
		position: sticky;
		top: 28px;
		max-height: calc(100vh - 40px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

@media (min-width: 1100px) {
	body.aa-article .aa-sheet {
		width: 100%;
		max-width: none;
		margin: -40px 0 0;
		padding: 36px 24px 72px;
		display: grid;
		grid-template-columns: calc((100% - 36em) / 2 + var(--aa-group-shift)) 36em max(0px, calc((100% - 36em) / 2 - var(--aa-group-shift)));
		column-gap: 0;
		align-items: start;
	}

	body.aa-article .aa-rail,
	body.aa-article .aa-column {
		display: block;
	}

	body.aa-article .aa-rail {
		grid-column: 1;
		grid-row: 1;
		justify-self: end;
		align-self: stretch;
		display: flex;
		flex-direction: column;
		width: max-content;
		max-width: calc(100% - 64px);
		margin-right: 64px;
	}

	body.aa-article .aa-column {
		grid-column: 2;
		grid-row: 1;
	}

	body.aa-article .aa-sheet .eyebrow,
	body.aa-article .aa-sheet h1,
	body.aa-article .aa-sheet .legend,
	body.aa-article .aa-sheet .editor,
	body.aa-article .aa-sheet .reading,
	body.aa-article .aa-sheet .colophon {
		order: 0;
	}

	body.aa-article .aa-sheet .legend {
		flex-direction: column;
		gap: 0.7em;
		margin: 0;
		padding-top: 2px;
		position: static;
	}

	body.aa-article .aa-cats {
		display: block;
		margin-top: 32px;
		padding-top: 14px;
		border-top: 1px solid #c9b8b1;
		position: sticky;
		top: 28px;
		max-height: calc(100vh - 40px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}
