/**
 * Work single — mock-aligned layout (scoped).
 */

/*
 * Main column width: parent theme uses #main_contents { width:800px } site-wide.
 * Only the work single template (body.single-work + .work-qol-main) is full-width.
 */
body.single-work #main_contents.work-qol-main {
	width: auto;
	max-width: none;
	margin-left: auto;
	margin-right: auto;
	padding-top: 0;
	padding-bottom: 110px;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

@media screen and (max-width: 900px) {
	body.single-work #main_contents.work-qol-main {
		width: auto;
		margin-left: 0;
		margin-right: 0;
	}
}

@media screen and (max-width: 650px) {
	body.single-work #main_contents.work-qol-main {
		width: auto;
		margin-left: 0;
		margin-right: 0;
	}
}

/* Title band — parent #single_work_title_area has border-bottom; child layout hides it here only */
body.single-work #single_work_title_area.work-qol-title-area {
	border-bottom: none;
}

/* Category pills — parent uses margin 25px; child 実績シングル layout uses 50px */
body.single-work #single_work_title_area.work-qol-title-area .category {
	text-align: center;
	font-size: 0;
	margin: 0 0 50px 0;
}

@media screen and (max-width: 650px) {
	body.single-work #single_work_title_area.work-qol-title-area .category {
		margin: 0 0 15px 0;
	}
}

.work-qol-title-area {
	padding: 40px 0 36px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

.work-qol-main {
	padding-top: 0;
}

.work-qol-section {
	// max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 48px 20px;
	box-sizing: border-box;
}

/* Hero gallery — REALGATE slider-gallery (reference/IPIAS…_files): grid thumbs, <progress> + clip-path frame */
.work-gallery-section {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

.work-gallery--ref {
	width: 100%;
	background: #1e1e1e;
}

.work-gallery__main-wrap {
	position: relative;
	width: 100%;
	background: #111;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	max-height: 85vh;
}

@supports not (aspect-ratio: 16 / 9) {
	.work-gallery__main-wrap {
		min-height: 56vw;
		max-height: 85vh;
	}
}

.work-gallery__main {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 200px;
}

.work-gallery__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.5s cubic-bezier(0.18, 0.06, 0.23, 1) 0.1s;
	pointer-events: none;
	z-index: 0;
}

.work-gallery__slide.is-active {
	opacity: 1;
	transition: opacity 0.6s cubic-bezier(0.36, 0.04, 0.23, 1);
	z-index: 1;
	pointer-events: auto;
}

.work-gallery__slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	vertical-align: bottom;
}

/* Thumbnail strip (charcoal bar, synced with main) */
.work-gallery__thumbs-strip {
	background: #fff;
	width: auto;
}

.work-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	width: 100%;
	// max-width: 1400px;
	margin: 0 auto;
	padding: 0;
	gap: 0;
}

@media screen and (min-width: 36.25em) {
	.work-gallery__thumbs {
		grid-template-columns: repeat(8, 1fr);
	}
}

/* REALGATE slider-gallery: aspect box + full-layer <progress> + clip-path frame on active */
.work-gallery__thumb {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
	padding-top: 55.5555555556%;
	height: 0;
	border: none;
	background: #1e1e1e;
	cursor: pointer;
	line-height: 0;
	transition: background 0.2s ease;
}

.work-gallery__thumb:hover {
	background: #252525;
}

.work-gallery__thumb:focus {
	outline: 2px solid #fff;
	outline-offset: -2px;
	z-index: 2;
}

.work-gallery__thumb * {
	pointer-events: none;
}

/* Native progress fills layer; active thumb clips image inset so bar reads as top/left frame */
.work-gallery__thumb-progress {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	background-color: #f6f6f6;
	opacity: 0;
	transition: opacity 0.7s cubic-bezier(0.36, 0.04, 0.23, 1);
	vertical-align: top;
}

