/* ==========================
    トップページ
========================== */
.top-wrapper h3 {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, 100%);
    color: white;
    margin-bottom: 35px;
    font-size: 45px !important;
}

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

.sp {
	display: none;
}

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

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

@media screen and (max-width: 1400px) {
	.top-wrapper h3 {
        font-size: 40px !important;
    }  
}

@media screen and (max-width: 1250px) {
    .top-wrapper h3 {
        width: 100%;
        text-align: center;
    }  
}

@media screen and (max-width: 900px) {  
    .top-wrapper h3 {
        font-size: 34px !important;
    }
}

@media screen and (max-width: 900px) {  
    .top-wrapper h3 {
        font-size: 30px !important;
    }
}

@media screen and (max-width: 670px) {  
    .top-page-content {
        transform: translateY(110px);
    }
}

@media screen and (max-width: 670px) {
	.top-wrapper video {
        width: 100%;
        height: 100vh;
    }
	
	.sp {
		display: block;
	}
	
	.top-video-pc {
		display: none;
	}
	
	.top-video-sp {
		display: block;
	}
    
    .top-wrapper h3 {
        width: 60%;
        text-align: center;
        position: static;
        color: black; 
        transform: translate(0);
        margin-top: 35px;
        margin-left: auto;
        margin-right: auto;
        font-size: 36px !important;
        letter-spacing: 0;
    }
}

@media screen and (max-width: 500px) {
    .top-wrapper h3 {
        width: 90%;
		text-align: start;
        margin-left: 25px;
        margin-right: 60px;
    }
}

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

/* 全体の配置 */
.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;
	}
}


/* ==========================
    Mission(TOP)
========================== */
.white-container {
    background-color: white;
    padding: 140px 0 90px 0;
    margin-bottom: 20px;
}

.white-container .btn a {
    width: 280px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    background-color: white;
    color: black;
    border-color: #5383EC;
    font-size: 14px;
}

@media screen and (max-width: 600px) {
    .white-container .btn a {
        width: 180px;
        height: 45px;
        font-size: 10px;
    }
}

.white-container .btn a span {
    color: black;
}

.white-title {
    width: 170px;
    height: 80px;
    margin: 0 auto;
}

.white-title h1 {
    height: 29px;
    text-align: center;
    font-size: 37px;
    font-weight: bold;
}

.white-title hr {
    margin: 15px 0;
}

