/* ==========================================================================
   宗芯テーマ：ブロック用の調整
   旧テーマの CSS（assets/css/legacy/）はそのまま読み込み、ここでは
   ・ブロック化で増えた要素（figure など）の差を吸収する
   ・旧テーマで HTML に直接書かれていた色・背景・余白を移す
   を行う。
   ========================================================================== */

/* ---------- ブロック共通 ---------- */
.soshin-clear {
	clear: both;
}

/* ---------- トップ：メインビジュアル ---------- */
.soshin-fv .soshin-fv-bg,
.soshin-fv .soshin-fv-bg img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}
.soshin-fv .soshin-fv-bg {
	position: relative;
	z-index: 1;
}
.soshin-fv .soshin-fv-label,
.soshin-fv .soshin-fv-description {
	letter-spacing: normal;
}
.soshin-fv .soshin-fv-cta a {
	text-decoration: none;
}
@media screen and (max-width: 959px) {
	.soshin-fv .soshin-fv-bg {
		content: normal;
	}
}
@media screen and (max-width: 767px) {
	.soshin-fv .soshin-fv-bg img {
		content: url("/wp-content/uploads/FVSP.png");
	}
}

/* ---------- トップ：各セクション（旧テーマのコンテンツビルダーの設定値） ---------- */
.p-content01__banner2 .banner_items .wp-block-image a {
	display: inline;
}
.p-content01__banner2 .banner_items img {
	display: inline;
	vertical-align: baseline;
}
.soshin-sec-icon {
	margin: 0;
	text-align: inherit;
}
.soshin-sec-icon img {
	display: inline;
	vertical-align: baseline;
}

/* 代表からのごあいさつ */
#cb_0 {
	background-color: rgba(255, 255, 255, 1);
	background-image: url(../../images/bg/bg_sec1.webp);
	background-size: cover;
	background-repeat: no-repeat;
	height: auto;
	min-height: 800px;
	clear: both;
}
#cb_0 #cb_text_0 {
	background: rgba(34, 34, 34, 0);
	color: #543c32;
	float: left;
	min-height: 800px;
}
#cb_0 .p-main-image__title {
	color: #ff7f50;
	font-size: 44px;
	font-weight: 900;
}
#cb_0 .p-main-image__desc {
	font-size: 17px;
}
.qr-item .wp-block-image {
	display: block;
}

/* 業務案内・施工実績バナー */
#cb_1 {
	background-color: #ffebaa;
	background-image: url(../../images/bg/bg_sec0.webp);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 210px;
	clear: both;
}

/* 施工実績（最新3件） */
#cb_2 {
	background-color: #b2b2b2;
	background-image: url(../../images/bg/bg_blog.webp);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	clear: both;
}
#cb_2 .p-content03__blog-catch {
	color: #ff7f50;
	font-weight: 900;
}
#cb_2 .p-content03__blog-archive-link {
	display: inline-block;
	margin: 0;
}

/* 塗装工事について */
#cb_3 {
	background-color: #fff2d8;
	background-image: url(../../images/bg/bg_sec3.webp);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	clear: both;
}
#cb_3 .p-content01__catch,
#cb_7 .p-content01__catch {
	font-size: 40px;
	font-weight: 900;
}
#cb_3 .p-content01__catch {
	color: #ff7f50;
}
#cb_3 .p-content01__desc {
	font-size: 17px;
}

/* 新着情報 */
.soshin-sec-news .p-content03__news {
	background-color: #ffffff;
	clear: both;
}
.soshin-sec-news .p-content03__news-catch {
	color: #ffffff;
	background-color: #ff7f50;
}

/* 受賞 */
#cb_5 {
	background-color: rgba(34, 34, 34, 0.5);
	background-size: cover;
	background-repeat: no-repeat;
	height: auto;
	min-height: 600px;
	clear: both;
}
#cb_5 #cb_text_5 {
	background: rgba(34, 34, 34, 0.5);
	color: #ffffff;
	float: left;
	min-height: 600px;
}
#cb_5 .p-main-image__title {
	color: #ff7f50;
	font-size: 40px;
	font-weight: 900;
}
#cb_5 .p-main-image__desc {
	font-size: 16px;
}
.soshin-shadow img {
	box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.8);
}

