@charset "UTF-8";

.hero_box {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 10px 30px;
    margin-bottom: 30px;
}

.hero_box>h1 {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    position: relative;
}

.hero_box>h1>img {
    width: 100%;
    max-width: 500px;
    height: auto;
    position: absolute;
}

.hero_box>h1>img.img_second {
    display: none;
}

.hero_box ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 0;
}

.hero_box ul>li {
    position: relative;
    padding-top: 20%;
}

.hero_box ul>li:before {
    content: "";
    display: block;
    padding-top: 100%;
}

.hero_box ul>li>div.bg_black,
.hero_box ul>li>div.bg_color {
    border-radius: 20px 0 20px 0;
    position: absolute;
    inset: 0;
    margin: 20px 10px 0 10px;
}

.hero_box ul>li>div.bg_black {
    background: #000;
}

.hero_box ul>li>div.bg_black_solid {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 20px 0 20px 0;
    position: absolute;
    inset: 0;
    padding: 10px 20px;
    margin: 20px 10px 0 10px;
}

.hero_box ul>li>div.bg_color {
    display: none;
}

.hero_box ul>li>div.img_main,
.hero_box ul>li>div.img_second {
    position: relative;
}

.hero_box ul>li>div.img_main>img,
.hero_box ul>li>div.img_second>img {
    position: absolute;
    bottom: 0;
}

.hero_box ul>li>div.img_second {
    display: none;
}

