/*
 * WORKS（事業内容 /works/）。about.css を土台にして、このページだけの部分をここに書く。
 * 色・書体の変数（--qa-*）は about.css の #qol-about で定義している。
 */

/* 書体：about.css は h2・h3 を明朝にしているため、ラベル的な小見出しは本文の書体に戻す */
#qol-about .qw-for h3,
#qol-about .qw-services__title,
#qol-about .qw-faq__question {
	font-family: inherit !important;
}

#qol-about .qw-index strong,
#qol-about .qw-business__summary,
#qol-about .qw-services h4,
#qol-about .qw-strength h3,
#qol-about .qw-flow h3,
#qol-about .qw-cta h2 {
	font-family: var(--qa-serif) !important;
	font-weight: 500;
}

#qol-about .qw-index__num,
#qol-about .qw-index__en,
#qol-about .qw-business__num,
#qol-about .qw-staff dd span,
#qol-about .qw-links__count,
#qol-about .qw-strength__num,
#qol-about .qw-numbers dd span,
#qol-about .qw-flow__step,
#qol-about .qw-faq__q,
#qol-about .qw-faq__a,
#qol-about .qw-cta__tel span {
	font-family: var(--qa-latin) !important;
}

#qol-about .qw-faq summary:focus-visible {
	outline: 2px solid var(--qa-gold-dark);
	outline-offset: 4px;
}

/* 親テーマは box-sizing を指定していないため、幅・高さを指定する要素だけ余白込みの寸法にする */
.qw-index a,
.qw-links__cases a,
.qw-services__list--grid > li,
.qw-cta__button,
.qw-cta__tel {
	box-sizing: border-box;
}

/* 濃い背景の上では枠を明るくする */
#qol-about .qw-strength a:focus-visible {
	outline-color: var(--qa-gold-light);
}

/* OVERVIEW */

.qw-overview .qa-inner {
	position: relative;
}

.qw-overview__intro {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 72px;
	align-items: start;
	margin-bottom: 88px;
}

.qw-overview__intro .qa-heading {
	margin-bottom: 0;
}

.qw-overview__text p {
	line-height: 2.2;
}

.qw-overview__text p + p {
	margin-top: 18px;
}

.qw-overview__text strong {
	color: var(--qa-ink);
	font-weight: 500;
}

.qw-index {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid var(--qa-line);
	border-bottom: 1px solid var(--qa-line);
}

.qw-index li + li {
	border-left: 1px solid var(--qa-line);
}

.qw-index a {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 36px 28px 64px;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

/* 下向きの矢印（ページ内の各事業へ移動することを示す） */
.qw-index a::after {
	content: "";
	position: absolute;
	bottom: 30px;
	left: 28px;
	width: 9px;
	height: 9px;
	border-right: 1px solid var(--qa-gold-dark);
	border-bottom: 1px solid var(--qa-gold-dark);
	transform: rotate(45deg);
	transition: transform 0.3s ease;
}

.qw-index a:hover {
	background: var(--qa-soft);
}

.qw-index a:hover::after {
	transform: translateY(4px) rotate(45deg);
}

.qw-index__num {
	color: var(--qa-gold-dark);
	font-size: 14px;
	line-height: 1;
}

.qw-index__en {
	margin-top: 22px;
	color: var(--qa-muted);
	font-size: 13px;
	font-style: italic;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

#qol-about .qw-index strong {
	margin-top: 4px;
	color: var(--qa-ink);
	font-size: 20px;
	line-height: 1.5;
}

.qw-index__desc {
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.9;
}

/* BUSINESS（事業ごと。写真と説明を左右に並べ、偶数番目は左右を入れ替えて背景を敷く） */

.qw-business--alt {
	background: var(--qa-soft);
}

.qw-business__head {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: 88px;
	align-items: center;
}

.qw-business--alt .qw-business__figure {
	order: 2;
}

.qw-business__figure {
	position: relative;
	margin: 0;
}

.qw-business__photo {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9eaed;
}

#qol-about .qw-business__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 写真の角に重ねる大きな番号（飾り） */
.qw-business__num {
	position: absolute;
	right: -0.06em;
	bottom: -0.42em;
	color: transparent;
	font-size: 128px;
	font-style: italic;
	line-height: 1;
	pointer-events: none;
	-webkit-text-stroke: 1px var(--qa-gold);
}

.qw-business--alt .qw-business__num {
	right: auto;
	left: -0.06em;
}

.qw-business .qa-heading {
	margin-bottom: 28px;
}

#qol-about .qw-business__summary {
	color: var(--qa-ink);
	font-size: 21px;
	line-height: 1.8;
}

