/*-----------------------------

 ヘッダー

----------------------------- */
header {
	position: fixed;
	top: -500px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 82px;
	padding: 0 152px 0 32px;
	background: var(--bg-color);
	z-index: 50;
	transition: top .8s .8s ease;
}
header.active {
	top: 0;
}
header.on {
	box-shadow: 0 0 10px rgba(0,0,0,.1);
}
header .img_logo img {
	width: 250px;
}
header .nav_wrapper .inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
header .nav_wrapper .header_menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
}
header .nav_wrapper .header_menu li {
	height: 100%;
}
header .nav_wrapper .header_menu li a {
	position: relative;
	display: inline-block;
	font-size: 17px;
	font-weight: 700;
}
header .nav_wrapper .header_menu li.current a::before {
	content: "";
	position: absolute;
	bottom: -28px;
	left: 0;
	display: inline-block;
	width: 100%;
	height: 4px;
	border-radius: 4px 4px 0 0;
	background: var(--accent-color);
	transition: .3s;
}
header .nav_wrapper .sns_box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: 20px;
	padding-left: 20px;
	border-left: 2px solid var(--second-color);
}

header .btn_cv {
	position: fixed;
	top: -500px;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 130px;
	height: 138px;
	background: var(--main-color);
	border-radius: 0 0 0 20px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

header.active .btn_cv {
    top: 0;
    transition: top .8s .8s ease;
}

header .btn_cv p {
	line-height: 1.5;
}

header .btn_cv p span {
	display: block;
}

header .btn_cv img {
	width: 38px;
}

header .btn_cv span {
	text-align: center;
}

.sns_box .line img {
	width: 32px;
	height: auto;
}

.sns_box .insta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 7px;
	background: var(--accent-color);
}

.sns_box .insta img {
	width: 20px;
	height: auto;
}

header .open_nav {
	display: none;
}

header #bg_close {
	display: none;
}

@media screen and (max-width: 1200px) {
	header {
		padding: 0 132px 0 32px;
	}

	header .img_logo img {
		width: 220px;
	}

	header .nav_wrapper .header_menu {
		gap: 20px;
	}

	header .nav_wrapper .header_menu li a {
		font-size: 15px;
	}

	header .btn_cv {
		width: 110px;
        height: 118px;
	}

	header .btn_cv img {
		width: 30px;
	}
}

@media screen and (max-width: 1024px) {
	header {
		height: 70px;
		padding: 0 0 0 40px;
	}

	header .open_nav {
		position: absolute;
		top: 0;
		right: 0;
		display: inline-block;
		width: 90px;
		height: 90px;
		background: var(--main-color);
		border-radius: 0 0 0 20px;
		cursor: pointer;
	}

	header .open_nav span:nth-child(1),
	header .open_nav span:nth-child(2) {
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		display: inline-block;
		width: 35px;
		height: 2px;
		background: #fff;
		transition: .3s;
	}

	header .open_nav span:nth-child(1) {
		top: 25px;
	}

	header .open_nav span:nth-child(2) {
		top: 38px;
	}

	header .open_nav span:nth-child(3) {
		position: absolute;
		top: 50px;
		left: 50%;
		transform: translateX(-50%);
		font-size: 14px;
		font-family: bonnie, sans-serif;
		font-weight: 400;
		font-style: normal;
		color: #fff;
		white-space: nowrap;
		transition: .3s;
	}

	header .open_nav.active span:nth-child(1) {
		top: 30px;
		transform: translateX(-50%) rotate(-45deg);
	}

	header .open_nav.active span:nth-child(2) {
		top: 30px;
		transform: translateX(-50%) rotate(45deg);
	}

	header .nav_wrapper {
		position: fixed;
        bottom: -200vh;
        right: 0;
        width: 90%;
        max-width: 400px;
        height: 82svh;
		padding: 40px 20px;
        border-radius: 20px 0 0 0;
        background: var(--bg-color);
        z-index: -1;
        transition: .6s;
        overflow-y: scroll;
	}

	header .nav_wrapper.active {
		bottom: 0;
	}

	header .nav_wrapper .inner {
		height: auto;
		flex-direction: column;
	}

	header .nav_wrapper .header_menu {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: 32px;
	}

	header .nav_wrapper .header_menu li {
		height: fit-content;
	}

	header .nav_wrapper .header_menu li.current a::before {
		bottom: 0;
		left: -20px;
		width: 4px;
        height: 24px;
		border-radius: 0 4px 4px 0;
	}

	header .nav_wrapper .header_menu li a {
		font-size: 18px;
	}

	header .nav_wrapper .sns_box {
		margin: 40px auto 0 0;
        padding: 0;
        border: none;
	}

	.sns_box .line img {
		width: 40px;
	}

	.sns_box .insta {
		width: 40px;
		height: 40px;
	}

	.sns_box .insta img {
		width: 26px;
	}

	header .btn_cv {
		position: static;
        width: 100%;
        max-width: 300px;
        flex-direction: row;
        height: 75px;
        margin: 40px auto 0;
        border-radius: 75px;
		font-size: 16px;
	}

	header .btn_cv img {
		width: 24px;
	}

	header .btn_cv p span {
		display: inline-block;
	}

	header .btn_cv p span:first-of-type::after {
		content: "・";
		display: inline-block;
	}

	#bg_close {
		position: fixed;
		top: 0;
		right: 0;
		display: block;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, .6);
		opacity: 0;
		z-index: 5;
		transition: .3s;
		pointer-events: none;
	}

	#bg_close.active {
		opacity: 1;
		pointer-events: all;
	}
}

@media screen and (max-width: 500px) {
	header {
		padding: 0 0 0 24px;
	}

	header .img_logo img {
        width: 200px;
    }
}