@charset "utf-8";

/* .mainTxt{
    margin-top: var(--size-header-height);
    margin-bottom: 150px;
    padding-top: 150px;
    h2{
        .sub{
            font-size: 2rem;
            font-weight: 500;
            color: var(--color-main);
            line-height: 1.5;
            margin-bottom: 15px;
        }
        .name{
            font-size: 5rem;
            font-weight: bold;
            color: var(--color-main);
            line-height: 1;
        }
    }
} */
.mainimage{
    position: relative;
}

.mainimage img {
    width: 100%;
	vertical-align: bottom;
}

.slick-slide img { /* 画像下の隙間削除 */
	vertical-align: bottom;
	display: inline!important;
}

.sectionTitle {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;

    h2 {
        display: inline-block;
        position: relative;
        font-size: 3.2rem;
        font-weight: bold;
        color: #0d3446;
        text-align: center;
        line-height: 1.5;
        margin-bottom: 25px;
        &::before{
            content: '';
            display: inline-block;
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background-color: var(--color-main);
        }
        @media (width <= 999px) {
            font-size: 2.4rem;
        }
    }
}

.sectionAbout {
    padding: 60px 0;
    .sectionAboutContainer{
        display: flex;
        gap: 50px;
        .sectionTitle{
            flex-shrink: 0;
        }
        @media (width <= 999px) {
            flex-direction: column;
        }
    }
    .about-headline {
        margin: 0 auto;
        max-width: 800px;
        .buttonLink1 a{
            margin: 0 auto;
        }
        @media (width <= 999px) {
            text-align: left;
        }
        p{
            margin-bottom: 40px;
            font-size: 1.8rem;
        }

    }
    .about-box {
        .about-box_img {
            margin-bottom: 5px;
            img {
                vertical-align: bottom;
            }
        }
        .buttonLink1 {
            border-radius: 0;
        }
    }
}


/* column */
.sectionTopics {
    padding: 60px 0;
    margin-bottom: 30px;
    .topicsList{
        margin-bottom: 50px;
    }
    .buttonLink1 a{
        margin: 0 auto;
    }
}


.sectionStudy {
    background: #edf2fb;
    background: var(--color-main-thin);
    padding: 60px 0;
    @media (width <= 999px) {
        padding: 50px 0;
        /* margin-bottom: 50px; */
    }

    .sectionStudyContainer {
        display: grid;
        grid-template-columns: auto 260px;
        gap: 40px;

        @media (max-width: 999px) {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        h3 {
            font-size: 2.5rem;
            margin-bottom: 25px;
            font-weight: 500;
            line-height: 1.5;
            padding-bottom: 10px;
            border-bottom: 1px solid #ccc;
            @media (width <= 999px) {
              font-size: 2rem;
            }
        }

        .img {

            @media (max-width: 999px) {
                margin: 0 auto; 
                max-width: 100%;
            }

            img {
                display: block;
                width: 100%;
                height: auto;
            }

            img:nth-child(1) {
                margin-bottom: 15px;
            }
        }
    }

    .sectionTitle {

        a {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            width: 130px;
            height: 40px;
            border: 2px solid #555;
            padding: 5px 10px;
            text-decoration: none;
            font-size: 1.5rem;
            color: #333;
            border-radius: 5px;
            transition: 0.3s;
            font-weight: 500;
            &:hover {
                color: #fff;
                background: #555
            }

            &::after {
                font-family: var(--fa);
                content: '\f061';
                font-weight: bold;
                font-size: 1.4rem;
            }
        }
    }
}




.sectionBnr {
    margin-bottom: 60px;


    .bnrContainer {
        a {
            text-decoration: none;
            background: var(--color-main);
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            justify-content: space-between;
            gap: 25px;
            width: 100%;
            height: 200px;
            box-shadow: 0 0 20px 0 rgba(48, 48, 48, 0.2);
            transition: 0.25s;
            &:hover,&:focus{
                transform: translateY(-3px);
                box-shadow: 0 5px 25px 0 rgba(48, 48, 48, 0.3);
                .txt{
                    .iconArrow{
                        transform: translateX(5px);
                    }
                }
            }
        }
        .txt {
            padding: 40px;
            color: #fff;
            flex-grow: 1;
            position: relative;
            .subTxt {
                font-size: 2rem;
                font-weight: 500;
                line-height: 1;
                margin-bottom: 10px;
            }

            h2 {
                font-size: 2.6rem;
                font-weight: bold;
                letter-spacing: 0.025em;
                line-height: 1.5;
            }
            .iconArrow {
                position: absolute;
                right: 25px;
                bottom: 25px;
                display: flex;
                align-items: center;
                justify-content: center; 
                width: 50px; 
                height: 50px; 
                border-radius: 50%;
                border: 1px solid #fff;
                transition: 0.3s;

                @media (width <=999px) {
                    width: 40px;
                    height: 40px;
                    right: 15px;
                    bottom: 15px;
                }
                &::after {
                    font-family: var(--fa);
                    content: '\f061';
                    font-weight: 900;
                    color: #fff;
                    font-size: 2.4rem;
                    line-height: 1;

                    @media (max-width: 999px) {
                        font-size: 1.6rem;
                    }
                }

            }
        }

        .img {
            flex-shrink: 0;
            img {
                width: 400px;
                object-fit: cover;
                height: 100%;
                display: block;
            }
        }
    }

    @media (max-width: 999px) {
        margin-bottom: 40px;

        .bnrContainer {
            a{
                height: auto;
                flex-direction: column;
                gap: 0;
                border-radius: 8px;
            }
            .txt {
                padding: 30px 20px 40px;

                .subTxt {
                    font-size: 1.6rem;
                    margin-bottom: 5px;
                }

                h2 {
                    font-size: 2.2rem;
                }
            }

            .img {
                width: 100%;
                
                img {
                    width: 100%; 
                    height: auto;
                    object-position: center top;
                }
            }
        }
    }
}



/* LINKS */
.sectionLinks{
    .linksContainer{
        ul{
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-bottom: 25px;
            li{
                border: 1px solid #ddd;
                a{
                    padding: 15px;
                    color: #333;
                    font-weight: 500;
                    width: 100%;
                    height: 100%;
                    display: block;
                    transition: 0.2s ease-in-out;
                    background: #fff;
                    &[target="_blank"]::after{
                        font-family: var(--fa);
                        content: "\f35d";
                        font-weight: 900;
                        margin-left: 5px;
                        margin-right: 5px;
                        display: inline-block;
                        font-size: 1.1rem;
                    }
                    &:hover{
                        filter: brightness(0.9);
                    }
                }
            }
            @media (width <=999px) {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
        }

    }

}