

/* ==============================
   新・施工実績詳細
============================== */

.jisseki-detail-new {
	max-width: 1100px;
	margin: 40px auto 60px;
	color: #222;
}

/* タイトル */
.jisseki-detail-head {
	margin-bottom: 22px;
}

.jisseki-detail-head h1 {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.55;
	color: #222;
}

/* ==============================
   Before / After
============================== */

.jisseki-detail-ba {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 24px;
	width: 100%;
}

.jisseki-detail-ba-item {
	position: relative;
	width: calc(50% - 12px);
	overflow: hidden;
	background: #f5f5f5;
}

.jisseki-detail-ba-item img {
	display: block;
	width: 100%;
	height: 430px;
	object-fit: cover;
	margin: 0;
}

.jisseki-detail-ba-label {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	padding: 8px 18px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.jisseki-detail-ba-label.before {
	background: #444;
}

.jisseki-detail-ba-label.after {
	background: #f36b3f;
}

.jisseki-detail-ba-arrow {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f36b3f;
	color: #fff;
	font-size: 27px;
	font-weight: bold;
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ==============================
   CTA
============================== */

.jisseki-detail-cta {
	max-width: 600px;
	margin: 30px auto 35px;
}

.jisseki-detail-cta a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
	padding: 0 60px;
	border: 2px solid #f36b3f;
	border-radius: 5px;
	background: #f4510b;
	color: #fff !important;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none !important;
	box-sizing: border-box;
}

.jisseki-detail-cta a span {
	position: absolute;
	right: 24px;
	font-size: 24px;
}

/* ==============================
   施工概要
============================== */

.jisseki-detail-summary {
	margin-top: 20px;
	border: 1px solid #e5e5e5;
	background: #fff;
}

.jisseki-detail-summary h2 {
	position: relative;
	margin: 0;
	padding: 18px 22px;
	border-bottom: 1px solid #e5e5e5;
	font-size: 20px;
	font-weight: 700;
}

.jisseki-detail-summary h2:before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 22px;
	margin-right: 10px;
	background: #f36b3f;
	vertical-align: -4px;
}

.jisseki-detail-summary-table {
	width: 100%;
}

.jisseki-detail-summary-row {
	display: grid;
	grid-template-columns: 180px 1fr;
	border-bottom: 1px solid #e5e5e5;
}

.jisseki-detail-summary-row:last-child {
	border-bottom: 0;
}

.jisseki-detail-summary-label {
	padding: 16px 20px;
	background: #f7f7f7;
	font-weight: 700;
}

.jisseki-detail-summary-value {
	padding: 16px 22px;
	line-height: 1.7;
}


/* ==============================
   スマホ
============================== */

@media screen and (max-width: 767px) {

	.jisseki-detail-new {
		width: auto;
		margin: 25px 15px 40px;
	}

	.jisseki-detail-head {
		margin-bottom: 16px;
	}

	.jisseki-detail-head h1 {
		font-size: 20px;
		line-height: 1.55;
	}

	.jisseki-detail-ba {
		gap: 6px;
	}

	.jisseki-detail-ba-item {
		width: calc(50% - 3px);
	}

	.jisseki-detail-ba-item img {
		height: 220px;
	}

	.jisseki-detail-ba-label {
		top: 8px;
		left: 8px;
		padding: 6px 10px;
		font-size: 11px;
	}

	.jisseki-detail-ba-arrow {
		width: 30px;
		height: 30px;
		font-size: 20px;
	}

	.jisseki-detail-cta {
		margin: 20px 0 25px;
	}

	.jisseki-detail-cta a {
		height: 56px;
		padding: 0 45px;
		font-size: 14px;
	}

	.jisseki-detail-cta a span {
		right: 18px;
		font-size: 20px;
	}

	.jisseki-detail-summary h2 {
		padding: 15px;
		font-size: 17px;
	}

	.jisseki-detail-summary-row {
		grid-template-columns: 90px 1fr;
	}

	.jisseki-detail-summary-label,
	.jisseki-detail-summary-value {
		padding: 12px 10px;
		font-size: 13px;
	}

}
/* 新デザイン確認中：旧施工実績表示を非表示 */
.jisseki-detail-new ~ .p-entry__header,
.jisseki-detail-new ~ .p-entry__body,
.jisseki-detail-new ~ .garallywrap,
.jisseki-detail-new ~ .garallysentence {
	display: none !important;
}
/* ==============================
   施工概要 + 右側カード
============================== */

.jisseki-detail-new {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	column-gap: 24px;
}

/* タイトル・BA・CTAは横幅いっぱい */
.jisseki-detail-head,
.jisseki-detail-ba,
.jisseki-detail-cta {
	grid-column: 1 / -1;
}

/* 左：施工概要 */
.jisseki-detail-summary {
	grid-column: 1;
	margin-top: 20px;
}

