/**
 * SOLUTIONS — 単体ページ共通 + ページ内 Spectra ブロック
 */

/* --- 単体テンプレート（single-solutions.php） --- */

body.ideage-solution-single #page_header,
body.single-solutions #page_header.ideage-solution-single__header {
	padding-top: 0 !important;
}

body.ideage-solution-single #page_header .title_area,
body.single-solutions #page_header.ideage-solution-single__header .title_area {
	margin-bottom: 0 !important;
	width: 100%;
}

body.ideage-solution-single #page_header .design_header,
body.single-solutions #page_header.ideage-solution-single__header .design_header {
	background-color: #ffffff !important;
}

body.ideage-solution-single #page_header .design_header .title_area.no_desc,
body.single-solutions #page_header.ideage-solution-single__header .design_header .title_area.no_desc {
	padding-top: 140px !important;
	padding-bottom: 48px !important;
}

body.ideage-solution-single #page_header .large_headline,
body.single-solutions #page_header.ideage-solution-single__header .large_headline {
	font-family: 'Noto Sans JP', noto sans jp, sans-serif !important;
	font-size: 42px !important;
	font-style: normal;
	font-weight: 500 !important;
	line-height: 1.8;
}

body.ideage-solution-single #page_header .sub_title.colored,
body.single-solutions #page_header.ideage-solution-single__header .sub_title.colored {
	margin-top: 0;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 24px !important;
	font-style: normal;
	font-weight: 700 !important;
	line-height: 1.1;
}

#page_contents.ideage-solution-single {
	padding-top: 0;
	padding-bottom: 0;
}

#page_contents.ideage-solution-single .post_content.ideage-solution-single__entry {
	max-width: 1024px !important;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 80px;
}

.ideage-solution-single__body {
	background: #f4f7f9;
	padding: 40px 20px 120px;
	box-sizing: border-box;
}

.ideage-solution-single__entry {
	max-width: 1024px;
	margin: 0 auto;
	padding: 70px 92px;
	box-sizing: border-box;
	border-radius: 72px;
	background: #fff;
}

/* --- Advantage 等: .solutions-item セクション --- */

.post_content .solutions-item > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solutions-item > .uagb-container-inner-blocks-wrap {
	align-items: flex-start !important;
	justify-content: flex-start !important;
}

.post_content .solutions-item > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container,
.editor-styles-wrapper .solutions-item > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container {
	align-self: flex-start !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* --- 詳細ページ: ルートコンテナ（.solution-sap 等） --- */

.post_content .solution-sap,
.editor-styles-wrapper .solution-sap {
	width: 100%;
	max-width: 100%;
}

.post_content .solution-sap.alignfull,
.editor-styles-wrapper .solution-sap.alignfull {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.post_content .solution-sap > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap > .uagb-container-inner-blocks-wrap {
	align-items: stretch;
}

/* --- イントロ（左テキスト + 右画像） --- */

.post_content .solution-sap__intro-lead > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap__intro-lead > .uagb-container-inner-blocks-wrap {
	align-items: flex-start;
	gap: 32px;
}

.post_content .solution-sap__intro-copy,
.editor-styles-wrapper .solution-sap__intro-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.post_content .solution-sap__intro-visual,
.editor-styles-wrapper .solution-sap__intro-visual {
	flex: 0 0 auto;
}

.post_content .solution-sap__hero-image,
.editor-styles-wrapper .solution-sap__hero-image {
	margin: 0;
}

.post_content .solution-sap__hero-image img,
.editor-styles-wrapper .solution-sap__hero-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24px;
}

.post_content .solution-sap__intro .uagb-heading-text,
.editor-styles-wrapper .solution-sap__intro .uagb-heading-text {
	margin: 0 0 1em;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	color: #111;
	text-align: left;
}

.post_content .solution-sap__intro:last-child .uagb-heading-text,
.editor-styles-wrapper .solution-sap__intro:last-child .uagb-heading-text {
	margin-bottom: 0;
}

/* --- セクション見出し --- */

.post_content .solution-sap__section-heading,
.editor-styles-wrapper .solution-sap__section-heading {
	margin-bottom: 0;
}

/* --- ソリューション内容 --- */

.post_content .solution-sap__content-item > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap__content-item > .uagb-container-inner-blocks-wrap {
	align-items: flex-start;
	gap: 32px;
}

.post_content .solution-sap__content-icon,
.editor-styles-wrapper .solution-sap__content-icon {
	flex: 0 0 auto;
	text-align: center;
}

.post_content .solution-sap__icon-image,
.editor-styles-wrapper .solution-sap__icon-image {
	margin: 0;
}

.post_content .solution-sap__icon-image img,
.editor-styles-wrapper .solution-sap__icon-image img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	margin: 0 auto;
	border-radius: 24px;
}

