/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* 会社概要ページ：代表挨拶の見出し（heading-block内のラベル構成）
-----------------------------------------------------------------*/
.heading-label {
  position: relative;
  display: block;
  font-size: 15px;
  color: #134731;
  font-weight: bold;
  padding: 0 40px;
}

/* h2 > span:not(.nocolor):not(.badge) (style.css) が同等の詳細度で色を上書きするため、
   要素・クラスを揃えて確実に効かせる */
h2.heading-block > span.heading-label {
  color: #134731;
}

.heading-label::before,
.heading-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 2px;
  background-color: #134731;
  transform: translateY(-50%);
}

.heading-label::before { left: 0; }
.heading-label::after { right: 0; }

.heading-main {
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.heading-jp {
  font-size: 35px;
  color: #4A4846;
  font-weight: bold;
}

.heading-highlight {
  font-size: 50px;
  color: #134731;
  font-weight: bold;
  line-height: 1;
}

.message-wrap p {
  margin-bottom: 10px;
}

/* 会社概要ページ：情報テーブルの背景・保有資格/保証体制セクション
-----------------------------------------------------------------*/
.bg-content {
  background: #e8efe9;
}

.page-section.bg-content {
  padding: 40px;
}

@media (max-width: 991.98px) {
  .page-section.bg-content {
    padding: 20px !important;
  }
}

@media (max-width: 640px) {
  .page-section.bg-content {
    padding: 20px 15px !important;
  }
  .row.shikaku.gap-3 {
    gap: 0.5rem !important;
  }
}



/* =========================================================
   狭山市屋根修理専門店 追加分
========================================================= */
/* メインビジュアル（1枚表示：PC 1920×936 / SP 750×1000） */
.main-visual {
	width: 100%;
	overflow: hidden;
}
.main-visual img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}
@media (min-width: 768px) {
	.main-visual img {
		aspect-ratio: 1920 / 936;
		max-height: 936px;
	}
}

/* 工事メニュー（画像＋テキスト見出し） */
.menu-card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
}
.menu-card .menu-card-title {
	text-align: center;
	font-weight: bold;
	margin-bottom: 10px;
}

/* 参考価格「お見積り後にご案内」 */
.price-ask {
	font-weight: bold;
	line-height: 1.5;
	text-align: center;
}

/* 葺き替え工事・火災保険ページ見出し帯（page-title_other と併用）
   ※専用画像を用意したら images/roof/roof_title.webp・images/insurance/insurance_title.webp に配置 */
.page-title_roof {
	background-image: url("../images/roof/roof_title.webp"), url("../images/other/other_title.webp");
}
.page-title_insurance {
	background-image: url("../images/insurance/insurance_title.webp"), url("../images/other/other_title.webp");
}

/* 見出し .title-icon（画像アイコンを廃止しCSSで装飾） */
.title-icon {
	position: relative;
	padding: 4px 0 16px 22px;
	margin-bottom: 30px;
	font-size: 28px;
	line-height: 1.4;
	color: #134731;
	border-bottom: 2px solid #dfe7e1;
}
.title-icon::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 16px;
	width: 6px;
	height: auto;
	transform: none;
	background: linear-gradient(to bottom, #134731 0 62%, #ff7418 62% 100%);
	border-radius: 3px;
}
.title-icon::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 90px;
	height: 2px;
	background: #ff7418;
}
@media (max-width: 767.98px) {
	.title-icon {
		padding: 2px 0 12px 16px;
		font-size: 21px;
	}
	.title-icon::before {
		top: 2px;
		bottom: 12px;
		width: 5px;
	}
}

/* 代表者名（テキスト表記） */
.president-name {
	display: inline-block;
	margin-top: 6px;
	font-size: 26px;
	font-weight: bold;
	letter-spacing: 0.15em;
	color: #134731;
	font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", serif;
}