.work-gallery__thumb-progress::-webkit-progress-bar {
	background-color: #f6f6f6;
}

.work-gallery__thumb-progress::-webkit-progress-value {
	background-color: #0080a8;
}

.work-gallery__thumb-progress::-moz-progress-bar {
	background-color: #0080a8;
}

.work-gallery__thumb-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	clip-path: inset(0);
	transition: clip-path 0.8s cubic-bezier(0.36, 0.04, 0.23, 1);
}

.work-gallery__thumb-image::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	mix-blend-mode: overlay;
	opacity: 0;
	transition: opacity 0.4s cubic-bezier(0.18, 0.06, 0.23, 1);
	pointer-events: none;
}

@media (hover: hover) {
	.work-gallery__thumb:hover .work-gallery__thumb-image::after {
		opacity: 1;
	}
}

.work-gallery__thumb.is-active {
	pointer-events: none;
}

.work-gallery__thumb.is-active .work-gallery__thumb-progress {
	opacity: 1;
	transition: opacity 0.8s cubic-bezier(0.36, 0.04, 0.23, 1) 0.2s;
}

.work-gallery__thumb.is-active .work-gallery__thumb-image {
	clip-path: inset(6px);
	transition: clip-path 0.6s cubic-bezier(0.43, 0.05, 0.17, 1);
}

@media screen and (min-width: 36.25em) {
	.work-gallery__thumb.is-active .work-gallery__thumb-image {
		clip-path: inset(8px);
	}
}

.work-gallery__thumb-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
	.work-gallery__slide {
		transition: none;
	}
	.work-gallery__thumb-progress {
		opacity: 0 !important;
	}
	.work-gallery__thumb.is-active .work-gallery__thumb-image {
		clip-path: inset(0);
	}
}

