@charset "utf-8";

/* =========================================
   Header
========================================= */

header {
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
	background-color: #fff;
}

.header-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
}

/* =========================================
   Header top
========================================= */

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: 70px;
	padding: 1rem 1.5rem;
}

/* ロゴ */

.logo {
	flex-shrink: 0;
}

.logo a {
	display: block;
}

.logo img {
	width: 180px;
	max-width: 100%;
	height: auto;
}

/* PC用電話番号・お問い合わせ */

.header-tel,
.header-contact {
	display: none;
}

/* =========================================
   Hamburger
========================================= */

.menu-toggle {
	display: flex;
	flex-shrink: 0;
	flex-direction: column;
	justify-content: space-between;
	width: 32px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	width: 100%;
	height: 3px;
	border-radius: 2px;
	background-color: #333;
	transition:
		transform 0.3s,
		opacity 0.3s;
}

/* メニューを開いた状態 */

.menu-toggle.active span:nth-child(1) {
	transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
	transform: translateY(-10.5px) rotate(-45deg);
}

/* =========================================
   SP navigation
========================================= */

.sp-nav {
	display: none;
	width: 100%;
	max-height: calc(100vh - 73px);
	overflow-y: auto;
	border-top: 2px solid #e6007e;
	background-color: #fff;
}

.sp-nav.active {
	display: block;
}

.sp-nav ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
}

.sp-nav li {
	min-width: 0;
	border-right: 1px solid #eee;
	border-bottom: 1px solid #eee;
}
.sp-nav li:nth-child(2n) {
	border-right: 0;
}
.sp-nav a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 1rem;
	color: #333;
	font-size: 1.3rem;
	line-height: 1.4;
	text-align: center;
	overflow-wrap: anywhere;
}

.sp-nav a:hover {
	color: #e6007e;
	background-color: #fafafa;
}

/* PCナビはSPでは非表示 */

.pc-nav {
	display: none;
}

/* =========================================
   Tablet
========================================= */

@media (min-width: 768px) and (max-width: 1023px) {
	.header-top {
		min-height: 80px;
		padding-inline: 3rem;
	}

	.logo img {
		width: 210px;
	}
	.sp-nav ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sp-nav li:nth-child(2n) {
		border-right: 1px solid #eee;
	}

	.sp-nav li:nth-child(3n) {
		border-right: 0;
	}
	.sp-nav a {
		padding-inline: 3rem;
	}
}

/* =========================================
   PC
========================================= */

@media (min-width: 1024px) {

	header {
		position: relative;
	}
	.header-container {
		max-width: none;
	}

	.header-top {
		width: min(100% - 8rem, 1400px);
		margin-inline: auto;
		padding: 2rem 0;
	}

	.header-top {
		width: 100%;
		min-height: auto;
		padding: 2rem;
	}

	.logo {
		flex: 0 0 240px;
	}

	.logo img {
		width: 220px;
	}

	/* 電話番号 */

	.header-tel {
		display: block;
		flex: 1;
		text-align: center;
	}

	.header-tel p {
		margin: 0;
		line-height: 1.4;
	}

	.header-tel p:first-child {
		font-size: 1.4rem;
	}

	.header-tel p:last-child {
		color: #e6007e;
		font-size: 3rem;
		font-weight: 700;
		letter-spacing: 0.03em;
	}

	/* お問い合わせボタン */

	.header-contact {
		display: block;
		flex: 0 0 auto;
	}

	.header-contact a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 54px;
		padding: 1.2rem 2.5rem;
		border-radius: 5px;
		background-color: #e6007e;
		color: #fff;
		font-size: 1.5rem;
		font-weight: 700;
		line-height: 1.4;
		transition:
			opacity 0.3s,
			transform 0.3s;
	}

	.header-contact a:hover {
		opacity: 0.8;
		transform: translateY(-2px);
	}

	/* ハンバーガーとSPナビを非表示 */

	.menu-toggle {
		display: none;
	}

	.sp-nav {
		display: none !important;
	}

	/* PCナビ */

	.pc-nav {
		display: block;
		width: 100%;
		border-top: 1px solid #eee;
	}

	.pc-nav ul {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.pc-nav li {
		min-width: 0;
		border-right: 1px solid #eee;
	}

	.pc-nav li:first-child {
		border-left: 1px solid #eee;
	}

	.pc-nav a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 60px;
		padding: 1rem 0.7rem;
		color: #333;
		font-size: 1.4rem;
		font-weight: 500;
		line-height: 1.4;
		text-align: center;
		transition:
			color 0.3s,
			background-color 0.3s;
	}

	.pc-nav a:hover {
		color: #e6007e;
		background-color: #fafafa;
	}
}

/* =========================================
   Wide PC
========================================= */

@media (min-width: 1200px) {

	.logo {
		flex-basis: 260px;
	}

	.header-contact a {
		padding-inline: 3rem;
	}

	.pc-nav a {
		font-size: 1.5rem;
	}
}