@charset "UTF-8";
/*-----------------------*/

/* ナビゲーション */

/*-----------------------*/
@media(min-width: 960px) {
	/* ==================
	コンテナ */
	#nav__wrapper {
		align-self: stretch;
	}
	#nav__inner {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 0 var(--gutter-var-lg);

		height: 100%;
	}
	/* ==================
	ナビアイテム */
	.nav__current {
		font-family: var(--mincho);
		font-size: var(--txt-xs);
		font-weight: 700;
		color: var(--color-main-very-thin);

		display: flex;
		align-items: center;
		justify-content: center;

		width: 100%;
		height: 100%;

		position: relative;
	}
	.nav__addr {
		display: none;
	}
	/* ==================
	current */
	.nav__current.is-current {
		color: var(--color-accent);
	}
	.nav__current::before {
		content: "";
		display: inline-block;
		width: 20px;
		height: 2px;
		background-color: var(--color-accent);

		position: absolute;
		left: calc(-20px - 0.3em);
		transform: scaleX(0);
		transform-origin: right top;
	}
	.nav__current.is-current::before {
		transform: scaleX(1);
	}
}
/* hover設定 */
@media(any-hover: hover) {
	.nav__current {
		transition: color .2s var(--easeInQuad);
	}
	.nav__current::before {
		transition: transform .2s var(--easeInOutCirc);
	}
	.nav__current:hover,
	.nav__current:focus {
		color: var(--color-accent);
	}
	.nav__current:hover::before,
	.nav__current:focus::before {
		transform: scaleX(1);
		transform-origin: left top;
	}
}



/* ==================
バーガーボタン */
/* オープンボタン */
#nav-open-button {
	display: none;

	width: var(--header-height);
	height: var(--header-height);

	border-radius: calc(var(--header-height) / 2);
	background-color: rgba(175, 183, 197, 0.8);
	-webkit-backdrop-filter: blur(4px) saturate(110%);
	backdrop-filter: blur(4px) saturate(110%);

	position: fixed;
	top: 10px;
	right: min(10px, 1.25vw);
}
#nav-open-button:focus-visible {
	/* focus */
	outline: 2px solid var(--color-focus);
}
.nav-open-button__inner {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	gap: 4px 0;

	width: 100%;
	height: 100%;
}
.nav-open-button__line {
	display: block;

	width: 40%;
	height: 2px;

	background-color: var(--color-main-soft);
}
/* クローズボタン */
#nav-close-button {
	display: none;

	width: var(--header-height);
	height: var(--header-height);
	margin-left: auto;

	background-color: transparent;

	position: absolute;
	top: 10px;
	right: min(10px, 1.25vw);
	z-index: 99;
}
.nav-close-button__inner {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;

	width: 100%;
	height: 100%;

	background-color: transparent;

	position: relative;
}
.nav-close-button__line {
	display: block;

	width: 40%;
	height: 2px;

	border-radius: 1px;
	background-color: var(--color-main-pale);

	transform: translate(-50%,-50%);

	position: absolute;
	top: 50%;
	left: 50%;
}
.nav-close-button__line.-top {
	transform: translate(-50%,-50%) rotate(45deg);
}
.nav-close-button__line.-bottom {
	transform: translate(-50%,-50%) rotate(-45deg);
}



