
/* ------------------------------
ヘッダー
------------------------------ */
@media (min-width:1201px){
	.header_wrap {
		min-height: 70px;
	}
}
@media (max-width:1200px){
	.header_wrap {
		min-height: 60px;
	}
}

.header_logo a,
.header_logo img{
	display: block;
}

.header_logo img{
	height: 30px;
}

.header_text{
	font-weight: normal;
	text-align: justify;
	text-justify: inter-ideograph;
	line-height: 1;
}

@media (min-width:1201px){
	.header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 20px 5% 0;
	}

	.home .header {
		position: absolute;
	}
	
	.header .inner{
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: auto;
		margin: 0;
		padding: 0;
	}

	.header_text{
		position: absolute;
		top: 10px;
        font-size: 11px;
	}
	
	/*固定*/
	.header.fixed {
		position: fixed;
        left: 0;
        top: 0;
		animation: slideDown 0.5s ease;
		background: rgba(255, 255, 255, 0.8);
		z-index: 99999;
	}
	
	@keyframes slideDown{
		0% {
			top: -50px;
		}
		100% {
			top: 0px;
		}
	}
}

@media screen and (max-width:1200px){
	.header{
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		height: 60px;
		background: #fff;
		box-shadow: 0px 0px 10px rgba(0,0,0,0.15);
		/*マイページDM*/
		/*
		z-index: 9999;
		*/
	}

	.header .inner {
		display: flex;
		align-items: center;
		height: 100%;
		padding: 0 70px 0 10px;
	}

	.header_logo img {
		width: 180px;
		height: 26px;
		object-fit: contain;
		object-position: left;
	}

	.header_text {
		margin-bottom: 8px;
		font-size: 10px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	
	/*検索結果用*/
	.header_text p {
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.header_left {
		width: 100%;
	}

	.header_right {
		position: absolute;
		right: 70px;
		bottom: 7px;
		line-height: 1;
	}
}

/* ------------------------------
ナビ
------------------------------ */
.menu a,
.menu span{
	display: flex;
	align-items: center;
	min-height: 50px;
}

/*「無料」*/
.menu em{
	display: inline-block;
	margin-left: 10px;
	padding: 5px 10px;
	background: #F7636B;
	font-style: normal;
	color: #fff;
	line-height: 1;
}

@media (min-width:1201px){
	.menu {
		display: flex;
		justify-content: flex-end;
	}

	.menu li{
		position: relative;
	}

	.menu a,
	.menu span{
		padding: 10px 20px 10px 15px;
	}

	.menu span:hover{
		cursor: pointer;
		opacity: 0.9;
	}
			
	.menu > li > a,
	.menu > li > span {
		padding: 10px 15px;
		justify-content: center;
	}

	/*子メニュー*/
	.menu ul{
		position: absolute;
		width: 100%;
		z-index: 99999;
	}

	.menu ul ul{
		top: 0;
		right: 100%;
	}

	.menu ul a,
	.menu ul span{
		background: var(--main-color);
		color: #fff;
	}

	/*表示・非表示*/
	/*矢印（ulの擬似要素）を出すために、ulではなくliを隠す*/
	.menu ul li{
		display: none;
	}

	.menu > li:hover > ul > li,
	.menu ul li:hover > ul > li{
		display: block;
	}

	/*スマホ用ボタン非表示*/
	.menu .ham_btn,
	.menu .menu_btn{
		display: none;
	}
}

@media screen and (max-width:1200px){
	.menu{
		position: fixed;
		top: 0;
		right: -120%;
		width: 70%;
		height: 100%;
		padding-top: 60px;
		padding-bottom: 170px;
		background: var(--main-color-light);
		font-weight: bold;
		overflow: auto;
		transition: all .6s;
		z-index: 9999;
	}
	
	.ham_btn.active + .menu{
		right: 0;
	}

	.menu::-webkit-scrollbar{
		display: none;
	}
	
	.menu ul{
		display: none;
	}	

	.menu li{
		position: relative;
	}

	.menu a,
	.menu span{
		padding: 10px 60px 10px 3em;
	}

	.menu ul a,
	.menu ul span{
		padding-left: calc(15px + 1em);
	}

	.menu ul ul a,
	.menu ul ul span {
		padding-left: 4em;
	}

	/*「-」を追加*/
	.menu ul a:first-child:before,
	.menu ul span:first-child:before {
		content: "－";
        margin-right: .5em;
	}
	
	/*「>」を追加*/
	.menu > li > a:first-child,
	.menu > li > span:first-child{
		position: relative;
	}
	
	.menu > li > a:first-child:before,
	.menu > li > span:first-child:before{
		content: "";
		position: absolute;
		left: 20px;
		top: calc(50% - 5px);
		width: 5px;
		height: 10px;
		clip-path: polygon(0 0, 100% 50%, 0% 100%);
		background: var(--main-color);
	}	

	/*子メニュー矢印*/
	span + .menu_btn{
		width: 100%;
		z-index: 1;
	}
	
	.menu_btn{
		position: absolute;
		right: 0;
		top: 0;
		display: block;
		width: 50px;
		height: 50px;
		padding: 0 !important;
		cursor: pointer;
	}

	.menu_btn:after{
		display: block;
		content: '';
		position: absolute;
		right: 20px;
		top: 50%;
		margin-top: -7px;
		width: 10px;
		height: 10px;
		border-top: 2px solid var(--main-color);
		border-right: 2px solid var(--main-color);
		transform: rotate(135deg);
	}

	.menu_btn.active:after{
		transform: rotate(-45deg);
		margin-top: -4px;
	}

	/*ハンバーガー*/
	.ham_btn{
		position: fixed;
		top: 0;
		right: 0;
		display: inline-block;
		width: 60px;
		height: 60px;
		background: var(--main-color-light);
		z-index: 99999;
		cursor: pointer;
	}

	.ham_btn:after{
		content: "メニュー";
		position: absolute;
		bottom: 7px;
		display: block;
		width: 100%;
		font-size: 10px;
		text-align: center;
		line-height: 1;
	}

	.ham_btn span,
	.ham_btn span:before,
	.ham_btn span:after{
		position: absolute;
		content: '';
		display: block;
		height: 2px;
		width: 24px;
		border-radius: 3px;
		background: #333;
		transition: all 0.5s;
	}

	.ham_btn span{
		display: block;
		top: 20px;
		right: 18px;
	}
	
	.ham_btn span:before{
		bottom: 6px;
	}
	
	.ham_btn span:after{
		top: 6px;
	}

	.ham_btn.active span{
		background: transparent;
	}

	.ham_btn.active span:before{
		bottom: 0;
		transform: rotate(45deg);
	}

	.ham_btn.active span:after{
		top: 0;
		transform: rotate(-45deg);
	}
}

/* ------------------------------
「最近見た求人」などのボタン
------------------------------ */
.header .tel_num{
	white-space: nowrap;
}

@media (min-width:1201px){
	.header_right{
		position: absolute;
		right: 0;
		top: 100px;
		display: block !important;
		text-align: center;
	}

	/*アイコンリンク*/
	.header_link {
		display: block;
	}
	
	.header_link li {
		min-width: 60px;
		margin-bottom: 10px;
	}
	
	.header_link li a,
	.header_link li span,
	.header_link li img{
		display: block;
		margin: 0 auto;
	}

	.header_link li a {
		padding: 10px;
		background: rgba(255,255,255,0.8);
		border-radius: 5px 0 0 5px;
		border: 1px solid #eee;
		border-right: 0;
	}
	
	.header_link li span:first-of-type{
		width: 26px;
		height: 26px;
		display: flex;
		align-items: center;
	}
	
	.header_link li span:last-of-type{
		margin-top: 5px;
		font-size: 10px;
	}
	
	.header_link li img{
		width: 100%;
	}
}

@media screen and (max-width:1200px){
	.header_link{
		display: flex;
		font-size: 10px;
		text-align: center;
	}

	.header_link li + li{
		margin-left: 10px;
	}

	.header_link img{
		display: block;
		height: 12px;
		margin: 0 auto;
	}

	.header_link li {
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
	}

	.header_link span{
		display: block;
        margin-top: 5px;
	}
}

/*---------------
表示・非表示
---------------*/
.header_right > div {
	display: none;
}

@media (min-width:1201px){
	.header_narrow {
		display: none;
	}
}

@media screen and (max-width:1200px){
	.header_wide {
		display: none;
	}
}

@media screen and (max-width:370px){
	.header_link span{
		display: none;
	}
}

/* ------------------------------
ログイン時に長くなるため、後半は2列に変更

※flexだと高さが伸びておかしくなるためfloatを使用
※floatは2行になると崩れるのでメニューを横幅100%に
------------------------------ */
@media screen and (max-width:1200px){
	.menu > li {
		border-bottom: 1px solid rgba(var(--main-color-rgb),0.1);
	}

	/*ニュース・コラム以降は2列*/
	.menu > li:has(.menu_btn) ~ li {
		float: left;
		width: 50%;
	}

	.menu > li:has(.menu_btn) ~ li:nth-of-type(odd) {
		border-right: 1px solid rgba(var(--main-color-rgb),0.1);
	}

	/*狭いPCで無料相談ボタンとそれ以降は1列*/
	.menu > li:has(em),
	.menu > li:has(em) ~ li {
		float: none !important;
		width: 100% !important;
		border-right: 0 !important;
	}

	/*右の余白*/
    .menu > li > a,
	.menu ul ul a {
        padding-right: 10px;
    }

	/*左の余白と矢印の位置*/
	.menu > li > a,
	.menu > li > span {
		padding-left: 30px;
	}

	.menu > li > a:first-child:before,
	.menu > li > span:first-child:before {
		left: 15px;
	}

	.menu ul a,
	.menu ul span{
		padding-left: 30px;
	}

	.menu ul ul a,
	.menu ul ul span {
		padding-left: calc(30px + 1.5em);
	}
}

@media screen and (max-width:767px){
	.menu {
		width: 100%;
	}
}

/* ------------------------------
文字のまわりを白く
------------------------------ */
@media (min-width:1201px){
	.header_text,
	.header_logo img,
	.menu > li {
		filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 10px #fff);
	}
}

/* ------------------------------
25.8.28～
------------------------------ */

/* ---------------
ヘッダーアイコン位置・余白
--------------- */
@media screen and (max-width:1200px){
	.header_right {
		bottom: 5px;
	}

	.header_link span {
		margin-top: 2px;
	}
}

/* ---------------
「メニュー」の文字もずらす
--------------- */
@media screen and (max-width:1200px){
	.ham_btn:after {
		bottom: 10px;
	}
}

/* ---------------
ロゴのaがアイコンにかぶらないように
--------------- */
@media screen and (max-width:1200px){
	.header_logo {
		width: -moz-fit-content;
		width: fit-content;
	}
}

/* ------------------------------
25.11.17
------------------------------ */
@media (min-width:1201px){
	.home .header_wrap {
		position: absolute;
		width: 100%;
	}
}




