@charset "utf-8";

.link-wrap{
    text-align: center;
}

.link-wrap a{
    color: #fff;
    background-color: #8A0104;
    padding: 0.4em 6em;
    border-radius: 20px;
    font-size: 12px;
}
/* ------------------------
message コンテンツ
--------------------------- */
.message-inner{
    display: grid;
    gap: 3em;
}
.message-title{
    justify-self: center;
}
/* .image-wrap{
    display: grid;
    grid-template-columns: 47% 47%;
    gap: 6%;
    width: 80%;
} */
.message-text-wrap{
    width: 100%;
    display: grid;
    grid-template-rows: 30% 70%;
    align-items: center;
    gap: 0;
}
.message_20{
    align-self: end;
}
.bottom-text-wrap{
    width: 45%;
    display: grid;
    align-items: center;
    justify-items: center;
    /* gap: 10%; */
    margin: 10% auto;
    max-width: 450px;
}
.text-wrap{
    width: 100%;
    margin: 2em auto;
    line-height: 2em;
    font-size: 14px;
    align-self: baseline;
}
.first-wrap{
    display: grid;
    grid-template-columns: 47% 47%;
    gap: 6%;
    width: 85%;
}
.second-wrap{
    display: grid;
    grid-template-columns: 40% 54%;
    gap: 6%;
    width: 90%;
    margin-left: auto;
}
.sp-hero-image{
    display: none;
}
@media screen and (min-width: 768px) {
    .sp-vertical{
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .hero-image{
        grid-row: 2/3;
    }
    .change-hero{
        display: block;
        width: 100%;
        height: 300px;
    }
    .sp-hero-image{
        display: none;
    }
    .sp-vertical{
        grid-row: 3/4;
        width: 100%;
        height: 100%;
        background-color: #8A0104;
        color: #fff;
        text-align: center;
        align-content: center;
        font-size: 16px;
    }
    .first-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 6%;
        width: 100%;
        justify-content: center;
    }
    .second-wrap {
        display: flex;
        flex-wrap: wrap-reverse;
        /* grid-template-columns: 100%; */
        gap: 6%;
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }
    .bottom-text-wrap{
        width: 95%;
        display: grid;
        align-items: center;
        justify-items: center;
        gap: 10%;
        margin: 10% auto;
        max-width: 450px;
    }
    .message-text-wrap{
        width: 95%;
        display: grid;
        align-items: center;
        gap: 1em;
        margin-top: 3em;
    }
}