@charset "UTF-8";

body{
    background-color: #F9F1E3;
    font-size: 1rem;
    width: 100%;
}
img{
    width: 100%;
}

header{
    background-color:  #333;
    color: #fff;
    padding: .5% 1%;
    display: flex;
    justify-content: space-between;
}
h1{
    width: 40%;
}
.menu{
    font-size: 2rem;
    text-align: right;
    width: 40%;
}
menu a{
    font-weight: bold;
    padding: 0 5%;
}
menu a:link{
    color: #fff;
}
menu a:visited{
    color: #fff;
}
menu a:hover{
    color: red;
}
menu a:active{
    color: blue;
}
.toppage{
    text-align: right;
}
.toppage img{
    width: 3%;
    margin-right: 5%;
    border-bottom: 2px solid #333;
}
.mv img{
    max-height: 650px;
    object-fit: cover;
    object-position: 50% 10%;
}
.skillsbox{
    width: 70%;
    margin: 0 auto;
}
.skills{
    display: flex;
    align-items: center;
    margin: 2% 3%;
}
.skills img{
    width: 80px;
    aspect-ratio: 1/1;
}
.skills p{
    margin-left: 2%
}
.rank{
    display: flex;
    width: 100px;
    margin-left: 20px;
}
.rank img{
    width: 30%;
}
.items{
    margin: 2% 0;
    width: 100%;
}
h2{
    width: 95%;
    margin:0.5% auto;
    font-size: 3rem;
    text-align: center;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333
}
.warapper{
    display: grid;
    grid-template-columns: repeat(4,25%);
    margin: 1% auto;
    width: 70%;
}
.right{
    border-right: 1px solid #333;
}
.box{
    margin: 1% 0;
}
.box h3{
    padding: 1% 5% .5%;
    font-size: 1.5rem;
    font-weight: bold;
}
.content{
    text-align: center;
    padding: 0 2% 2%;
}
.content img{
    width: 80%;
    aspect-ratio: 10/14;
    object-fit: cover;
    cursor: pointer; 
    transition: transform 0.2s;
}
.content img:hover{
    transform: scale(1.05);
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.7); 
}
.modal-content {
    margin: 5% auto; 
    display: block; 
    width: 80%; 
    max-width: 700px; 
}

.close {
    position: absolute; 
    top: 10px; 
    right: 25px; 
    color: white; 
    font-size: 35px; 
    font-weight: bold; 
    cursor: pointer;  
}
.info p{
    margin: 2% 4%;
    font-size: 0.8rem;
    line-height: 1.5rem;
}
.item-title{
    font-weight: bold;
}
.comment{
    font-size: 0.8rem;
    width: 85%;
    margin: 5% auto;
}
.about{
    width: 35%;
    margin: 3% auto;
    border: 1px solid #333;
    line-height: 2rem;
}
.about p{
    margin: 1.5%;
    line-height: 1.5rem;
}
.name{
    font-size: 1.5rem;
    margin: 1%;
}
.txt{
    font-size: 0.8rem;
}

footer{
    background-color: #000;
    height: 50px;
}

@media (max-width: 1000px) {

    h1{
        font-size: 1.3rem;
        width: 40%;
    }
    .menu{
    width: 50%;
    font-size: 1rem;
    margin: auto 3%;
    }
    .skillsbox{
        width: 95%;
    }
    .skills p{
        font-size: 0.8rem;
    }
    .warapper{
        display: initial;
        width: 100%;
    }
    .box{
        text-align: center;
    }
    .content img{
        width: 50%;
    }
    .right{
    border-right: none;
    }
    .about{
        width: 95%;
    }
}