.qw-business__body {
	margin-top: 20px;
	line-height: 2.1;
}

.qw-for {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--qa-line);
}

#qol-about .qw-for h3 {
	margin: 0 0 12px;
	color: var(--qa-ink);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.qw-for ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qw-for li {
	padding: 4px 14px;
	border: 1px solid var(--qa-line);
	border-radius: 999px;
	background: #fff;
	color: var(--qa-ink);
	font-size: 13px;
	line-height: 1.6;
}

/* 主なサービス */

.qw-services {
	margin-top: 96px;
}

#qol-about .qw-services__title {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 0 8px;
	color: var(--qa-ink);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.5;
}

.qw-services__title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--qa-ink);
}

.qw-services__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 64px;
	counter-reset: qw-service;
}

.qw-services__list > li {
	position: relative;
	padding: 28px 0 28px 44px;
	border-bottom: 1px solid var(--qa-line);
	counter-increment: qw-service;
}

.qw-services__list > li::before {
	content: counter(qw-service, decimal-leading-zero);
	position: absolute;
	top: 32px;
	left: 0;
	color: var(--qa-gold-dark);
	font-family: var(--qa-latin);
	font-size: 14px;
	font-style: italic;
	line-height: 1.5;
}

#qol-about .qw-services h4 {
	margin: 0 0 8px;
	color: var(--qa-ink);
	font-size: 18px;
	line-height: 1.6;
}

.qw-services__list p {
	font-size: 14px;
	line-height: 1.95;
}

/* 賃貸管理：業務の範囲をカードで一覧にする */
.qw-services__list--grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-top: 24px;
}

.qw-services__list--grid > li {
	padding: 32px;
	border: 1px solid var(--qa-line);
	background: #fff;
}

.qw-services__list--grid > li::before {
	position: static;
	display: block;
	margin-bottom: 10px;
}

.qw-services__items li {
	position: relative;
	padding-left: 18px;
	font-size: 14px;
	line-height: 1.85;
}

.qw-services__items li + li {
	margin-top: 6px;
}

.qw-services__items li::before {
	content: "";
	position: absolute;
	top: 0.8em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--qa-gold);
}

/* 在籍する有資格者 */

.qw-staff {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 48px;
	margin-top: 24px;
	padding: 28px 40px;
	background: var(--qa-ink);
	color: #fff;
}

.qw-staff__label {
	color: var(--qa-gold-light);
	font-size: 13px;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.qw-staff dl {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 48px;
	margin: 0;
}

.qw-staff dl > div {
	display: flex;
	align-items: baseline;
	gap: 14px;
}

.qw-staff dt {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	line-height: 1.5;
}

.qw-staff dd {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
}

.qw-staff dd span {
	margin-right: 3px;
	color: #fff;
	font-size: 30px;
	line-height: 1;
}

/* 実績・関連ページへのリンク */

.qw-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 40px;
	margin-top: 48px;
}

.qw-links__label {
	color: var(--qa-ink);
	font-size: 13px;
	letter-spacing: 0.08em;
	line-height: 1.5;
}