/* 右：相談・施工後 */
.jisseki-detail-side {
	grid-column: 2;
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.jisseki-detail-side-card {
	padding: 22px;
	border: 1px solid #eee5df;
	background: #fffaf7;
	box-sizing: border-box;
}

.jisseki-detail-side-card h2 {
	position: relative;
	margin: 0 0 14px;
	padding-left: 14px;
	color: #222;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.jisseki-detail-side-card h2::before {
	content: "";
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 0;
	width: 4px;
	background: #f4510b;
}

.jisseki-detail-side-card p {
	margin: 0;
	font-size: 14px;
	line-height: 1.9;
	color: #333;
}


/* スマホは縦並び */
@media screen and (max-width: 767px) {

	.jisseki-detail-new {
		display: block;
	}

	.jisseki-detail-side {
		margin-top: 18px;
		gap: 12px;
	}

	.jisseki-detail-side-card {
		padding: 18px 15px;
	}

	.jisseki-detail-side-card h2 {
		font-size: 16px;
	}

	.jisseki-detail-side-card p {
		font-size: 13px;
	}
}
/* ==============================
   施工の流れ
============================== */

.jisseki-detail-flow {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 55px;
}

.jisseki-section-title {
	position: relative;
	margin: 0 0 25px;
	padding-left: 16px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	color: #222;
}

.jisseki-section-title::before {
	content: "";
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 0;
	width: 5px;
	background: #f4510b;
}

.jisseki-flow-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.jisseki-flow-item {
	min-width: 0;
}

.jisseki-flow-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f5f5f5;
}

.jisseki-flow-image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	margin: 0 !important;
}

.jisseki-flow-heading {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-top: 14px;
}

.jisseki-flow-number {
	flex: 0 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f4510b;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.jisseki-flow-heading h3 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	color: #222;
}

.jisseki-flow-text {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.8;
	color: #444;
}


/* タブレット */
@media screen and (max-width: 959px) and (min-width: 768px) {

	.jisseki-flow-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

}


/* スマホ */
@media screen and (max-width: 767px) {

	.jisseki-detail-flow {
		margin-top: 35px;
	}

	.jisseki-section-title {
		margin-bottom: 18px;
		font-size: 20px;
	}

	.jisseki-flow-list {
		display: grid;
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.jisseki-flow-heading {
		margin-top: 10px;
		gap: 7px;
	}

	.jisseki-flow-number {
		flex-basis: 26px;
		width: 26px;
		height: 26px;
		font-size: 12px;
	}

	.jisseki-flow-heading h3 {
		font-size: 13px;
	}

	.jisseki-flow-text {
		margin-top: 7px;
		font-size: 12px;
		line-height: 1.7;
	}
}
/* ==============================
   部位ごとの施工写真
============================== */

.jisseki-parts-gallery {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 55px;
}

.jisseki-parts-gallery-list {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* 工事ごとのカード */
.jisseki-parts-gallery-item {
	width: 100%;
	padding: 22px;
	background: #fff;
	border: 1px solid #e5e5e5;
	box-sizing: border-box;
}

/* 工事名 */
.jisseki-parts-gallery-title {
	margin: 0 0 18px !important;
	padding: 0 0 12px !important;
	border: 0 !important;
	border-bottom: 2px solid #f4510b !important;
	color: #222;
	font-size: 18px !important;
	font-weight: 700;
	line-height: 1.6;
}

/* 写真一覧 */
.jisseki-parts-gallery-images {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

/* 1枚 */
.jisseki-parts-gallery-image {
	min-width: 0;
	margin: 0 !important;
	padding: 0;
	background: #f7f7f7;
}

/* 写真 */
.jisseki-parts-gallery-image img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 3;
	margin: 0 !important;
	object-fit: cover;
}

/* キャプション */
.jisseki-parts-gallery-image figcaption {
	margin: 0;
	padding: 9px 10px;
	background: #f7f7f7;
	color: #444;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
}

/* タブレット */
@media screen and (max-width: 959px) and (min-width: 768px) {

	.jisseki-parts-gallery-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

/* スマホ */
@media screen and (max-width: 767px) {

	.jisseki-parts-gallery {
		margin-top: 35px;
	}

	.jisseki-parts-gallery-list {
		gap: 24px;
	}

	.jisseki-parts-gallery-item {
		padding: 12px;
	}

	.jisseki-parts-gallery-title {
		margin-bottom: 14px !important;
		padding-bottom: 9px !important;
		font-size: 16px !important;
	}

	.jisseki-parts-gallery-images {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.jisseki-parts-gallery-image figcaption {
		padding: 7px 5px;
		font-size: 11px;
	}

}
/* ==============================
   担当者コメント
============================== */

.jisseki-staff-comment {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 55px;
}

.jisseki-staff-comment-box {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 28px;
	align-items: center;
	padding: 32px 36px;
	background: #fff8f3;
	border-left: 4px solid #f4510b;
}

.jisseki-staff-comment-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: #f4510b;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.jisseki-staff-comment-text {
	color: #333;
	font-size: 15px;
	line-height: 2;
}

@media screen and (max-width: 767px) {

	.jisseki-staff-comment {
		margin-top: 35px;
	}

	.jisseki-staff-comment-box {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 24px 20px;
	}

	.jisseki-staff-comment-icon {
		width: 70px;
		height: 70px;
		font-size: 13px;
	}

	.jisseki-staff-comment-text {
		font-size: 14px;
		line-height: 1.9;
	}

}
.jisseki-staff-comment {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}

.jisseki-staff-comment-box {
	width: 100% !important;
	box-sizing: border-box;
}
/* ==============================
   下部CTA
============================== */

.jisseki-bottom-cta {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 55px;
}

.jisseki-bottom-cta-inner {
	padding: 45px 30px;
	background: #fff8f3;
	text-align: center;
	box-sizing: border-box;
}

.jisseki-bottom-cta-sub {
	margin: 0 0 8px;
	color: #f4510b;
	font-size: 14px;
	font-weight: 700;
}

.jisseki-bottom-cta h2 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: #222;
	font-size: 26px !important;
	font-weight: 700;
}

.jisseki-bottom-cta-text {
	margin: 14px 0 25px;
	color: #555;
	font-size: 14px;
	line-height: 1.8;
}

.jisseki-bottom-cta a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 480px;
	height: 60px;
	margin: 0 auto;
	padding: 0 55px;
	border-radius: 4px;
	background: #f4510b;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	box-sizing: border-box;
}

.jisseki-bottom-cta a span {
	position: absolute;
	right: 22px;
	font-size: 21px;
}

@media screen and (max-width: 767px) {

	.jisseki-bottom-cta {
		margin-top: 35px;
	}

	.jisseki-bottom-cta-inner {
		padding: 30px 18px;
	}

	.jisseki-bottom-cta-sub {
		font-size: 12px;
	}

	.jisseki-bottom-cta h2 {
		font-size: 20px !important;
	}

	.jisseki-bottom-cta-text {
		font-size: 13px;
	}

	.jisseki-bottom-cta a {
		height: 56px;
		padding: 0 45px 0 20px;
		font-size: 14px;
	}

}
/* ==============================
   関連する施工事例
============================== */

.jisseki-related {
	width: 100%;
	max-width: 1100px;
	margin: 70px auto 0;
}

.jisseki-related-head {
	margin-bottom: 25px;
}

.jisseki-related-head p {
	margin: 8px 0 0 16px;
	color: #777;
	font-size: 13px;
	line-height: 1.7;
}

.jisseki-related-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.jisseki-related-item {
	min-width: 0;
	border: 1px solid #e7e7e7;
	background: #fff;
}

.jisseki-related-item > a {
	display: block;
	height: 100%;
	color: #222 !important;
	text-decoration: none !important;
}

.jisseki-related-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f5f5f5;
}

