@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Shippori+Mincho&display=swap");

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  border: none;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  letter-spacing: 1px;
  font-family: "Noto Sans JP", sans-serif;
}

img{
    width: 100%;
    object-fit: contain;
}

.header-logos{
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
}

.header-logos li{
    text-align: center;
}

.header-logos li:nth-last-child(1) img{
    max-width: 90%;
    object-fit: contain;
}

.kv{
    width: 100%;
}

.kv-pc{
    display: none;
}

.kv-sp{
    display: block;
}

.university-list-section{
    width: 100%;
    background-color: #FADCE2;
    padding: 2rem 0 1rem 0;
}

.university-list-table{
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;

    border: 2px solid #004098;
    background-color: #fff;
}

.table-title{
    width: 100%;
    background-color: #004098;
    color: #fff;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.table-subtitle{
    font-weight: 500;
    width: 90%;
    margin: 0 auto;
}

.university-item{
    width: 90%;
    margin: 0 auto;
    border: 1px solid #6C9BD2;
    border-bottom: 2px solid #6C9BD2;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.university-item:hover{
    background-color: #edf7ff;
}

.university-item:nth-last-child(1){
    margin-bottom: 1rem;
}

.university-name{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 1rem;
    cursor: pointer;
}

.university-name p:nth-child(1){
    color: #000;
}

.student-count{
    padding: 4px 10px;
    border-radius: 20px;
    color: #004098;
    background-color: #D3E6F6;
    width: 66px;
    text-align: center;
}

.side-btns{
    display: none;
}

.side-btns a:hover{
    opacity: 0.8;
    transition: all 0.3s ease;
}

.top-btn{
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 1rem;
}

.sp-top-btn{
    display: block;
    width: 56px;
    margin-left: auto;
    margin-top: 1rem;
}

.sp-bottom-btns{
    position: sticky;
    bottom: -2px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.sp-bottom-btns a img{
    height: 100%;
    object-fit: cover;
}

@media (min-width: 500px) and (max-width: 768px) {
    .sp-bottom-btns a{
        height: 80px;
    }
}

footer{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

footer p{
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #004098;
    font-weight: 600;
    font-size: 22px;
}

footer p br{
    display: none;
}

.footer-links{
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 5px;
    list-style: none;
    background-color: #e5e5e5;
    padding: 10px 0;
}

.footer-links li a{
    color: #000000;
    font-size: 11px;
}

.footer-links li a:hover{
    text-decoration: underline;
}

.footer-logos{
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.copyright-txt{
    width: 100%;
    max-width: 100%;
    background-color: #004098;
    color: #fff;
    padding: 30px 0;
    font-size: 12px;
    text-align: center;
    font-weight: 400;
}

@media screen and (min-width: 768px) {
    .kv-pc{
        display: block;
    }

    .kv-sp{
        display: none;
    }

    .header-logos{
        grid-template-columns: repeat(4, 1fr);
        justify-content: space-between;
    }

    .header-logos li{
        text-align: left;
    }

    .university-list-section{
        padding: 3rem 0;
        margin-top: -1px;
    }

    .sp-bottom-btns{
        display: none;
    }

    .side-btns{
        position: fixed;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        display: block;
        display: grid;
        grid-template-columns: 60px;
        gap: 10px;
    }

    .footer-links{
        gap: 10px;
        justify-content: center;
    }

    .footer-links li a{
        font-size: 14px;
    }

    footer p br{
        display: block;
    }

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

    .copyright-txt{
        padding: 40px 0;
        font-size: 14px;
    }
}