:root {
    --mv-bottom: 5rem;
}
h2.title_block-2 {
    padding-top: 15em;
    background-image: url(/assets/images/corp/message/img-head.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    .title {
        background-color: #ddf8f2;
        @media (max-width: 1024px) {
            background-color: transparent;
        }
    }
    .yohaku {
        width: min(90vw, calc(1800px * 0.9));
        height: var(--mv-bottom);
        background-color: #ddf8f2;
        @media (max-width: 1024px) {
            display: none;
        }
    }
}
.article-area.message {
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    width: 90vw;
    background-color: #fff;

    @media (max-width: 1024px) {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        background-color: #ddf8f2;
    }

    .message-container {
        background-color: #ddf8f2;
        width: min(90vw, calc(1800px * 0.9));
        padding-top: 2.5rem;
        padding-bottom: var(--mv-bottom);

        margin-left: 0;
        padding-left: min(10vw, calc(1800px * 0.1));
        position: relative;
        &:after {
            content: "";
            background: url(/assets/images/img-pattern.svg) repeat;
            background-size: contain;
            position: absolute;
            bottom: 0;
            right: max(calc(-10vw + 18px), calc(-1800px * 0.1 + 18px));
            width: min(calc(10vw - 18px), calc(1800px * 0.1 - 18px));
            height: 10rem;
            @media (max-width: 1024px) {
                content: unset;
            }
        }
        @media (max-width: 1024px) {
            width: 100%;
            padding-bottom: 0;
        }

        .main-message {
            font-family: "Noto Serif JP", serif;
            font-size: 2rem;
            padding-bottom: var(--mv-bottom);
            font-weight: 500;
            @media (max-width: 1024px) {
                word-break: auto-phrase;
                padding-right: min(20vw, calc(1800px * 0.2));
                position: relative;
                font-size: min(4vw, 24.5px);
                margin-bottom: calc(11em - 4em);
                padding: 0;
                p {
                    position: absolute;
                    background-color: #ddf8f2;

                    padding: 2em 10vw;
                    width: calc(11em + 20vw);
                    height: 11em;
                    left: -10vw;
                    top: -5em;
                }
            }
        }
        .message-detail {
            position: relative;
            padding: 0 min(10vw, calc(1800px * 0.1));
            &:before {
                content: "";
                background: url(/assets/images/img-pattern.svg) repeat;
                background-size: contain;
                position: absolute;
                top: 0;
                left: 0;
                width: min(5vw, calc(1800px * 0.05));
                height: min(5vw, calc(1800px * 0.05));
            }
            line-height: 2;
            p + p {
                margin-top: 3rem;
            }
            @media (max-width: 1024px) {
                padding-left: 0;
                padding-right: 0;
                margin-right: 10vw;
                padding-top: 10vw;
                &:before {
                    top: -4vw;
                    left: 50%;
                    width: 8vw;
                    height: 8vw;
                    transform: translateX(-50%);
                }
            }
        }
        .top-name {
            display: flex;
            flex-direction: column;
            align-items: end;
            padding: calc(1.75rem + 3em) min(10vw, calc(1800px * 0.1));

            font-size: 1.5rem;
            font-weight: 600;
            span {
                font-size: 1rem;
                font-weight: normal;
            }
            p {
                width: fit-content;
            }

            .icon-name {
                position: relative;
                &:before,
                &:after {
                    content: "";
                    display: block;
                    width: 0.75em;
                    height: 0.75em;
                    background-image: url(/assets/images/icon-ttl.svg);
                    background-size: contain;
                    background-repeat: no-repeat;
                    position: absolute;
                    transform: translateY(-50%);
                }
                &:before {
                    top: -0.75rem;
                    left: 0;
                }
                &:after {
                    bottom: -1.75rem;
                    right: 0;
                }
            }

            @media (max-width: 1024px) {
                padding-right: 10vw;
                padding-top: 3em;
                padding-bottom: 3em;
            }
        }
    }
}
