/* ============================================
   基本設定
============================================ */

:root {
	--fs-header-height-pc: 80px;
	--fs-header-height-sp: 62px;
	--fs-header-red: #ff0000;
	--fs-header-text: #222222;
	--fs-header-bg: #ffffff;
}


/* ============================================
   SWELL標準ヘッダーを非表示
============================================ */

#header,
.l-header,
.l-fixHeader {
	display: none !important;
}


/* ============================================
   固定ヘッダー全体
============================================ */

.fs-header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10000;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	background-color: var(--fs-header-bg);
}

.fs-header *,
.fs-header *::before,
.fs-header *::after {
	box-sizing: border-box;
}


/* ============================================
   ヘッダー内部
============================================ */

.fs-header__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: var(--fs-header-height-pc);
	margin: 0;
	padding: 0;
	background-color: var(--fs-header-bg);
}


/* ============================================
   PC：ロゴエリア
============================================ */

.fs-header__brand {
	position: relative;
	display: block;
	flex: 0 0 560px;
	width: 560px;
	min-width: 560px;
	height: var(--fs-header-height-pc);
	margin: 0;
	padding: 0;
	background-color: #ffffff;
}


/* ============================================
   PC：ロゴリンク
============================================ */

.fs-header__logo-link {
	position: absolute;
	top: 6px;
	left: 58px;
	display: block;
	width: 240px;
	height: 58px;
	margin: 0;
	padding: 0;
	color: var(--fs-header-red);
	line-height: 1;
	text-decoration: none;
}

.fs-header__logo-link:hover,
.fs-header__logo-link:focus-visible {
	color: var(--fs-header-red);
	text-decoration: none;
}


/* ============================================
   PC：ロゴ上段
============================================ */

.fs-header__logo-main {
	display: flex;
	align-items: flex-end;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0;
}

.fs-header__logo {
	display: block;
	flex: 0 0 145px;
	width: 145px;
	max-width: none;
	height: 42px;
	max-height: none;
	margin: 0;
	padding: 0;
	object-fit: contain;
	object-position: left center;
}

.fs-header__school-name {
	display: block;
	flex: 0 0 auto;
	margin: 0 0 6px 8px;
	padding: 0;
	color: var(--fs-header-red);
	font-family:
		"Noto Sans CJK JP",
		"Noto Sans JP",
		"Yu Gothic",
		"YuGothic",
		"Hiragino Kaku Gothic ProN",
		"Meiryo",
		sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.06em;
	white-space: nowrap;
}


/* ============================================
   PC：ロゴ下コピー
============================================ */

.fs-header__logo-copy {
	display: block;
	margin: 3px 0 0 33px;
	padding: 0;
	color: var(--fs-header-red);
	font-family:
		"Noto Sans CJK JP",
		"Noto Sans JP",
		"Yu Gothic",
		"YuGothic",
		"Hiragino Kaku Gothic ProN",
		"Meiryo",
		sans-serif;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.1em;
	white-space: nowrap;
}


/* ============================================
   PC：対象学年
============================================ */

.fs-header__target {
	position: absolute;
	top: 18px;
	left: 285px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 230px;
	height: 31px;
	margin: 0;
	padding: 0 10px 2px 10px;
	border: 1px solid var(--fs-header-red);
	border-radius: 999px;
	color: var(--fs-header-red);
	background-color: #ffffff;
	font-family:
		"Noto Sans CJK JP",
		"Noto Sans JP",
		"Yu Gothic",
		"YuGothic",
		"Hiragino Kaku Gothic ProN",
		"Meiryo",
		sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.07em;
	white-space: nowrap;
}


/* ============================================
   PCナビゲーション
============================================ */

.fs-header__nav {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	justify-content: flex-end;
	min-width: 0;
	height: var(--fs-header-height-pc);
	margin: 0;
	padding: 0;
}