.qw-links__cases {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.qw-links__cases a {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	min-height: 48px;
	padding: 8px 20px;
	border: 1px solid var(--qa-ink);
	background: #fff;
	color: var(--qa-ink);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.qw-links__cases a:hover {
	background: var(--qa-ink);
	color: #fff;
}

.qw-links__count {
	font-size: 20px;
	line-height: 1;
}

.qw-links__count small {
	margin-left: 2px;
	font-family: var(--qa-serif);
	font-size: 11px;
}

.qw-links .qa-arrow {
	min-height: 44px;
	color: var(--qa-ink);
}

/* STRENGTH（濃い背景） */

.qa-section.qw-strength {
	background: var(--qa-ink);
	color: rgba(255, 255, 255, 0.78);
}

.qw-strength .qa-eyebrow {
	color: var(--qa-gold-light);
}

#qol-about .qw-strength .qa-heading h2 {
	color: #fff;
}

.qw-strength__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.qw-strength__list li {
	padding: 40px 40px 44px 0;
}

.qw-strength__list li + li {
	padding-left: 40px;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.qw-strength__num {
	color: var(--qa-gold-light);
	font-size: 14px;
	line-height: 1;
}

#qol-about .qw-strength h3 {
	margin: 18px 0 16px;
	color: #fff;
	font-size: 20px;
	line-height: 1.6;
}

.qw-strength__list p:last-child {
	font-size: 14px;
	line-height: 2;
}

.qw-numbers {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.qw-numbers > div {
	padding: 32px 0;
	text-align: center;
}

.qw-numbers > div + div {
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.qw-numbers dt {
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	letter-spacing: 0.06em;
	line-height: 1.5;
}

.qw-numbers dd {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	line-height: 1;
}

.qw-numbers dd span {
	margin-right: 4px;
	color: #fff;
	font-size: 44px;
}

.qw-strength__more {
	margin-top: 40px;
	min-height: 44px;
	color: #fff;
}

/* FLOW */

.qw-flow__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0 20px;
}

.qw-flow__list li {
	position: relative;
	padding-top: 32px;
	border-top: 2px solid var(--qa-line);
}

/* 線の上の点で、ステップの区切りを示す */
.qw-flow__list li::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--qa-gold);
}

.qw-flow__step {
	color: var(--qa-gold-dark);
	font-size: 14px;
	font-style: italic;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

#qol-about .qw-flow h3 {
	margin: 10px 0 12px;
	color: var(--qa-ink);
	font-size: 19px;
	line-height: 1.5;
}

.qw-flow__list p:last-child {
	font-size: 14px;
	line-height: 1.95;
}

.qw-flow__note {
	margin-top: 40px;
	color: var(--qa-muted);
	font-size: 13px;
}

/* FAQ */

.qa-section.qw-faq {
	padding-top: 0;
}

.qw-faq__list {
	border-top: 1px solid var(--qa-ink);
}

.qw-faq__item {
	border-bottom: 1px solid var(--qa-line);
}

.qw-faq__item summary {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 44px;
	padding: 26px 56px 26px 0;
	color: var(--qa-ink);
	font-size: 16px;
	line-height: 1.7;
	cursor: pointer;
	list-style: none;
}

.qw-faq__item summary::-webkit-details-marker {
	display: none;
}

/* 開閉の印（＋ → −） */
.qw-faq__item summary::before,
.qw-faq__item summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 16px;
	height: 1px;
	background: var(--qa-ink);
	transition: transform 0.3s ease;
}

.qw-faq__item summary::after {
	transform: rotate(90deg);
}

.qw-faq__item[open] summary::after {
	transform: rotate(0deg);
}

.qw-faq__q,
.qw-faq__a {
	flex-shrink: 0;
	width: 1.6em;
	color: var(--qa-gold-dark);
	font-size: 24px;
	font-style: italic;
	line-height: 1;
}

.qw-faq__answer {
	display: flex;
	gap: 20px;
	padding: 0 56px 28px 0;
}

.qw-faq__a {
	color: var(--qa-muted);
	line-height: 1.5;
}

.qw-faq__answer p {
	line-height: 2;
}

.qw-faq__more {
	margin-top: 32px;
	min-height: 44px;
	color: var(--qa-ink);
}

