/*
Theme Name: 福岡建物美装（Lightning 子テーマ）
Theme URI: https://www.fukuokatatemonobisou.co.jp/
Template: lightning
Description: 旧子テーマ「bisou」（Lightning 4 系）のデザインを Lightning G3 で再現した子テーマ
Author: upgrade
Version: 1.0.0
Text Domain: bisou-lightning
License: GNU General Public License v2 or later
*/

/* ==========================================================
   基本
   ========================================================== */
:root {
	--bi-main: #6fba47;
	--bi-main-dark: #54ba1d;
	--bi-bg: #fcfff9;
	--bi-text: #333;
	--bi-line: #ddd;
}

body {
	background-color: var(--bi-bg);
	color: var(--bi-text);
	font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
	font-weight: 500;
}

/* 旧サイトと同じく、PC では本文を大きめに */
@media (min-width: 992px) {
	.entry-body p {
		font-size: 18px;
		line-height: 1.9;
	}
}

/* ==========================================================
   ヘッダー
   ========================================================== */
.site-header {
	background-color: #fff;
}

.global-nav-name {
	font-weight: bold;
}

/* ==========================================================
   ページタイトル（旧サイトと同じく緑帯に左寄せ）
   ========================================================== */
.page-header {
	text-align: left;
}

.page-header-inner {
	padding-top: 22px;
	padding-bottom: 22px;
}

.page-header-title {
	font-size: 28px;
	font-weight: normal;
}

/* ==========================================================
   本文
   ========================================================== */
.entry-body img.alignnone {
	display: block;
	margin-bottom: 1.5em;
}

/* 会社概要の表 */
.entry-body .paragraph table {
	width: 100%;
	margin: 0 0 40px;
	border-top: 1px solid #abadb3;
	border-collapse: collapse;
	line-height: 2.2;
}

.entry-body .paragraph th,
.entry-body .paragraph td {
	padding: 10px 0;
	border: none;
	border-bottom: 1px solid #ccc;
	background: none;
}

.entry-body .paragraph th {
	width: 30%;
	font-weight: normal;
	vertical-align: top;
}

.entry-body .paragraph td span#map {
	padding-left: 20px;
}

/* 沿革の表 */
.entry-body .history table {
	width: 100%;
	margin: 15px 0 20px;
	border-top: 1px solid #abadb3;
	border-collapse: collapse;
	line-height: 1.8;
}

.entry-body .history table th,
.entry-body .history table td {
	padding: 12px 15px;
	border: none;
	border-bottom: 1px dotted #bbb;
	vertical-align: middle;
}

.entry-body .history table th {
	width: 25%;
	background-color: #ececec;
	font-weight: normal;
}

.entry-body .history table th.co01 {
	width: 12%;
	background-color: #f8f8f8;
	border-left: 1px dotted #bbb;
}

.entry-body .history table td {
	background-color: #fff;
	border-right: 1px dotted #bbb;
}

@media (max-width: 575.98px) {
	.entry-body .paragraph th {
		width: 32%;
	}

	.entry-body .history table th,
	.entry-body .history table td {
		padding: 8px;
		font-size: 13px;
	}
}

.entry-body iframe {
	max-width: 100%;
}

/* ==========================================================
   各ページ下の「お気軽にお問い合わせください」欄（ExUnit）
   ExUnit 標準は float で左右に並べるため、幅によってボタンが下に落ちる。
   flex で並べ直し、スマホでは縦積みにする。
   ========================================================== */
.veu_contact-layout-horizontal .contact_frame {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 28px;
}

.veu_contact-layout-horizontal .contact_frame::after {
	display: none;
}

.veu_contact-layout-horizontal .contact_txt,
.veu_contact-layout-horizontal .contact_bt {
	float: none;
	margin: 0;
}

.veu_contact-layout-horizontal .contact_txt {
	flex: 0 1 auto;
	width: auto;
	text-align: left;
	line-height: 1.5;
}

.veu_contact-layout-horizontal .contact_txt_catch {
	font-size: 14px;
}

.veu_contact-layout-horizontal .contact_txt_tel {
	margin: 2px 0;
	font-size: 26px;
	white-space: nowrap;
}

.veu_contact-layout-horizontal .contact_txt_time {
	font-size: 13px;
}

.veu_contact-layout-horizontal .contact_bt {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	padding: 14px 28px;
	white-space: normal;
}

.veu_contact .contact_bt_txt {
	font-size: 17px;
}

.veu_contact .contact_bt_subTxt {
	margin-top: 4px;
	font-size: 12px;
}

@media (max-width: 991.98px) {
	.veu_contact-layout-horizontal .contact_frame {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px 16px;
	}

	.veu_contact-layout-horizontal .contact_txt {
		text-align: center;
	}

	.veu_contact-layout-horizontal .contact_bt {
		width: 100%;
		padding: 12px 16px;
	}

	/* 矢印だけが2行目に落ちないよう、文字を小さくし末尾の矢印は省く */
	.veu_contact .contact_bt_txt {
		font-size: 14px;
	}

	.veu_contact .contact_bt_txt .fa-circle-right {
		display: none;
	}
}

/* ==========================================================
   お問い合わせフォーム（Contact Form 7）
   ========================================================== */
.table-contactform7 {
	table-layout: fixed;
}

.table-contactform7 th {
	font-weight: bold;
}

