/* ヘッダー */
#header {
	/*height: 112px;*/	/*テンプレ初期値*/
	background-color: var(--base-color);
	padding-bottom: 0;
	position: sticky;
	top: 0;
	z-index: 3;
}

@media print, screen and (min-width: 768px) {
	#header {
		position: relative;
		z-index: 2;		
		/* box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.12); */
	}
}

@media only screen and (max-width: 767px) {
	#header{
		position: fixed;/*fixedを設定して固定*/
		z-index: 100;/*最前面へ*/
		top:0;/*位置指定*/
		left:0;/*位置指定*/		
		background-color:#ffffffd4;
		width: 100%;
	}
}

/* ヘッダー */
.header-details{
	font-size: clamp(11px,1.3vw,13px);
	line-height: 1;
	color:var(--txt-color);
	margin-left:20px;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100px;
}
@media only screen and (max-width: 767px) {
	.header-container {
		height: var(--header-margin);
	}
}

/*ロゴ*/
img.logo{
	width: 280px;
}
@media only screen and (max-width: 820px) {
	img.logo{
		width: 220px;
	}
}
@media only screen and (max-width: 372px) {
	img.logo{
		width: 50vw;
	}
}


/* 会社情報 */
.company {
	text-align: right;
}

.company-tels {
	display: grid;
	grid-template-columns: repeat(1, auto);
	gap: 15px;
	justify-content: end;
}

.company-tel {
	display: inline-flex;
	align-items: center;
	color: #444;
	text-decoration: none;
}

.company-tel-icon {
	width: clamp(18px, 2.5vw, 25px);
	height: auto;
	margin-right: 6px;
}

.company-tel-icon.free {
	width: clamp(30px, 2.5vw, 38px);
}
.company-tel-icon.mobile {
	width: clamp(15px, 2vw, 19px);
}

.company-tel-number {
	font-size: clamp(20px, 3vw, 30px);
	font-weight: 400;
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	line-height: 1;
}

.tel-hyphen {
	position: relative;
	top: -0.08em;
}

.company-address {
	margin-top: 4px;
	font-size: 13px;
	color: #444;
}

@media only screen and (max-width: 767px) {
	.company {
		display: none;
	}
}

/*=======================================================*/
/* ナビゲーションボタン */
/*=======================================================*/

#navbtn {
	position: relative;
	z-index: 110;
	display: flex;
	align-items: center;
	line-height: 0;                /* ← Safariでのズレ防止 */
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: rgba(0,0,0,0);
	color: var(--accent-color2);   /* ← 通常時のアイコン色 */
}

/* アイコン共通 */
#navbtn svg {
	display: block;
	width: 30px;
	height: 30px;
	fill: currentColor;            /* ← 念のため明示 */
}

/* 通常時はbarsを表示 */
#navbtn .icon-bars { display: block; }
#navbtn .icon-xmark { display: none; }

/* open時に切り替え＋色反転 */
.open #navbtn { color: #fff; }
.open #navbtn .icon-bars { display: none; }
.open #navbtn .icon-xmark { display: block; }
body.is-closing #navbtn { color: #fff; }
body.is-closing #navbtn .icon-bars { display: none; }
body.is-closing #navbtn .icon-xmark { display: block; }

/* スクリーンリーダー用 */
.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/*=======================================================*/
/* SP */
/*=======================================================*/

@media only screen and (max-width: 767px) {

	.header-container {
		position: relative;
		z-index: auto;
	}

	.nav {
		position: fixed;
		inset: 0;
		z-index: 200;
		width: 100%;
		height: 100dvh;
		padding: 70px 18px 40px;
		box-sizing: border-box;
		overflow-y: auto;
		background-color: #164A6Bef;
		transform: translateX(100%);
		transition: transform 0.35s ease;

		/* ドロップダウンを未使用の時に、ON。ナビを高さ中央に移動 */
		/* display: flex;
		align-items: center; */
	}

	body.open .nav {
		transform: translateX(0);
	}

	/* 画面回転・リサイズ中だけアニメーションを無効化 */
	body.is-resizing .nav {
		transition: none !important;
	}
	/* 初期表示時・リサイズ時はアニメーションさせない */
	body:not(.nav-loaded) .nav,
	body.is-resizing .nav {
		transition: none !important;
	}

	#navbtn {
		z-index: 210;
	}

	.nav > ul {
		width: 100%;
		padding: 0;
		margin: 0;
		color: var(--base-color);
		list-style: none;
		text-align: center;
	}

	.nav > ul > li {
		position: relative;
		border-bottom: none;
	}

	/* ドロップダウンを未使用の時に、OFF。ナビ下の下線 */
	.nav > ul > li::after {
		content: "";
		position: absolute;
		right: 18px;
		bottom: 0;
		left: 18px;
		height: 1px;
		background-color: rgba(255, 255, 255, 0.65);
	}

	.nav > ul > li > a {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		min-height: 56px;
		padding: 9px 45px;
		color: var(--base-color);
		text-decoration: none;
	}

	.nav-en {
		font-size: 11px;
		letter-spacing: 0.2em;
		color: #fac483;
		font-family: "Sawarabi Gothic", "M PLUS 1p", sans-serif;
		margin-bottom: 4px;
		opacity: 0.7;
	}

	.nav-ja {
		font-size: 16px;
	}

	.nav-toggle {
		position: absolute;
		top: 15px;				/* +の位置調整 */
		left: 0;
		z-index: 2;
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: none;
		background-color: transparent;
		cursor: pointer;
	}

	.nav-toggle span {
		position: relative;
		display: block;
		width: 10px;
		height: 2px;
		background-color: var(--base-color);
	}

	.nav-toggle span::after {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 10px;
		height: 2px;
		background-color: var(--base-color);
		transform: rotate(90deg);
		transition: transform 0.2s ease;
	}

	.has-child.is-open > .nav-toggle span::after {
		transform: rotate(0);
	}

	.nav-sub {
		display: none;
		padding: 0;
		margin: 0 0 8px;
		background-color: rgba(255, 255, 255, 0.08);
		list-style: none;
	}

	.has-child.is-open > .nav-sub {
		display: block;
	}

	.nav-sub li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.25);
	}

	.nav-sub li:last-child {
		border-bottom: none;
	}

	.nav-sub a {
		display: block;
		padding: 11px 12px;
		color: var(--base-color);
		font-size: 14px;
		font-weight: 500;
		line-height: 1.5;
		text-align: left;
		text-decoration: none;
	}

}