/* Two columns: Detail | Public & Service — section shell (was work-qol-section on this block) */
.work-two-col {
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

.work-two-col--rg {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	padding-top: max(5rem, 26.67vw);
	padding-bottom: max(3rem, 8vw);
}

@media screen and (min-width: 36.25em) {
	.work-two-col--rg {
		padding-top: clamp(6.5rem, 12vw, 12.5rem);
		padding-bottom: clamp(3rem, 6vw, 5rem);
	}
}

/* .l-center equivalent (reference main.css) — horizontal inset + wide max-width on inner */
.work-two-col--rg .work-two-col__inner {
	box-sizing: content-box;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	column-gap: 6.25%;
	row-gap: 0;
	margin-right: auto;
	margin-left: auto;
	padding: 0 max(6.6666666667%, 1.5625rem);
	max-width: 106.666666667rem;
}

@media screen and (min-width: 36.25em) {
	.work-two-col--rg .work-two-col__inner {
		padding: 0 max(10.4166666667%, 1.5625rem);
		column-gap: 6.9444%;
	}
}

@media screen and (min-width: 64em) {
	.work-two-col--rg .work-two-col__inner {
		padding: 0 max(5.5555555556%, 1.5625rem);
	}
}

@media (min-width: 64em) {
	.work-feature__text>div {
			width: 66.1842105263%;
	}
}
/* .title-a */
.work-rg-title {
	margin: 0 0 max(1.25rem, 6.67vw);
	color: #999;
	font-weight: normal;
}

@media screen and (min-width: 36.25em) {
	.work-rg-title {
		margin-bottom: clamp(3.3rem, 5.16vw, 4.125rem);
	}
}

.work-rg-title__en {
	display: block;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: max(1.25rem, 6.67vw);
	line-height: 1.05;
	letter-spacing: 0.02em;
}

@media screen and (min-width: 36.25em) {
	.work-rg-title__en {
		font-size: clamp(2rem, 3.125vw, 2.5rem);
	}
}

/* .description-list.-normal in .single-works__info */
.work-detail-dl--rg {
	display: grid;
	grid-template-columns: max(4.5rem, 24vw) 1fr;
	grid-row-gap: max(0.75rem, 4vw);
	margin: 0;
	padding: 0;
}

@media screen and (min-width: 36.25em) {
	.work-detail-dl--rg {
		grid-template-columns: clamp(6.8rem, 10.625vw, 8.5rem) 1fr;
		grid-row-gap: clamp(0.9rem, 1.40625vw, 1.125rem);
	}
}

.work-detail-dl__term,
.work-detail-dl__detail {
	margin: 0;
	padding-bottom: max(0.75rem, 4vw);
	font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
	font-size: max(0.55rem, 2.93vw);
	letter-spacing: 0.1em;
	line-height: 1.55;
	font-feature-settings: 'palt' 1;
}

@media screen and (min-width: 36.25em) {
	.work-detail-dl__term,
	.work-detail-dl__detail {
		padding-bottom: clamp(1rem, 1.5625vw, 1.25rem);
		font-size: clamp(0.7rem, 1.09375vw, 0.875rem);
		line-height: 1.71;
	}
}

.work-detail-dl__term {
	color: #666;
	font-weight: 700;
}

.work-detail-dl__detail {
	color: #000;
	font-weight: 500;
	border-bottom: 1px solid #ddd;
}

.work-detail-dl__term {
	border-bottom: 1px solid #aaa;
}

@media screen and (max-width: 22.49em) {
	.work-detail-dl__term {
		padding-top: max(0.75rem, 4vw);
		position: relative;
	}

	.work-detail-dl__term::before,
	.work-detail-dl__term::after {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		height: 1px;
	}

	.work-detail-dl__term::before {
		width: 100%;
		background-color: #ddd;
	}

	.work-detail-dl__term::after {
		width: max(4.5rem, 24vw);
		background-color: #aaa;
	}

	.work-detail-dl__term:not(:first-of-type) {
		margin-top: max(1.5rem, 8vw);
	}

	.work-detail-dl__detail {
		margin-top: max(0.5rem, 2.67vw);
		border-bottom: 1px solid #ddd;
	}

	.work-detail-dl__term {
		border-bottom: none;
	}
}

/* .single-works__info-icons — REALGATE main.css (grid columns + gap only) */
.work-svc-grid--rg {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: max(1.6vw, 0.3rem);
	gap: max(1.6vw, 0.3rem);
}

@media screen and (min-width: 22.5em) {
	.work-svc-grid--rg {
		grid-template-columns: repeat(5, 1fr);
	}
}

@media screen and (min-width: 36.25em) {
	.work-svc-grid--rg {
		grid-template-columns: repeat(8, 1fr);
		grid-gap: clamp(0.4rem, 0.625vw, 0.5rem);
		gap: clamp(0.4rem, 0.625vw, 0.5rem);
	}
}

@media screen and (min-width: 64em) {
	.work-svc-grid--rg {
		grid-template-columns: repeat(6, 1fr);
	}
}

@media screen and (min-width: 90em) {
	.work-svc-grid--rg {
		grid-template-columns: repeat(8, 1fr);
	}
}

.work-svc-grid__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.work-svc-grid__icon--png {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	object-position: center;
	margin: 0;
}

.work-svc-grid__icon--fallback.dashicons {
	font-size: 32px;
	width: 32px;
	height: 32px;
	line-height: 1;
	color: #111;
}


/* Feature — single-works__body / .l-grid.-col2@md.-nogap + body-content (reference main.css) */
.work-feature.work-qol-section {
	max-width: none;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	box-sizing: border-box;
	// background-color: #f6f6f6;
}

.work-feature__inner {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: 0;
	row-gap: 0;
	align-items: stretch;
	min-height: 0;
}

@media screen and (min-width: 64em) {
	.work-feature__inner--split {
		grid-template-columns: repeat(2, 1fr);
	}
}

.work-feature__media {
	margin: 0;
	overflow: hidden;
	position: relative;
	align-self: stretch;
	min-height: 0;
}

.work-feature__img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: bottom;
	object-fit: cover;
}