/* ロゴ：固定高さ＋object-fit:cover で上下が切れるため、縦横比を保って全体を表示 */
#logo .logo-left img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 90px;
	object-fit: contain;
}
#logo .logo-left {
	padding-top: 14px; /* 上部のh1テキストと重ならないように */
}
@media screen and (max-width: 992px) {
	#logo .logo-left img {
		max-height: 56px;
		margin: 0 auto;
	}
}
@media screen and (max-width: 768px) {
	#logo .logo-left img {
		max-height: 46px;
		width: auto !important;
	}
	#logo .logo-left {
		padding-top: 10px;
	}
}

/* スマホ・タブレットのヘッダー：ロゴは左、電話・メールは右（ハンバーガーメニューの手前）に同じ大きさで配置 */
@media screen and (max-width: 991.98px) {
	#logo {
		justify-content: space-between;
		align-items: center;
		flex-wrap: nowrap;
		padding-right: 64px; /* 右端のメニューボタン分の余白 */
	}
	#logo .logo-left {
		flex: 1 1 auto;
		min-width: 0;
		max-width: calc(100% - 110px);
	}
	#logo .logo-left img {
		margin: 0;
	}
	#logo .logo-right {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		gap: 8px;
		margin: 0 0 0 auto;
		padding: 0;
	}
	#logo .logo-right li {
		padding: 0;
	}
	#logo .logo-right li a {
		display: block;
		line-height: 0;
	}
	#logo .logo-right img.sp {
		width: 46px;
		height: 46px;
		max-height: none;
		object-fit: contain;
	}
}
@media screen and (max-width: 768px) {
	#logo {
		padding: 10px 64px 8px 0;
	}
	#logo .logo-right {
		margin: 0 0 0 auto;
	}
	#logo .logo-right img.sp {
		width: 42px;
		height: 42px;
	}
}

/* コンテナ内の写真を角丸8pxに（アイコン・バナー・ランキングバッジは対象外） */
#content .container img {
	border-radius: 8px;
}
#content .container img.corner-icon,
#content .container img[src*="/images/common/"]:not([src*="placeholder"]) {
	border-radius: 0;
}

/* 段組みの余白（ガター）
   テーマ側でBootstrapのガターが無効化されており、横並びの列同士が密着するため、
   gap-* クラスを使っていない行に限り、横並びになるタブレット以上でガターを復活させる */
@media (min-width: 768px) {
	#content .row:not([class*="gap-"]) {
		--bs-gutter-x: 1.5rem;
		margin-left: calc(var(--bs-gutter-x) * -.5);
		margin-right: calc(var(--bs-gutter-x) * -.5);
	}
	#content .row:not([class*="gap-"]) > * {
		padding-left: calc(var(--bs-gutter-x) * .5);
		padding-right: calc(var(--bs-gutter-x) * .5);
	}
}
/* 縦積みになるスマホでは、カードや写真の上下に間隔をあける */
@media (max-width: 767.98px) {
	#content .row.g-4 > *,
	#content .menu-card {
		margin-bottom: 1.5rem;
	}
}

/* 段組み同士の縦の余白：下余白（mb-*）のない行の直後にカード行・小見出し・カード一覧が続く場合に間隔をあける */
#content .row:not([class*="mb-"]) + .row,
#content .row:not([class*="mb-"]) + h4,
#content .row:not([class*="mb-"]) + .feature-wrap {
	margin-top: 2.5rem;
}
@media (max-width: 767.98px) {
	#content .row:not([class*="mb-"]) + .row,
	#content .row:not([class*="mb-"]) + h4,
	#content .row:not([class*="mb-"]) + .feature-wrap {
		margin-top: 1.5rem;
	}
}

/* 画像なしの手順ボックス（火災保険ページの流れ）は見出しの左線を表示しない */
.step-content:not(:has(img)) h4 {
	border-left: none;
	padding-left: 0;
}

/* サイドバー（施工実績・コラム）：左のコンテンツの高さに引き伸ばさず、中身の高さにする */
#content aside.col-md-4 {
	align-self: flex-start;
	height: auto;
}