/*=======================================================*/
/* PC */
/*=======================================================*/

@media print, screen and (min-width: 768px) {

	#navbtn {
		display: none;
	}

	.nav_container {
		position: relative;
		z-index: 50;
		background-color: var(--base-color);
		margin-bottom: 10px;
	}

	.nav {
		position: relative;
		inset: auto;
		width: auto;
		height: auto;
		padding: 0;
		overflow: visible;
		background-color: transparent;
		transform: none;
		transition: none;
	}

	.nav > ul {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 0;
		margin: 0;
		list-style: none;
		text-align: center;
	}

	.nav > ul > li {
		position: relative;
		flex-grow: 1;
		text-align: center;
	}

	.nav > ul > li + li::before {
		content: "";
		position: absolute;
		top: 20%;
		left: 0;
		width: 1px;
		height: 70%;
		background-color: var(--line-light);
	}

	.nav > ul > li > a {
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 100%;
		min-height: 50px;
		padding: 8px 10px;
		box-sizing: border-box;
		color: var(--txt-color);
		text-decoration: none;
		transition: color 0.2s ease;
	}

	.nav > ul > li > a::after {
		content: "";
		position: absolute;
		right: 22%;
		bottom: 0px;			/* navのアンダーバーの位置調整 */
		left: 22%;
		height: 1px;
		background-color: var(--main-color);
		opacity: 0;
		transition: opacity 0.2s ease;
	}

	.nav-en {
		font-size: 12px;
		color: var(--main-color);
		font-weight: 400;
		letter-spacing: 0.14em;
		font-family: "Sawarabi Gothic", "M PLUS 1p", sans-serif;
		line-height: 1.2;
		letter-spacing: 0.2em;
		margin-top: 2px;
		margin-left: 0.1em;
		transition: color 0.2s ease;
	}

	.nav-ja {
		font-size: clamp(14px, 1.6vw, 17px);
		line-height: 1.4;
	}

	.nav > ul > li:hover > a,
	.nav > ul > li:focus-within > a,
	.nav > ul > li.current > a {
		color: var(--accent-color2);
	}

	.nav > ul > li:hover > a::after,
	.nav > ul > li:focus-within > a::after,
	.nav > ul > li.current > a::after {
		opacity: 1;
	}

	.nav-toggle {
		display: none;
	}

	/* ドロップダウン矢印 */
	.nav > ul > li.has-child .nav-ja {
		position: relative;
	}

	.nav > ul > li.has-child .nav-ja::before {
		content: "";
		position: absolute;
		top: 50%;
		left: -24px;
		width: 5px;
		height: 5px;
		border-right: 1px solid var(--accent-color2);
		border-bottom: 1px solid var(--accent-color2);
		transform: translateY(-70%) rotate(45deg);
		transition: transform 0.2s ease;
	}

	.nav > ul > li.has-child:hover .nav-ja::before,
	.nav > ul > li.has-child:focus-within .nav-ja::before {
		transform: translateY(-30%) rotate(225deg);
	}


	/* ドロップダウン */

	.nav-sub {
		position: absolute;
		top: calc(100% + 10px);
		left: 0;
		z-index: 100;
		width: clamp(150px, 18vw, 250px);
		padding: 0;
		margin: 0;
		background-color: #2E6388e0;
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
		list-style: none;
		text-align: left;
		opacity: 0;
		visibility: hidden;
		/* transform: translateY(6px); */
		transition:
			opacity 0.2s ease,
			visibility 0.2s ease,
			transform 0.2s ease;
	}

	.nav-sub::before {
		content: "";
		position: absolute;
		top: -10px;
		left: 0;
		width: 100%;
		height: 10px;
	}

	.nav > ul > li:last-child .nav-sub {
		right: 0;
		left: auto;
	}

	.has-child:hover > .nav-sub,
	.has-child:focus-within > .nav-sub {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.nav-sub li + li {
		border-top: 1px solid rgba(255, 255, 255, 0.35);
	}

	.nav-sub a {
		display: block;
		padding: 12px 22px;
		color: var(--base-color);
		font-size: 16px;
		font-weight: 400;
		line-height: 1.5;
		text-decoration: none;
		transition: background-color 0.2s ease;
	}

	.nav-sub a:hover,
	.nav-sub a:focus-visible {
		background-color: rgba(0, 0, 0, 0.08);
	}

}