.white-title p {
    font-size: 14px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.mission-contents {
    display: flex;
    margin: 60px 140px 70px 140px;
    justify-content: center;
}

.mission-content {
    width: 550px;
    height: 600px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mission-content img {
    width: 160px;
    height: 160px;
    margin: 0 auto;
}

.mission-content:nth-child(1) img {
    width: 260px;
}

.mission-content:nth-child(3) img {
    width: 190px;
}

.mission-content div {
    padding-top: 70px;
    padding-bottom: 27px;
    margin: 0 auto;
}

.mission-content div h3 {
    color: #4876DD;
    font-size: 21px;
    font-weight: bold;
}

.mission-content div p {
    color: #4876DD;
    font-size: 17px;
    font-weight: bold;
}

.mission-content p {
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
}

@media screen and (max-width: 1250px) {
    .mission-contents {
        margin: 30px 0 70px 0;
        align-items: center;
    }
}


@media screen and (max-width: 1050px) {
    .mission-contents {
        margin: 110px auto 70px auto;
        align-items: center;
    }

    .mission-content {
        width: 300px;
        height: 350px;
    }

    .mission-content img {
        width: 120px;
        height: 120px;
    }

    .mission-content:nth-child(1) img {
        width: 175px;
    }

    .mission-content:nth-child(3) img {
        width: 150px;
    }
}

@media screen and (max-width: 900px) {   
    .mission-contents {
        margin: 60px auto 40px auto;
        flex-direction: column;
    }

    .mission-content {
        width: 550px;
        height: 500px;
    }

    .mission-content img {
        width: 160px;
        height: 160px;
    }

    .mission-content:nth-child(1) img {
        width: 260px;
    }

    .mission-content:nth-child(3) img {
        width: 190px;
    }
}

@media screen and (max-width: 600px) {
    .white-container {
        padding: 70px 0 0 0;
        margin-bottom: 0;
    }
	
	.white-container.group-container.top-page-content {
        padding: 70px 0 90px 0;
    }

    .white-title {
        width: 101px;
    }

    .white-title h1 {
        height: 21px;
        font-size: 21px;
        letter-spacing: 2.1px;
    }

    .white-title hr {
        margin: 10px 0;
    }

    .white-title p {
        padding: 0;
    }

    .white-container-mission {
        padding: 70px 0;
        margin-bottom: 20px;
    }

    .mission-contents {
        margin: 70px auto 40px auto;
    }

    .mission-content {
        width: 300px;
        height: 300px;
    }

    .mission-content:nth-child(1) {
        margin-bottom: 70px;
    }

    .mission-content:nth-child(2) {
        margin-bottom: 70px;
    }
    
    .mission-content img {
        width: 120px;
        height: 120px;
    }

    .mission-content:nth-child(1) img {
        width: 180px;
    }

    .mission-content:nth-child(3) img {
        width: 120px;
    }

    .mission-content div {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .mission-content div h3 {
        font-size: 18px;
    }

    .mission-content div p {
        font-size: 12px;
    }
}

/* @media screen and (max-width: 500px) {
    .mission-content img {
        width: 30vw;
    }

    .mission-content:nth-child(1) img {
        width: 30vw;
    }
} */


/* ==========================
    開発環境(TOP)
========================== */


.blue-container {
    background-color: #5383EC;
    padding: 140px 0 160px 0;
}

.blue-container .btn a {
    width: 280px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    background-color: #5383EC;
    color: white;
    border-color: white;
    font-size: 14px;
}

@media screen and (max-width: 600px) {
    .blue-container {
        padding: 70px 0 160px 0;
    }

    .blue-container .btn a {
        width: 180px;
        height: 45px;
        font-size: 10px;
    }
}

.blue-title {
    width: 250px;
    height: 80px;
    margin: 0 auto;
}

.blue-title h1 {
    height: 29px;
    text-align: center;
    font-size: 37px;
    font-weight: bold;
    color: white;
}

.blue-title hr {
    margin: 15px 0;
    color: white;
}

.blue-title p {
    height: 14px;
    font-size: 17px;
    margin: 0 auto;
    text-align: center;
    line-height: 2.0;
    padding: 0 20px;
    color: white;
}

.env-contents {
    display: flex;
    margin: 0 110px;
    justify-content: center;
    padding-top: 95px;
}

.env-content {
    width: 550px;
    height: 73vh;
    background-color: #4876DD;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 180px 0 70px 0;
}

.env-content.content2 {
    background-color: #5D90FF;
}

.env-content h3 {
    width: 300px;
    color: white;
    font-size: 21px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 158px;
}

.env-content p {
    color: white;
    font-size: 16px;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 10vh;
}

.env-content.content1 p {
    margin-bottom: 13vh;
}

.env-content.content3 p {
    margin-bottom: 13vh;
}

@media screen and (max-width: 1500px) {
    .env-content {
        width: 40%;
        height: 40vw;
        padding: 180px 0 90px 0;
    }
}

@media screen and (max-width: 1250px) {
    .env-content {
        padding: 140px 0 130px 0;
    }

    .env-content.content2 {
        padding: 140px 0 100px 0;
    }

    .env-content h3 {
        margin-top: 3vh;
        margin-bottom: 10vh;
        font-size: 21px;
    }

    .env-content p {
        font-size: 16px;
        margin-bottom: 0;
    }

    .env-content.content1 p {
        margin-bottom: 0;
    }

    .env-content.content3 p {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 1150px) {
    .env-content {
        padding: 90px 0 90px 0;
    }

    .env-content.content2 {
        padding: 90px 0 60px 0;
    }
}

@media screen and (max-width: 900px) {
    .env-contents {
        flex-direction: column;
        align-items: center;
    }

    .env-content {
        width: 550px;
        height: 73vh;
        padding: 180px 0 170px 0;
    }

    .env-content.content2 {
        padding: 180px 0 170px 0;
    }
}

@media screen and (max-width: 780px) {
    .env-content {
        width: 100%;
        height: 70vw;
        padding: 140px 0 130px 0;
    }

    .env-content.content2 {
        padding: 140px 0 130px 0;
    }
}

@media screen and (max-width: 680px) {
    .env-contents {
        margin: 0 13vw;
    }

    .env-content {
        padding: 15vw 0 15vw 0;
    }

    .env-content.content2 {
        padding: 15vw 0 15vw 0;
    }

    .env-content h3 {
        margin-top: 5vh;
        font-size: 19px;
    }

    .env-content p {
        margin-bottom: 5vh;
    }
}

@media screen and (max-width: 600px) {
    .blue-title {
        width: 160px;
    }

    .blue-title h1 {
        height: 21px;
        font-size: 21px;
        letter-spacing: 2.1px;
    }

    .blue-title hr {
        margin: 10px 0;
    }

    .blue-title p {
        height: 12px;
        font-size: 12px;
        padding: 0;
    }

    .env-contents {
        padding-top: 60px;
    }
}

@media screen and (max-width: 500px) {
    .env-contents {
        margin: 0 35px;
    }

    .env-content {
        height: 40vh;
        padding: 0;
    }

    .env-content.content2 {
        padding: 0;
    }

    .env-content h3 {
        margin-top: 0;
        margin-bottom: 0;
        font-size: 18px;
		height: 50%;
		padding: 9vh 0;
    }

    .env-content p {
        margin-bottom: 0;
		padding-bottom: 9vh;
    }

    .env-content.content1 p {
        margin-bottom: 0;
		padding-bottom: 9vh;
    }

    .env-content.content3 p {
        margin-bottom: 0;
		padding-bottom: 9vh;
    }
}

/* ==========================
    Service(TOP)
========================== */
.service-contents {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 250px;
    justify-content: center;
    padding: 100px 0;
}

.service-content {
    width: 265px;
    margin: 32px 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-content a {
    width: 100%;
    height: 180px;
    position: relative;
}

.service-content img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    transition-property: all;
    transition-duration: 0.7s;
}

.service-content p {
    opacity: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    transition-property: opacity;
    transition-duration: 0.7s;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-content a:hover img {
    filter: brightness(50%);
}

.service-content a:hover p {
    opacity: 1;
}

@media screen and (max-width: 1900px) {
    .service-contents {
        margin: 10px 180px;
    }
}


@media screen and (max-width: 1700px) {
    .service-contents {
        margin: 10px auto;
    }
}

 @media screen and (max-width: 1400px) {
    .service-content {
        width: 18vw;
        margin: 2vw;
    }

    .service-content a {
        height: 13vw;
    }
}

@media screen and (max-width: 1080px) {
    .service-contents {
        margin: 10px 40px;
    }

    .service-content {
        width: 265px;
        margin: 32px 35px;
    }

    .service-content a {
        height: 180px;
    }

    .service-content img {
        filter: brightness(50%);
    }

    .service-content p {
        opacity: 1;
    }
}

@media screen and (max-width: 780px) {
    .service-content {
        width: 33vw;
        margin: 3vw;
    }

    .service-content a {
        height: 23vw;
    }

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

@media screen and (max-width: 600px) {
    .service-contents {
        margin: 10px auto;
        padding: 75px 0 100px 0;
    }

    .service-content {
        width: 40%;
        height: 27vw;
        margin: 3vw 2vw; 
    }

    .service-content a {
        height: 100%;
    }

    .service-content p {
        font-size: 16px;
        width: 80%;
    }
}

/* ==========================
    Achievement(TOP)
========================== */ 
.blue-container.achievement-container {
    padding: 140px 0;
}

@media screen and (max-width: 600px) {
    .blue-container.achievement-container {
        padding: 70px 0 160px 0;
    }
}

.achievements-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 70px;
}

.achievements-content .btn {
    margin: 0 auto;
    padding-top: 10px;
}



/* ==========================
    働きながら学ぼうプロジェクト(TOP)
========================== */
.white-container.project-container {
    margin-bottom: 0;
}

.project-container .white-title {
    width: 300px;
}

.project-container .white-title div {
    width: 170px;
    margin: 0 auto;
}

.project-container .white-title h1 {
    letter-spacing: 5px;
}

.project-content {
    width: 100%;
    height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 14px; 
}

.project-content img {
    width: 50%;
    height: 70%;
    object-fit: contain;
}

.project-content p {
    font-size: 21px;
    font-weight: bold;
    margin-bottom: 50px;
}

.project-content .btn {
    padding-top: 20px;
}

@media screen and (max-width: 1400px) {
    .project-container img {
        width: 60%;
        height: 60%;
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 1150px) {
    .project-container img {
        width: 70%;
        height: 55%;
    }
}

@media screen and (max-width: 950px) {
    .white-container.project-container {
        padding: 140px 0 0 0;
    }

    .project-container img {
        width: 80%;
        height: 45%;
        margin-bottom: 0;
    }

    .project-content {
        height: 600px;
    }

    .project-content p {
        font-size: 18px;
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 600px) {
    .white-container.project-container {
        padding: 70px 0;
    }

    .project-container img {
        margin: 70px 0;
    }

    .project-content {
        padding: 0 20px;
    }
}

@media screen and (max-width: 550px) {
    .project-container img {
        width: 100%;
        height: 30%;
        object-fit: cover;
        margin-left: 35px;
        margin-right: 35px;
    }

    .project-content p {
        text-align: center;
        line-height: 2;
        margin-bottom: 50px;
    }
	
	.top-page-project {
		text-align: center!important;
		margin: 0 10px 50px 10px;
	}
}

/* ==========================
    NEWS お知らせ(TOP)
========================== */
.blue-container.news-container {
    padding: 140px 0 110px 0;
}

.news-contents {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 70px 0;
}

.news-contents ul {
    width: 80%;
}

.news-contents hr {
    color: white;
    margin: 30px 0;
}

.news-content {
    width: 90%;
    margin: 0 auto;
}

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

.news-content .date {
    color: white;
    margin-bottom: 20px;
    font-size: 12px;
}

.news-content .detail {
    color: white;
}

.news-contents .btn {
    margin-top: 40px;
}

@media screen and (max-width: 570px) {
    .blue-container.news-container {
        padding: 70px 0 110px 0;
    }


    .news-flex {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

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

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

/* ==========================
    グループ企業(TOP)
========================== */
.white-container.group-container {
    margin-bottom: 0;
}

.group-container .white-title {
    width: 250px;
}

.group-container .white-title div {
    width: 170px;
    margin: 0 auto;
}

.group-content {
    background-color: white;
    box-shadow: none;
}

.group-content .scroll-container {
    margin-bottom: 0;
    margin: 60px 0;
}

.group-content .scroll-content .item {
    pointer-events: auto;
}

.group-content .scroll-content .item:hover {
    transform: scale(1.2);
    transition: 1.5s ease;
}

.group-content .btn a {
    margin: 0 auto;
    border-color: black;
}

@media screen and (max-width: 600px) {
    .group-content .btn a {
        border-color: #5383EC;
    }
}

.group-content .item {
    width: 450px;
    height: 350px;
}

.group-content .inkrone {
    position: relative;
}

.group-content .inkrone img {
    height: auto;
    position: absolute;
    bottom: 0%;
}

.group-content .quintet {
    display: flex;
    justify-content: center;
    align-items: center;
}

.group-content img {
    height: auto;
}

.group-content .ergo {
    position: relative;
	width: 300px;
}

.group-content .ergo img {
    width: 150%;
    position: absolute;
    right: -23%;
    bottom: -15%;
}

.group-content .phtera {
    position: relative;
}

.group-content .phtera img {
    position: absolute;
    bottom: -16%;
}

.group-content .quintet img {
    margin-bottom: 30px;
	width: 95%;
}



@media screen and (max-width: 1800px) {
    .group-content .item {
        width: 400px;
        height: 300px;
    }
	
	.group-content .ergo {
        width: 300px;
    }

    .group-content .ergo img {
        bottom: -25%;
    }

    .group-content .phtera img {
        bottom: -18%;
    }

    .group-content .inkrone img {
        bottom: -2%;
    }

    .group-content .quintet img {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 1200px) {
    .group-content .item {
        width: 350px;
        height: 250px;
    }
	
	.group-content .ergo {
        width: 250px;
    }

    .group-content .phtera img {
        bottom: -22%;
    }

    .group-content .inkrone img {
        bottom: -5%;
    }

    .group-content .quintet img {
        margin-bottom: 25px;
    }
}

@media screen and (max-width: 650px) {
    .group-content {
        padding: 0 0 40px 0;
    }

    .group-content .item {
        width: 170px;
        height: 100px;
    }
	
	.group-content .ergo {
        width: 100px;
    }

    .group-content .ergo img {
        bottom: -17%;
    }

    .group-content .phtera img {
        bottom: -26%;
    }

    .group-content .inkrone img {
        bottom: -9%;
    }
}

@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%;
	}
}