/** @format */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500&family=Noto+Sans+JP:wght@500&family=Noto+Sans:wght@500&display=swap");

.posts-archive {
	background: #000;
	color: #fff;
	padding: 144px 0 80px;

	@media screen and (max-width: 1024px) {
		padding-top: 104px;
	}
}

#content #main .posts-archive__heading {
	margin: 0 0 48px;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-weight: 500;
	font-size: 36px;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	padding-top: 0;
	background: none;

	@media screen and (max-width: 1024px) {
		font-size: 29px;
		margin-bottom: 32px;
	}
}

#content #main .posts-archive__heading-ja {
	display: block;
	margin-top: 8px;
	color: #fff;
	font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.04em;
	line-height: 1.6;

	@media screen and (max-width: 1024px) {
		font-size: 12px;
	}
}

#content #main .posts-archive__list {
	max-width: 1658px;
	margin-right: auto;
	margin-left: auto;

	@media screen and (max-width: 599px) {
		.four_box {
			width: 48.1% !important;
			margin-bottom: 24px !important;
		}

		.four_box:nth-child(even) {
			margin-left: 3.7%;
		}

		.four_box:nth-child(odd) {
			margin-left: 0;
		}
	}
}

#content #main.posts-archive .four_box .workstitle,
#content #main.posts-archive .four_box .workstitle.line02 {
	color: #fff;
	font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
	font-weight: 500;
	font-size: 17px !important;
	letter-spacing: 0.09em;
	line-height: 1.6;
	margin: 0 0 8px;
	text-align: left;
	padding-top: 0;

	@media screen and (max-width: 599px) {
		font-size: 13px !important;
		font-weight: 700;
		letter-spacing: 0.06em;
		padding-top: 0 !important;
		margin-bottom: 4px;
	}
}

#content #main.posts-archive .four_box .workstitle:before,
#content #main.posts-archive .four_box .workstitle.line02:before {
	display: none;
}

#content #main.posts-archive .four_box .posts-archive__date {
	margin: 0;
	color: #afafaf;
	font-family: Montserrat, sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.04em;
	line-height: 1.4;

	@media screen and (max-width: 599px) {
		font-size: 10px;
	}
}

#content #main.posts-archive .four_box .posts-archive__client {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
	color: #afafaf;
	font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.04em;
	line-height: 1.6;

	@media screen and (max-width: 599px) {
		font-size: 11px;
	}
}

#content #main.posts-archive .four_box .posts-archive__cat {
	display: inline-block;
	padding: 2px 6px;
	background: #fff;
	color: #000;
	font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.3;
}

#content #main.posts-archive .four_box p.pic {
	margin-bottom: 24px;

	@media screen and (max-width: 599px) {
		margin-bottom: 12px;
	}
}

.posts-archive .four_box p.pic img {
	width: 100%;
	height: auto;
	display: block;
	border: none;
}

.posts-archive__empty {
	color: #fff;
	text-align: center;
}

.posts-single {
	background: #000;
	color: #fff;
	padding-top: 65px;
}

.posts-single__layout {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	min-height: 70vh;
	clip-path: inset(0px);
	isolation: isolate;

	@media (min-width: 1025px) {
		display: grid;
		grid-template-columns: minmax(0, 914fr) minmax(0, 1006fr);
		align-items: start;
	}
}

.posts-single__lead,
.posts-single__rest,
.posts-single__visual {
	align-self: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.posts-single__visual {
	position: static;
	top: auto;
	left: auto;
	z-index: auto;
	height: auto;
	margin: 0;
	order: 2;
	overflow: hidden;

	img {
		display: block;
		width: 100%;
		height: auto;
		object-fit: contain;
	}

	@media (min-width: 1025px) {
		grid-column: 1;
		grid-row: 1 / span 2;
		position: fixed;
		top: 65px;
		left: 0;
		z-index: 1;
		align-self: auto;
		width: calc(100% * 914 / 1920);
		max-width: none;
		height: calc(100vh - 65px);
		order: 0;

		img {
			height: 100%;
			object-fit: cover;
		}
	}
}

.single-creative_post #content {
	z-index: auto;
	background-color: #000;

	@media (min-width: 1025px) {
		z-index: 1;
		background-color: transparent;
	}
}

.single-creative_post .consultation.category-page,
.single-creative_post .ad-bg-white,
.single-creative_post #footer {
	position: relative;
	z-index: 2;
}

.single-creative_post .ad-bg-white {
	background-color: #fff;
}

.single-creative_post .consultation.category-page,
.single-creative_post #footer {
	z-index: auto;
	background-color: #000;

	@media (min-width: 1025px) {
		z-index: 2;
	}
}

.single-creative_post #footer {
	margin-top: 0;
}

.posts-single__lead,
.posts-single__rest {
	padding-right: 6%;
	padding-bottom: 0;
	padding-left: 6%;

	@media (min-width: 1025px) {
		grid-column: 2;
		align-self: auto;
		width: auto;
		max-width: none;
		padding-right: 15%;
		padding-left: 15%;
		padding-bottom: 0;
	}
}