@media screen and (min-width: 64em) {
	.work-feature__media {
		min-height: 100%;
	}

	.work-feature__img {
		height: 100%;
		min-height: 100%;
	}
}

/* single-works__body-content — padding / flex / order (reference main.css) */
.work-feature__text {
	box-sizing: border-box;
	// background-color: #fbfbf6;
	padding: max(2.5rem, 16.6666666667vw) max(1.5625rem, 6.6666666667vw);
	min-height: 0;
}

@media screen and (min-width: 56.25em) {
	.work-feature__text {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: clamp(3rem, 4.6875vw, 3.75rem) max(5.625rem, 10.4166666667vw) clamp(5rem, 7.8125vw, 6.25rem);
	}

	/* stretch copy blocks to column width while container stays flex-centered (reference body-content) */
	.work-feature__text .work-feature__heading,
	.work-feature__text .work-feature__body {
		align-self: stretch;
		width: 100%;
	}

	.work-feature__inner--split .work-feature__media {
		order: 1;
	}

	.work-feature__inner--split .work-feature__text {
		order: 2;
	}
}

@media screen and (min-width: 64em) {
	.work-feature__inner--split .work-feature__text {
		padding-left: 0;
		padding-right: 0;
	}

	.work-feature__inner--split .work-feature__heading,
	.work-feature__inner--split .work-feature__body {
		// width: 66.1842105263%;
		// max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
}

.work-feature__heading {
	font-size: clamp(20px, 2.5vw, 28px);
	line-height: 1.45;
	margin: 0 0 24px;
	font-weight: 500;
}

.work-feature__body {
	font-size: 15px;
	line-height: 1.85;
	color: #333;
}

.work-feature__body p {
	margin: 0 0 1em;
}

.work-feature__body p:last-child {
	margin-bottom: 0;
}

/* Outline — single-works__outline + l-center + l-col2@md + description-list (reference main.css) */
.work-outline.work-qol-section {
	max-width: none;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: max(5rem, 26.6666666667vw) 0;
	box-sizing: border-box;
	background-color: #f6f6f6;
	color: #000;
}

@media screen and (min-width: 36.25em) {
	.work-outline.work-qol-section {
		padding: clamp(10rem, 15.625vw, 12.5rem) 0;
	}
}

.work-outline__inner {
	box-sizing: content-box;
	display: block;
	max-width: 106.666666667rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0 max(6.6666666667%, 1.5625rem);
}

@media screen and (min-width: 36.25em) {
	.work-outline__inner {
		padding: 0 max(10.4166666667%, 1.5625rem);
	}
}

@media screen and (min-width: 64em) {
	.work-outline__inner {
		padding: 0 max(5.5555555556%, 1.5625rem);
	}
}

.work-outline__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: max(1.5rem, 6vw);
	align-items: start;
}

@media screen and (min-width: 64em) {
	.work-outline__grid {
		grid-template-columns: auto 72.5%;
		column-gap: 0;
		row-gap: 0;
	}
}

.work-outline__heading {
	margin: 0 0 max(1.25rem, 6.67vw);
}

@media screen and (min-width: 36.25em) {
	.work-outline__heading {
		margin-bottom: clamp(3.3rem, 5.16vw, 4.125rem);
	}
}

@media screen and (min-width: 64em) {
	.work-outline__heading {
		margin-bottom: max(9.3333333333vw, 1.75rem);
	}
}

.work-outline__dl.work-detail-dl--rg {
	display: grid;
	grid-template-columns: 33.8461538462% 1fr;
	grid-row-gap: max(4vw, 0.75rem);
	margin: 0;
	padding: 0;
	min-width: 0;
}

@media screen and (min-width: 36.25em) {
	.work-outline__dl.work-detail-dl--rg {
		grid-template-columns: 31.0344827586% 1fr;
		grid-row-gap: clamp(0.9rem, 1.40625vw, 1.125rem);
	}
}

