*{
    padding: 0;
    margin: 0;
    z-index: 1;
}

html{
    scroll-behavior: smooth;
}

body{
    width:100vw;
    background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
                              linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 20px 20px; /* グリッドの大きさ */
    background-color: rgb(88, 148, 233);
    color: white;
    overflow-x: hidden;
}

@font-face {
    font-family: 'yorusugaraver';
    src: url(yosugaraver1_2.ttf);
}

.hidden{
    display: none;
}

/* スクロールバー */

body::-webkit-scrollbar {
    width: 1vw;
}

body::-webkit-scrollbar-thumb {
    background: #ffffff;
    width: 0.5vw;
    border-radius: 1vw;
}

.appear{
    opacity: 0;
}

@keyframes appear{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

/* menu */

.menu{
    width:100%;
    height:7vw;
    background-color: white;
    display: flex;
    position:fixed;
    z-index: 10;
}

.menu ul{
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
}

.menu ul li a{
    margin-right: 3vw;
    list-style: none;
    font-size: 1.5vw;
    scale: 1 1.2;
    text-decoration: none;
    text-decoration: underline;
    text-decoration-thickness: 0.25vw;
    text-underline-offset: 0.5vw;
    font-weight: bold;
    color: rgb(86, 141, 219);
}

.menu #logo{
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 1vw;
    mask: url(images/roboconLogo.png) no-repeat center center / contain;
    background-color: rgb(86, 141, 219);
    width: 5vw;
    height: 5vw;
}

.menu #title{
    margin-left: 2vw;
    margin-top: auto;
    margin-bottom: auto;
    line-height: min(2.5vw,30px);
}

.menu #school{
    color: rgb(86, 141, 219);
    font-size: min(1.75vw,20px);
    font-weight: bold;
}

.menu #team{
    color: rgb(86, 141, 219);
    font-size: min(2.5vw,30px);
    font-weight: bold;
}

.menu ul img{
    display: none;
}

/* top */

.top{
    width:100%;
    height:100vh;
    display: flex;
}

.motto{
    display: inline-block;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10vw;
    width: 39vw;
    flex-shrink: 0;
}

.motto p{
    display: inline-block;
    background:linear-gradient(transparent 50%, rgba(230, 250, 12, 0.70) 0%);
    color: rgb(255, 255, 255);
    font-size: 5vw;
    margin-top: 1vw;
    margin-bottom: 1vw;
    font-family: 'yorusugaraver';
}

.top iframe{
    position: absolute;
    width: 100vw;
    height: 100%;
    z-index: 0;
}

.scrollBox1{
    background: black;
    width:20vw;
    height: 100vh;
    left: 0;
    position: absolute;
    opacity: 0;
}

.scrollBox2{
    background: black;
    width:20vw;
    height: 100vh;
    right: 0;
    position: absolute;
    opacity: 0;
}

.scrollBox3{
    background: black;
    width:100%;
    height: 30vh;
    top: 0;
    position: absolute;
    opacity: 0;
}

.scrollBox4{
    background: black;
    width:100%;
    height: 30vh;
    bottom: 0;
    position: absolute;
    opacity: 0;
}

/* sectionTitle */
.sectionTitle{
    display: flex;
}

.line-left{
    height:1vw;
    border: 0.25vw solid white;
    width: 10%;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 2vw;
    margin-left: 2vw;
    opacity: 0;
}

.line-right{
    height:1vw;
    border: 0.25vw solid white;
    width: 100%;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 2vw;
    margin-left: 2vw;
    opacity: 0;
}

.text-path {
    font-family: "Dela Gothic One", sans-serif;
    stroke-dasharray: 100vw;
    stroke-dashoffset: 100vw;
    opacity: 0;
}

@keyframes drawText {
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes drawLine{
    to {
        opacity: 1;
    }
}

/*news*/
.news{
    padding-bottom: 10vw;
}

#newsBoxes{
    position: relative;
    display: flex;
    left:10vw;
    padding-top: 10vw;
    transition: 1s;
}

.newsBox{
    flex-shrink: 0;
    width:20vw;
    height: 20vw;
    background-color: white;
    border-radius: 10%;
    margin-left: 2vw;
    margin-right: 2vw;
    transition: 1s;
}

.newsBox p{
    color: black;
}