.posts-single__lead {
	order: 1;
	padding-top: 28px;

	@media (min-width: 1025px) {
		order: 0;
		padding-top: 120px;
	}
}

.posts-single__rest {
	order: 3;
	padding-top: 48px;
	padding-bottom: 48px;

	@media (min-width: 1025px) {
		order: 0;
		padding-bottom: 120px;
	}
}

#content #main .posts-single__lead,
#content #main .posts-single__meta,
#content #main .posts-single__title,
#content #main .posts-single__date {
	text-align: center !important;

	@media (min-width: 1025px) {
		text-align: left !important;
	}
}

#content #main .posts-single__meta {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0;
	line-height: 1.2;

	@media (min-width: 1025px) {
		justify-content: flex-start;
		gap: 20px;
		font-size: 14px;
		margin-bottom: 40px;
	}
}

#content #main .posts-single__cat {
	display: inline-block;
	margin-left: 0;
	padding: 2px 6px;
	background: #fff;
	color: #000;
	font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.6;
	vertical-align: middle;

	@media (min-width: 1025px) {
		margin-left: 0;
		font-size: 11px;
	}
}

#content #main .posts-single__title {
	margin: 0 0 4px;
	color: #fff;
	font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
	font-weight: 500;
	font-size: 24px;
	letter-spacing: 0.04em;
	line-height: 1.4;
	padding-top: 0;
	background: none;

	@media (min-width: 1025px) {
		font-size: 29px;
		line-height: 1.7;
		margin-bottom: 24px;
	}
}

#content #main .posts-single__client {
	margin: 0;
	color: #fff;
	font-family: "Noto Sans CJK JP", "Noto Sans JP", sans-serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.04em;
	line-height: 1.2;

	@media (min-width: 1025px) {
		font-size: 17px;
		line-height: 1.2;
	}
}

#content #main .posts-single__date {
	margin: 0 0 24px;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0;
	line-height: 1.2;

	@media (min-width: 1025px) {
		font-size: 14px;
		margin-bottom: 28px;
	}
}

#content #main .posts-single__content,
#content #main .posts-single__content p {
	color: #fff;
	font-family: "Noto Sans", "Noto Sans JP", sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 2.1;

	@media (min-width: 1025px) {
		font-size: 15px;
		line-height: 2;
	}
}

#content #main .posts-single__content p {
	margin: 0 0 0;
}

#content #main .posts-single__content p + p {
	margin-top: 0;
}

#content #main .posts-single__content a {
	color: #fff;
}

.posts-single__related {
	margin-top: 56px;
	text-align: center;

	@media (min-width: 1025px) {
		text-align: left;
	}
}

#content #main .posts-single__related-text {
	margin: 0 0 8px;
	color: #fff;
	font-family: "Noto Sans", "Noto Sans JP", sans-serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.06em;
	line-height: 2.9;

	@media (min-width: 1025px) {
		font-size: 15px;
		line-height: 2;
	}
}

#content #main .posts-single__related-link {
	display: inline-block;
	margin-bottom: 16px;
	color: #fff;
	font-family: Montserrat, sans-serif;
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0;
	line-height: 1.4;
	word-break: break-all;

	@media (min-width: 1025px) {
		font-size: 12px;
	}
}

#content #main .posts-single__all-wrap,
.posts-single__all-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 13px;
	margin: 48px 0 0;
	border-top: 1px solid #fff;
	padding-top: 56px;

	&::after {
		content: none;
		display: none;
	}

	@media (min-width: 1025px) {
		justify-content: flex-start;
		gap: 24px;
		margin-top: 72px;
		padding-top: 72px;
	}
}

#content #main .posts-single__nav {
	display: block;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	color: #fff;
	line-height: 0;
	text-decoration: none;

	svg {
		display: block;
		width: 100%;
		height: 100%;
	}

	&.posts-single__nav--next svg {
		transform: scaleX(-1);
	}

	&.is-disabled {
		opacity: 0.3;
	}

	@media (min-width: 1025px) {
		flex-basis: 57px;
		width: 57px;
		height: 57px;
	}
}

#content #main a.posts-single__nav {
	transition: opacity 0.3s ease;

	&:hover {
		opacity: 0.5;
	}
}

#content #main .posts-single__all {
	display: block;
	flex: 0 1 242px;
	width: 242px;
	min-width: 0;
	max-width: calc(100% - 128px);
	padding: 15px 36px;
	background: #fff;
	color: #000;
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.9;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity 0.3s ease;

	&:hover {
		opacity: 0.5;
	}

	@media (min-width: 1025px) {
		flex-basis: 248px;
		width: 248px;
		max-width: 248px;
		font-size: 15px;
		line-height: 1.7;
	}
}

@media screen and (max-width: 1024px) {
	.topnewsbox .posts-top dl {
		width: 100%;
		clear: both;
	}
}
