@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;1,400&display=swap');
body{
    background-color:white;
    color: black;
    font-size: 2em;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
*{
    box-sizing: border-box;
}
h1{
    text-align: center;
    margin: 0px;
    margin-bottom: 20px;
    background-color: black;
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.container{
    margin: 50px 80px;
}
h4{
    width: 100%;
    text-align: center; 
    border-bottom: 1px solid #000; 
    line-height: 0.1em;
    margin: 50px 0 30px; 
}
h4 span { 
    background:#fff; 
    padding:0 10px; 
}
/*2020*/
.row{
    display:flex;
    flex-direction: row;
    justify-content: space-around;
    
}
.item{
    flex: 33.33%;
    max-width: 33.33%;
    padding: 20px 15px;
}
.con{
    position: relative;
}
.item img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
}
img{
    display: block;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/*Overlay effects*/
.overlay{
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #d4d0d0;
    transition: .5s ease;
    opacity: 0;
    width: 100%;
    height: 100%;
}
.overlay:hover{
    opacity: 0.9;
}
.alname{
    color: black;
    font-size: 23px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}
.alname >p{
    font-size: 18px;
    color: #006394;
}
.japenese{
    background-color: #3d9431;
    font-size: 0.5em;
    position: absolute;
    top: -1%;
    right:-1%;
    border-radius: 5%;
    padding: 3px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 50px 0 rgba(0, 0, 0, 0.19);
}
@media (min-width:801px){
    .row{
        flex-wrap: wrap;
        justify-content: space-arou;
    }
}
@media (max-width:800px) and (min-width:651px){
    .container{
        margin: 40px 20px;
    }
    .alname{
        font-size: 18px;
    }
    .alname >p{
        font-size: 16px;
        
    }
    .japenese{
        font-size: 0.4em;
    }
}
@media (max-width:650px) and (min-width:449px){
    .container{
        margin: 40px 20px;
    }
    .row{
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    .item{
        flex: 50%;
        max-width: 50%;
        padding: 10px 15px;
    }
    .alname{
        font-size: 15px;
    }
    .alname >p{
        font-size: 15px;
    }
    .japenese{
        font-size: 0.4em;
    }
}
@media (max-width:450px){
    .container{
        margin: 40px 20px;
    }
    .row{
        display: flex;
        flex-direction: column;
    }
    .item{
        flex: 100%;
        max-width: 100%;
        padding: 10px;
    }
    .alname{
        font-size: 21px;
    }

}