/* 求人 */
#cb_7 {
	background-image: url(../../images/bg/bg_sec2.webp);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	height: 800px;
	clear: both;
}
#cb_7 .p-content01__catch {
	color: #4ad449;
}
#cb_7 .p-content01__desc {
	font-size: 16px;
}

/* 建設円陣ONE */
.engin-bnr {
	text-align: center;
}
.engin-bnr .wp-block-image {
	display: inline-block;
}

/* ---------- 固定ページ共通 ---------- */
.p-page-header__title h1 {
	font-size: 44px;
	margin-top: 30px;
	margin-bottom: 0;
	font-weight: 900;
}

/* 業務案内・会社概要の「画像＋文章」 */
.image_box_l .wp-block-image,
.image_box_l .wp-block-image img {
	display: block;
	width: 100%;
}

/* 施工の流れ（表）
   旧テーマは table と td に直接クラスが付いていた。表ブロックではセルにクラスを付けられないため、
   figure.work-company 内の table と「2列目＝工程名」に同じ指定を当てる。 */
.wp-block-table.work-company {
	overflow: visible;
}
.wp-block-table.work-company table {
	width: 100%;
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 0px 15px;
	font-size: 12px;
}
.wp-block-table.work-company th,
.wp-block-table.work-company td {
	border: 0;
}
.wp-block-table.work-company th {
	padding: 10px;
	background: #f04a0d;
	vertical-align: middle;
	width: 100px;
	overflow: visible;
	position: relative;
	color: #fff;
	font-weight: bold;
	font-size: 20px;
}
.wp-block-table.work-company td {
	background: #f8f8f8;
	padding: 1px 1px 1px 20px;
	font-size: 17px;
	margin: 0;
	display: block;
	line-height: 2;
}
.wp-block-table.work-company td:nth-child(2) {
	border-bottom: 2px solid #F5821F;
	font-size: 18px;
	font-weight: bold;
}
@media screen and (max-width: 640px) {
	.wp-block-table.work-company th {
		width: auto;
	}
	.wp-block-table.work-company td {
		padding-left: 5px;
	}
}

/* スタッフ紹介の見出しリスト（旧 HTML は入れ子のリストだったため高さを合わせる） */
.soshin-staff .recruit-list {
	box-sizing: border-box;
	min-height: 68px;
	margin: 0 0 14px;
}

/* フォームの確認・完了ページ */
.soshin-form-step {
	margin-top: 60px;
	margin-bottom: 60px;
}

/* ---------- 旧 HTML にあった空行・空の画像段落の分の余白 ---------- */
#cb_5 .p-main-image__title {
	padding-top: 34px;
}
.engin-bnr {
	padding-top: 16px;
	padding-bottom: 0;
}
.qr-item p {
	margin: 0;
}

/* ---------- 旧テーマで div だった見出し（ブロックでは段落）の文字サイズと行の高さ ---------- */
body .l-main p.work-toryou-midashi,
#allcontent p.work-toryou-midashi,
body .l-main p.work-toryou-midashi-2,
#allcontent p.work-toryou-midashi-2 {
	font-size: 20px;
	line-height: 20px;
}
body .l-main p.work-toryou-text-title,
#allcontent p.work-toryou-text-title {
	font-size: 16px;
	line-height: 16px;
}
body .l-main p.recruit-right,
#allcontent p.recruit-right {
	font-size: 20px;
	line-height: 20px;
}
body .l-main p.secion_title,
#allcontent p.secion_title {
	line-height: 2.2;
}

/* ---------- サイトマップ ---------- */
.soshin-sitemap .p-entry__body h2 {
	margin: 40px 0 15px;
	padding-bottom: 8px;
	border-bottom: 2px solid #ff7f50;
	font-size: 22px;
}
.soshin-sitemap .p-entry__body ul {
	margin: 0 0 20px 1.5em;
	list-style: disc;
}
.soshin-sitemap .p-entry__body li {
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1.8;
}

/* ==========================================================================
   中くらいの画面幅（タブレット・小さめの PC）の崩れ修正
   旧テーマは 768〜959px でスマホ用の縦長画像を横いっぱいに引き伸ばしていたほか、
   フッターのメニューと最下部の文字が重なっていた。PC・スマホの見た目は変えずに直す。
   ========================================================================== */