.jisseki-related-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	transition: transform .3s ease;
}

.jisseki-related-item:hover .jisseki-related-image img {
	transform: scale(1.04);
}

.jisseki-related-content {
	padding: 18px;
}

.jisseki-related-content h3 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	color: #222;
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.7;
}

.jisseki-related-more {
	display: inline-block;
	margin-top: 14px;
	color: #f4510b;
	font-size: 13px;
	font-weight: 700;
}


/* タブレット */
@media screen and (max-width: 959px) and (min-width: 768px) {

	.jisseki-related-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


/* スマホ */
@media screen and (max-width: 767px) {

	.jisseki-related {
		margin-top: 45px;
	}

	.jisseki-related-head p {
	margin-top: 6px;
	font-size: 12px;
}

	.jisseki-related-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.jisseki-related-content {
		padding: 15px;
	}

	.jisseki-related-content h3 {
		font-size: 14px !important;
	}

}
/* ==============================
   お客様の声
============================== */

.jisseki-customer-voice {
	grid-column: 1 / -1;
	width: 100%;
	margin-top: 55px;
}

.jisseki-customer-voice-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 28px 32px;
	background: #fff8f4;
	border-left: 3px solid #f4510b;
	box-sizing: border-box;
}

.jisseki-customer-voice-content {
	flex: 1;
}

.jisseki-customer-voice-content h3 {
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
	color: #222;
	font-size: 18px !important;
	font-weight: 700;
}

.jisseki-customer-voice-content p {
	margin: 0 !important;
	color: #555;
	font-size: 14px;
	line-height: 1.8;
}

.jisseki-customer-voice-btn {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	gap: 22px;
	min-width: 230px;
	padding: 15px 20px;
	background: #f4510b;
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: opacity .2s ease;
	box-sizing: border-box;
}

.jisseki-customer-voice-btn:hover {
	opacity: .8;
}

.jisseki-customer-voice-btn span {
	font-size: 16px;
}

/* スマホ */
@media screen and (max-width: 767px) {

	.jisseki-customer-voice {
		margin-top: 35px;
	}

	.jisseki-customer-voice-box {
		display: block;
		padding: 20px 16px;
	}

	.jisseki-customer-voice-content h3 {
		font-size: 16px !important;
	}

	.jisseki-customer-voice-content p {
		font-size: 13px;
	}

	.jisseki-customer-voice-btn {
		width: 100%;
		min-width: 0;
		margin-top: 18px;
		padding: 14px 16px;
	}

}