/* CONTACT */

.qw-cta {
	padding: 88px max(48px, (100% - 1240px) / 2);
	background: var(--qa-soft);
}

.qw-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px 64px;
	align-items: center;
}

.qw-cta .qa-eyebrow {
	margin-bottom: 10px;
}

#qol-about .qw-cta h2 {
	margin: 0;
	color: var(--qa-ink);
	font-size: 28px;
	line-height: 1.6;
}

.qw-cta__text p:last-child {
	margin-top: 10px;
	font-size: 14px;
}

.qw-cta__actions {
	display: grid;
	gap: 14px;
	min-width: 320px;
}

.qw-cta__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 64px;
	padding: 0 28px;
	background: var(--qa-ink);
	color: #fff !important;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.qw-cta__button::after {
	content: "";
	width: 40px;
	height: 1px;
	background: currentColor;
	transition: width 0.35s ease;
}

.qw-cta__button:hover {
	background: #3a362e;
}

.qw-cta__button:hover::after {
	width: 60px;
}

.qw-cta__tel {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 14px 28px;
	border: 1px solid var(--qa-line);
	background: #fff;
	color: var(--qa-ink);
	text-decoration: none;
}

.qw-cta__tel small {
	color: var(--qa-muted);
	font-size: 12px;
}

.qw-cta__tel span {
	font-size: 20px;
	letter-spacing: 0.04em;
}

/* タブレット */

@media screen and (max-width: 1050px) {
	.qw-overview__intro {
		grid-template-columns: 1fr;
		gap: 28px;
		margin-bottom: 64px;
	}

	.qw-index {
		grid-template-columns: 1fr;
		border-bottom: 0;
	}

	.qw-index li {
		border-bottom: 1px solid var(--qa-line);
	}

	.qw-index li + li {
		border-left: 0;
	}

	.qw-index a {
		display: grid;
		grid-template-columns: 3em 14em minmax(0, 1fr);
		grid-template-rows: auto auto;
		gap: 2px 16px;
		align-items: baseline;
		padding: 22px 48px 22px 0;
	}

	.qw-index a::after {
		top: 50%;
		right: 16px;
		bottom: auto;
		left: auto;
		margin-top: -6px;
	}

	.qw-index__num {
		grid-row: 1 / 3;
	}

	.qw-index__en {
		grid-column: 2;
		margin: 0;
	}

	#qol-about .qw-index strong {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
	}

	.qw-index__desc {
		grid-column: 3;
		grid-row: 1 / 3;
		align-self: center;
		margin: 0;
	}

	.qw-business__head {
		grid-template-columns: 1fr;
		gap: 64px;
	}

	.qw-business--alt .qw-business__figure {
		order: 0;
	}

	.qw-business__figure {
		width: min(640px, 92%);
	}

	.qw-business--alt .qw-business__figure {
		margin-left: auto;
	}

	.qw-business__num {
		font-size: 104px;
	}

	.qw-services {
		margin-top: 72px;
	}

	.qw-services__list {
		gap: 0 40px;
	}

	.qw-services__list--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.qw-strength__list {
		grid-template-columns: 1fr;
	}

	.qw-strength__list li,
	.qw-strength__list li + li {
		padding: 32px 0;
		border-left: 0;
	}

	.qw-strength__list li + li {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	.qw-numbers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.qw-numbers > div:nth-child(3) {
		border-left: 0;
	}

	.qw-numbers > div:nth-child(n+3) {
		border-top: 1px solid rgba(255, 255, 255, 0.2);
	}

	/* 流れは縦のタイムラインにする */
	.qw-flow__list {
		grid-template-columns: 1fr;
		gap: 0;
		max-width: 720px;
	}

	.qw-flow__list li {
		display: grid;
		grid-template-columns: 7em minmax(0, 1fr);
		gap: 0 24px;
		padding: 0 0 36px 32px;
		border-top: 0;
		border-left: 2px solid var(--qa-line);
	}

	.qw-flow__list li:last-child {
		padding-bottom: 0;
		border-left-color: transparent;
	}

	.qw-flow__list li::before {
		top: 4px;
		left: -7px;
	}

	.qw-flow__step {
		grid-row: 1 / 3;
		padding-top: 4px;
	}

	#qol-about .qw-flow h3 {
		margin: 0 0 6px;
	}

	.qw-cta {
		padding: 72px 48px;
	}

	.qw-cta__inner {
		grid-template-columns: 1fr;
	}

	.qw-cta__actions {
		grid-template-columns: 1fr 1fr;
		min-width: 0;
	}
}

