@charset "UTF-8";
/* ==================================================
  header（テスト確認中は新しいTOPだけで読み込む。最終的には全ページ共通）
  base.css から移植：header（853〜1406行）、.sp_navi（605〜623行）
  JS：/web/js/common.js（header.fixed、.sp_navi_menu a.active など）

  幅ごとの表示
  - 1440px以上：今までどおり
  - 1100〜1439px：ロゴ・電話番号・ナビの文字・余白を縮める（1100px：ロゴ高さ40px・受付時間11px・ナビ文字12px）
  - 1099px以下：ハンバーガー（SPメニューを流用）
================================================== */

header {
	/* ヘッダー用の縮小基準（1440pxのときの値をそのまま書く） */
	--hpx: calc(100vw / 1440);

	position: fixed;
	inset: 0 0 auto;
	z-index: 9999;
	width: 100%;
	height: 100px;
	background-color: #fff;
	transition: height 0.25s cubic-bezier(0.26, 0.005, 0, 1.035),
		box-shadow 0.25s cubic-bezier(0.26, 0.005, 0, 1.035),
		background-color 0.25s cubic-bezier(0.26, 0.005, 0, 1.035);
}

header::after {
	position: absolute;
	inset: 0;
	z-index: -1;
	content: "";
	background-color: rgb(0 0 0 / 0.4);
	opacity: 0;
	transition: opacity 0.16s cubic-bezier(0.26, 0.005, 0, 1.035);
}

header.nav_dropdown_header::after {
	z-index: 1;
	opacity: 1;
}

/* ---------- PC ---------- */
.header_inner {
	display: flex;
	/* ロゴ・電話番号はヘッダーの高さに対して上下中央（固定時の高さ変化にも追従） */
	align-items: center;
	justify-content: space-between;
	height: inherit;
}

/* ロゴ・電話番号は中身の幅で固定し、残りをナビに割り当てる */
.header_inner .logo {
	flex: none;
	margin-left: 20px;
}

.header_inner .logo img {
	/* 横長ロゴ（logo_yoko_c_trim.webp）。幅は旧ロゴと同じ：1440px→180px、1100px→120px */
	width: clamp(120px, calc(120px + (100vw - 1100px) * 60 / 340), 180px);
	height: auto;
}

.header_tel {
	flex: none;
	/* 1440px→40px、1100px→10px */
	margin-left: clamp(10px, calc(10px + (100vw - 1100px) * 30 / 340), 40px);
	line-height: 1.2;
	white-space: nowrap;
}

/* 電話番号：1440px→19.2px（common.css の120%）、1100px→17px */
.header_tel middle {
	font-size: clamp(17px, calc(17px + (100vw - 1100px) * 2.2 / 340), 19.2px);
}

/* 受付時間：1440px→12.8px（common.css の80%）、1100px→11px */
.header_tel xsmall {
	font-size: clamp(11px, calc(11px + (100vw - 1100px) * 1.8 / 340), 12.8px);
}

.header_nav {
	flex: 1;
	/* ナビは中央揃えにせず、今までどおり上から20pxの位置 */
	align-self: stretch;
	min-width: 0;
	margin: 20px 0 0;
}

header nav {
	height: 60px;
	transition: 0.16s cubic-bezier(0.26, 0.005, 0, 1.035);
}

header nav > ul {
	display: flex;
	justify-content: flex-end;
	height: inherit;
	text-align: center;
}

header nav ul > li {
	height: inherit;
}

header nav ul > li > a {
	position: relative;
	display: flex;
	align-items: center;
	height: inherit;
	/* 余白は文字より早く縮める（1440px→10px、1280px→6px） */
	padding: 0 clamp(6px, calc(10px - (1440px - 100vw) / 40), 10px);
	font-size: clamp(12px, calc(14 * var(--hpx)), 14px);
	font-weight: bold;
	line-height: 1;
	white-space: nowrap;
	color: #000;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s cubic-bezier(0.26, 0.005, 0, 1.035);
}

header nav ul > li:is(.contact, .apply) {
	height: 40px;
	margin: 10px clamp(3px, calc(5 * var(--hpx)), 5px) 0;
	padding: 0 clamp(6px, calc(10px - (1440px - 100vw) / 40), 10px);
	color: #fff;
	border-radius: 42px;
}

header nav ul > li.contact {
	background-color: #f7b01a;
}

header nav ul > li.apply {
	background-color: #6a9a01;
}

header nav ul > li:is(.contact, .apply) a {
	color: #fff;
}

/* ホバーの下線 */
.nav_hover {
	position: relative;
}

.nav_hover::before {
	position: absolute;
	right: 0;
	bottom: -4px;
	left: auto;
	z-index: 1;
	width: 0;
	height: 0.1rem;
	content: "";
	background-color: #a8dc00;
	transition: 0.2s cubic-bezier(0.26, 0.005, 0, 1.035);
}

header nav li a:hover .nav_hover::before,
header nav li.active2 .nav_hover::before {
	right: auto;
	left: 0;
	width: 100%;
}

header nav li.active2 .nav_hover::before {
	background-color: #fff;
}

/* スクロール時（common.js で header に .fixed を付与） */
header.fixed {
	height: 60px;
	background-color: #fff;
	box-shadow: 0 6px 10px 0 rgb(209 209 209 / 0.4);
}

