.ame-editorial-content-page .l-content {
	padding: 80px 20px 120px;
	background-color: var(--light-gray);
}

.ame-editorial-content-page .l-content__body {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	width: min(1108px, 100%);
	max-width: 1108px;
	padding-right: 0;
	padding-left: 0;
	margin: 0 auto;
	column-gap: 20px;
}

.ame-editorial-content-page .l-main {
	flex: 0 1 786px;
	width: auto;
	max-width: none;
	min-width: 0;
}

.ame-editorial-content-page .l-sidebar {
	display: flex;
	flex: 0 1 302px;
	flex-direction: column;
	width: auto;
	min-width: 0;
	margin-top: 0;
	row-gap: 48px;
}

.ame-editorial-content-page .l-main__body {
	width: 100%;
}

.ame-editorial-list-page .article-card a,
.ame-editorial-content-page .ame-content-sidebar a {
	color: inherit;
	text-decoration: none;
}

.ame-editorial-list-page .article-card .ame-card__terms a:hover,
.ame-editorial-list-page .article-card .ame-card__terms a:focus-visible {
	border-color: var(--black);
	background-color: var(--black);
	color: var(--white);
}

.ame-editorial-list-page .ame-archive-heading {
	display: flex;
	align-items: flex-end;
	min-height: 166px;
	padding: 0;
	margin: 0 0 32px;
	border-bottom: 1px solid #dcdcdc;
}

.ame-editorial-list-page .ame-archive-heading h1 {
	margin: 0;
	color: var(--ame-header-text, #282828);
	font-family: var(--ame-header-font, "Noto Sans JP", sans-serif);
	font-size: clamp(36px, 4.2857vw, 54px);
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: .02em;
}

.ame-archive-grid .article-card {
	margin: 0;
}

.ame-archive-pagination {
	margin-top: 48px;
}

.ame-archive-pagination .navigation {
	margin: 0;
}

.ame-editorial-single-page .l-main__body {
	padding: clamp(24px, 4vw, 48px);
	border-radius: 12px;
	background-color: var(--ame-header-background, #f6f6f7);
}

.ame-content-sidebar .category-panel {
	width: 100%;
}

/*
 * Posts index title.
 * Match the full-width title area used by the regular static pages.
 */
.ame-posts-index-page .l-content {
	padding: 0 0 120px;
}

.ame-posts-index-page #top_title_area {
	align-items: stretch;
	min-height: 0;
	padding: 0;
	margin: 0 0 clamp(64px, 8.5vw, 108px);
	overflow: visible;
	border-bottom: 1px solid #dcdcdc;
	background: transparent !important;
	text-align: left;
}

.ame-posts-index-page #top_title_area::before,
.ame-posts-index-page #top_title_area::after {
	content: none;
}

.ame-posts-index-page #top_title_area .p-topArea__body {
	display: flex;
	align-items: flex-end;
	width: 100%;
	max-width: calc(var(--ark-width--container) + (var(--ark-padding--container) * 2));
	min-height: 166px;
	padding-right: var(--ark-padding--container);
	padding-left: var(--ark-padding--container);
	margin: 0 auto;
	color: var(--ame-header-text, #282828);
	text-align: left;
	text-shadow: none;
}

.ame-posts-index-page #top_title_area .p-topArea__title {
	width: 100%;
	margin: 0;
	text-align: left;
}

.ame-posts-index-page #top_title_area .c-pageTitle__main {
	padding: 0;
	margin: 0;
	background: transparent !important;
	box-shadow: none;
	color: var(--ame-header-text, #282828);
	font-family: var(--ame-header-font, "Noto Sans JP", sans-serif);
	font-size: clamp(36px, 4.2857vw, 54px);
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: .02em;
	text-align: left;
	text-shadow: none;
}

.ame-posts-index-page #top_title_area .c-pageTitle__sub,
.ame-posts-index-page #top_title_area .p-topArea__excerpt,
.ame-posts-index-page #top_title_area .p-topArea__img {
	display: none !important;
}

.ame-posts-index-page .l-content__body {
	width: min(1108px, calc(100% - 40px));
}

/*
 * Single-post date and category labels.
 */
.ame-editorial-single-page .ame-single-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 16px;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.ame-editorial-single-page .ame-single-date {
	display: block;
	flex: 0 0 auto;
	margin: 0;
	color: var(--dark-gray);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: .02em;
}