.fs-header__menu {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fs-header__menu > .menu-item {
	position: relative;
	display: flex;
	align-items: stretch;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.fs-header__menu > .menu-item > a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 112px;
	height: var(--fs-header-height-pc);
	margin: 0;
	padding: 0 16px;
	color: var(--fs-header-text);
	background-color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.fs-header__menu > .menu-item > a:hover,
.fs-header__menu > .menu-item > a:focus-visible,
.fs-header__menu > .current-menu-item > a,
.fs-header__menu > .current-menu-ancestor > a {
	color: var(--fs-header-red);
	background-color: #fff7f7;
}


/* ============================================
   PCサブメニュー
============================================ */

.fs-header__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 30;
	display: block;
	width: 220px;
	margin: 0;
	padding: 8px 0;
	visibility: hidden;
	opacity: 0;
	list-style: none;
	background-color: #ffffff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translate(-50%, 8px);
	transition:
		opacity 0.2s ease,
		transform 0.2s ease,
		visibility 0.2s ease;
}

.fs-header__menu .menu-item:hover > .sub-menu,
.fs-header__menu .menu-item:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 0);
}

.fs-header__menu .sub-menu a {
	display: block;
	padding: 12px 18px;
	color: #222222;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.fs-header__menu .sub-menu a:hover,
.fs-header__menu .sub-menu a:focus-visible {
	color: var(--fs-header-red);
	background-color: #fff5f5;
}


/* ============================================
   PC無料相談CTA
============================================ */

.fs-header__contact {
	flex: 0 0 360px;
	width: 360px;
	height: var(--fs-header-height-pc);
	margin: 0;
	padding: 0;
}

.fs-header__contact-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 24px;
	color: #ffffff;
	background-color: var(--fs-header-red);
	text-decoration: none;
	transition: filter 0.2s ease;
}

.fs-header__contact-link:hover,
.fs-header__contact-link:focus-visible {
	color: #ffffff;
	filter: brightness(0.9);
}

.fs-header__contact-text {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.05em;
	text-align: center;
	white-space: nowrap;
}


/* ============================================
   スマホ要素：PCでは非表示
============================================ */

.fs-header__menu-button,
.fs-mobile-menu {
	display: none;
}


/* ============================================
   WordPress管理バー表示時
============================================ */

/* PC管理バー：32px */
body.admin-bar .fs-header {
	top: 32px !important;
}


/* ============================================
   タブレット・スマートフォン
============================================ */