.newsImageRounder{
    width: 90%;
    height: 40%;
    overflow: hidden;
    border-radius: 1vw;
    margin-left: 5%;
    margin-top:5%;
}

.newsImage{
    width: 100%;
    background-color: rgb(86, 141, 219);
}
.newsTitle{
    color: rgb(86, 141, 219);
    padding-left: 5%;
    font-size: 1.5vw;
}

.newsContent{
    width: 90%;
    height: 30%;
    margin-left: 5%;
    font-size: 1vw!important;
}

.newsDate{
    color: rgb(86, 141, 219)!important;
    padding-left: 5%;
    font-size: 1.5vw!important;
}

.selected{
    scale:175%;
    margin-left: 15vw;
    margin-right: 15vw;
}

.newsArrow{
    width: 5vw;
}

.newsArrow:active{
    filter: invert(100%);
}

#newsArrowRight{
    position: absolute;
    right: 22vw;
    top:calc(100vh + 35vw);
    transform: translate(-50%, -50%);
    z-index: 4;
}

#newsArrowLeft{
    position: absolute;
    left: 23vw;
    top:calc(100vh + 35vw);
    transform: translate(50%, -50%);
    z-index: 4;
}


/*Achievements*/
.achievements p{
    font-weight: bold;
    padding-left: 5vw;
    font-size: 3vw;
}

.achievements svg{
    padding-left: 2vw;
}

#achievements{
    padding-top: 7vw;
}

/*Blog*/
#fileList li{
    font-weight: bold;
    padding-left: 3vw;
    font-size: 3vw;
    text-decoration: underline;
    text-underline-offset: 0.5vw;
    width: 100%;
}

#fileList li:hover{
    color: rgb(80, 80, 80);
    background-color: white;
    border-radius: 1vw;
    padding: 0.5vw;
    margin-left: 2.5vw;
    transition: 0.5s;
    width: 90%;
}

.activity p{
    font-weight: bold;
    padding-left: 5vw;
    font-size: 1.5vw;
}

/* footer */
.footer{
    width: 100%;
    height: 10vw;
    background-color: white;
    bottom: 0;
    z-index: 10;
}

.footer p{
    color: rgb(86, 141, 219);
    font-size: 1.5vw;
    font-weight: bold;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 2vw;
}

/* contact us */
.contact_form{
    width: 85vw;
    background-color: white;
    border-radius: 20px;
    margin: 3vw;
    margin-left: auto;
    margin-right: auto;
}
.contact_form h1{
    padding:3vw;
    padding-bottom: 1vw;
    color: rgb(86, 141, 219);
}

.contact_form p{
    padding-bottom: 1vw;
    padding-left: 3vw;
    color: rgb(219, 86, 86);
}

.contact_form span{
    color: rgb(219, 86, 86);
}

.contact_form label{
    color: rgb(86, 141, 219);
    font-size: 2vw;
    font-weight: bold;
    margin-left: 3vw;
}

.contact_form input{
    width: calc(100% - 6vw);
    margin: 1vw;
    font-size: 2vw;
    border: none;
    border-bottom: solid 0.1vw rgb(86, 141, 219);
    margin-left: 3vw;
    margin-right: 3vw;
}

.contact_form input:focus{
    outline: none;
}

.contact_form div{
    display: flex;
    margin-top: 1vw;
    margin-bottom: 1vw;
}

.contact_form div label{
    flex-grow: 0;
    flex-shrink: 0;
    margin-left: 1vw;
    color: rgb(84, 84, 84);
    font-size: 1.5vw;
}

.contact_form div input{
    width: 1.5vw;
    flex-grow: 0;
    flex-shrink: 0;
    margin:0;
    margin-left: 3vw;
}

.contact_form fieldset{
    border: none;
}

.contact_form #submit{
    width: calc(100% - 6vw);
    height: 3.5vw;
    background-color: rgb(86, 141, 219);
    color: white;
    font-size: 1.5vw;
    font-weight: bold;
    border: none;
    border-radius: 1vw;
    margin-left: 3vw;
    margin-top: 2vw;
    margin-bottom: 2vw;
}