.ame-editorial-single-page .ame-single-meta .ame-card__terms {
	margin: 0;
}

.ame-editorial-single-page .ame-single-meta .ame-card__terms a {
	text-decoration: none;
}

.ame-editorial-single-page .ame-single-meta--footer {
	margin-top: 0;
}

/*
 * Automatic table of contents for single posts.
 */
.ame-editorial-single-page .ame-auto-toc {
	width: 100%;
	padding: 40px 44px;
	margin: clamp(52px, 7vw, 78px) 0 0;
	border: 1px solid rgb(35 31 32 / 12%);
	border-top: 3px solid #8031d0;
	background-color: var(--white, #fff);
	box-shadow: 0 10px 30px rgb(24 27 35 / 4%);
	color: var(--black, #222);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	box-sizing: border-box;
}

.ame-editorial-single-page .ame-auto-toc__title {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	margin: 0 0 20px;
	border: 0;
	color: var(--black, #222);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .075em;
}

.ame-editorial-single-page .ame-auto-toc__title::before {
	flex: 0 0 4px;
	width: 4px;
	height: 1.35em;
	border-radius: 2px;
	background-color: #8031d0;
	content: "";
}

.ame-editorial-single-page .ame-auto-toc__list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.ame-editorial-single-page .ame-auto-toc__item {
	position: relative;
	padding: 0 0 0 15px;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: .02em;
}

.ame-editorial-single-page .ame-auto-toc__item:last-child {
	margin-bottom: 0;
}

.ame-editorial-single-page .ame-auto-toc__item::before {
	position: absolute;
	top: .62em;
	left: 2px;
	width: 6px;
	height: 6px;
	background-color: #8031d0;
	content: "";
}

.ame-editorial-single-page .ame-auto-toc__item--h3 {
	margin-left: 24px;
	color: #555;
}

.ame-editorial-single-page .ame-auto-toc__item--h3::before {
	border: 1px solid #8031d0;
	background-color: transparent;
	box-sizing: border-box;
}

.ame-editorial-single-page .ame-auto-toc a {
	color: inherit;
	text-decoration: none;
	transition: color .2s ease;
}

.ame-editorial-single-page .ame-auto-toc a:hover,
.ame-editorial-single-page .ame-auto-toc a:focus-visible {
	color: #8031d0;
}

.ame-editorial-single-page .ame-auto-toc a:focus-visible {
	outline: 2px solid rgb(128 49 208 / 28%);
	outline-offset: 3px;
}

.ame-editorial-single-page .p-entry__content h2:not(.ame-auto-toc__title) {
	padding-bottom: clamp(14px, 2vw, 18px);
	border-bottom: 1px solid rgb(35 31 32 / 20%);
	scroll-margin-top: 120px;
}

.ame-editorial-single-page .p-entry__content h3 {
	scroll-margin-top: 120px;
}

/*
 * Author and related-post sections.
 */
.ame-editorial-single-page .ame-bottom-section__title {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 24px;
	color: var(--black);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
	font-size: clamp(21px, 2.2vw, 25px);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .08em;
}

.ame-editorial-single-page .ame-bottom-section__title::after {
	flex: 1 1 auto;
	height: 1px;
	background-color: #dcdcdc;
	content: "";
}

.ame-author-card {
	padding: 38px 34px 32px;
	border-radius: 8px;
	background-color: var(--white);
	box-shadow: 0 10px 30px rgb(24 27 35 / 6%);
	color: var(--black);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.ame-author-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.ame-author-card__identity {
	display: flex;
	align-items: center;
	min-width: 0;
}

.ame-author-card__avatar {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	margin: 0 20px 0 0;
}

.ame-author-card__avatar img {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.ame-author-card__identity-copy {
	min-width: 0;
}

.ame-author-card__name {
	display: block;
	color: var(--black);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
}

.ame-author-card__role {
	display: block;
	margin-top: 4px;
	color: var(--dark-gray);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: .02em;
}

.ame-author-card__role > * {
	margin: 0;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

.ame-author-card__archive-link {
	position: relative;
	z-index: 0;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	padding: 12px 26px;
	overflow: hidden;
	border: 1px solid var(--black);
	border-radius: 4px;
	background-color: transparent;
	color: var(--black);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	transition: color .4s cubic-bezier(0, .55, .45, 1);
}

.ame-author-card__archive-link::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--black);
	content: "";
	transform: translateY(102%);
	transition: transform .4s cubic-bezier(0, .55, .45, 1);
}

.ame-author-card__archive-link:hover,
.ame-author-card__archive-link:focus-visible {
	color: var(--white);
}

.ame-author-card__archive-link:hover::before,
.ame-author-card__archive-link:focus-visible::before {
	transform: translateY(0);
}

.ame-author-card__archive-link:focus-visible {
	outline: 3px solid rgb(128 49 208 / 26%);
	outline-offset: 3px;
}

.ame-author-card__description {
	margin: 26px 0 0;
	color: var(--black);
	font-size: 15px;
	font-weight: 400;
	line-height: 2.1;
	letter-spacing: .05em;
}

.ame-editorial-single-page .ame-related-grid {
	width: 100%;
	max-width: 100%;
}

.ame-editorial-single-page .ame-related-grid .article-card {
	max-width: 100%;
	margin: 0;
}

.ame-editorial-single-page .ame-related-grid a {
	color: inherit;
	text-decoration: none;
}

.ame-editorial-single-page .ame-related-grid .ame-card__terms a:hover,
.ame-editorial-single-page .ame-related-grid .ame-card__terms a:focus-visible {
	border-color: var(--black);
	background-color: var(--black);
	color: var(--white);
}

@media (max-width: 800px) {
	.ame-editorial-content-page .l-content {
		padding: 64px 20px 80px;
	}

	.ame-editorial-content-page .l-content__body {
		display: flex;
		flex-direction: column;
		row-gap: 64px;
	}

	.ame-editorial-content-page .l-main,
	.ame-editorial-content-page .l-sidebar {
		flex-basis: auto;
		width: 100%;
	}

	.ame-editorial-content-page .l-sidebar {
		margin-top: 0;
	}

	.ame-editorial-list-page .ame-archive-heading {
		min-height: 132px;
		margin-bottom: 24px;
	}

	.ame-editorial-list-page .ame-archive-heading h1 {
		font-size: clamp(28px, 8vw, 36px);
		line-height: 1.5;
	}

	.ame-posts-index-page .l-content {
		padding: 0 0 80px;
	}

	.ame-posts-index-page #top_title_area {
		margin-bottom: 56px;
	}

	.ame-posts-index-page #top_title_area .p-topArea__body {
		min-height: 132px;
	}

	.ame-posts-index-page #top_title_area .c-pageTitle__main {
		font-size: clamp(28px, 8vw, 36px);
		line-height: 1.5;
	}

	.ame-posts-index-page .l-content__body {
		width: min(1108px, calc(100% - 40px));
	}

	.ame-editorial-single-page .ame-auto-toc {
		padding: 32px;
	}
}

@media (max-width: 480px) {
	.ame-editorial-content-page .l-content {
		padding: 52px 14px 64px;
	}

	.ame-editorial-single-page .l-main__body {
		padding: 22px 18px;
	}

	.ame-posts-index-page .l-content {
		padding: 0 0 64px;
	}

	.ame-posts-index-page .l-content__body {
		width: min(1108px, calc(100% - 28px));
	}

	.ame-editorial-single-page .ame-bottom-section__title {
		gap: 12px;
		margin-bottom: 20px;
		font-size: 20px;
	}

	.ame-editorial-single-page .ame-auto-toc {
		padding: 26px 22px;
		margin-top: 44px;
	}

	.ame-editorial-single-page .ame-auto-toc__title {
		font-size: 20px;
	}

	.ame-editorial-single-page .ame-auto-toc__item {
		font-size: 14px;
	}

	.ame-editorial-single-page .ame-auto-toc__item--h3 {
		margin-left: 18px;
	}

	.ame-author-card {
		padding: 26px 22px;
	}

	.ame-author-card__header {
		align-items: stretch;
		flex-direction: column;
		gap: 22px;
	}

	.ame-author-card__avatar {
		flex-basis: 58px;
		width: 58px;
		height: 58px;
		margin-right: 16px;
	}

	.ame-author-card__avatar img {
		width: 58px;
		height: 58px;
	}

	.ame-author-card__name {
		font-size: 18px;
	}

	.ame-author-card__archive-link {
		width: 100%;
		min-width: 0;
	}

	.ame-author-card__description {
		margin-top: 22px;
		font-size: 14px;
		line-height: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ame-author-card__archive-link,
	.ame-author-card__archive-link::before {
		transition: none;
	}
}