.post_content .solution-sap__icon-label .uagb-heading-text,
.editor-styles-wrapper .solution-sap__icon-label .uagb-heading-text {
	margin: 0;
	font-family: 'Roboto', var(--tcd-font-type1), sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #1e73be;
}

.post_content .solution-sap__content-body,
.editor-styles-wrapper .solution-sap__content-body {
	flex: 1 1 auto;
	min-width: 0;
}

.post_content .solution-sap__content-title .uagb-heading-text,
.editor-styles-wrapper .solution-sap__content-title .uagb-heading-text {
	margin: 0;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	line-height: 1.6;
	color: #1e73be;
}

.post_content .solution-sap__content-body .uagb-advanced-heading:not(.solution-sap__content-title) .uagb-heading-text,
.editor-styles-wrapper .solution-sap__content-body .uagb-advanced-heading:not(.solution-sap__content-title) .uagb-heading-text {
	margin: 0;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	color: #111;
}

.post_content .solution-dev__content-item h3 {
	font-family: "Roboto Condensed";
	font-size: 16px;
	text-align: center;
}

/* --- 認定資格（PDF 準拠） --- */

.post_content .solution-sap__certs,
.editor-styles-wrapper .solution-sap__certs {
	--solution-sap-cert-border: #d8d8d8;
	--solution-sap-cert-category-border-top: #D8D8D8;
	--solution-sap-cert-category-bg: #eef9ff;
	--solution-sap-cert-count-width: 48px;
	--solution-sap-cert-cell-padding: 16px;
	--solution-sap-cert-name-indent: 24px;
	margin: 0;
}

