@charset "utf-8";

html {
    scroll-behavior: smooth;
}

#back_to_top,
#ucberkeley,
#ucla,
#ucsd,
#uci,
#uta,
#UofW,
#ubc,
#csu_lb,
#csu_fullerton,
#csu_northridge,
#sjsu,
#cwu,
#knox,
#mtsu,
#occ {
    scroll-margin-top: 120px;
    /* 固定ヘッダーの高さに応じて調整 */
}

main .univ_list h2 {
    margin: 0 auto;
    padding: 20px 0;
    text-align: center;
    font-size: 40px;
}

.univ_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    padding: 20px 0;
}

.univ_card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    width: 160px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.univ_card:hover {
    transform: scale(1.05);
}

.univ_card img {
    max-width: 160px;
    max-height: 60px;
    height: auto;
    object-fit: contain;
}

.univ_tags {
    font-size: 14px;
    margin-top: 10px;
    color: #2262a1;
    font-weight: bold;
    word-wrap: break-word;
}

/* main .univ_list ul {
    list-style: circle;
    padding: 20px 20px 0 40px;
    margin: 0;
}

main .univ_list ul li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1;
}

.univ_list_style {
  color: #1184cc;
  text-decoration: underline;
} */


header .page-title {
    background-color: rgb(166 166 214 / 0.089);
    margin-top: 75px;
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


header .page-title h1 {
    margin: 0 10vw 20px;
    font-size: 100px;
    color: #004e8ebe;
    text-align: center;
}

main .blog_overview {
    margin: 50px auto;
}

main .blog_overview p {
    font-size: 20px;
    text-align: left;
    margin: 20px 15vw;
    line-height: 1.8;
}


main .univ_list {
    margin: 20px 15vw;
    padding: 0;
}


main .main_image_wrapper {
    display: flex;
    justify-content: center;
    margin: 50px auto;
}


main img {
    width: 70vw;
    height: auto;
    object-fit: cover;
}


main .section_title {
    margin: 70px auto 50px;
    text-align: center;
    text-wrap: wrap;


    font-size: 40px;
    font-weight: 500;
}


main .section_subtitle {
    margin: 20px 15vw;
    text-align: center;
    text-wrap: wrap;


    font-size: 20px;
    line-height: 2;
}

main .section_category_title {
    margin: 100px 10vw 0px;
    text-align: center;
    text-wrap: wrap;
    font-size: 30px;
    font-weight: 550;
}


main .interview_gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 20px 5vw 20px;
}


main .interview_gallery .link_to_interview {
    width: 300px;
    height: 350px;
    border-radius: 10px;
    margin: 15px;
    padding: 30px 10px;


    position: relative;
    /* For animation */
    color: #000000;
    background-image: linear-gradient(to left, rgb(166 166 214 / 0.2) 50%, #174974 50%);
    background-size: 200% 100%;
    background-position: 100% 0;


    transition:
        background-position 0.5s ease,
        color 0.5s ease,
        box-shadow 0.5s ease;
}


main .interview_gallery .link_to_interview:hover {
    background-position: 0 0;
    /* 背景を左にスライド */
    color: #ffffff;
    box-shadow: 0px 0px 10px rgb(3 3 4 / 0.5);
}


main .interview_eyecatch {
    display: block;
    margin: auto;


    width: 250px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
}


main .interview_gallery div h1 {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
}


main .interview_gallery div h2 {
    padding: 5px 20px;
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
}

main .interview_gallery div h3 {
    padding: 5px 20px;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

/* main article .back_to_top {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 100px;
}

main article .back_to_top a {
    width: 180px;
    height: 50px;
    border-radius: 10px;
    background-color: #004e8ebe;
    color: #ffffff;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    text-decoration: none;
} */


.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background-color: #004e8ebe;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top.hide {
  opacity: 0;
  visibility: hidden;
}


/* Tablet Size */
/* Smartphone View */
/* Smartphone View */
@media screen and (max-width: 840px) {


    /*ページタイトル*/
    header .page-title {
        background-color: rgb(166 166 214 / 0.089);
        margin-top: 75px;
        padding: 0;
        width: 100%;
        height: 200px;


        display: flex;
        flex-direction: column;
        justify-content: center;
    }


    header .page-title h1 {
        align-items: center;
        text-align: center;
        padding: 0;
        margin-bottom: 20px;
        font-size: 50px;
        color: #004e8ebe;
    }


    header .page-title h3 {
        padding: 0 10vw;
        font-size: 15px;
        color: #333;
    }


    /* ポジション紹介 */
    main .section_title {
        text-wrap: wrap;
    }


    main .section_title h2 {
        margin: 50px 30px;
        font-size: 18px;
        font-weight: 500;
    }


    main .interview_gallery {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;


    }


    main .interview_gallery .link_to_interview {
        width: 80vw;
        height: 350px;
        border-radius: 10px;
        margin: 15px;
        padding: 30px 10px;


        position: relative;
        /* For animation */
        color: #000000;
        background-image: linear-gradient(to left, rgb(166 166 214 / 0.2) 50%, #174974 50%);
        background-size: 200% 100%;
        background-position: 100% 0;


        transition:
            background-position 0.5s ease,
            color 0.5s ease,
            box-shadow 0.5s ease;
    }


    main .interview_gallery .link_to_interview:hover {
        background-position: 0 0;
        /* 背景を左にスライド */
        color: #ffffff;
        box-shadow: 0px 0px 10px rgb(3 3 4 0.5);
    }


    main .interview_eyecatch {
        display: block;
        margin: auto;


        width: 60vw;
        height: 150px;
        object-fit: cover;
        margin-bottom: 15px;
    }


    main .interview_gallery div h1 {
        font-size: 18px;
        font-weight: 600;
        text-align: center;
        padding: 10px 0;
    }


    main .interview_gallery div h2 {
        padding: 0 20px;
        font-size: 14px;
        line-height: 1.5;
    }


    .univ_grid {
        gap: 20px;
    }

    .univ_card {
        width: 120px;
    }

    .univ_card img {
        max-width: 110px;
        max-height: 40px;
    }

    .univ_tags {
        font-size: 10px;
        margin-top: 10px;
        color: #2262a1;
        font-weight: bold;
        word-wrap: break-word;
    }

}