.class {
    margin-top: 50px;
    background-color: white;
    max-width: 1024px;
}
.hero {
    position: relative;
    height: 420px;
}
.black-box {
    position: absolute;
    top: 20px;
    left: 5%;
    background-color: black;
    width: fit-content;
    padding: 3px 20px;
    z-index: 2;
}
.black-box h2{
    font-size: 1.2rem;
    font-weight: 100;
    font-family:  "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif !important;
}
.black-box h2 span{
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 2px;
    font-size: 0.7rem;
}
.hero picture,
.hero img {
    position: absolute;
    top: 30px;
    right: 0;
    width: 350px;
    height: 400px;
    object-fit: cover;
}
@media screen and (min-width: 500px){
    .hero picture,
    .hero img {
    width: 100%;
    top: 0;
}
}
.button-link1 {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    border: 2px solid black;
    padding: 12px 24px;
    color: black !important;
    background-color: white;
    transition: background-color 0.3s ease;
}

.button-link1:hover {
    background-color: black;
}
.class h1 {
  color: black;
  text-align: center;
  font-size: 1rem;
  margin-top: 45px;
}
@media screen and (min-width: 500px){
    .class h1 {
        margin-top: 0;
}
}
.merit h2{
    color: black;
    font-size: 1.3rem;
    font-weight: 100;
    font-family:  "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif ;
}
.r-card{
    position: relative;
    border: 2px solid black;
    width: 300px;
    height: 240px;
    text-align: center;
    padding: 20px;
}
.r-card h3{
    margin-top: 0;
    color: black;
    font-family:  "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif ;
}
.r-card p{
    color: black;
}
.about-class h2{
    color: black;
    font-size: 1.3rem;
    font-weight: 100;
    font-family:  "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif ;
}
.about-class h3{
    color: black;
    font-size: 1rem;
    font-weight: 100;
    font-family:  "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif ;
}
.about-class ul{
    text-align: center;
    list-style: none;
}
.about-class li{
    color: black;
    margin-right: 50px;
}
.about-class p{
    color: black;
}
.about-class a{
    color: rgb(35, 50, 171);
    font-weight: 600;
}
.personal h2{
    color: black;
    font-size: 1.3rem;
    font-weight: 100;
    font-family:  "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif ;
}
.personal h3{
    color: black;
    font-size: 1rem;
    font-weight: 100;
    font-family:  "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif ;
}
.personal p{
    color: black;
    margin-top: 5px;
}
.personal li{
    color: black;
}

.blog h2{
    font-size: 1rem;
    color: black;
}
.blog-container{
    display: flex;
    gap: 10px;
    width: fit-content;
    margin: auto;
}
.b-card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 150px;
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.b-card img {
    width: 150px;
    height: 100px;
    object-fit: cover;
}
.b-card p{
    color: rgb(98, 96, 96);
    font-size: 0.6rem;
    text-align: left;
}