@charset "utf-8";
.header_wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 1rem;
	align-items: center;
}
.meijiza_logo{
	width: clamp(22.5rem, 16.136rem + 31.82vw, 40rem);
}
.header-btn-area{
	display: flex;
	gap:1rem;
}
.header-btn-area button{
	padding: 0.7rem;
	color: #fff;
	font-weight: bold;
	border-radius: 8px;
}
.login-btn{
	background: var(--main);
	display: flex;
	align-items: center;
	& img{
		height: 2rem;
		width: auto;
		margin-right: 0.5rem;
	}
}
.history-btn{
	background: var(--main-blue);
	word-break: keep-all;
}
.fa-angle-right{
	color: #fff;
	padding-left: 0.5rem;
}
.tool{
	position: absolute;
	top: 50px;
	background: #fff;
	border: 2px solid var(--main);
	padding: 1rem;
	color: var(--main);
}
#header_nav{
	background: #FFE6F0;
	& ul li{
		font-size: clamp(0.813rem, 0.754rem + 0.29vw, 0.938rem);
	}
	& ul li a{
		color: #000;
		text-decoration: none;
		display: block;
		transition: all 250ms;
	}
}
@media screen and (min-width: 1026px) {
.logo a{
	display:block;
	width: 100%;
	left: 100%;
	&:focus-visible {
		outline:2px solid #000;
  }
}
#menu-btn-check {
    display: none;
}
/*PC用ナビメニューここから*/
.menu{
	display: block;
	width: 100%;
}
#header_nav{
	& ul{
		display: flex;
		justify-content: center;
		padding: 0.5rem 0;
		max-width: 80vw;
		margin: 1rem auto;
	}
	& ul li{
		width: calc(100% / 4);
		text-align: center;
		align-self: center;
		font-size: 110%;
		font-weight: bold;
	}
}
#header_nav ul li a:hover{
	color: var(--main);
}
}
/*PC用ナビメニューここまで*/

/*ここからタブレット用*/
@media (839px <= width < 1025px) {
#menu-btn-check {
    display: none;
}
/*タブレット用ナビメニューここから*/
.menu{
	margin: 0.5rem auto;
}
#header_nav{
	width: 90vw;
}
#header_nav ul{
	display: flex;
	justify-content: center;
	background: var(--bg2);
	padding: 0.2rem;
}
#header_nav ul li{
	width: calc(100% / 4);
	font-weight: bold;
	text-align: center;
	align-self: center;
	padding: 0.2rem;
}
/*タブレット用ナビメニューここまで*/
}

/*ここからスマホ用*/
@media screen and (max-width:838px) {
.header-btn-area{
	width: 80vw;
}
.history-btn{
	max-width: 6rem;
}
/*ハンバーガーメニューここから*/
.menu{
	position: fixed;
	top: 80px;
	right: 20px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	align-content: center;
	z-index: 90;	
}
.menu-btn {
	position: fixed;
	width: 18px;
	height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: var(--gray);
	transition-duration: .3s;
	padding: 0.5rem;
	margin: -8px;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 2px;
    width: 20px;
    border-radius: 2px;
    background-color: var(--main);
    position: absolute;
	transition-duration: .3s;
}
.menu-btn span:before {
    bottom: 5px;
}
.menu-btn span:after {
    top: 5px;
}
#menu-btn-check {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  border: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}
/*ハンバーガーメニューここまで*/
/*スマホ用ナビメニューここから*/
#header_nav {
    width: 70%;
    position: fixed;
    top: 130px;
    left: 100%;
    z-index: 80;
	background: var(--main);
	transition: all 0.5s;/*アニメーション設定*/
}
#menu-btn-check:checked ~ #header_nav {
    left: 30%;
}
#header_nav ul {
    padding: 1rem 0.7rem;
}
#header_nav ul li {
    border-bottom: solid 1px #ffffff;
    list-style: none;
	&:last-child{
		border-bottom: none;
	}
}
#header_nav ul li a {
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
	color: #fff;
}
#header_nav ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}
/*スマホ用ナビメニューここまで*/
}