@charset "utf-8";
body{
    font-family: 'Verdana', 'Geneva', 'Tahoma', 'YU Gothic UI', 'ヒラギノ丸ゴシック ProN（Pro）', 'sans-serif';
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

img{
    max-width: 100%;
    height: auto;
    border-radius: 5%;
}

header nav ul{
    display: flex;
    justify-content: center;
    padding: 20px 0 10px;
}

header nav ul li{
    margin: 0 20px;
    list-style: none;
}

header nav ul a{
    font-weight: bold;
    color: #333;
    text-decoration: none;
    position: relative;
}

/* 上部navigatorの処理 */
header nav ul a::after{
    position: absolute;
    left: 0;
    content: '';
    width: 100%;
    height: 4px;
    background: rgb(198,11,30);
    bottom: -4px;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;   
}

a:hover::after {
    visibility: visible;
    opacity: 1;
    transition: 0.5s;
  }



header .title{
background-color: rgb(198, 11, 30) ;
text-align: center;
font-size: 20px;
color: #fff;
padding-top: 20px;
padding-bottom: 20px;

}
header h2{
  border: #fff 4px solid;
  border-radius: 10px;
  padding: 10px 0;
  margin: 0 100px; 
  text-align: center; 
}





.intro{
    width: 100%;
    margin: 0 50px 0 50px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-center;
    align-items: center;
}

.spaincopy{
    display: flex;
    flex-basis: 30%;
    font-size: 18px;
}

.ph-uni{
    display: flex;
    flex-basis: 30%;
    }

.map-spa{
    display: flex;
    flex-basis: 30%;
    padding-left: 20px;
}
  
.intro h2{
    text-align: center;
}


/* ここから本文処理 */

main h2{
    text-align: center;
}
main{background-color: azure;
    max-width: 1000px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-around;
}

.copyonishi{
flex-basis: 600px;
padding: 20px 15px 20px 15px;  
}


/* 回り込み指定 */
.vamosoba{
    float: right;
    margin-left: 16px;
}

.familia-2{
    float: left;
    margin-right: 16px;
}
.student-3{
    float: right;
    margin-left: 16px;
}
.kitchen-3{
    float: left;
    margin-right: 16px;
}


/* カラム右側のデザイン */
.aside{
    flex-basis: 250px;
    }

.question{background-color: bisque;
    width: 100%;
    padding: 20px 15px 20px 15px; }

.submitb{
margin-left: 15%;
}
.fuka{
    font-size: 14px;
}

.PDF{
    background-color: rgb(198,11,30);
    width: 100%;
    padding: 20px 15px 20px 15px;
    text-align: center;
    line-height: 30px;

}

.PDF p a{color: #ffffff;
    font-size: 18px;
    text-decoration: none;
 }

 .topmenu{    background-color: chartreuse;
    width: 100%;
    padding: 10px 15px 10px 15px;
    text-align: center;
    line-height: 30px;

}

.topmenu a{color: #157209;
    font-size: 18px;
    text-decoration: underline;
    border: #157209 1px;
    text-underline-offset: 3px;
    font-weight: bold;
 }
 

.spain-info{
    width: 100%;
    background-color: rgb(198,11,30);
    padding: 20px 15px 20px 15px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    line-height: 30px;
    text-underline-offset: 3px;
}
.spain-info a{
    width: 100%;
    color: #fff;
    font-weight: bold;
    line-height: 30px;
}


.ph-flag{
    display: flex;
    flex-basis: 30%;
    padding-left: 20px;
}


footer{
    background-color:rgb(198, 11, 30);
    color: #ffffff;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

.sentou{
    border-radius: 0;
}
.kyuujin{
    border-radius: 0;
}


/* トップへ戻るボタン */
html {
    scroll-behavior: smooth;
}
.pagetop {
    height: 30px;
    width: 30px;
    position: fixed;
    right: 20px;
    bottom: 10px;
    background: #fff;
    border: solid 2px rgb(198, 11, 30);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 5px solid rgb(198, 11, 30);
    border-right: 5px solid rgb(198, 11, 30);
    transform: translateY(20%) rotate(-45deg);
}

.spain{
    color: rgb(198, 11, 30);
}


/* レスポンシブ処理 最後の行でOK*/
@media screen and (max-width: 768px){

header nav{width: 100%;}
header nav ul li a{font-size: 14px;}

.intro{
display: flex;
flex-wrap: wrap;
margin-left: 0px;
margin-right: 0px;
}


.ph-uni{
    flex-basis: 100%;
    margin-top: 10px;
    justify-content: center;
}


.spaincopy{
    flex-basis: 100%;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    justify-content: center;
}

.map-spa{
    flex-basis: 100%;
    margin-top: 10px;
   justify-content: center;

}

.ph-flag{
    flex-basis: 100%;
    margin-top: 10px;
   justify-content: center;

}



main{width: 90%;
display: inline-block;
justify-content: center;
}

nav{width: 100%;}

header .title{
    font-size: 14px;
}
header h1{
    font-size: 20px;
}
header h2{
    font-size: 18px;
}

.spain{
    font-size: 16px;
}

.sentou{
    width: 100%;
}

.kyuujin{
    width: 100%;
}

header nav ul {
    display: block;
 
}

header nav ul li{
    padding: 3px 0;
}

header nav ul a{
    padding: 2px 0;
}




}