/* ==========================================================================
   Site Header & Footer
   ========================================================================== */

:root {
	--color-primary: #099ADB;
	--color-primary-dark: #005fa3;
	--color-navy: #0d1f3c;
	--color-footer-bg: #333f48;
	--color-text: #383838;
	--site-header-height: 80px;
	--wp-admin-bar-height: 0px;
	--site-container-width: 1200px;
	--font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body.admin-bar,
#body_wrap.admin-bar {
	--wp-admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar,
	#body_wrap.admin-bar {
		--wp-admin-bar-height: 46px;
	}
}

body.admin-bar .site-header,
#body_wrap.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header,
	#body_wrap.admin-bar .site-header {
		top: 46px;
	}

	body.admin-bar .site-header__nav,
	#body_wrap.admin-bar .site-header__nav {
		top: calc(46px + var(--site-header-height));
	}
}

/* 固定ヘッダー分の余白（TOP以外） */
#body_wrap:not(.page-template-page-templates-template-top-php) #content.l-content.l-container {
	padding-top: calc(var(--wp-admin-bar-height) + var(--site-header-height)) !important;
}

#body_wrap:not(.page-template-page-templates-template-top-php) .l-topTitleArea {
	margin-top: calc(var(--site-header-height));
}

#body_wrap:not(.page-template-page-templates-template-top-php) .l-topTitleArea + #content.l-content.l-container,
#body_wrap:not(.page-template-page-templates-template-top-php) .l-topTitleArea + .p-breadcrumb + #content.l-content.l-container {
	padding-top: 0 !important;
}

#body_wrap:not(.page-template-page-templates-template-top-php) .l-topTitleArea + .p-breadcrumb {
	margin-top: 0;
}

#body_wrap:not(.page-template-page-templates-template-top-php) .p-breadcrumb {
	margin-top: calc(var(--wp-admin-bar-height) + var(--site-header-height));
	margin-bottom: 3rem;
}

#body_wrap:not(.page-template-page-templates-template-top-php) .p-breadcrumb + #content.l-content.l-container {
	padding-top: 0 !important;
}

#body_wrap.page-template-page-templates-template-top-php #content.l-content.l-container,
#body_wrap #content.l-content.l-container:has(.top-page) {
	padding-top: 0 !important;
}

/* Utilities
   -------------------------------------------------------------------------- */
.sp-only {
	display: none;
}

@media (max-width: 768px) {
	.sp-only {
		display: block;
	}

	.pc-only {
		display: none;
	}
}

/* Buttons
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	border: 2px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:hover {
	opacity: 0.75;
}

.btn-primary {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

.btn-primary:hover {
	background: var(--color-primary-dark);
	border-color: var(--color-primary-dark);
	opacity: 1;
}

.btn-outline {
	background: #fff;
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.btn-outline:hover {
	background: #f0f8ff;
	opacity: 1;
}

.btn-white {
	background: #fff;
	color: var(--color-primary);
	border-color: #fff;
}

.btn-white:hover {
	background: #f5f5f5;
	opacity: 1;
}

.btn-arrow::after {
	content: "";
	display: inline-block;
	width: 25px;
	height: 6px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask-image: url("../img/btn-arrow.svg");
	mask-image: url("../img/btn-arrow.svg");
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

/* Header
   -------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: var(--wp-admin-bar-height);
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
	height: var(--site-header-height);
	font-family: var(--font-base);
}

.site-header__inner {
	margin: 0 auto;
	padding: 0 40px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-header__logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	text-decoration: none;
	color: inherit;
}

.site-header__logo-img {
	display: block;
	width: auto;
	height: clamp(36px, 12vw, 72px);
	max-height: 72px;
}

.site-header__nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.site-header__nav-list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__nav-list a {
	font-size: 14px;
	font-weight: 700;
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.2s;
}

.site-header__nav-list a:hover {
	color: var(--color-primary);
}

.site-header__nav-btns {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header__nav-btns .btn {
	padding: 10px 20px;
	font-size: 13px;
	width: 140px;
}

.site-header__menu-btn {
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-primary);
}

.site-header__menu-btn-icon {
	display: block;
	width: 100%;
	height: 100%;
}

.site-header__menu-btn-line {
	fill: none;
	stroke: currentColor;
	stroke-width: 6;
	transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
		stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__menu-btn-line:nth-child(1) {
	stroke-dasharray: 60 207;
}

.site-header__menu-btn-line:nth-child(2) {
	stroke-dasharray: 60 60;
}

.site-header__menu-btn-line:nth-child(3) {
	stroke-dasharray: 60 207;
}

.site-header__menu-btn.is-open .site-header__menu-btn-line:nth-child(1) {
	stroke-dasharray: 90 207;
	stroke-dashoffset: -134;
}

.site-header__menu-btn.is-open .site-header__menu-btn-line:nth-child(2) {
	stroke-dasharray: 1 60;
	stroke-dashoffset: -30;
}

.site-header__menu-btn.is-open .site-header__menu-btn-line:nth-child(3) {
	stroke-dasharray: 90 207;
	stroke-dashoffset: -134;
}

/* Contact Section
   -------------------------------------------------------------------------- */