.required-contactform7,
.unrequired-contactform7 {
	margin-right: 6px;
	padding: 3px 6px;
	border-radius: 3px;
	color: #fff;
	font-size: 12px;
}

.required-contactform7 {
	background: #de8686;
}

.unrequired-contactform7 {
	background: #bdbdbd;
}

.table-contactform7 input,
.table-contactform7 textarea,
.table-contactform7 select {
	max-width: 100%;
}

.message-100 textarea {
	width: 100%;
}

@media (min-width: 900px) {
	.table-contactform7 th {
		width: 32%;
	}
}

@media (max-width: 899.98px) {
	.table-contactform7,
	.table-contactform7 tbody,
	.table-contactform7 tr,
	.table-contactform7 th,
	.table-contactform7 td {
		display: block;
		width: 100%;
	}

	.table-contactform7 th {
		border: none;
	}

	.table-contactform7 td {
		border-top: none !important;
	}
}

/* ==========================================================
   フッター
   ========================================================== */
.site-footer {
	border-top: 3px solid var(--bi-main);
	background-color: #f5f5f5;
}

/* ==========================================================
   トップページ（固定ページ「トップページ」）
   ========================================================== */
.home .entry-header {
	display: none;
}

.home .site-body {
	padding-top: 0;
}

/* あいさつ文：キャッチを大きく置いて、ページの見せ場にする */
.bi-top-about {
	max-width: 38em;
	margin: 64px auto 80px;
}

.entry-body h2.bi-top-about__catch {
	margin: 0 0 32px;
	padding: 0 0 20px;
	border: none;
	border-bottom: 3px solid var(--bi-main);
	background: none;
	color: var(--bi-text);
	font-size: 34px;
	font-weight: bold;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-align: center;
}

.entry-body h2.bi-top-about__catch::before,
.entry-body h2.bi-top-about__catch::after {
	display: none;
}

.entry-body .bi-top-about p {
	font-size: 16px;
	line-height: 2;
}

/* セクション見出し */
.bi-top-section {
	margin-bottom: 80px;
}

.entry-body h2.bi-top-heading {
	margin: 0 0 32px;
	padding: 0 0 0 14px;
	border: none;
	border-left: 6px solid var(--bi-main);
	background: none;
	color: var(--bi-text);
	font-size: 24px;
	line-height: 1.4;
}

.entry-body h2.bi-top-heading::before,
.entry-body h2.bi-top-heading::after {
	display: none;
}

/* 業務案内（3列×2段）
   旧設定を引き継いだサイトではグループに内側の囲み（inner-container）が付くので両方に効かせる */
.bi-services:not(:has(> .wp-block-group__inner-container)),
.bi-services > .wp-block-group__inner-container {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}

.bi-service > *,
.bi-service > .wp-block-group__inner-container > * {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-body .bi-service__img {
	margin: 0;
}

.bi-service__img a {
	display: block;
}

.entry-body .bi-service__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-bottom: 4px solid var(--bi-main);
}

.bi-service__img a:hover img {
	opacity: 0.85;
}

.entry-body h3.bi-service__title {
	margin: 16px 0 6px;
	padding: 0;
	border: none;
	background: none;
	font-size: 18px;
	line-height: 1.5;
}

.entry-body h3.bi-service__title::after {
	display: none;
}

.bi-service__title a {
	color: var(--bi-text);
	text-decoration: none;
}

.bi-service__title a:hover {
	color: var(--bi-main-dark);
	text-decoration: underline;
}

.entry-body p.bi-service__text {
	font-size: 14px;
	line-height: 1.8;
}

.entry-body p.bi-top-more {
	margin-top: 28px;
	font-size: 14px;
	text-align: right;
}

.bi-top-more a {
	color: var(--bi-main-dark);
}

.bi-top-more a::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

/* 会社情報 */
.bi-company {
	gap: 32px;
	align-items: stretch !important;
}

.entry-body .bi-company__table {
	margin: 0;
}

.bi-company__table table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid #ccc;
	background: #fff;
}

.bi-company__table th,
.bi-company__table td {
	padding: 14px 16px;
	border: none;
	border-bottom: 1px solid #ccc;
	font-size: 15px;
	line-height: 1.7;
	text-align: left;
	vertical-align: top;
}

.bi-company__table th {
	width: 7em;
	background: #f1f8ec;
	font-weight: normal;
	white-space: nowrap;
}

.bi-company__map,
.bi-company__map iframe {
	height: 100%;
	min-height: 300px;
}

.bi-company__map iframe {
	display: block;
	width: 100%;
	border: 0;
}

@media (max-width: 767.98px) {
	.bi-top-about {
		margin: 40px auto 56px;
	}

	/* 「も。」だけが2行目に落ちないよう、スマホでは1行に収まる大きさにする */
	.entry-body h2.bi-top-about__catch {
		font-size: 20px;
		letter-spacing: 0.02em;
		text-wrap: balance;
	}

	.entry-body .bi-top-about p {
		font-size: 15px;
	}

	.bi-services:not(:has(> .wp-block-group__inner-container)),
	.bi-services > .wp-block-group__inner-container {
		grid-template-columns: repeat(2, 1fr);
		gap: 28px 16px;
	}

	.bi-top-section {
		margin-bottom: 56px;
	}
}

@media (max-width: 479.98px) {
	.bi-services:not(:has(> .wp-block-group__inner-container)),
	.bi-services > .wp-block-group__inner-container {
		grid-template-columns: 1fr;
	}
}
