html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #E1E1E1;

}
@font-face {
    font-family: 'keifont';
    src: url("./Fonts/keifont.ttf") format("TrueType");
}
@font-face {
    font-family: 'Noto Sans JP';
    src: url("./Fonts/NotoSansJP-VariableFont_wght.ttf") format("TrueType");
}

body{
    font-family :'Noto Sans JP', sans-serif;
}
.bar{
    
    justify-content: right;
    display: flex;
    position: fixed;
    background-color: white;
    writing-mode: vertical-rl;
    text-align: right;
    right:0;
    top: 0;
    font-family: "keifont";
    height: 100%;
    z-index: 1000;
    text-align: center;

    border: solid 2px;
}

.BorderTexts{
    font-family: bold;
    font-size: 24px;
    padding-right: 3%;
    padding-top: 3.4%;
    padding-bottom: 3.4%;
    text-align: center;
    margin: 0;
    font-family: "keifont";
    color: black;
    border-bottom: solid 2px;
    text-decoration: none;
    
    
}
.Border{
    justify-items: center;
    align-items: center;
    font-family: "Noto Sans JP";
    font-size: 16px;
    height: 34.7%;
    padding: 2.4%;
    
    padding-bottom: 10%;

}
.BorderImgX{
    display: none;
}
.HiraiName2{
    margin: 0;
    font-size: 24px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 5px;
    padding-left: 5px;
    font-weight: bold;
    font-family: "Noto Sans JP";
    font-optical-sizing: auto;
    border-radius: 5px;
    border: solid 1px black;
    font-style: normal;
    color: white;
    width: 164px;
    background-color: #FEEB00;
    text-shadow:1px 1px 0 black, -1px -1px 0 black,
              -1px 1px 0 black, 1px -1px 0 black,
              0px 1px 0 black,  0-1px 0 black,
              -1px 0 0 black, 1px 0 0 black;

}

.MainWorks{
    padding: 0;
    padding-top: 5.5%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.WorksImgDiv{
    width: 560px;
    height: 560px;
}
.WorksImg{
    width: 560px;
    height: 560px;
    object-fit: cover;
}
.WorksTitle{
    display: inline-flex;
    font-size: 32px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 5px;
    padding-left: 5px;
    font-weight: bold;
    font-family: "Noto Sans JP";
    font-optical-sizing: auto;
    border-radius: 5px;
    border: solid 1px black;
    font-style: normal;
    color: white;
    background-color: #FEEB00;
    text-shadow:1px 1px 0 black, -1px -1px 0 black,
              -1px 1px 0 black, 1px -1px 0 black,
              0px 1px 0 black,  0-1px 0 black,
              -1px 0 0 black, 1px 0 0 black;
}
.YearDay{
    font-size: 16px;
    font-family: "keifont";
    font-weight: bold;
}
.WorksText{
    width: 640px;
}
.WorksMore{
    margin: 0;
    margin-left: 2.7%;
}
.NameArea{
    width: 618px;
}
.ImgForm{
    margin: 0;
    display: flex;
    justify-content: left;
    align-items: left;
    margin-top: 5.5%;
    padding-right: 7.5%;
}
.ImgClass1{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.Img1Area{
    margin: 0;
    width: 49.5%;
    height: auto;
    margin-bottom: 8px;
}

.img1{
    width: 100%;
    aspect-ratio: 16 / 9;
}

@media screen and (max-width: 1040px) {
    .MainWorks{
        padding: 0;
        padding-top: 5.5%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .WorksText{
        width: 560px;
    }
}
@media screen and (max-width: 430px) {
    html, body {
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .BorderTexts{
        display: none;
    }
    .Border{
        padding: 0;
        padding-right: 11.5px;
        height: 100%;
        font-size: 16px;
    }
    .BorderImgX{
        display: flex;
        padding: 4px;
        width: 40px;
    }
    .HiraiName2{
        margin: 0;
        font-size: 16px;
        text-align: center;
        padding-top: 6px;
        padding-bottom: 6px;
        padding-right: 3px;
        padding-left: 3px;
    
    }
    .MainWorks{
        padding: 0;
        padding-top: 5.5%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .WorksImgDiv{
        width: 294px;
        height: 294px;
        justify-content: center;
    }
    .WorksImg{
        width: 294px;
        height: 294px;
    }

    .NameArea{
        width: 256px;
    }
    .WorksTitle{
        font-size: 20px;
    }
    .WorksText{
        width: 294px;
    }
    .ImgForm{
        padding: 6%;
    }
    .Img1Area{
        width: 80%;
    }
    .img1{
        width: 100%;
        aspect-ratio: 16 / 9;
    }

}
@media screen and (max-height: 430px){
    .BorderTexts{
        font-family: bold;
        font-size: 12px;
        padding-right: 3%;
        padding-top: 3.4%;
        padding-bottom: 3.4%;
        text-align: center;
        margin: 0;
        font-family: "keifont";
        color: black;
        border-bottom: solid 2px;
        text-decoration: none;
        
        
    }
    .Border{
        justify-items: center;
        align-items: center;
        font-family: "Noto Sans JP";
        font-size: 6px;
        height: 35%;
        padding: 2.4%;
        padding-bottom: 10%;
    
    }
    .BorderImgX{
        display: none;
    }
    .HiraiName2{
        margin: 0;
        font-size: 12px;
        padding-top: 8px;
        padding-bottom: 8px;
        padding-right: 5px;
        padding-left: 5px;
        border-radius: 5px;
        border: solid 1px black;
        font-weight: bold;
        
        font-optical-sizing: auto;
        font-style: normal;
        color: white;
        width: 164px;
        background-color: #FEEB00;
        text-shadow:1px 1px 0 black, -1px -1px 0 black,
                  -1px 1px 0 black, 1px -1px 0 black,
                  0px 1px 0 black,  0-1px 0 black,
                  -1px 0 0 black, 1px 0 0 black;
    
    }
}
