:root {
	--primary-red: #d90429;
	--main-blue: #0077b6;
	--orange: #ef7000;
	--vivid-orange: #ffb703;
	--line-green: #06C755;
	--sky-blue: #85c6e9;
	--bg-light: #f8f9fa;
	--white: #ffffff;
	--header-height: 60px;
}

html { scroll-behavior: smooth; }

body {
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	margin: 0;
	padding-top: var(--header-height);
	line-height: 1.6;
	color: #333;
	background-color: var(--bg-light);
}

p {
	margin: 0;
	font-size: 16px;
}

.small,
figcaption { font-size: 14px; }

.copyright { font-size: 12px; }

a { color: #333; }

.sentence { text-align: justify; }

/* --- ナビゲーション（基本設定） --- */
nav {
	background: var(--white);
	height: var(--header-height);
	width: 100%;
	position: fixed; top: 0; left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	box-sizing: border-box;
	z-index: 1000;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
	font-weight: bold;
	font-size: 20px;
	display: flex;
	white-space: nowrap;
	align-items: center;
	gap: 10px;
}

.logo img { width: 50px; }

/* --- ハンバーガーメニューボタン（スマホ用） --- */
.menu-btn {
	display: flex;
	flex-direction:
	column; gap: 6px;
	cursor: pointer;
	z-index: 1100;
}

.menu-btn span {
	display: block;
	width: 30px; height: 3px;
	background: #333;
	transition: 0.3s;
}

/* --- スマホ用メニューリスト（右からスライド） --- */
.nav-links {
	width: 70%;
	height: 100vh;
	padding: 60px 30px;
	position: fixed;
	top: 0;
	right: -100%; /* 初期状態は画面外（右）に隠す */
	background: var(--white);
	display: flex;
	flex-direction: column;
	transition: 0.4s ease-in-out; 
	box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

/* クラスactiveがつくと右から出てくる */
.nav-links.active { right: 0; }

.nav-links a {
	height: 60px;
	padding: 10px 0;
	text-decoration: none;
	color: #333;
	font-size: 16px;
	display: flex;
	align-items: center;
	border-top: 1px solid #eee;
}

.nav-links a.contact {
	height: 70px;
	padding: 0 0 0 20px;
	gap: 5px;
	background: var(--main-blue);
	color: #fff;
	font-size: 18px;
	font-weight: bold;
}

.nav-links a.contact img {
	height: 32px;
}

/* --- ヘッダー（画像背景設定） --- */
header {
	height: 350px;
	width: 100%;
	background-image: linear-gradient(rgba(0, 119, 182, 0.5), rgba(2, 62, 138, 0.5)), url('../images/residential-area.webp');
	background-size: cover;
	background-position: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	text-align: center;
	padding: 0 20px;
	box-sizing: border-box;
	border-bottom: 8px solid var(--vivid-orange);
}

header h1 {
	margin: 0;
	font-size: 28px;
	line-height: 1.3;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

header p {
	margin-top: 15px;
	font-size: 18px; 
	font-weight: bold;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* --- コンテンツスタイル --- */
article { margin: 30px auto; }

section {
	max-width: 1000px;
	margin: auto;
	padding: 30px 20px;
}
	
section#services { padding: 0 20px 30px; }

.area-intro { max-width: 900px; }

h2.area-top {
	margin: 0 0 20px;
	text-align: center;
	font-size: 22px;
	line-height: 1.5;
}

section h3 {
	margin: 0 0 20px;
	text-align: center;
	color: var(--main-blue);
	font-size: 22px; 
}

section#area h3 { margin: 0 0 10px; }

.area-intro {
	margin: 0 auto;
	padding: 0 20px 30px;

}

.feature-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.feature-card {
	padding: 25px;
	background: white;
	border-radius: 10px;
	border-top: 4px solid var(--sky-blue);
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-card h4 {
	margin: 0 0 15px;
	color: var(--orange);
	font-size: 18px;
}

.service-card { border-top: 4px solid var(--sky-blue); }

/* --- 施工実績ギャラリー（スマホ：1列） --- */

.gallery {
	margin: 0 0 30px;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	background: #fff;
}

.gallery h4 {
	margin: 0 0 15px;
	padding: 10px;
	color: #fff;
	font-size: 18px;
	text-align: center;
	background: #e47b01;
}

.gallery-item {
	display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.gallery-item img {
	width: 100%;
	margin: 0 0 5px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 5px;
}

.contact-box {
	margin: 5px 0;
	padding: 20px;
	background: white;
	border-radius: 20px;
	text-align: center;
	border: 3px dashed var(--vivid-orange);
}

.cost {
	font-size: 32px;
	color: var(--primary-red);
	font-weight: bold;
}

.cost span {
	font-size:16px;
}

.btn-group {
	margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.contact-btn {
	padding: 10px 15px;
	text-decoration: none;
	border-radius: 50px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	color: white;
}


.contact-btn img {
	width: 24px;
	height: 24px;
	margin: 0 5px 0 0;
}

.btn-tel { background-color: var(--primary-red); }

.btn-line { background-color: var(--line-green); }

footer {
	padding: 40px 20px 10px;
	background: #ddecf5;
	color: black;
	text-align: center;
}

.footer__contact {
	margin: 0 0 20px;
}

.footer__contact--business-hou { margin: 0 0 10px; }

.free-estimate {
	font-weight: bold;
	font-size: 20px;
}

.company-info { margin: 20px 0; }

p#pageTop {
	display: block;
	position: fixed;
	right: 10px;
	bottom: 10px;
}

p#pageTop a {
	border-radius: 30px;
	width: 45px;
	height: 45px;
	background: var(--main-blue);
	display: flex;
	justify-content: center;
	align-items: center;
}

p#pageTop img { width: 25px; }

/* --- パソコン表示（768px以上）の設定 --- */
@media (min-width: 768px) {

.kitakyushu { display: none; }

.gallery-item { 
	display: grid;
	grid-template-columns: repeat(2, 1fr);
    grid-template-rows: max-content max-content repeat(1, 1fr);
	gap: 30px; 
}

.gallery-item__main { grid-area: 1 / 1 / 2 / 3; }
.gallery-item_sub-1 { grid-area: 2 / 1 / 3 / 2; }
.gallery-item_sub-2 { grid-area: 2 / 2 / 3 / 3; }

/* その他のPC設定は維持 */
.menu-btn { display: none; }

nav { padding: 0 0 0 20px; }

.nav-links { 
	width: auto;
	height: auto;
	padding: 0;
	position: static;
	right: auto;
        flex-direction: row;
	background: none; 
        box-shadow: none;
}

.nav-links a {
	margin: 0;
	padding: 0 10px;
	border: none;
}

.nav-links a.contact {
	height: 60px;
	margin: 0 0 0 10px;
	padding: 0 20px 0 20px;
}

header { height: 400px;}

header h1 { font-size: 46px; }

header p { font-size: 22px; }

article { margin: 60px auto 50px; }

section h3 { font-size: 26px; }

.feature-card h4 { font-size: 20px; }

h2.area-top { font-size: 28px; }

h2.area-top br { display: none; }

.feature-container { gap: 30px; }

.area-intro { padding: 0 20px 60px; }

.area-intro p { line-height: 1.9; }

section#services,
section#features,
section#works {
	margin: 0 auto 60px;
	padding: 50px 40px 50px;
	background: #fff;
}

section#area { margin: 0 auto 60px; }

section#price { max-width: 700px; }

.gallery { padding: 30px 30px 0 30px; }

.gallery h4 { margin: 0 0 20px; }

.contact-box__example { font-size: 18px; }

.cost {
	font-size: 40px;
	line-height: 1.3;
}

.feature-container { grid-template-columns: 1fr 1fr; }

.btn-group {
	flex-direction: row;
	justify-content: center;
}

.contact-btn {
	min-width: 250px;
	padding: 15px;
}

.btn-group {
	width: 700px;
	margin: 30px auto 0;
}

.free-estimate { font-size: 26px; }


}