@charset "utf-8";

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

	top

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

.top-key {
	display: flex;
	height: calc(100vh - 80px);
}

.top-key-col {
	position: relative;
	display: flex;
	width: 50%;
}

.top-key__title-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.top-key__title {
    margin: 0;
    padding: 0;
	font-size: 8rem;
	font-weight: 700;
	line-height: 1;
}

.top-key__title > span {
	display: block;
}

.top-key__youtube {
    width: 100%;
    max-width: 300px;
    margin: 100px auto 0;
    cursor: pointer;
	transition: .3s;
}

.top-key__youtube:hover {
    opacity: .8;
}


.top-key-nav {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.top-key-nav-col {
	width: 100%;
	height: 50%;
}

.btn-top-key {
	overflow: hidden;
	position: relative;
	display: block;
	height: 100%;
	width: 100%;
}

.btn-top-key:after {
	content: '';
	position: absolute;
	top: 0;
	z-index: -1;
	display: block;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	transition: all .3s ease-out;
}

.btn-top-key--new:after { background-image: url("../images/recruit/key-photo01.jpg");}
.btn-top-key--career:after { background-image: url("../images/recruit/key-photo02.jpg");}


.btn-top-key:hover:after {
	transform: scale(1.2);
}

@media screen and (max-width: 767px) {
	
	.top-key {
		display: block;
		height: auto;
		border-top: 1px solid #ccc;
	}

	.top-key-col {
		display: block;
		width: 100%;
		height: auto;
	}
	
	.top-key__title-wrap {
        position: static;
		padding: 8rem 0;
		text-align: center;
		transform: translate(0, 0);
	}
	
	.top-key__title {
		font-size: 4.8rem;
		text-align: center;
	}

    .top-key__youtube {
        width: 100%;
        max-width: 240px;
        margin: 40px auto 0;
    }
	
	.top-key-nav {
		display: block;
	}

	.top-key-nav-col {
		width: 100%;
	}

}


.btn-top-key__text {
	position: absolute;
	top: 50%;
	left: 5.2rem;
	font-size: 3.5rem;
	font-weight: 700;
	color: #fff;
	transform: translateY(-50%);
}

.recruit-top-wrap {
	padding-top: 5.2rem;
	padding-bottom: 5.2rem;
}

.recruit-top-title {
	margin: 0 0 4rem;
	padding: 0;
	border: none;
	font-size: 4rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

@media screen and (max-width: 767px) {
	
	.btn-top-key__text {
		position: static;
		display: block;
		width: 100%;
		padding: 4rem 2rem;
		font-size: 2.4rem;
		text-align: center;
		transform: translateY(0);
	}
	
	.recruit-top-title {
		margin-bottom: 2rem;
		font-size: 2.4rem;
	}
	
}


.recruit-top-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -1.7rem -2rem;
}

.recruit-top-col {
	width: 25%;
	margin: 0 0 2rem;
	padding: 0 1.7rem;
}

@media screen and (max-width: 767px) {
	
	.recruit-top-row {
		margin-right: -0.5rem;
		margin-left: -0.5rem;
	}

	.recruit-top-col {
		width: 50%;
		padding: 0 0.5rem;
	}
	
}


.recruit-box {
	display: block;
	text-align: center;
}

.recruit-box__photo {
	overflow: hidden;
	display: block;
	margin: 0 0 1rem;
}

.recruit-box__photo img {
	display: block;
	transition: .3s all;
}

.recruit-box:hover .recruit-box__photo img {
	transform: scale(1.2,1.2);
}

.recruit-box__ja {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	color: #000;
}

.recruit-box__en {
	display: block;
	line-height: 1;
}

@media screen and (max-width: 767px) {
	
	.recruit-box__ja {
		font-size: 1.6rem;
	}

	.recruit-box__en {
		font-size: 1.2rem;
	}
	
}


/* モーダル全体の背景（最初は非表示） */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100003;
    display: none; /* デフォルトは非表示 */
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #000;
    aspect-ratio: 16 / 9;
}

/* YouTubeのiframe */
.modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 1px;
    background-color: #fff;
}

.close-btn::before { transform: rotate(45deg);}
.close-btn::after { transform: rotate(-45deg);}

.close-btn-text {display: none;}

@media screen and (max-width: 767px) {
    
    .modal-content {
        width: calc(100% - 20px);
    }
    
    /* 閉じるボタン */
    .close-btn {
        top: -50px;
        right: 0px;
    }
    
}

  
.open-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}