/* ==========================
    トップページ
========================== */

.top-wrapper {
    width: 100vw;
    margin-top: 10vh;
}

.top-wrapper video {
    width: 100%;
    height: 100vh; /* 画面の高さもいっぱいにする */
    object-fit: cover; /* 画面全体に広がるように調整 */
}

.top-video-pc {
	display: block;
}

.top-video-sp {
	display: none;
}

@media screen and (max-width: 600px) {
	.top-wrapper video {
        width: 100%;
        height: 35vh;
    } 
	
	.top-video-pc {
		display: none;
	}
	
	.top-video-sp {
		display: block;
	}   
}

/* ==========================
    トップページ(ドロップダウン)
========================== */

/* 全体の配置 */
.dropdown-container .dropdown {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
.dropdown-container {
    display: flex;
    justify-content: space-evenly;
    padding: 80px 0;
}

@media screen and (max-width: 780px) {
    .dropdown-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .dropdown-container .dropdown {
        margin: 0 auto;
    }
}

.dropdown-container .dropdown {
    width: 280px;
    background-color: #F0F9FFD9;
    border-radius: 30px;
}

.dropdown-container .dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: #4285F4;
    color: white;
    font-size: 14px;
    border: none;
    padding: 15px 20px;
    border-radius: 40px;
    cursor: pointer;
    border: 1px solid #4285F4;
    transition: background-color 0.5s ease;
}

.dropdown-container .dropdown-toggle img {
    width: 30px;
    height: 30px;
}

.dropdown-container .dropdown-menu {
    padding: 0px 20px;
}

.dropdown-container .dropdown-menu li {
    font-size: 13px;
}

.dropdown-container .dropdown-menu li a:hover {
    color: #A3A3A3;
}

.dropdown-container .dropdown-toggle:hover {
    color: #4285F4;
    background-color: white;
}

.dropdown-container .dropdown-toggle .arrow {
    transition: background-color 0.5s ease;
}

.dropdown-container .dropdown-toggle:hover .arrow {
    color: #4285F4;
    background-color: white;
}

@media screen and (max-width: 780px) {
	.dropdown-container .dropdown-toggle:hover {
		color: white;
    	background-color: #4285F4;
	}
	
	.dropdown-container .dropdown-toggle:hover .arrow {
		color: white;
		background-color: #4285F4;
	}
}


/* ==========================
    事業案内(TOP)
========================== */
.service-container {
    background-color: #F0F9FFD9;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 40px 0 80px;
    width: 100vw;
}

.service-container:hover {
    background-color: #F3FAFB;
}

.title {
    width: 90%;
    margin: 0 auto;
}

.title h1 {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
}

.title p {
    width: 50%;
    font-size: 14px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    line-height: 2.0;
}

.service-contents {
    width: 70%;
    display: flex;
    margin: 0 auto;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 40px;
}

.service-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 20px;
}

.service-content img {
    width: 40%;
    margin: 0 auto;
}

.service-content h3 {
    font-size: 20px;
    text-align: center;
}

.service-content p {
    font-size: 14px;
    line-height: 1.7;
}

@media screen and (max-width: 780px) {
    .service-contents {
        width: 90%;
    }
}



/* ==========================
    働きながら学ぼうプロジェクト(TOP)
========================== */
.project-container {
    position: relative;
    text-align: center; /* 中央揃え */
    width: 45%;
    margin: 120px auto;
}

.project-container img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    aspect-ratio: 1, 5;
}

/* h3 を画像の中央に配置 */
.project-container h3 {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 完全に中央配置 */
    color: white; /* 文字色を白にして見やすく */
    font-size: 24px;
    font-weight: bold;
    transition: all .3s ease;
}

.project-container:hover h3 {
    font-size: 26px;
}

@media screen and (max-width: 1080px) {
    .project-container {
        width: 60%;
    }
}

@media screen and (max-width: 700px) {
    .project-container {
        width: 70%;
    }

    .project-container h3 {
        font-size: 18px;
    }

	.project-container:hover h3 {
        font-size: 18px; /* hover時のスタイルをリセット */
    }
}

