@charset "utf-8";
/* * {
	outline: 1px solid red;
} */

:root {
	--black: #333333;
	--white: #f8f8f8;
	--green: #10520a;
	--lightgreen: #7e9f40;
	--mainfont: 'Noto Serif JP', serif;
}
html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--mainfont);
	position: relative;
	color: var(--black);
	background-color: white;
}

td {
	word-break: auto-phrase;
}

h1 {
	font-size: clamp(2rem, 1.273rem + 3.64vw, 4rem);
}
h2 {
	font-size: clamp(2rem, 1.111rem + 1.85vw, 2.5rem);
	text-align: center;
	margin-bottom: 2rem;
	word-break: auto-phrase;
}

h3 {
	font-size: clamp(1.5rem, 0.611rem + 1.85vw, 2rem);
}

/* 共通のインナー */
.c-inner {
	width: min(80%, 1200px);
	margin: 0 auto;
}

.page-inner {
	margin-top: 3rem;
}

/* 共通の余白 */
.c-margin {
	margin-top: 3rem;
	margin-bottom: clamp(5rem, -3.889rem + 18.52vw, 10rem);
}

@media (max-width: 768px) {
	.c-inner {
		width: min(94%, 600px);
	}
}

/* ---------------------------------------header--------------------------------------- */

.header {
	position: fixed;
	top: 0;
	z-index: 100;
	width: 100%;
	height: 5rem;
	background-color: #10520a99;
	color: var(--white);
}

.header_inner {
	height: 100%;
	width: min(94%, 1200px);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header_logo {
	width: 150px;
}

.header_logo a {
	display: inline-block;
	height: 100%;
}

.header_nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header_nav > ul {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
	position: relative;
}

.header_nav li {
	position: relative;
}

.header_nav > ul > li > a {
	display: inline-block;
	text-decoration: none;
	padding: 0.5rem;
	position: relative;
}

.header_nav > ul > li > a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 1px;
	background: var(--white);
	transform: scaleX(0);
	transform-origin: center top;
	transition: transform 0.3s;
}

.header_nav > ul > li > a:hover::after {
	transform: scaleX(1);
}

.cta-btn a {
	position: relative;
	display: flex;
	justify-content: space-around;
	align-items: center;
	margin: 0 auto;
	max-width: 280px;
	padding: 10px 25px;
	color: #fff;
	transition: 0.3s ease-in-out;
	font-weight: 600;
	background: #008332;
	filter: drop-shadow(0px 2px 4px #ccc);
	border-radius: 5px;
	overflow: hidden;
}

.cta-btn a:before {
	content: '';
	display: block;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: -100%;
	background-image: linear-gradient(
		130deg,
		rgba(255, 255, 255, 0) 25%,
		rgba(255, 255, 255, 0.3) 50%,
		rgba(255, 255, 255, 0) 55%
	);
	-webkit-transition: 0.5s;
	transition: 0.6s;
}
.cta-btn a:hover:before {
	left: 100%;
}

.cta-btn img {
	margin-left: 1rem;
	width: 24px;
}

/* PC ホバーで表示 */
@media (min-width: 1001px) {
	.header_nav > ul > li:hover > ul {
		display: block;
	}
}

/* -----------------------------
   ハンバーガー
----------------------------- */

#menu_btn {
	display: none;
}

/* -----------------------------
   スマホ用
----------------------------- */
@media (max-width: 1000px) {
	#menu_btn {
		display: block;
		width: 30px;
		height: 24px;
		position: relative;
		z-index: 3;
		cursor: pointer;
	}

	#menu_btn span,
	#menu_btn span::before,
	#menu_btn span::after {
		content: '';
		height: 2px;
		width: 100%;
		border-radius: 3px;
		background: var(--white);
		position: absolute;
		transition: 0.2s;
	}

	#menu_btn span {
		top: 0;
	}

	#menu_btn span::before {
		top: 8px;
	}

	#menu_btn span::after {
		top: 16px;
	}

	#menu_btn.open span {
		background: var(--white);
		top: 8px;
		transform: rotate(45deg);
	}

	#menu_btn.open span::before {
		opacity: 0;
	}

	#menu_btn.open span::after {
		background: var(--white);
		top: 0;
		transform: rotate(-90deg);
	}

	.header_nav {
		flex-direction: column;
		justify-content: flex-start;
		align-items: flex-start;
		width: 100%;
		height: 100vh;
		position: fixed;
		top: 0;
		right: -120%;
		background: var(--green);
		color: var(--white);
		transition: 0.5s;
		padding: 5rem 2rem 2rem;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.header_nav.open {
		right: 0;
	}

	.header_nav > ul {
		display: flex;
		flex-direction: column;
		width: 100%;
		gap: 1rem;
	}
	.header_nav > ul > li {
		display: block;
		position: static;
		width: 100%;
		padding: 0.5rem 0;
	}

	.header_nav > ul > li > a {
		display: block;
		color: var(--white);
	}
}

/* ---------------------------------------contact area--------------------------------------- */

.contact-area {
	background-color: #dadada91;
	padding-block: 2rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
}

.contact-area__p {
	margin-inline: auto;
	width: 94%;
	word-break: auto-phrase;
}