/*スマホ用*/
@media screen and (max-width: 480px) {

    *{
        overflow-x: hidden;
    }

    body{
        font-family: 'arial';
    }

	.menu{
        height: 20vw;
    }
    
    .menu ul li a{
        display: none;
    }
    
    .menu #logo{
        width: 15vw;
        height: 15vw;
    }
    
    .menu #title{
        margin-left: 3vw;
        line-height: 6vw;
    }
    
    .menu #school{
        font-size: 3vw;
        font-family: 'arial';
    }
    
    .menu #team{
        font-size: 5.5vw;
        font-family: 'arial';
    }

    .top{
        overflow: hidden;
    }

    .menuButton{
        display: inline;
        margin-top: auto;
        margin-bottom: auto;
        margin-right: 5vw;
        mask: url(images/menu.png) no-repeat center center / contain;
        background-color: rgb(86, 141, 219);
        width: 8vw;
        height: 8vw;
    }

    .motto{
        margin-top: auto;
        margin-left: 10vw;
        width: 80vw;
        flex-shrink: 0;
    }
    
    .motto p{
        font-size: 8vw;
        margin-top: 1vw;
        margin-bottom: 1vw;
    }

    #newsBoxes{
        position: relative;
        display: flex;
        left:10vw;
        margin-top: 10vw;
        padding-bottom: 10vw;
        transition: 1s;
    }
    
    .newsBox{
        flex-shrink: 0;
        width:20vw;
        height: 20vw;
        background-color: white;
        border-radius: 10%;
        margin-left: 2vw;
        margin-right: 2vw;
        transition: 1s;
    }
    
    .newsBox p{
        color: black;
        font-size: 0.5vw;
    }
    
    .newsImageRounder{
        width: 90%;
        height: 40%;
        overflow: hidden;
        border-radius: 1vw;
        margin-left: 5%;
        margin-top:5%;
    }
    
    .newsImage{
        width: 100%;
        background-color: rgb(86, 141, 219);
    }
    .newsTitle{
        font-size: 1.5vw;
    }
    
    .newsContent{
        width: 90%;
        height: 30%;
        margin-left: 5%;
        font-size: 1.5vw !important;
    }
    
    .newsDate{
        color: rgb(86, 141, 219);
        padding-left: 5%;
        font-size: 1.5vw !important;
    }
    
    .selected{
        scale:175%;
        margin-left: 15vw;
        margin-right: 15vw;
    }
    
    #newsArrowRight{
        top:calc(100vh + 37.5vw);
    }
    
    #newsArrowLeft{
        position: absolute;
        left: 23vw;
        top:calc(100vh + 37.5vw);
        transform: translate(50%, -50%);
        z-index: 4;
    }

    .sectionTitle{
        margin-bottom: 3vw;
        margin-top: 3vw;
    }

    .news .sectionTitle{
        margin-bottom: -3vw;
    }

    .activity .sectionTitle{
        margin-top: 0;
    }
    
    .activity p{
        font-size: 2vw;
    }

    .sponsor p{
        font-size: 3vw;
        padding-bottom: 3vw;
    }

    .footer a{
        font-size: 2.5vw;
        margin-left: 3vw;
    }

    #menuTable{
        position: fixed;
        height: calc(100% - 20vw);
        width: 100%;
        top: 20vw;
        background-color: whitesmoke;
        z-index: 2;
    }

    .menuTable{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }

    .menuTable li a{
        font-size: 7.5vw;
        text-decoration: underline;
        color: rgb(86, 141, 219);
        font-weight: bold;
        text-decoration-thickness: 0.75vw;
        text-underline-offset: 2vw;
    }

    .menuTable *{
        padding-left: 5vw;
        overflow: hidden;
    }
    
    .menuTable :last-child{
        padding-bottom: 4vh;
    }

    .menuTable :first-child{
        padding-top: 4vh;
    }


    #top-spacer{
        padding-top: 25vw !important;
    }

    .contact_form h1{
        font-size: 7.5vw;
        padding-left: 3vw;
    }
    
    .contact_form p{
        font-size: 4vw;
    }
    
    .contact_form label{
        font-size: 4vw;
    }
    
    .contact_form input{
        font-size: 3vw;
    }
    
    .contact_form div label{
        font-size: 2.5vw;
    }
    
    .contact_form #submit{
        width: calc(100% - 6vw);
        height: 8vw;
        background-color: rgb(86, 141, 219);
        color: white;
        font-size: 3vw;
        font-weight: bold;
        border: none;
        border-radius: 1vw;
        margin-left: 3vw;
        margin-top: 5vw;
        margin-bottom: 5vw;
    }
    
    #top-spacer2{
        padding-top: 15vw;
    }
}