/* ---------- トップ：メインビジュアル（768〜959px は PC 用の横長画像と配置を縮小して使う） ---------- */
@media screen and (min-width: 768px) and (max-width: 959px) {
	.soshin-fv-copy {
		top: 13%;
		left: 6%;
		width: 52%;
		padding: 8px 12px 12px;
	}
	.soshin-fv-copy::before {
		inset: -6px;
		filter: blur(12px);
	}
	.soshin-fv-label {
		width: auto;
		max-width: none;
		margin: 0 0 8px;
		padding: 4px 10px;
		font-size: 10px;
		line-height: 1.4;
	}
	.soshin-fv-title-pc {
		display: block;
		font-size: clamp(24px, 3.3vw, 31px);
		line-height: 1.38;
	}
	.soshin-fv-title-sp {
		display: none;
	}
	.soshin-fv-description {
		width: auto;
		margin-top: 10px;
		font-size: 11.5px;
		line-height: 1.65;
	}
	.soshin-fv-cta {
		width: 230px;
		max-width: 100%;
		margin-top: 10px;
	}
	.soshin-fv-cta-button {
		min-height: 38px;
		padding: 4px 38px 4px 20px;
	}
	.soshin-fv-cta-button::after {
		right: 5px;
		width: 26px;
		height: 26px;
		font-size: 17px;
	}
	.soshin-fv-cta-main {
		font-size: 12px;
		letter-spacing: 0;
	}
}

/* ---------- トップ：メインビジュアル（1401〜1919px）
   旧テーマはこの幅でタイトルが3行に折り返し、ボタンが下の受賞バッジに重なっていた ---------- */
@media screen and (min-width: 1401px) and (max-width: 1599px) {
	.soshin-fv-copy {
		top: 15%;
		left: 11%;
		width: 43%;
		padding: 10px 15px 14px;
	}
	.soshin-fv-label {
		margin-bottom: 8px;
		padding: 5px 10px;
		font-size: 11px;
	}
	.soshin-fv-title {
		font-size: clamp(30px, 3.2vw, 44px);
		line-height: 1.35;
	}
	.soshin-fv-description {
		margin-top: 14px;
		font-size: 13px;
		line-height: 1.65;
	}
	.soshin-fv-cta {
		width: 280px;
		margin-top: 14px;
	}
	.soshin-fv-cta-button {
		min-height: 44px;
		padding: 5px 44px;
	}
	.soshin-fv-cta-button::after {
		right: 7px;
		width: 30px;
		height: 30px;
		font-size: 20px;
	}
	.soshin-fv-cta-main {
		font-size: 12px;
	}
}
@media screen and (min-width: 1600px) and (max-width: 1919px) {
	.soshin-fv-title {
		font-size: clamp(36px, calc(3.1vw - 3px), 58px);
	}
}

/* ---------- トップ：右下の「CONTACT」丸バナー
   旧テーマは下端からはみ出して切れていたため、メインビジュアルの右下に収まる位置と大きさにする
   （右隣の「豊富な実績とお客様の声」の画像とは重ならない） ---------- */
@media screen and (min-width: 768px) {
	.soshin-fv #main-header-banner {
		top: auto;
		bottom: 5.5%;
		right: 1.2%;
		margin-top: 0;
	}
	.soshin-fv #main-header-banner .p-main-banner-banner-item {
		width: clamp(110px, 15vw, 260px);
	}
	.soshin-fv #main-header-banner img {
		display: block;
		width: 100%;
		height: auto;
	}
}

/* ---------- フッター：会社ロゴとメニュー ---------- */
@media screen and (min-width: 960px) {
	.l-footer .p-fotter-nav ul.menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		row-gap: 14px;
		margin: 0;
	}
	.l-footer .p-fotter-nav ul.menu > li {
		display: block;
		float: none;
	}
}
@media screen and (min-width: 960px) and (max-width: 1179px) {
	.l-footer__company:not(.font-size_13px) {
		display: block;
	}
	.l-footer__company:not(.font-size_13px) .l-footer__company_left.spnone {
		display: none;
	}
	.l-footer__company:not(.font-size_13px) .l-footer__company_left.pcnone {
		display: block;
		width: 100%;
		margin: 30px 0 10px;
		text-align: center;
	}
	.l-footer__company:not(.font-size_13px) .l-footer__company_right {
		float: none;
		width: 100%;
		text-align: center;
	}
	.l-footer .p-fotter-nav ul.menu {
		justify-content: center;
	}
	.l-footer .p-address {
		text-align: center;
	}
}