.work-contact.work-qol-section {
	text-align: center;
	color: #000;
	background-color: #fff;
	padding-top: max(20vw, 3.75rem);
	padding-bottom: calc(max(20vw, 3.75rem) / 2);
	padding-left: 0;
	padding-right: 0;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}

@media screen and (min-width: 36.25em) {
	.work-contact.work-qol-section {
		padding-top: clamp(7.5rem, 11.71875vw, 9.375rem);
		padding-bottom: calc(clamp(7.5rem, 11.71875vw, 9.375rem) / 2);
	}
}

.work-contact__title {
	display: flex;
	align-items: center;
	flex-direction: column;
	margin: 0 0 max(5.3333333333vw, 1rem);
	font-family: acumin-pro, 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-weight: 600;
	font-size: max(3.2vw, 0.6rem);
	line-height: 1.2;
	letter-spacing: normal;
	color: inherit;
}

.work-contact__title::after {
	content: '';
	margin-top: max(1.3333333333vw, 0.25rem);
	width: max(5.3333333333vw, 1rem);
	height: 1px;
	background-color: currentColor;
}

@media screen and (min-width: 36.25em) {
	.work-contact__title {
		font-size: clamp(0.9rem, 1.40625vw, 1.125rem);
		margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
	}

	.work-contact__title::after {
		width: clamp(1.5rem, 2.34375vw, 1.875rem);
		margin-top: clamp(0.5rem, 0.78125vw, 0.625rem);
	}
}

.work-contact__body {
	text-align: center;
	font-size: 0.9rem;
	font-weight: bold;
	margin-top: clamp(1.5rem, 2.34375vw, 1.875rem);
}

.work-contact__lead {
	line-height: 3;
}

.work-contact__body .work-contact__btn-wrap {
	margin: 0;
}

.work-contact__btn {
	box-sizing: border-box;
	position: relative;
	display: flex;
	justify-content: space-around;
	align-items: center;
	width: clamp(20rem, 21.0625vw, 18.25rem);
	height: clamp(3rem, 4.6875vw, 3.75rem);
	margin: 0 auto;
	padding: 10px 25px;
	border-radius: clamp(1.5rem, 2.34375vw, 1.875rem);
	background-color: #4c93a8;
	color: #ffffff;
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	font-weight: 500;
	line-height: 1.8;
	text-decoration: none;
	transition: 0.3s ease-in-out;
}

.work-contact__btn:hover {
	background: #333333;
	color: #FFF;
}

/* Article width */
body.single-work #article.work-qol-article {
	max-width: 100%;
}

/* Related / nav width override from parent 800px */
body.single-work #related_work_list {
	width: auto;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
}

@media screen and (max-width: 1050px) {
	.work-two-col--rg .work-two-col__inner {
		grid-template-columns: 1fr;
		column-gap: 0;
		row-gap: 0;
	}

	.work-info-detail + .work-info-ps {
		margin-top: max(4.5rem, 24vw);
	}

	.work-outline__grid {
		grid-template-columns: 1fr;
	}

	.work-info-detail .work-detail-dl--rg {
		grid-template-columns: max(4.5rem, 28vw) 1fr;
	}

	.work-qol-title-area {
		padding: 28px 16px 24px;
	}

	.work-qol-section {
		padding: 32px 16px;
	}

	.work-feature.work-qol-section {
		padding: 0;
	}

	.work-two-col--rg {
		padding-left: 0;
		padding-right: 0;
	}

	.work-outline.work-qol-section {
		padding: max(5rem, 26.6666666667vw) 0;
	}
}

@media screen and (max-width: 1050px) and (min-width: 36.25em) {
	.work-outline.work-qol-section {
		padding: clamp(10rem, 15.625vw, 12.5rem) 0;
	}
}
