@charset "utf-8";
/* ===============================================
   Services ページ
   =============================================== */

/* アンカーナビ */
.svc-anchor {
	background: var(--white);
	border-top: 3px solid var(--blue);
}
.svc-anchor .svc-anchor__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 var(--content-gutter) 0 0;
}
.svc-anchor__link {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 36px 0 0;
	padding: 14px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #444;
	text-decoration: none;
	white-space: nowrap;
	transition: color .15s;
}
.svc-anchor__link:last-child {
	margin-right: 0;
}
.svc-anchor__link:hover,
.svc-anchor__link:focus {
	color: var(--blue);
	text-decoration: none;
}

/* 各サービス */
.svc-section {
	padding: 72px 80px;
}
.svc-section--alt {
	background: #f8f8f8;
}


.svc-section .svc-row {
	display: grid;
	grid-template-columns: 55fr 45fr;
	gap: 72px;
	align-items: start;
	max-width: var(--content-width);
	margin: 0 auto;
}

.svc-section .svc-row--flip {
	grid-template-columns: 45fr 55fr;
}
.svc-row > .wp-block-column {
	flex-basis: auto;
	min-width: 0;
}

/* 画像 */
.svc-media {
	margin: 0;
}
.svc-media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
}


.svc-name,
h2.svc-name {
	margin: 0 0 22px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--blue);
}

/* 項目リスト */
.svc-section .svc-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.svc-items li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #eee;
	font-size: var(--fs-text);
	font-weight: 500;
	line-height: 1.5;
	color: #333;
}
.svc-items li:first-child {
	border-top: 1px solid #eee;
}
/* 先頭の四角 */
/* 記号は CSS で描く（日本語フォントで ■ に見えるため） */
.svc-items li::before {
	content: "";
	flex: 0 0 5px;
	width: 5px;
	height: 5px;
	margin: 0 7.5px;
	background: var(--blue);
}
.svc-items a {
	color: var(--blue);
	text-decoration: none;
	border-bottom: 1px solid rgba(64, 39, 122, .3);
	transition: border-color .15s;
}
.svc-items a:hover {
	color: var(--blue);
	text-decoration: none;
	border-bottom-color: var(--blue);
}

/* PC：中身の左端をページヘッダー・パンくずにそろえる */
@media (min-width: 992px) {
	.svc-section {
		padding-left: 0;
		padding-right: 0;
	}
	body .container .svc-section > .svc-row {
		max-width: var(--page-width);
		padding-left: 80px;
		padding-right: 80px;
	}
	/* ナビは本文の枠（左右 30px）の中にあるため、その分を引いて線ごと寄せる */
	.svc-anchor {
		margin-left: calc(80px - var(--content-gutter));
		margin-right: calc(80px - var(--content-gutter));
	}
	.svc-anchor .svc-anchor__inner {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}
}
@media (min-width: 1260px) {
	.svc-anchor {
		margin-left: 40px;
		margin-right: 40px;
	}
}

/* 1199px 以下：4項目を 2×2 で並べる（横スクロールを出さない） */
@media (max-width: 1199.98px) {
	.svc-anchor .svc-anchor__inner {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 16px;
	}
	.svc-anchor__link {
		margin: 0;
		padding: 10px 0;
		white-space: normal;
	}
}

/* iPad など（992〜1366px）：箇条書きの上下の余白を詰める */
@media (min-width: 992px) and (max-width: 1366px) {
	.svc-items li {
		padding-top: 8px;
		padding-bottom: 8px;
	}
}

/* --- タブレット --- */
@media (max-width: 991.98px) {
	.svc-section {
		padding: 56px var(--content-gutter);
	}
	.svc-section .svc-row,
	.svc-section .svc-row--flip {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	/* スマホでは画像を先に見せる */
	.svc-row--flip > .wp-block-column:last-child {
		order: -1;
	}
	
	.svc-name,
	h2.svc-name {
		margin-bottom: 16px;
		font-size: 26px;
	}
}

/* --- スマホ --- */
@media (max-width: 575.98px) {
	.svc-section {
		padding: 48px 20px;
	}
	.svc-anchor .svc-anchor__inner {
		padding-right: 20px;
	}
}
