/* Base Styles */
:root {
	--main-color: #063696;
	--link-color: #0098E4;
	--accent-color: #7EB702;
	--light-background: color(srgb 0.99 0.98 0.98 / 0.9);
}

body {
	font-family: 'Noto Sans JP', sans-serif;
	line-height: 1.6;
	color: #494949;
	font-size: 20px;
	background-color: #FCFAFA;
	overflow-x: hidden;
}

p:not(:last-child) {
	margin-bottom: 1rem;
}

.container {
	max-width: 100% !important;
}

/* Header Styles */
header {
	position: fixed;
	top: 39px;
	z-index: 31;
	width: 100%;
}

header .container {
	width: min(1800px, 92%);
	background-color: #fff;
	border-radius: 16px;
}

header nav {
	gap: 49px;
}

header nav ul {
	gap: 68px;
}

nav ul li a {
	position: relative;
}

nav ul li a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #0066a4;
	transition: width 0.3s;
}

nav ul li a span {
	font-weight: 700;
	color: var(--link-color);
}

nav ul li a:hover::after {
	width: 100%;
}

header .contact-btn {
	background-color: var(--accent-color);
	color: #fff;
	padding: 1.75rem 3rem;
	border-radius: 0 16px 16px 0;
}

header .contact-btn sub {
	bottom: 0;
}

/* ハンバーガーメニュー */
.menu-button {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	row-gap: 8px;
}

.menu-button__line,
.menu-button::before,
.menu-button::after {
	content: "";
	width: 28px;
	height: 2px;
	background-color: #0098e4;
	border-radius: 3px;
	transition: transform 0.3s linear, opacity 0.3s linear;
}

.menu-button.is-opened .menu-button__line {
	opacity: 0;
}

.menu-button.is-opened::before {
	transform: translateY(10px) rotate(45deg);
}

.menu-button.is-opened::after {
	transform: translateY(-10px) rotate(-45deg);
}

/* Section Styles */
section .container {
	width: min(1220px, 90%);
	margin: auto;
}

/* Footer Styles */
footer {
	position: relative;
	color: #fff;
	padding: 4rem 0 2rem;
	background-image: url(../img/footer_bg.svg);
	background-color: #001848;
	background-repeat: no-repeat;
	background-position: right;
}

footer .container {
	width: min(1220px, 90%);
	margin: auto;
}

footer .grid {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 0px 0px;
	grid-template-areas: "logo nav"
		"address .";
	padding-bottom: 3rem;
	border-bottom: solid 1px color(srgb 1 1 1 / 0.25);
	margin-bottom: 3rem;
}

.footer-logo {
	grid-area: logo;
}

.footer-nav {
	grid-area: nav;
	justify-self: flex-end;
}

.footer-nav ul {
	display: flex;
	gap: 2rem;
	font-size: 1rem;
}

.footer-nav ul li a:hover {
	text-decoration: underline;
}

.footer-nav ul li a span {
	font-weight: bold;
}

.footer-info {
	grid-area: address;
	font-style: normal;
	font-size: 1rem;
}

.copyright,
.footer-link {
	font-size: .75rem;
}

.return-top {
	color: var(--link-color);
}

.return-top p {
	font-size: 1rem;
}

.footer-link:first-of-type {
	font-size: 1rem;
}
/* Responsive Styles */
@media (max-width: 1280px) {
	#header-menu {
		width: -webkit-fit-content;
		width: -moz-fit-content;
		width: fit-content;
	}

	footer .container {
		width: 92%;
	}

	footer .grid {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr 1fr 1fr;
		grid-template-areas: "logo"
			" nav"
			"address";
		gap: 1rem;
	}

	.footer-nav {
		justify-self: flex-start;
	}

	.footer-nav ul {
		gap: 1rem;
		font-size: .75rem;
	}
}

@media (max-width: 1023px) {
	header .container {
		padding: 1rem;
	}

	.menu-button {
		display: flex;
	}

	#header-menu {
		width: 92%;
		left: 50%;
		transform: translateX(-50%);
		border: 1px solid #ccc;
	}

	header nav ul {
		margin: 1rem;
	}

	header .contact-btn {
		border-radius: 0;
	}
}

@media (max-width: 768px) {
	header {
		top: 0;
	}

	header .container {
		width: 100%;
		padding: 0;
		border-radius: 0;
	}

	section .container {
		width: 92%;
		margin: auto;
	}

	.return-top img {
		width: 32px;
	}

	.return-top p {
		font-size: .75rem;
	}

	footer {
		background-image: unset;
	}
}