/* =====================================
ブレイクポイント
===================================== */
@media(max-width: 959px) {
	/* ==================
	バーガーボタン */
	#nav-open-button,
	#nav-close-button {
		display: block;
	}
	/* ==================
	コンテナ */
	#nav__wrapper,
	#nav__inner,
	#nav__cover {
		display: none;

		height: 100vh;
		min-height: 100vh;

		position: fixed;
		top: 0;
		right: 0;
	}
	#nav__wrapper,
	#nav__cover {
		width: 100%;
		max-width: 100%;
	}
	#nav__wrapper {
		overflow: hidden;

		z-index: 90;
	}
	#nav__inner {
		overflow-x: hidden;
		overflow-y: auto;

		width: calc(360rem/16);
		max-width: calc(100% - 12vw);
		padding-top: 80px;
		padding-bottom: 80px;

		background-color: var(--color-base);
		box-shadow: -10px 0 24px rgba(1,26,67,.3);

		z-index: 90;
	}
	#nav__cover {
		background-color: rgba(111, 131, 181, .2);

		cursor: pointer;

		z-index: 0;

		backdrop-filter: blur(4px) saturate(110%);
	}
	/* ==================
	ナビアイテム */
	:root {
		--nav-gutter: min(4.5vw, var(--gutter-reg));
	}
	.nav__item + .nav__item {
		margin-top: 1em;
	}
	.nav__current {
		font-family: var(--mincho);
		font-size: var(--txt-xs);
		font-weight: 700;
		color: var(--color-main-very-thin);

		display: flex;
		position: relative;

		padding: 1em var(--nav-gutter);
	}
	/* ----------------
	住所など */
	.nav__addr {
		margin: 0 var(--nav-gutter);
		margin-top: 3em;
		padding-top: 3em;

		border-top: 1px solid var(--color-main-soft);
	}
	/* 会社名 */
	.nav__addr .company-name {
		width: 120px;
		max-width: 100%;
	}
	.nav__addr .company-name svg {
		width: 100%;
		height: auto;
	}
	/* 住所 */
	.header-addr {
		color: var(--color-main-very-thin);
		margin-top: 1.25em;
	}
	/* 電話 */
	.nav__addr .tel,
	.nav__addr .fax {
		font-family: var(--mincho);
		font-size: var(--txt-xs);
		font-weight: 700;

		display: inline-block;
	}
	.nav__addr .tel .number {
		font-size: var(--txt-lg);
	}
	/* ==================
	current */
	.nav__current.is-current {
		color: var(--color-accent);
	}
	.nav__current::before {
		content: "";
		display: inline-block;
		width: calc(var(--nav-gutter) - min(2.5vw, 1em));
		height: 2px;
		background-color: var(--color-accent);

		position: absolute;
		top: 50%;
		left: 0px;
		transform: translateY(-50%) scaleX(0);
		transform-origin: right top;
	}
	.nav__current.is-current::before {
		transform: translateY(-50%) scaleX(1);
	}
	@media(any-hover: hover) {
		.nav__current {
			transition: color .2s var(--easeInQuad);
		}
		.nav__current::before {
			transition: transform .2s var(--easeInOutCirc);
		}
		.nav__current:hover,
		.nav__current:focus {
			color: var(--color-accent);
		}
		.nav__current:hover::before,
		.nav__current:focus::before {
			transform: translateY(-50%) scaleX(1);
			transform-origin: left top;
		}
	}

	/* ==============================

	オープン時の挙動

	============================== */
	/* ---------------------
	スクロール禁止 */
	body.is-open {
		overflow: hidden;
	}
	/* ---------------------
	コンテナ */
	#nav__wrapper.is-open,
	#nav__wrapper.is-open #nav__inner,
	#nav__wrapper.is-open #nav__cover {
		display: block;
	}
	/* ---------------------
	アニメーション */
	/* コンテナの動き */
	#nav__wrapper.is-open[aria-hidden="false"] #nav__inner {
		animation-name: navOpen;
		animation-duration: .4s;
		animation-timing-function: var(--easeInOutCirc);
		animation-fill-mode: forwards;
	}
	#nav__wrapper.is-open[aria-hidden="false"] #nav__cover {
		animation-name: navOpen--cover;
		animation-duration: .2s;
		animation-timing-function: var(--easeInExpo);
		animation-fill-mode: forwards;
	}
	#nav__wrapper.is-open[aria-hidden="true"] #nav__inner {
		animation-name: navClose;
		animation-duration: .4s;
		animation-timing-function: var(--easeInOutCirc);
		animation-fill-mode: forwards;
	}
	#nav__wrapper.is-open[aria-hidden="true"] #nav__cover {
		animation-name: navClose--cover;
		animation-duration: .2s;
		animation-timing-function: var(--easeInExpo);
		animation-fill-mode: forwards;
	}
	@keyframes navOpen {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}
	@keyframes navOpen--cover {
		from {
			opacity: 0;
		}
		to {
			opacity: 1;
		}
	}
	@keyframes navClose {
		from {
			opacity: 1;
		}
		to {
			opacity: 0;
		}
	}
	@keyframes navClose--cover {
		from {
			opacity: 1;
		}
		to {
			opacity: 0;
		}
	}
	/* ナビゲーションリストのアニメーション */
	#nav__wrapper .nav__item,
	#nav__wrapper .nav__addr {
		will-change: transform;
	}
	#nav__wrapper.is-open[aria-hidden="false"] .nav__item,
	#nav__wrapper.is-open[aria-hidden="false"] .nav__addr {
		animation-name: navItemSlide;
		animation-duration: .25s;
		animation-timing-function: linear;
		animation-delay: .3s;
		animation-fill-mode: both;
	}
	#nav__wrapper.is-open[aria-hidden="false"] .nav__item:nth-child(2) {
		animation-delay: .33s;
	}
	#nav__wrapper.is-open[aria-hidden="false"] .nav__item:nth-child(3) {
		animation-delay: .36s;
	}
	#nav__wrapper.is-open[aria-hidden="false"] .nav__item:nth-child(4) {
		animation-delay: .39s;
	}
	#nav__wrapper.is-open[aria-hidden="false"] .nav__addr {
		animation-delay: .42s;
	}
	@keyframes navItemSlide {
		from {
			opacity: 0;

			transform: translateY(12px);

			filter: blur(4px);
		}
		to {
			opacity: 1;

			transform: translateY(0);

			filter: none;
		}
	}
	/* オープンボタンのアニメーション */
	#nav-open-button .nav-open-button__line {
		will-change: transform;
	}
	#nav-open-button[aria-expanded="true"] .nav-open-button__line {
		background-color: var(--color-main-pale);

		transform: scaleX(0);
	}
	#nav-open-button[aria-expanded="false"] .nav-open-button__line {
		transition: transform .4s linear , background-color .4s linear;
		transform: scaleX(1);
		transform-origin: right top;
	}
	#nav-open-button[aria-expanded="false"] .nav-open-button__line:nth-child(2) {
		transition-delay: .1s;
	}
	#nav-open-button[aria-expanded="false"] .nav-open-button__line:nth-child(3) {
		transition-delay: .2s;
	}
}
@media(max-width: 559px) {
	/* ==================
	ナビアイテム */
	:root {
		--nav-gutter: min(7.5vw, var(--gutter-reg));
	}
	.nav__item + .nav__item {
		margin-top: 0.5em;
	}
	.nav__current {
		padding: 0.7em var(--nav-gutter);
	}
	/* ----------------
	住所など */
	.nav__addr {
		margin-top: 1.5em;
		padding-top: 1.5em;
	}
}