/* ▼ 基本ボタンデザイン（共通） */
.sq_btn {
	width: 320px;
	height: 80px;
	border: 1px solid var(--white);
	text-align: center;
	font-size: 20px;
}

.sq_btn a {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	align-items: center;
	margin: 0 auto;
	padding: 10px 25px;
	transition: 0.3s ease-in-out;
	font-weight: 600;
	overflow: hidden;
	color: var(--white);
	text-decoration: none;
	background: var(--green);
	z-index: 50;
}

.sq_btn.contact_btn {
	font-size: 24px;
}

.sq_btn a span {
	display: inline-block;
	font-size: 14px;
}

/* ▼ contact-area（グレー背景エリア）用：hoverで黒→白＋グリーン背景 */
.contact-area .sq_btn.contact_btn {
	border-color: var(--black);
	color: var(--black);
	background: transparent;
}
.contact-area .sq_btn.contact_btn a {
	color: var(--black);
	background: transparent;
}
.contact-area .sq_btn.contact_btn a:hover {
	color: var(--white);
	background: var(--green);
	border-color: var(--green);
}

/* ▼ footer（深緑背景）用：hoverで白→黒＋白背景 */
.footer .sq_btn {
	border-color: var(--white);
}
.footer .sq_btn a {
	color: var(--white);
	background: var(--green);
}
.footer .sq_btn a:hover {
	color: var(--black);
	background: var(--white);
	border-color: var(--white);
}

/* ---------------------------------------footer--------------------------------------- */

.footer {
	background-color: var(--green);
	color: var(--white);
}

.footer-inner {
	height: 100%;
	width: min(80%, 1200px);
	margin-inline: auto;
}
.footer-nav {
	padding-block: 1rem;
	font-size: 14px;
}

.footer-nav > ul {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap; /* メニューが多いとき折り返し */
	max-width: 100%; /* はみ出さない */
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav li a {
	display: block;
	padding: 0.5rem 1rem;
	white-space: normal;
	text-decoration: none;
	width: 100%;
}

.footer-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.footer-info {
	display: flex;
	flex-direction: column;
}
.footer-info img {
	width: 240px;
}

.footer-info table th {
	min-width: 6em;
	vertical-align: middle;
	padding-block: 0.5rem;
}

.footer-info table td {
	width: fit-content;
	vertical-align: middle;
	padding-block: 0.5rem;
}

.footer-btn__area {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.copyright {
	border-top: 1px solid var(--white);
	text-align: center;
	padding-block: 0.5rem;
	width: 98%;
	margin: 2rem auto 0;
}

/* Responsive Styles */
@media (max-width: 1000px) {
	.footer-container {
		flex-direction: column;
	}
	.footer-info {
		align-items: center;
		height: auto;
		gap: 2rem;
	}

	.footer_nav > ul {
		flex-direction: column;
		align-items: stretch; /* 左右いっぱいにする */
	}

	.footer_nav li {
		width: fit-content;
		text-align: left; /* 必要に応じて左寄せ */
	}

	.footer_nav li a {
		width: 100%;
	}
	.footer_nav > ul {
		flex-direction: column;
	}
}

/* ----------------------------------------共通ボタン---------------------------------------- */

.more-btn {
	position: relative;
	left: 60%;
	border: none;
	border-bottom: 1px solid #666;
	width: 200px;
	max-width: 90%;
	margin-bottom: 2rem;
}

.more-btn::before {
	content: '';
	display: block;
	width: 30px;
	height: 1px;
	background: #666;
	rotate: 40deg;
	position: absolute;
	right: -3px;
	bottom: 9px;
}

.more-btn a {
	display: inline-block;
	width: 100%;
	text-align: center;
}

/* 右下に固定 */
/*---------------------------ページトップへ戻るボタン---------------------------*/
#page-top {
	position: fixed;
	right: 5px;
	bottom: 20px;
	height: 50px;
	text-decoration: none;
	font-weight: bold;
	transform: rotate(90deg);
	font-size: 90%;
	line-height: 1.5rem;
	color: #1f1f1f;
	padding: 0 0 0 35px;
	border-top: solid 1px;
	z-index: 20;
}

#page-top::before {
	content: '';
	display: block;
	position: absolute;
	top: -1px;
	left: 0px;
	width: 15px;
	border-top: solid 1px;
	transform: rotate(35deg);
	transform-origin: left top;
}

/*---------------------------ページ共通タイトル---------------------------*/

/* ページタイトル共通スタイル */
.page-title {
	position: relative;
	text-align: center;
	padding: 60px 20px 40px;
	overflow: hidden;
	margin-block: 3rem;
}

.page-title::before {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 100px;
	font-weight: 700;
	color: #9ea85959;
	pointer-events: none;
	white-space: nowrap;
	z-index: 0;
}

.page-title h1 {
	position: relative;
	display: inline-block;
	font-size: 28px;
	font-weight: 700;
	line-height: normal;
	color: #000;
	z-index: 1;
}

/* スマホ対応 */
@media (max-width: 600px) {
	.page-title {
		padding: 40px 10px 30px;
	}
	.page-title::before {
		font-size: 60px;
	}
	.page-title h1 {
		font-size: 22px;
	}
}