@media screen and (max-width: 450px) {
    .project-container {
        width: 80%;
    }
}


/* ==========================
    NEWS お知らせ(TOP)
========================== */
.news-container {
    padding-bottom: 80px;
}

.news-contents {
    width: 50%;
    margin: 40px auto;
    display: flex;
    flex-direction: column
}

.news-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.news-content:hover .arrow {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.news-content:hover {
    opacity: 0.7;
}

.news-flex {
    display: flex;
    width: 80%;
    justify-content: space-between;
}

.news-content .date {
    width: 20%;
}

.news-content .detail {
    width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-container .btn {
    text-align: center;
}

@media screen and (max-width: 1000px) {
    .news-contents {
        width: 70%;
    }
}

@media screen and (max-width: 700px) {
    .news-contents {
        width: 80%;
    }
}

@media screen and (max-width: 570px) {
    .news-flex {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .news-content .date {
        width: 100%;
        font-size: 12px;
    }
    
    .news-content .detail {
        width: 100%;
    }
}

/* .news-content .arrow {
    font-size: ;
} */

/* ==========================
    グループ企業(TOP)
========================== */
.group-container {
    width: 100vw;
    margin: 80px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    position: relative; /* h3をabsolute配置するために relative に */
}

.group-container img {
    width: 100%;
    display: block;
}

/* h3 を画像の中央に配置し、.arrow を横に */
.group-container div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 完全に中央配置 */
    display: flex;
    align-items: center;
    gap: 10px; /* h3と.arrowの間隔 */
}

/* h3 のスタイル */
.group-container h3 {
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease-in-out;
}

/* .arrow のスタイル */
.group-container .arrow {
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* 画像をホバーしたら h3 の文字色を変更 */
.group-container:hover h3 {
    color: #A3A3A3;
}

/* 画像をホバーしたら .arrow を拡大 */
.group-container:hover .arrow {
    transform: scale(1.1);
}

@media screen and (max-width: 570px) {
    .group-container h3 {
        font-size: 18px;
    }
}


/* ==========================
    事業案内(スライダー)
========================== */
@media screen and (max-width: 768px) {
    .title p {
        width: 80%;
		text-align: left;
    }

    .slider {
        width: 100%;
        position: relative;
        overflow: hidden;
        height: 630px; /* +50px */
    }

    .service-contents {
        height: 580px;
    }

    .service-content {
        width: 60%;
        height: 580px;
        position: absolute;
        transition: transform 0.5s ease;
    }

    .service-content p {
        font-size: 14px;
    }

    .service-content h2 {
        font-size: 16px;
    }
}

@media screen and (max-width: 660px) {
    .slider {
        height: 550px; /* +50px */
    }

    .service-contents {
        height: 500px;
    }

    .service-content {
        height: 500px;
    }
}

/* .dropdown-container .dropdown {
    transition: height 0.5s;
}

.dropdown-container .dropdown.close {
    height: 63px;
    overflow: hidden;
}

.dropdown-container .dropdown.open {
    height: auto;
} */

.dropdown-container .dropdown {
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
    max-height: 63px;
}

/* 閉じているとき */
.dropdown-container .dropdown.close {
    max-height: 63px;
}

/* 開いたとき */
.dropdown-container .dropdown.open {
    max-height: 500px; /* 予想される最大値（適宜調整） */
}

/* トップページバナー */
.lp-banner {
	width: 80%;
	margin: 40px auto 0;
	text-align: center;
}

.lp-banner a {
	display: inline-block;
	width: 50%;
}

.lp-banner a img {
	width: 100%;
	transition: opacity 0.5s ease;
}

.lp-banner a img:hover {
	opacity: 0.8;
}

@media screen and (max-width: 1000px) {
	.lp-banner a {
		width: 70%;
	}
}

@media screen and (max-width: 500px) {
	.lp-banner a {
		width: 100%;
	}
}