/* スマートフォン */

@media screen and (max-width: 650px) {
	.qw-overview__text p {
		line-height: 2.05;
	}

	.qw-index a {
		grid-template-columns: 2.4em minmax(0, 1fr);
		padding: 20px 40px 20px 0;
	}

	.qw-index__desc {
		grid-column: 2;
		grid-row: 3;
		margin-top: 6px;
		font-size: 12px;
	}

	#qol-about .qw-index strong {
		font-size: 18px;
	}

	.qw-index a::after {
		right: 10px;
	}

	.qw-business__head {
		gap: 52px;
	}

	.qw-business__figure,
	.qw-business--alt .qw-business__figure {
		width: 100%;
	}

	.qw-business__num {
		bottom: -0.38em;
		font-size: 76px;
	}

	#qol-about .qw-business__summary {
		font-size: 18px;
	}

	.qw-services {
		margin-top: 56px;
	}

	.qw-services__list,
	.qw-services__list--grid {
		grid-template-columns: 1fr;
	}

	.qw-services__list > li {
		padding: 22px 0 22px 36px;
	}

	.qw-services__list > li::before {
		top: 25px;
	}

	.qw-services__list--grid {
		gap: 14px;
	}

	.qw-services__list--grid > li {
		padding: 24px 22px;
	}

	#qol-about .qw-services h4 {
		font-size: 17px;
	}

	.qw-services__list p,
	.qw-services__items li {
		font-size: 13px;
	}

	.qw-staff {
		padding: 24px 22px;
	}

	.qw-staff dl {
		display: grid;
		gap: 10px;
		width: 100%;
	}

	.qw-staff dl > div {
		justify-content: space-between;
	}

	.qw-links {
		gap: 16px;
		margin-top: 40px;
	}

	.qw-links__label {
		width: 100%;
	}

	.qw-links__cases {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
	}

	.qw-links__cases a {
		justify-content: space-between;
		width: 100%;
		padding: 8px 14px;
		font-size: 13px;
	}

	.qw-numbers dd span {
		font-size: 36px;
	}

	.qw-flow__list li {
		grid-template-columns: 1fr;
		padding-left: 26px;
	}

	.qw-flow__step {
		grid-row: auto;
		padding-top: 0;
	}

	#qol-about .qw-flow h3 {
		margin-top: 4px;
		font-size: 17px;
	}

	.qw-faq__item summary {
		gap: 14px;
		padding: 20px 40px 20px 0;
		font-size: 15px;
	}

	.qw-faq__item summary::before,
	.qw-faq__item summary::after {
		right: 6px;
		width: 14px;
	}

	.qw-faq__q,
	.qw-faq__a {
		width: 1.2em;
		font-size: 20px;
	}

	.qw-faq__answer {
		gap: 14px;
		padding-right: 0;
	}

	.qw-cta {
		padding: 56px 20px;
	}

	#qol-about .qw-cta h2 {
		font-size: 21px;
	}

	.qw-cta__actions {
		grid-template-columns: 1fr;
	}

	.qw-cta__tel span {
		font-size: 18px;
	}
}

/* お問い合わせ欄の営業時間 */
.qw-cta__hours {
	color: var(--qa-muted);
	font-size: 12px;
	text-align: right;
}

@media screen and (max-width: 650px) {
	.qw-cta__hours {
		text-align: left;
	}
}