header.fixed .logo img {
	width: 120px;
	height: auto;
}

header.fixed nav {
	height: 60px;
	margin: -20px 0 0;
}

/* ---------- タブレット・SP（ハンバーガー） ---------- */
.sp_navi {
	display: none;
}

@media screen and (max-width: 1099px) {
	header,
	header.fixed {
		display: block;
		height: 4rem;
	}

	.header_inner {
		display: none;
	}

	.sp_navi {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 9999;
		display: block;
		width: 100%;
		height: inherit;
	}

	.sp_navi .header_logo {
		position: relative;
		top: 0;
		display: block;
		width: 100%;
		height: inherit;
		overflow: hidden;
		text-align: left;
		background: #fff;
	}

	.header_logo img {
		position: absolute;
		inset: 0 auto 0 1rem;
		z-index: 90;
		width: 150px;
		height: auto;
		margin: auto;
	}

	.sp_navi_fixed_area {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: inherit;
	}

	.sp_navi_fixed_area.active {
		z-index: 9999;
	}

	/* ハンバーガー */
	.sp_navi_menu {
		position: absolute;
		top: 0;
		right: 0;
		width: 4rem;
		height: 4rem;
	}

	.sp_navi_menu a {
		position: absolute;
		right: 0;
		z-index: 9999999;
		display: block;
		width: 4rem;
		height: 4rem;
		text-align: center;
		background-color: #90c31f;
	}

	.sp_navi_menu a > span {
		position: absolute;
		right: 0;
		left: 0;
		display: block;
		width: 2.4rem;
		height: 1px;
		margin: auto;
		background: #fff;
		transition: 0.32s cubic-bezier(0.165, 0.84, 0.44, 1);
	}

	.sp_navi_menu a > span:nth-child(1) {
		top: 1.2rem;
	}

	.sp_navi_menu a > span:nth-child(2) {
		top: 50%;
	}

	.sp_navi_menu a > span:nth-child(3) {
		bottom: 1.2rem;
	}

	.sp_navi_menu a.active > span:nth-child(1) {
		transform: translateY(0.8rem) rotate(225deg);
	}

	.sp_navi_menu a.active > span:nth-child(2) {
		opacity: 0;
	}

	.sp_navi_menu a.active > span:nth-child(3) {
		transform: translateY(-0.8rem) rotate(-225deg);
	}

	.sp_navi_menu_text {
		position: relative;
		font-size: 0.9rem;
		font-weight: normal;
		line-height: 1;
		color: #fff;
		text-align: center;
	}

	.sp_navi_menu a :is(.sp_navi_menu_text_menu, .sp_navi_menu_text_close) {
		position: absolute;
		top: 3.4rem;
		right: 0;
		left: 0;
		transition: 0.52s cubic-bezier(0.165, 0.84, 0.44, 1);
	}

	.sp_navi_menu a .sp_navi_menu_text_close,
	.sp_navi_menu a.active .sp_navi_menu_text_menu {
		opacity: 0;
	}

	.sp_navi_menu a.active .sp_navi_menu_text_close {
		opacity: 1;
	}

	/* 開閉メニュー（common.js で .sp_navi_list に .active を付与） */
	.sp_navi_list {
		position: absolute;
		top: -10vw;
		left: 0;
		z-index: -10;
		display: flex;
		width: 100vw;
		height: 100vh;
		/* scroll だとPCブラウザのタブレット幅で横スクロールバーが出るため、縦だけスクロールさせる */
		overflow: hidden auto;
		pointer-events: none;
		background: #fff;
		opacity: 0;
		transition: top 0.2s cubic-bezier(0.26, 0.005, 0, 1.035),
			opacity 0.2s cubic-bezier(0.26, 0.005, 0, 1.035);
	}

	.sp_navi_list.active {
		top: 0;
		z-index: auto;
		pointer-events: auto;
		opacity: 1;
	}

	.sp_link {
		width: 100%;
		margin: auto;
		padding: 5rem 0.5rem;
	}

	.sp_navi_list li {
		display: block;
		width: 100%;
		font-weight: normal;
		line-height: 1.6;
		color: #333;
		text-align: left;
		border-bottom: 1px solid #e4e7eb;
	}

	.sp_navi_list li a {
		display: block;
		width: 96%;
		padding: 1.2rem 2%;
		font-size: 110%;
		line-height: 1.6;
		color: #333;
		background-color: #fff;
	}

	.sp_navi_list li a:hover {
		color: #fff;
		background-color: #aad54a;
	}

	.sp_link > li > a {
		position: relative;
		display: inline-block;
		vertical-align: middle;
		text-decoration: none;
	}

	.sp_link > li > a.active {
		/* background ショートハンドだと背景色まで消えるため個別指定 */
		background-position: 0 100%;
		background-size: 100% 1px;
		background-repeat: no-repeat;
		border-bottom: 1px solid #fff;
		transition: background-size 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
	}

	.sp_link > li.sp_navi_list_home a.active {
		border: none;
	}

	.sp_header_tel {
		margin: 20px 0 0;
		text-align: center;
	}
}

/* 下層ページ：768〜1099px はヘッダーが 4rem になるため、パンくずの上余白を SP（base.css：5rem）と同じにする */
@media screen and (min-width: 768px) and (max-width: 1099px) {
	.bread_bk {
		margin-top: 5rem;
	}
}