.post_content .solution-sap__certs .wp-block-uagb-container,
.post_content .solution-sap__certs .wp-block-uagb-advanced-heading,
.editor-styles-wrapper .solution-sap__certs .wp-block-uagb-container,
.editor-styles-wrapper .solution-sap__certs .wp-block-uagb-advanced-heading {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.post_content .solution-sap__certs > .wp-block-uagb-container,
.post_content .solution-sap__certs-toolbar,
.post_content .solution-sap__certs-list,
.post_content .solution-sap__cert-item,
.editor-styles-wrapper .solution-sap__certs > .wp-block-uagb-container,
.editor-styles-wrapper .solution-sap__certs-toolbar,
.editor-styles-wrapper .solution-sap__certs-list,
.editor-styles-wrapper .solution-sap__cert-item {
	width: 100%;
	max-width: 100%;
	padding: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	gap: 0 !important;
	row-gap: 0 !important;
	column-gap: 0 !important;
}

.post_content .solution-sap__certs-list > .uagb-container-inner-blocks-wrap,
.post_content .solution-sap__cert-item > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap__certs-list > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap__cert-item > .uagb-container-inner-blocks-wrap {
	width: 100%;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	gap: 0 !important;
	row-gap: 0 !important;
	column-gap: 0 !important;
}

.post_content .solution-sap__certs-toolbar,
.editor-styles-wrapper .solution-sap__certs-toolbar {
	display: grid;
	grid-template-columns: 1fr var(--solution-sap-cert-count-width);
	align-items: center;
	gap: 0;
	width: 100%;
	padding: 0;
	margin: 0;
	border: none;
}

.post_content .solution-sap__certs-toolbar > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap__certs-toolbar > .uagb-container-inner-blocks-wrap {
	display: grid;
	grid-template-columns: 1fr var(--solution-sap-cert-count-width);
	align-items: center;
	gap: 0;
	width: 100%;
}

.post_content .solution-sap__certs-toolbar-label,
.post_content .solution-sap__certs-toolbar-total,
.editor-styles-wrapper .solution-sap__certs-toolbar-label,
.editor-styles-wrapper .solution-sap__certs-toolbar-total {
	margin: 0;
	min-width: 0;
}

.post_content .solution-sap__certs-toolbar-total,
.editor-styles-wrapper .solution-sap__certs-toolbar-total {
	text-align: right;
}

.post_content .solution-sap__certs-toolbar-label .uagb-heading-text,
.editor-styles-wrapper .solution-sap__certs-toolbar-label .uagb-heading-text {
	margin: 0;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	color: #111;
}

.post_content .solution-sap__certs-toolbar-total .uagb-heading-text,
.editor-styles-wrapper .solution-sap__certs-toolbar-total .uagb-heading-text {
	margin: 0;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 14px;
	font-weight: 500 !important;
	line-height: 1.6;
	color: #111;
}

.post_content .solution-sap__certs-list,
.editor-styles-wrapper .solution-sap__certs-list {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	margin: 0;
	padding: 0 !important;
	border: none;
}

.post_content .solution-sap__certs-list > *,
.post_content .solution-sap__certs-list > .uagb-container-inner-blocks-wrap > *,
.editor-styles-wrapper .solution-sap__certs-list > *,
.editor-styles-wrapper .solution-sap__certs-list > .uagb-container-inner-blocks-wrap > * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.post_content .solution-sap__cert-category,
.editor-styles-wrapper .solution-sap__cert-category {
	margin: 0;
	padding: var(--solution-sap-cert-cell-padding);
	border-top: 2px solid var(--solution-sap-cert-category-border-top);
	border-bottom: 1px solid var(--solution-sap-cert-border);
	background: var(--solution-sap-cert-category-bg);
}

.post_content .solution-sap__cert-category .uagb-heading-text,
.editor-styles-wrapper .solution-sap__cert-category .uagb-heading-text {
	margin: 0;
	font-family: 'Roboto', var(--tcd-font-type1), sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #111;
}

.post_content .solution-sap__cert-item,
.editor-styles-wrapper .solution-sap__cert-item {
	display: grid !important;
	grid-template-columns: 1fr var(--solution-sap-cert-count-width);
	align-items: center;
	border-bottom: 1px solid #D8D8D8 !important;
	background: #fff;
	padding-top: var(--solution-sap-cert-cell-padding) !important;
	padding-bottom: var(--solution-sap-cert-cell-padding) !important;
}

.post_content .solution-sap__cert-item:has(+ .solution-sap__cert-category),
.editor-styles-wrapper .solution-sap__cert-item:has(+ .solution-sap__cert-category) {
	border-bottom: none;
}

.post_content .solution-sap__certs-list > .solution-sap__cert-item:last-child,
.post_content .solution-sap__certs-list > .uagb-container-inner-blocks-wrap > .solution-sap__cert-item:last-child,
.editor-styles-wrapper .solution-sap__certs-list > .solution-sap__cert-item:last-child,
.editor-styles-wrapper .solution-sap__certs-list > .uagb-container-inner-blocks-wrap > .solution-sap__cert-item:last-child {
	border-bottom: 2px solid var(--solution-sap-cert-border);
}

.post_content .solution-sap__cert-item:has(> .uagb-container-inner-blocks-wrap),
.editor-styles-wrapper .solution-sap__cert-item:has(> .uagb-container-inner-blocks-wrap) {
	display: block !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.post_content .solution-sap__cert-item:not(:has(> .uagb-container-inner-blocks-wrap)),
.editor-styles-wrapper .solution-sap__cert-item:not(:has(> .uagb-container-inner-blocks-wrap)) {
	padding-top: var(--solution-sap-cert-cell-padding) !important;
	padding-bottom: var(--solution-sap-cert-cell-padding) !important;
	padding-left: var(--solution-sap-cert-cell-padding) !important;
	padding-right: var(--solution-sap-cert-cell-padding) !important;
}

.post_content .solution-sap__cert-item > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap__cert-item > .uagb-container-inner-blocks-wrap {
	display: grid !important;
	grid-template-columns: 1fr var(--solution-sap-cert-count-width);
	align-items: center;
	gap: 0;
	width: 100%;
	padding-top: var(--solution-sap-cert-cell-padding) !important;
	padding-bottom: var(--solution-sap-cert-cell-padding) !important;
}

.post_content .solution-sap__cert-item:not(:has(> .uagb-container-inner-blocks-wrap)) .solution-sap__cert-item-name,
.post_content .solution-sap__cert-item:not(:has(> .uagb-container-inner-blocks-wrap)) .solution-sap__cert-item-count,
.editor-styles-wrapper .solution-sap__cert-item:not(:has(> .uagb-container-inner-blocks-wrap)) .solution-sap__cert-item-name,
.editor-styles-wrapper .solution-sap__cert-item:not(:has(> .uagb-container-inner-blocks-wrap)) .solution-sap__cert-item-count {
	padding: 0;
}

.post_content .solution-sap__cert-item-name,
.post_content .solution-sap__cert-item-count,
.editor-styles-wrapper .solution-sap__cert-item-name,
.editor-styles-wrapper .solution-sap__cert-item-count {
	display: flex;
	align-items: center;
	align-self: center;
	box-sizing: border-box;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0;
}

.post_content .solution-sap__cert-item-name,
.editor-styles-wrapper .solution-sap__cert-item-name {
	padding-left: var(--solution-sap-cert-name-indent) !important;
}

.post_content .solution-sap__cert-item-name .uagb-heading-text,
.editor-styles-wrapper .solution-sap__cert-item-name .uagb-heading-text {
	margin: 0;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #111;
}

.post_content .solution-sap__cert-item-count,
.editor-styles-wrapper .solution-sap__cert-item-count {
	justify-content: flex-end;
	text-align: right;
}

.post_content .solution-sap__cert-item-count .uagb-heading-text,
.editor-styles-wrapper .solution-sap__cert-item-count .uagb-heading-text {
	margin: 0;
	font-family: 'Roboto', var(--tcd-font-type1), sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #111;
	text-align: right;
}

/* --- プロジェクト実績 --- */

.post_content .solution-sap__projects-grid,
.editor-styles-wrapper .solution-sap__projects-grid,
.post_content .solution-sap__projects > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap__projects > .uagb-container-inner-blocks-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 24px;
}

.post_content .solution-sap__projects-grid .solution-sap__project-card,
.editor-styles-wrapper .solution-sap__projects-grid .solution-sap__project-card {
	flex: 1 1 calc(33.333% - 16px);
	min-width: 0;
}

.post_content .solution-sap__project-card,
.editor-styles-wrapper .solution-sap__project-card {
	align-self: stretch !important;
}

.post_content .solution-sap__project-thumb,
.editor-styles-wrapper .solution-sap__project-thumb {
	margin: 0;
	overflow: hidden;
	border-radius: 16px;
}

.post_content .solution-sap__project-thumb img,
.editor-styles-wrapper .solution-sap__project-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post_content .solution-sap__project-title,
.post_content .solution-sap__project-title .uagb-heading-text,
.editor-styles-wrapper .solution-sap__project-title,
.editor-styles-wrapper .solution-sap__project-title .uagb-heading-text {
	margin: 16px 0 12px;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	color: #111;
}

.post_content .solution-sap__project-title a,
.editor-styles-wrapper .solution-sap__project-title a {
	color: inherit;
	text-decoration: none;
}

.post_content .solution-sap__project-title a:hover,
.editor-styles-wrapper .solution-sap__project-title a:hover {
	color: #1e73be;
}

.post_content .solution-sap__project-tags,
.post_content .solution-sap__project-tags .uagb-heading-text,
.editor-styles-wrapper .solution-sap__project-tags,
.editor-styles-wrapper .solution-sap__project-tags .uagb-heading-text {
	margin: 0 0 8px;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 12px;
	line-height: 1.6;
	color: #1e73be;
}

.post_content .solution-sap__project-date,
.post_content .solution-sap__project-date .uagb-heading-text,
.editor-styles-wrapper .solution-sap__project-date,
.editor-styles-wrapper .solution-sap__project-date .uagb-heading-text {
	margin: 0;
	font-family: 'Roboto', var(--tcd-font-type1), sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #666;
}

/* --- その他の事業 --- */

.post_content .solution-sap__others > .uagb-container-inner-blocks-wrap,
.editor-styles-wrapper .solution-sap__others > .uagb-container-inner-blocks-wrap {
	align-items: flex-start;
	gap: 24px;
}

.post_content .solution-sap__other-link,
.editor-styles-wrapper .solution-sap__other-link {
	flex: 1 1 0;
	min-width: 0;
}

.post_content .solution-sap__other-link .uagb-heading-text,
.editor-styles-wrapper .solution-sap__other-link .uagb-heading-text {
	margin: 0;
	font-family: 'Noto Sans JP', noto sans jp, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.6;
}

.post_content .solution-sap__other-link a,
.editor-styles-wrapper .solution-sap__other-link a {
	color: #1e73be;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.post_content .solution-sap__others-thumb img {
	border-radius: 24px;
}

.post_content .solution-sap__other-link a:hover,
.editor-styles-wrapper .solution-sap__other-link a:hover {
	opacity: 0.85;
}

@media (max-width: 900px) {
	body.ideage-solution-single #page_header .design_header .title_area.no_desc,
	body.single-solutions #page_header.ideage-solution-single__header .design_header .title_area.no_desc {
		padding-top: 100px !important;
		padding-bottom: 32px !important;
	}

	body.ideage-solution-single #page_header .large_headline,
	body.single-solutions #page_header.ideage-solution-single__header .large_headline {
		font-family: 'Noto Sans JP', noto sans jp, sans-serif !important;
		font-size: 42px !important;
		font-weight: 500 !important;
		line-height: 1.8;
	}

	#page_contents.ideage-solution-single .post_content.ideage-solution-single__entry {
		padding: 40px 30px;
	}

	.ideage-solution-single__body {
		padding: 24px 16px 80px;
	}

	.ideage-solution-single__entry {
		padding: 40px 24px;
		border-radius: 32px;
	}

	.post_content .solution-sap__intro-lead > .uagb-container-inner-blocks-wrap,
	.editor-styles-wrapper .solution-sap__intro-lead > .uagb-container-inner-blocks-wrap {
		flex-direction: column;
		gap: 24px;
	}

	.post_content .solution-sap__intro-copy,
	.post_content .solution-sap__intro-visual,
	.editor-styles-wrapper .solution-sap__intro-copy,
	.editor-styles-wrapper .solution-sap__intro-visual {
		width: 100% !important;
	}

	.post_content .solution-sap__content-item > .uagb-container-inner-blocks-wrap,
	.editor-styles-wrapper .solution-sap__content-item > .uagb-container-inner-blocks-wrap {
		flex-direction: column;
		gap: 20px;
	}

	.post_content .solution-sap__section-heading.heading-general h2,
	.editor-styles-wrapper .solution-sap__section-heading.heading-general h2 {
		flex-wrap: wrap;
		align-items: center;
		row-gap: 0;
	}

	.post_content .solution-sap__section-heading.heading-general h2 span,
	.editor-styles-wrapper .solution-sap__section-heading.heading-general h2 span {
		flex: 0 0 100%;
		margin-left: 26px;
		align-self: flex-start;
		line-height: 1.5;
	}

	.post_content .solution-sap__summary-panel > .wp-block-columns,
	.editor-styles-wrapper .solution-sap__summary-panel > .wp-block-columns {
		gap: 0.5em;
	}

	
	.post_content .solution-sap__content-icon,
	.editor-styles-wrapper .solution-sap__content-icon {
		width: 100% !important;
	}

	.post_content .solution-sap__content-body,
	.editor-styles-wrapper .solution-sap__content-body {
		width: 100% !important;
	}

	.post_content .solution-sap__certs,
	.editor-styles-wrapper .solution-sap__certs {
		--solution-sap-cert-count-width: 36px;
		--solution-sap-cert-cell-padding: 12px;
		--solution-sap-cert-name-indent: 16px;
	}

	.post_content .solution-sap__cert-item-name .uagb-heading-text,
	.editor-styles-wrapper .solution-sap__cert-item-name .uagb-heading-text {
		font-size: 13px;
	}

	.post_content .solution-sap__projects-grid,
	.editor-styles-wrapper .solution-sap__projects-grid,
	.post_content .solution-sap__projects > .uagb-container-inner-blocks-wrap,
	.editor-styles-wrapper .solution-sap__projects > .uagb-container-inner-blocks-wrap,
	.post_content .solution-sap__others > .uagb-container-inner-blocks-wrap,
	.editor-styles-wrapper .solution-sap__others > .uagb-container-inner-blocks-wrap {
		flex-direction: column;
	}

}