/* ---------- フッター：最下部の会社紹介文とコピーライト ---------- */
@media screen and (min-width: 960px) {
	.l-footer__company.font-size_13px {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
		gap: 8px 24px;
	}
	.l-footer__company.font-size_13px > .l-footer__company_left,
	.l-footer__company.font-size_13px > .l-footer__company_right {
		float: none;
		width: auto;
		white-space: normal !important;
	}
	.l-footer__company.font-size_13px > .l-footer__company_right .p-copyright {
		margin: 0;
	}
}
@media screen and (min-width: 960px) and (max-width: 1179px) {
	.l-footer__company.font-size_13px {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.l-footer__company.font-size_13px > .l-footer__company_right {
		text-align: center;
	}
}

/* ==========================================================================
   業務案内：AI検索向けのセクション（頼めること・違い・費用と工期・よくある質問）
   ========================================================================== */
.soshin-aio {
	padding: 60px 0 10px;
}
.soshin-aio > .l-inner {
	margin-bottom: 70px;
}
.l-main .soshin-aio__title {
	margin: 0 0 24px;
	padding-bottom: 14px;
	border-bottom: 2px solid #ff7f50;
	color: #ff7f50;
	font-size: 32px;
	font-weight: 900;
	text-align: center;
}
.l-main .soshin-aio__subtitle {
	margin: 0 0 24px;
	padding-left: 14px;
	border-left: 6px solid #ff7f50;
	color: #543c32;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
}
.soshin-aio-lead p {
	margin: 0 0 14px;
	font-size: 17px;
	line-height: 2;
}
.soshin-aio-lead strong {
	color: #543c32;
	background: linear-gradient(transparent 62%, #ffe0c8 62%);
}

/* 工事の内容 */
.soshin-aio-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.soshin-aio-card {
	box-sizing: border-box;
	padding: 18px 18px 16px;
	border-top: 4px solid #ff7f50;
	border-radius: 4px;
	background: #fff8ef;
}
.l-main p.soshin-aio-card__title {
	margin: 0 0 8px;
	color: #543c32;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}
.l-main p.soshin-aio-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
}

/* ほかの塗装会社との違い */
.soshin-aio-points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 24px;
}
.soshin-aio-point {
	box-sizing: border-box;
	padding: 18px 20px 18px 56px;
	border: 1px solid #f1dccb;
	border-radius: 4px;
	background: #fff;
	position: relative;
}
.soshin-aio-point::before {
	content: "✓";
	position: absolute;
	top: 18px;
	left: 18px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ff7f50;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
}
.l-main p.soshin-aio-point__title {
	margin: 0 0 6px;
	color: #543c32;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}
.l-main p.soshin-aio-point__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.8;
}

/* 施工事例の費用と工期 */
.l-main p.soshin-aio__note {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.8;
}
.wp-block-table.soshin-aio-table {
	overflow-x: auto;
}
.wp-block-table.soshin-aio-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.wp-block-table.soshin-aio-table th,
.wp-block-table.soshin-aio-table td {
	padding: 12px 14px;
	border: 1px solid #ead7c8;
	line-height: 1.6;
	text-align: left;
	vertical-align: middle;
}
.wp-block-table.soshin-aio-table tr:first-child th {
	background: #ff7f50;
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}
.wp-block-table.soshin-aio-table td:nth-child(3),
.wp-block-table.soshin-aio-table td:nth-child(4) {
	white-space: nowrap;
}
.wp-block-table.soshin-aio-table td:nth-child(3) {
	color: #543c32;
	font-weight: 700;
	text-align: right;
}
.wp-block-table.soshin-aio-table tr:nth-child(even) td {
	background: #fffaf5;
}
.wp-block-table.soshin-aio-table a {
	color: #333;
	text-decoration: underline;
}
.l-main p.soshin-aio__more {
	margin: 16px 0 0;
	text-align: right;
}
.soshin-aio__more a {
	color: #ff7f50;
	font-weight: 700;
}

/* よくある質問 */
.soshin-faq .soshin-faq__item {
	margin: 0 0 12px;
	border: 1px solid #ead7c8;
	border-radius: 4px;
	background: #fff;
}
.soshin-faq .soshin-faq__item summary {
	padding: 16px 48px 16px 52px;
	color: #543c32;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
	cursor: pointer;
	list-style: none;
	position: relative;
}
.soshin-faq .soshin-faq__item summary::-webkit-details-marker {
	display: none;
}
.soshin-faq .soshin-faq__item summary::before {
	content: "Q";
	position: absolute;
	top: 14px;
	left: 16px;
	color: #ff7f50;
	font-size: 20px;
	font-weight: 900;
}
.soshin-faq .soshin-faq__item summary::after {
	content: "+";
	position: absolute;
	top: 12px;
	right: 18px;
	color: #ff7f50;
	font-size: 24px;
	font-weight: 400;
}
.soshin-faq .soshin-faq__item[open] summary::after {
	content: "−";
}
.soshin-faq .soshin-faq__item > p {
	margin: 0;
	padding: 0 20px 18px 52px;
	font-size: 15px;
	line-height: 1.9;
	position: relative;
}
.soshin-faq .soshin-faq__item > p::before {
	content: "A";
	position: absolute;
	top: -2px;
	left: 17px;
	color: #3f8b2c;
	font-size: 20px;
	font-weight: 900;
}

@media screen and (max-width: 959px) {
	.soshin-aio-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media screen and (max-width: 767px) {
	.soshin-aio {
		padding-top: 40px;
	}
	.soshin-aio > .l-inner {
		margin-bottom: 50px;
	}
	.l-main .soshin-aio__title {
		font-size: 24px;
	}
	.l-main .soshin-aio__subtitle {
		font-size: 20px;
	}
	.soshin-aio-lead p {
		font-size: 15px;
	}
	.soshin-aio-grid,
	.soshin-aio-points {
		grid-template-columns: minmax(0, 1fr);
	}
	.wp-block-table.soshin-aio-table table {
		font-size: 13px;
	}
	.wp-block-table.soshin-aio-table th,
	.wp-block-table.soshin-aio-table td {
		padding: 10px 8px;
	}
}
/* スマホ：表を1件ずつのカードにする（見出し行は隠し、各項目の前に項目名を出す） */
@media screen and (min-width: 768px) {
	.wp-block-table.soshin-aio-table tr {
		display: table-row;
	}
	.wp-block-table.soshin-aio-table th,
	.wp-block-table.soshin-aio-table td {
		display: table-cell;
	}
}
@media screen and (max-width: 767px) {
	.wp-block-table.soshin-aio-table table,
	.wp-block-table.soshin-aio-table tbody {
		display: block;
		width: 100%;
		border: 0;
	}
	.wp-block-table.soshin-aio-table tr:first-child {
		display: none;
	}
	.wp-block-table.soshin-aio-table tr {
		display: block;
		margin: 0 0 12px;
		padding: 12px 14px;
		border: 1px solid #ead7c8;
		border-top: 4px solid #ff7f50;
		border-radius: 4px;
		background: #fff;
	}
	.wp-block-table.soshin-aio-table tr:nth-child(even) td,
	.wp-block-table.soshin-aio-table td {
		display: flex;
		gap: 12px;
		padding: 4px 0;
		border: 0;
		background: transparent;
		font-size: 14px;
		text-align: left;
		white-space: normal;
	}
	.wp-block-table.soshin-aio-table td:first-child {
		display: block;
		padding-bottom: 8px;
		font-weight: 700;
	}
	.wp-block-table.soshin-aio-table td:nth-child(n+2)::before {
		flex: 0 0 7.5em;
		color: #888;
		font-weight: 400;
	}
	.wp-block-table.soshin-aio-table td:nth-child(2)::before {
		content: "地域・建物";
	}
	.wp-block-table.soshin-aio-table td:nth-child(3)::before {
		content: "総費用（税込）";
	}
	.wp-block-table.soshin-aio-table td:nth-child(4)::before {
		content: "工期";
	}
	.wp-block-table.soshin-aio-table td:nth-child(3) {
		text-align: left;
	}
}