.top-contact {
	position: relative;
	padding: 100px 0;
	text-align: center;
	overflow: hidden;
	font-family: var(--font-base);
}

.top-contact__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.top-contact__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.top-contact__overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 30, 60, 0.1);
	z-index: 1;
}

.top-contact__inner {
	position: relative;
	z-index: 2;
	max-width: var(--site-container-width);
	margin: 0 auto;
	padding: 0 40px;
}

.top-contact .section-heading {
	text-align: center;
	margin-bottom: clamp(32px, 5vw, 48px);
}

.top-contact .section-heading__en {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 900;
	line-height: 1.4;
	background: linear-gradient(90deg, #099ADB 0%, #099ADB 30%, #8DE522 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 0 auto 8px;
	letter-spacing: 0.02em;
	width: fit-content;
}

.top-contact .section-heading__ja {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0;
}

.top-contact .section-heading__ja--white {
	color: #fff;
}

.top-contact__text {
	font-size: clamp(14px, 2vw, 16px);
	color: #fff;
	line-height: 2;
	max-width: 700px;
	font-weight: 700;
	margin: 0 auto 40px;
}

/* Footer
   -------------------------------------------------------------------------- */
.site-footer {
	background: var(--color-footer-bg);
	color: #fff;
	padding: 64px 0 0;
	font-family: var(--font-base);
}

.site-footer__inner {
	max-width: var(--site-container-width);
	margin: 0 auto;
	padding: 0 40px 48px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
	align-items: start;
}

.site-footer__info {
	align-self: center;
	text-align: center;
}

.site-footer__logo {
	display: inline-block;
	text-decoration: none;
}

.site-footer__logo img {
	display: block;
	width: auto;
	height: 32px;
	margin: 0 auto 10px;
}

.site-footer__line {
	width: 100%;
	height: 1px;
	margin: 20px 0;
}

.site-footer__address {
	font-style: normal;
	font-size: 14px;
	line-height: 2;
	margin: 0;
	color: #fff;
}

.site-footer__title {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.site-footer__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 32px;
}

.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__nav li + li {
	margin-top: 14px;
}

.site-footer__nav a {
	font-size: 14px;
	color: #fff;
	text-decoration: none;
	line-height: 1.6;
}

.site-footer__nav a:hover {
	opacity: 0.75;
}

.site-footer__banner {
	display: inline-block;
	text-decoration: none;
	transition: opacity 0.2s;
}

.site-footer__banner:hover {
	opacity: 0.85;
}

.site-footer__banner img {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
}

.site-footer__copyright {
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.8);
	padding: 24px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	margin: 0;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.site-footer__related {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1199px) {
	.site-header__inner {
		padding-left: 20px;
		padding-right: 20px;
	}

	.site-header__menu-btn {
		display: flex;
	}

	.site-header__nav {
		position: fixed;
		top: calc(var(--wp-admin-bar-height) + var(--site-header-height));
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		padding: 24px 20px 32px;
		gap: 24px;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		transform: translateY(-110%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.3s, opacity 0.3s;
	}

	.site-header__nav.is-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.site-header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.site-header__nav-btns {
		flex-direction: column;
	}

	.site-header__nav-btns .btn {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.top-contact {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.top-contact__inner {
		padding: 0 20px;
	}

	.site-footer__title{
		text-align: center;
	}
	.site-footer__banner{
		display: block;
		margin: 0 auto;
		text-align: center;
	}
	.site-footer__banner img{
		margin: 0 auto;
	}
	.site-footer__inner {
		padding-left: 20px;
		padding-right: 20px;
		grid-template-columns: 1fr;
	}
}