@media (max-width: 1100px) {

	/* ========================================
	   スマホヘッダー内部
	======================================== */

	.fs-header__inner {
		position: relative;
		z-index: 10002;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 100%;
		height: var(--fs-header-height-sp);
		margin: 0;
		padding: 0 20px;
		background-color: #ffffff;
	}


	/* ========================================
	   スマホ：ロゴ周辺全体
	======================================== */

	.fs-header__brand {
		position: static;
		display: flex;
		flex: 1 1 auto;
		align-items: center;
		justify-content: flex-start;
		gap: clamp(8px, 2.4vw, 14px);
		width: auto;
		min-width: 0;
		height: var(--fs-header-height-sp);
		margin: 0;
		padding: 0;
		background-color: transparent;
	}


	/* ========================================
	   スマホ：ロゴリンク
	======================================== */

	.fs-header__logo-link {
		position: static;
		display: block;
		flex: 0 0 clamp(132px, 34vw, 165px);
		width: clamp(132px, 34vw, 165px);
		height: 50px;
		margin: 0;
		padding: 0;
		color: var(--fs-header-red);
	}


	/* ========================================
	   スマホ：ロゴ上段
	======================================== */

	.fs-header__logo-main {
		display: flex;
		align-items: flex-end;
		width: 100%;
		height: 35px;
		margin: 0;
		padding: 0;
	}

	.fs-header__logo {
		display: block;
		flex: 0 0 clamp(92px, 23.5vw, 116px);
		width: clamp(92px, 23.5vw, 116px);
		height: 35px;
		max-width: none;
		max-height: none;
		margin: 0;
		padding: 0;
		object-fit: contain;
		object-position: left center;
	}

	.fs-header__school-name {
		display: block;
		flex: 0 0 auto;
		margin:
			0
			0
			5px
			clamp(4px, 1.2vw, 7px);
		padding: 0;
		color: var(--fs-header-red);
		font-size: clamp(6px, 1.55vw, 8px);
		font-weight: 600;
		line-height: 1;
		letter-spacing: 0.02em;
		white-space: nowrap;
	}


	/* ========================================
	   スマホ：ロゴ下コピー
	======================================== */

	.fs-header__logo-copy {
		display: block;
		margin:
			4px
			0
			0
			clamp(21px, 5.4vw, 27px);
		padding: 0;
		color: var(--fs-header-red);
		font-size: clamp(5px, 1.3vw, 6.5px);
		font-weight: 600;
		line-height: 1;
		letter-spacing: 0.05em;
		white-space: nowrap;
	}


	/* ========================================
	   スマホ：対象学年
	======================================== */

	.fs-header__target {
		position: static;
		display: flex;
		flex: 0 0 clamp(126px, 33vw, 160px);
		align-items: center;
		justify-content: center;
		width: clamp(126px, 33vw, 160px);
		height: clamp(22px, 5.4vw, 27px);
		margin: 0;
		padding: 0 7px;
		border: 1px solid var(--fs-header-red);
		border-radius: 999px;
		color: var(--fs-header-red);
		background-color: #ffffff;
		font-size: clamp(7px, 1.75vw, 9px);
		font-weight: 500;
		line-height: 1;
		letter-spacing: 0;
		white-space: nowrap;
	}


	/* PC要素を非表示 */
	.fs-header__nav,
	.fs-header__contact {
		display: none;
	}


	/* ========================================
	   スマホ：2本線メニューボタン
	======================================== */

	.fs-header__menu-button {
		position: relative;
		display: block;
		flex: 0 0 34px;
		width: 34px;
		height: 42px;
		margin: 0 0 0 clamp(7px, 2vw, 12px);
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		cursor: pointer;
		appearance: none;
	}

	.fs-header__menu-line {
		position: absolute;
		left: 4px;
		display: block;
		height: 2px;
		margin: 0;
		padding: 0;
		background-color: #222222;
		transform-origin: left center;
		transition:
			top 0.25s ease,
			left 0.25s ease,
			width 0.25s ease,
			transform 0.25s ease;
	}

	/* 上線 */
	.fs-header__menu-line:nth-child(1) {
		top: 15px;
		width: 26px;
	}

	/* 下線：左揃えで短く */
	.fs-header__menu-line:nth-child(2) {
		top: 25px;
		width: 19px;
	}


	/* ========================================
	   開いたときの×
	======================================== */

	.fs-header__menu-button.is-open
	.fs-header__menu-line {
		left: 8px;
		width: 26px;
		transform-origin: center center;
	}

	.fs-header__menu-button.is-open
	.fs-header__menu-line:nth-child(1) {
		top: 20px;
		transform: rotate(45deg);
	}

	.fs-header__menu-button.is-open
	.fs-header__menu-line:nth-child(2) {
		top: 20px;
		transform: rotate(-45deg);
	}


	/* ========================================
	   スマホメニュー全体
	======================================== */

	.fs-mobile-menu {
		position: fixed;
		top: var(--fs-header-height-sp);
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 10001;
		display: block;
		width: 100%;
		height: calc(100dvh - var(--fs-header-height-sp));
		margin: 0;
		padding: 0;
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
		background-color: #ffffff;
		transition:
			opacity 0.25s ease,
			visibility 0.25s ease;
	}

	.fs-mobile-menu.is-open {
		visibility: visible;
		opacity: 1;
		pointer-events: auto;
	}

	.fs-mobile-menu__inner {
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 48px 42px 40px;
		overflow-y: auto;
		background-color: #ffffff;
	}


	/* ========================================
	   スマホメニュー項目
	======================================== */

	.fs-mobile-menu__nav {
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.fs-mobile-menu__list {
		width: 100%;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.fs-mobile-menu__list > .menu-item {
		position: relative;
		width: 100%;
		margin: 0;
		padding: 0 0 0 18px;
		border: 0;
	}

	.fs-mobile-menu__list > .menu-item::before {
		position: absolute;
		top: 29px;
		left: 0;
		width: 4px;
		height: 4px;
		border-radius: 50%;
		content: "";
		background-color: var(--fs-header-red);
	}

	.fs-mobile-menu__list > .menu-item > a {
		display: block;
		width: 100%;
		margin: 0;
		padding: 20px 0;
		color: #333333;
		background: transparent;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.5;
		text-decoration: none;
	}

	.fs-mobile-menu__list > .menu-item > a::after {
		display: none;
	}

	.fs-mobile-menu__list > .current-menu-item > a,
	.fs-mobile-menu__list > .current-menu-ancestor > a,
	.fs-mobile-menu__list > .menu-item > a:hover,
	.fs-mobile-menu__list > .menu-item > a:focus-visible {
		color: var(--fs-header-red);
	}


	/* ========================================
	   スマホ無料相談ボタン
	======================================== */

	.fs-mobile-menu__contact {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 45px;
		margin: 20px 0 0;
		padding: 11px 16px;
		border-radius: 999px;
		color: #ffffff;
		background-color: var(--fs-header-red);
		font-size: 14px;
		font-weight: 700;
		line-height: 1.4;
		text-align: center;
		text-decoration: none;
		transition: filter 0.2s ease;
	}

	.fs-mobile-menu__contact:hover,
	.fs-mobile-menu__contact:focus-visible {
		color: #ffffff;
		filter: brightness(0.9);
	}


	/* メニュー表示中は本文を固定 */
	body.fs-menu-open {
		overflow: hidden;
		touch-action: none;
	}
}


/* ============================================
   管理バー表示時：783px〜1100px
============================================ */

@media screen and (min-width: 783px) and (max-width: 1100px) {

	body.admin-bar .fs-mobile-menu {
		top: calc(
			32px
			+ var(--fs-header-height-sp)
		) !important;

		height: calc(
			100dvh
			- 32px
			- var(--fs-header-height-sp)
		) !important;
	}
}


/* ============================================
   管理バー表示時：782px以下
============================================ */

@media screen and (max-width: 782px) {

	body.admin-bar .fs-header {
		top: 46px !important;
	}

	body.admin-bar .fs-mobile-menu {
		top: calc(
			46px
			+ var(--fs-header-height-sp)
		) !important;

		height: calc(
			100dvh
			- 46px
			- var(--fs-header-height-sp)
		) !important;
	}
}


/* ============================================
   幅390px以下
============================================ */

@media (max-width: 390px) {

	.fs-header__inner {
		padding-right: 14px;
		padding-left: 14px;
	}

	.fs-header__brand {
		gap: 7px;
	}

	.fs-header__logo-link {
		flex-basis: 128px;
		width: 128px;
		height: 50px;
	}

	.fs-header__logo {
		flex-basis: 89px;
		width: 89px;
	}

	.fs-header__target {
		flex-basis: 120px;
		width: 120px;
		font-size: 6.8px;
	}

	.fs-header__menu-button {
		flex-basis: 30px;
		width: 30px;
		margin-left: 5px;
	}

	.fs-header__menu-line {
		left: 3px;
	}

	.fs-header__menu-line:nth-child(1) {
		width: 24px;
	}

	.fs-header__menu-line:nth-child(2) {
		width: 17px;
	}

	.fs-header__menu-button.is-open
	.fs-header__menu-line {
		left: 5px;
		width: 24px;
	}

	.fs-mobile-menu__inner {
		padding-top: 48px;
		padding-right: 28px;
		padding-bottom: 40px;
		padding-left: 28px;
	}
}


/* ============================================
   幅360px以下
============================================ */

@media (max-width: 360px) {

	:root {
		--fs-header-height-sp: 58px;
	}

	.fs-header__inner {
		height: var(--fs-header-height-sp);
		padding-right: 10px;
		padding-left: 10px;
	}

	.fs-header__brand {
		height: var(--fs-header-height-sp);
		gap: 5px;
	}

	.fs-header__logo-link {
		flex-basis: 116px;
		width: 116px;
		height: 46px;
	}

	.fs-header__logo-main {
		height: 32px;
	}

	.fs-header__logo {
		flex-basis: 81px;
		width: 81px;
		height: 32px;
	}

	.fs-header__school-name {
		font-size: 5.5px;
	}

	.fs-header__logo-copy {
		margin-top: 3px;
		margin-left: 19px;
		font-size: 4.6px;
	}

	.fs-header__target {
		flex-basis: 111px;
		width: 111px;
		height: 21px;
		padding-right: 4px;
		padding-left: 4px;
		font-size: 6.2px;
	}

	.fs-header__menu-button {
		flex-basis: 28px;
		width: 28px;
		margin-left: 3px;
	}

	.fs-header__menu-line {
		left: 3px;
	}

	.fs-header__menu-line:nth-child(1) {
		width: 22px;
	}

	.fs-header__menu-line:nth-child(2) {
		width: 16px;
	}

	.fs-header__menu-button.is-open
	.fs-header__menu-line {
		left: 4px;
		width: 22px;
	}
}