.md-typeset h1 {
    font-weight: 500;
}

.md-typeset .grid.cards {
    margin-top: 1rem;
}

.md-typeset img {
    /*  border-radius: 12px; */
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* .float-left（プロフィール写真） */
/* iPad Air ～ PC */
@media screen and (min-width: 480px) {
    .float-left {
        float: left;
        margin: 1rem;
    }
}

/* CTAボタンを中央に配置 */
.button-cta {
    margin-top: 1rem;
    text-align: center;
}

/*
 * ヒーローセクション
 */

 /* 余白なしにする */
.md-main__inner:has(.hero-section) {
    margin-top: 0;
}

.md-content__inner:has(.hero-section) {
    padding-top: 0;
}

.md-content__inner:has(.hero-section)::before {
    height: 0;
}

/* スマホ ～ iPad Mini */
@media screen and (max-width: 768px) {
    .hero-section {
        margin: 0 -20px;
    }

    .hero-section img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
        filter: brightness(0.6);
    }

    .hero-section div {
        margin: 1rem 20px;
    }
}

/* iPad Air ～ PC */
@media screen and (min-width: 769px) {
    .hero-section {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        margin-bottom: 2rem;
        position: relative;
    }

    .hero-section img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 0;
        filter: brightness(0.6);
    }

    .hero-section div {
        position: absolute;
        bottom: 10%;
        left: 5%;
    }

    .hero-section div h1 {
        margin: 0;
        color: white;
        font-size: 2.2rem;
        font-weight: 500;
        text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.9);
    }

    .hero-section div a {
        margin: 1rem 1rem 0.5rem;
    }
}