.hero_box ul>li>div.bc_01 {
    background: linear-gradient(-45deg,
            #9DE8FF, #9BE0C3,
            #9B9CE0, #9887E0);
    animation: moveGradient 20s ease infinite;
    background-size: 400% 400%;
}

.hero_box ul>li>div.bc_02 {
    background: linear-gradient(-45deg,
            #BF97C6, #FACB8A, #92D190, #ECFFAC);
    animation: moveGradient 20s ease infinite;
    background-size: 400% 400%;
}

.hero_box ul>li>div.bc_03 {
    background: linear-gradient(-45deg,
            #9B9CE0, #E089A0,
            #8BD3D0, #9BE0C3);
    animation: moveGradient 20s ease infinite;
    background-size: 400% 400%;
}

.hero_box ul>li>div.bc_04 {
    background: linear-gradient(-45deg,
            #C8FF98, #ECFFAC,
            #BF97C6, #E0A287);
    animation: moveGradient 20s ease infinite;
    background-size: 400% 400%;
}

.hero_box ul>li>div.bc_05 {
    background: linear-gradient(-45deg,
            #8BD3D0, #9DE8FF, #E0A287, #E089A0);
    animation: moveGradient 20s ease infinite;
    background-size: 400% 400%;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.news_box {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 0 30px;
    margin-bottom: 30px;
}

.news_box>ul {
    display: flex;
    gap: 10px;
    flex-flow: wrap;
    /* align-items: center; */
    align-items: flex-start;
    flex-direction: column;
}

.news_box>ul>li:nth-of-type(1) {
    font-weight: 400;
    position: relative;
    padding-left: 25px;
}

.news_box>ul>li:nth-of-type(1)::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url(/new-graduate/assets/images/common/icon_horn.svg) no-repeat center center / contain;
    position: absolute;
    left: 0;
}

.news_box>ul>li:nth-of-type(1)::after {
    content: "｜";
    margin-left: 10px;
}

.news_box>ul>li>a {
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: 0.3s;
}

.news_box>ul>li>a.link_pdf::after {
    content: "";
    width: 20px;
    height: 20px;
    background: url(/common/images/common/icon_pdf.svg) no-repeat center center / contain;
    margin: 3px 0 0 5px;
    position: absolute;
}

.contents_box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.contents_box>a {
    display: block;
    color: #fff;
    position: relative;
    transition: 0.3s;
}

.contents_box>a:hover {
    opacity: 0.5;
}

.contents_box>a:nth-of-type(1) {
    grid-row: 1 / 3;
    grid-column: 1 / 3;
}

.contents_box>a:nth-of-type(2) {
    grid-row: 3 / 4;
    grid-column: 1 / 3;
}

.contents_box>a:nth-of-type(3) {
    grid-row: 1 / 2;
    grid-column: 3 / 5;
}

.contents_box>a:nth-of-type(4) {
    grid-row: 2 / 3;
    grid-column: 3 / 4;
}

.contents_box>a:nth-of-type(5) {
    grid-row: 2/ 3;
    grid-column: 4 / 5;
}

.contents_box>a:nth-of-type(6) {
    grid-row: 3 / 4;
    grid-column: 3 / 4;
}

.contents_box>a:nth-of-type(7) {
    grid-row: 3 / 4;
    grid-column: 4 / 5;
}

.contents_box>a>div:nth-of-type(1) {
    position: relative;
}

.contents_box>a>div:nth-of-type(1)>img {
    border-radius: 20px 0 20px 0;
    object-fit: cover;
    object-position: center center;
}

.contents_box>a:nth-of-type(n+2)>div:nth-of-type(1)>img {
    height: 200px;
}

.contents_box>a:nth-of-type(1)>div:nth-of-type(1)>img {
    height: 405px;
}

.contents_box>a:nth-of-type(2)>div:nth-of-type(1)>img {
    object-position: center 30%;
}

.contents_box>a:nth-of-type(4)>div:nth-of-type(1)>img {
    object-position: center top;
}

.contents_box>a>div:nth-of-type(2) {
    width: 100%;
    height: 100%;
    border-radius: 20px 0 20px 0;
    filter: brightness(75%);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 65%;
}

.contents_box>a:nth-of-type(1)>div:nth-of-type(2) {
    background: linear-gradient(-45deg, #9B9CE0, #9BE0C3);
}

.contents_box>a:nth-of-type(2)>div:nth-of-type(2) {
    background: linear-gradient(-45deg, #BF97C6, #ECFFAC);
}

.contents_box>a:nth-of-type(3)>div:nth-of-type(2) {
    background: linear-gradient(-45deg, #92D190, #FACB8A);
}

.contents_box>a:nth-of-type(4)>div:nth-of-type(2),
.contents_box>a:nth-of-type(5)>div:nth-of-type(2) {
    background: linear-gradient(-45deg, #8BD3D0, #E089A0);
}

.contents_box>a:nth-of-type(6)>div:nth-of-type(2),
.contents_box>a:nth-of-type(7)>div:nth-of-type(2) {
    background: linear-gradient(-45deg, #E0A287, #9DE8FF);
}

.contents_box>a>h3 {
    font-size: 32px;
    font-weight: 600;
    position: absolute;
    bottom: 70px;
    left: 30px
}

.contents_box>a>ul {
    display: flex;
    align-items: baseline;
    gap: 5px 0;
    position: absolute;
    bottom: 30px;
    left: 30px;
}

.contents_box>a>ul>li {
    font-size: 18px;
    font-weight: 400;
}

.contents_box>a>ul>li:nth-of-type(1) {
    font-family: "Inter", sans-serif;
    position: relative;
}

.contents_box>a>ul>li:nth-of-type(1)::after {
    content: "｜";
}

@media (max-width: 1024px) {

    .hero_box {
        grid-template-columns: 1fr;
    }

    .hero_box>h1 {
        height: 230px;
    }

    .contents_box>a>h3 {
        font-size: 18px;
        bottom: 60px;
        left: 10px;
    }

    .contents_box>a>ul {
        flex-flow: column;
        bottom: 10px;
        left: 10px;
    }

    .contents_box>a>ul>li {
        font-size: 14px;
    }
}

@media (max-width: 768px) {

    .hero_box ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero_box>h1 {
        height: 180px;
    }

    .hero_box>h1>img {
        max-width: 400px;
    }

    .news_box {
        grid-template-columns: 1fr;
    }

    .news_box>ul>li:nth-of-type(1)::after {
        display: none;
    }

    .contents_box {
        grid-template-columns: 1fr 1fr;
    }

    .contents_box>a:nth-of-type(1) {
        grid-row: auto;
        grid-column: 1 / 3;
    }

    .contents_box>a:nth-of-type(2) {
        grid-row: auto;
        grid-column: 1 / 3;
    }

    .contents_box>a:nth-of-type(3) {
        grid-row: auto;
        grid-column: 1 / 3;
    }

    .contents_box>a:nth-of-type(4) {
        grid-row: auto;
        grid-column: 1 / 2;
    }

    .contents_box>a:nth-of-type(5) {
        grid-row: auto;
        grid-column: 2 / 3;
    }

    .contents_box>a:nth-of-type(6) {
        grid-row: auto;
        grid-column: 1 / 2;
    }

    .contents_box>a:nth-of-type(7) {
        grid-row: auto;
        grid-column: 2 / 3;
    }

    .contents_box>a:nth-of-type(n+2)>div:nth-of-type(1)>img {
        height: 100px;
    }

    .contents_box>a:nth-of-type(1)>div:nth-of-type(1)>img {
        height: 200px;
        object-position: center 20%;
    }

    .contents_box>a:nth-of-type(5)>div:nth-of-type(1)>img {
        object-position: center top;
    }

}