/* ----------------------------------------------
  基本設定
---------------------------------------------- */
/* 開始位置設定 */
main {
	margin-top: 7rem;
}
@media screen and (max-width: 768px) {
	main {
		margin-top: 5rem;
	}
}
/* トップ以外のページのセクション開始位置設定 */
body:not(.home) main > section:first-of-type {
	padding: 3rem 0 2rem 0;
}
@media screen and (max-width: 768px) {
		body:not(.home) main > section:first-of-type {
		padding-top: 1rem;
	}
}

.container {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 2rem 1rem; /* 左右に少し余白（スマホ用） */
	box-sizing: border-box;
}
.inner-80 {
	width: 80%;
	margin: 0 auto;
}
.inner-60 {
	width: 60%;
	margin: 0 auto;
}
/* フッター */
footer {
	min-width: 100%;
	margin: 3rem 0;
	text-align: center;
}
/* ----------------------------------------------
  3カラムレイアウト
---------------------------------------------- */
.three-column {
	display: flex;
	justify-content: start;
	flex-wrap: wrap;
	gap: 3rem;
	margin: 0;
	list-style: none;
}
.three-column__item {
	flex: 1 1 calc(33.333% - 2rem);
	max-width: calc(33.333% - 2rem);
}
@media screen and (max-width: 768px) {
	.three-column__item {
		flex: 1 1 calc(50% - 1.5rem); /* タブレット・2カラム */
		max-width: calc(50% - 1.5rem);
	}
}
@media (max-width: 480px) {
	.three-column__item {
		flex: 1 1 100%; /* スマホ・1カラム */
		max-width: 100%;
	}
}
.three-column__img {
	width: 100%;
	height: 100%;
	max-height: 200px;
	object-fit: cover;
	border-bottom-right-radius: 3rem;
}
.three-column__title {
	font-size: 1rem;
	margin: 0;
	line-height: 1.5rem;
}
/* ----------------------------------------------
  2カラムレイアウト
---------------------------------------------- */
.two-column {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 4%;
}

.left-column, .right-column {
	width: 48%;
	box-sizing: border-box;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
	.two-column {
		flex-direction: column;
		align-items: center; /* column時は横方向の中央揃え */
	}
	.left-column {
		width: 90%;
		margin: 0 auto;
	}
	.right-column {
		width: 90%;
		margin: 2rem auto;
	}
}

.left-column .gmap {
	text-align: right;
}

.right-column .gmap {
	margin-top: 5rem;
	width: 500px;
	height: 350px;
	max-width: 100%; /* 念のため親要素幅を超えないように */
}

@media screen and (max-width: 768px) {
	.right-column .gmap {
		width: 100%;  /* 画面幅いっぱいに */
		height: 350px;
		max-height: 400px; /* 必要なら高さ制限 */
	}
}

/* ----------------------------------------------
  投稿2カラムレイアウト：6:4（PC版）
---------------------------------------------- */
.two-column_6-4 {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 10%;
	width: 100%;
}

.two-column_6-4 .left-column {
	width: 60%;
}

.two-column_6-4 .right-column {
	width: 30%;
}

/* ----------------------------------------------
  投稿2カラムレイアウト：モバイル対応（768px以下）
---------------------------------------------- */
@media screen and (max-width: 768px) {
	.two-column_6-4 {
		flex-direction: column; /* 縦並びに変更 */
		width: 90%; /* 画面幅90%で中央揃え */
		margin: 0 auto;
		gap: 2rem; /* 縦方向の余白調整 */
	}

	.two-column_6-4 .left-column,
	.two-column_6-4 .right-column {
		width: 100%;
	}

	/* 右カラム（サイドバー）は下に */
	.two-column_6-4 .right-column {
		margin-top: 2rem;
	}

	/* ページャー中央揃え */
	.pager-new,
	.pager-old {
		display: block;
		text-align: center;
		float: none;
		margin-bottom: 1rem;
	}
}

//* ----------------------------------------------
  お問い合わせフォーム：PC表示（768px以上）
---------------------------------------------- */
.form-wrap {
	width: 800px;
	height: auto;
	margin: 50px auto;
}

/* フォームフィールド（入力欄）の設定 */
.form-wrap input[type="text"],
.form-wrap input[type="email"],
.form-wrap input[type="tel"],
.form-wrap textarea,
.form-wrap select {
	width: 100%; /* モバイルでも幅100% */
	max-width: 750px; /* PCで最大幅制限 */
	padding: 0.5rem;
	margin-bottom: 1rem;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}
/* フォームフィールド（入力欄）の設定 */
.form-wrap input[type="tel"]{
	width: auto;
	padding: 0.5rem;
	margin-bottom: 1rem;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

/* ボタン設定 */
.form-wrap input[type="submit"] {
	display: block;
	width: 200px;
	padding: 0.8rem;
	margin: 1rem auto;
	background-color: #d06b54;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s;
}

.form-wrap input[type="submit"]:hover {
	background-color: #b24b3c;
}

/* ----------------------------------------------
  お問い合わせフォーム：PC表示（768px以上）
---------------------------------------------- */
.form-wrap {
	width: 800px;
	height: auto;
	margin: 50px auto;
}

/* フォームフィールド（入力欄）の設定 */
.form-wrap input[type="text"],
.form-wrap input[type="email"],
.form-wrap input[type="tel"],
.form-wrap textarea,
.form-wrap select {
	width: 100%; /* モバイルでも幅100% */
	max-width: 750px; /* PCで最大幅制限 */
	padding: 0.5rem;
	margin-bottom: 1rem;
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

/* ボタン設定 */
.form-wrap input[type="submit"] {
	display: block;
	width: 200px;
	padding: 0.8rem;
	margin: 1rem auto;
	background-color: #d06b54;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s;
}

.form-wrap input[type="submit"]:hover {
	background-color: #b24b3c;
}

/* ----------------------------------------------
  MW WP Form 電話番号3分割のデザイン（PC＆モバイル共通）
---------------------------------------------- */
.mw-wp-form .tel-wrap {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.5rem; /* 各入力欄の間隔 */
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	max-width: 400px; /* 必要なら最大幅指定 */
	margin: 0 auto;
}

.mw-wp-form .tel-wrap input {
	flex: 1; /* 均等幅で並ぶ */
	padding: 0.5rem;
	text-align: center; /* 中央揃え */
	box-sizing: border-box;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* ハイフン（区切り）を中央に固定 */
.mw-wp-form .tel-wrap span.hyphen {
	align-self: center;
	font-size: 1.2rem;
	color: #666;
}

/* ----------------------------------------------
  モバイル表示：お問い合わせフォーム（768px以下）
---------------------------------------------- */
@media screen and (max-width: 768px) {
	.form-wrap {
		width: 90%; /* 画面幅90%で中央揃え */
		margin: 20px auto;
	}

	/* フォームフィールド（入力欄）の設定 */
	.form-wrap input[type="text"],
	.form-wrap input[type="email"],
	.form-wrap input[type="tel"],
	.form-wrap textarea,
	.form-wrap select {
		width: 100%;
		max-width: 100%;
		padding: 0.8rem;
		font-size: 1rem;
	}

	/* ボタンも幅100%に変更 */
	.form-wrap input[type="submit"] {
		width: 100%;
		max-width: 300px;
		margin: 1rem auto;
	}

	/* 電話番号フィールド：縦並び */
	.mw-wp-form .tel-wrap {
		flex-wrap: wrap;
		gap: 0.3rem;
		justify-content: center;
	}

	.mw-wp-form .tel-wrap input {
		width: 100%;
		margin-bottom: 0.5rem;
	}
}