:root {
    --font-weight-Shuei-L: 400;
    --font-weight-Shuei-B: 600;
    --font-color: #4b2d06;
}
* {
    margin: 0;
    padding: 0;
}
html {
    font-size: 10px;
    @media (max-width: 1260px) {
        font-size: calc((10 / 1260) * 100vw);
    }
    @media (max-width: 700px) {
        font-size: calc((10 / 375) * 100vw);
    }
}
body {
    font-size: 1.6rem;
    font-family: "dnp-shuei-mgothic-std", sans-serif;
    color: var(--font-color);
    line-height: 3rem;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
.pc {
    display: block;
    @media (max-width: 700px) {
        display: none;
    }
}
.sp {
    display: none;
    @media (max-width: 700px) {
        display: block;
    }
}
.hero-section {
    background-image: url(./images/hero-mosaic-bg.jpg);
    background-size: auto 100%;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2500 / 1042;
    position: sticky;
    top: 0;
    @media (max-width: 700px) {
        aspect-ratio: 3 / 4;
        animation: bg-loop 100s linear infinite;
    }
    img {
        width: 45vw;
        max-width: 72.5rem;
        @media (max-width: 700px) {
            width: 35rem;
        }
    }   
}
@keyframes bg-loop {
    0%   { background-position: left center; }
    50%  { background-position: right center; }
    100% { background-position: left center; }
}
.message-section {
    background-color: #fac882;
    overflow: hidden;
    position: relative;
    @media (max-width: 700px) {
        padding: 0 1.5rem;
    }
    &::before,
    &::after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        @media (max-width: 700px) {
            left: -1.5rem;
            width: calc(100% + 1.5rem);
        }
    }
    &::before {
        background-size: cover;
        top: 0;
        height: 100%;
        background-image: url(./images/message-texture.png);
        z-index: 5;
    }
    &::after {
        background-size: cover;
        bottom: 12rem;
        height: 11rem;
        background-image: url(./images/message-footer.svg);
        background-position: center;
        z-index: 10;
        @media (max-width: 700px) {
            height: 6rem;
            bottom: 6rem;
        }
    }
    .cta-button {
        width: 100%;
        padding: 8rem 0;
        margin: 0 auto;
        position: relative;
        z-index: 10;
        @media (max-width: 700px) {
            padding: 8rem 0 5rem;
        }
        &::before,
        &::after {
            content: "";
            display: block;
            background-size: contain;
            position: absolute;
            top: 0;
            background-repeat: no-repeat;
            background-position: center;
        }
        &::before {
            width: 45.9rem;
            aspect-ratio: 161.978 / 76.313;
            background-image: url(./images/message-decoration-01.svg);
            left: 0;
            @media (max-width: 700px) {
                width: 15rem;
                left: -2.5rem;
            }
        }
        &::after {
            width: 51.1rem;
            aspect-ratio: 180.414 / 84.9;
            background-image: url(./images/message-decoration-02.svg);
            right: 0;
            @media (max-width: 700px) {
                width: 18rem;
                right: -3.5rem;
            }
        }
        a {
            width: 45rem;
            display: flex;
            margin: 0 auto;
            z-index: 5;
            position: relative;
            @media (max-width: 700px) {
                width: 90%;
            }
            &:hover {
                opacity: .9;
            }
        }
    }
    .content-message {
        background: #fff;
        width: 116rem;
        margin: 0 auto;
        border-radius: 3rem;
        padding: 5rem;
        box-sizing: border-box;
        position: relative;
        z-index: 10;
        @media (max-width: 700px) {
            width: 100%;
            padding: 4rem 2rem;
            border-radius: 1rem;
        }
        &::before {
            content: "";
            display: block;
            background-size: cover;
            position: absolute;
            top: 15rem;
            right: calc(-54.6rem + 10rem);
            width: 54.6rem;
            height: 27.2rem;
            background-image: url(./images/message-decoration-03.svg);
            @media (max-width: 700px) {
                display: none;
            }
        }
        .section-title {
            width: 50rem;
            margin: 0 auto;
            @media (max-width: 700px) {
                width: 100%;
            }
        }
        .wrapper {
            margin-top: 4rem;
            display: flex;
            justify-content: space-between;
            @media (max-width: 700px) {
                flex-direction: column;
            }
            .president-info {
                width: 33rem;
                @media (max-width: 700px) {
                    width: 100%;
                    img {
                        width: 100%;
                    }
                }
            }
            .president-info {
                text-align: center;
                line-height: 1;
                font-weight: var(--font-weight-Shuei-B);
                .president-title {
                    font-size: 1.8rem;
                    margin-top: 2rem;
                }
                .president-name {
                    font-size: 2.3rem;
                    margin-top: 1rem;
                }
            }
            .message-text {
                display: flex;
                width: 65%;
                justify-content: space-between;
                @media (max-width: 700px) {
                    width: 100%;
                    flex-direction: column;
                    margin-top: 2rem;
                }
                .inner {
                    width: 32rem;
                    @media (max-width: 700px) {
                        width: 100%;
                        margin-top: 0;
                    }
                }
            }
        }
    }
    .content-cards {
        width: 88rem;
        margin: 4.5rem auto 25rem;
        display: flex;
        gap: 8rem;
        @media (max-width: 700px) {
            flex-direction: column;
            width: 100%;
            gap: 3rem;
            margin: 4.5rem auto 13rem;
        }
        .card {
            position: relative;
            z-index: 10;
            .card-image {
                border-top-left-radius: 1rem;
                border-top-right-radius: 1rem;
                overflow: hidden;
                z-index: 5;
                position: relative;
                @media (max-width: 700px) {
                    img {
                        width: 100%;
                    }
                }
            }
            .card-buttons {
                padding: 2rem 0;
                display: flex;
                gap: 2.5rem;
                background: #fff;
                width: 100%;
                display: flex;
                justify-content: center;
                border-bottom-left-radius: 1rem;
                border-bottom-right-radius: 1rem;
                @media (max-width: 700px) {
                    gap: 1.5rem;
                }
                a {
                    text-decoration: none;
                    color: var(--font-color);
                    font-weight: var(--font-weight-Shuei-B);
                    font-size: 1.8rem;
                    position: relative;
                    padding-right: calc(5.8rem + .75rem);
                    @media (max-width: 700px) {
                        font-size: 1.7rem;
                    }
                    &::after {
                        position: absolute;
                        content: "";
                        width: 5.8rem;
                        height: 2.2rem;
                        top: 50%;
                        right: 0;
                        transform: translateY(-50%);
                        margin-left: .75rem;
                        background-image: url(./images/cards-button-decoration.svg);
                        background-position: center;
                        background-size: contain;
                        transition: all ease .2s;
                    }
                    &:hover {
                        text-decoration: underline;
                        &::after {
                            right: -.25rem;
                        }
                    }
                }
            }
            &::before,
            &::after {
                content: "";
                display: block;
                background-size: cover;
                position: absolute;
                background-repeat: no-repeat;
                background-position: center;
                @media (max-width: 700px) {
                    display: none;
                }
            }
            &:first-child {
                &::before {
                    top: 0;
                    left: -52rem;
                    width: 52rem;
                    aspect-ratio: 449.2814 / 241.4657;
                    background-image: url(./images/cards-decoration-01.svg);
                }
            }
            &:last-child {
                &::before {
                    top: -6rem;
                    right: -60rem;
                    width: 61.5rem;
                    aspect-ratio: 615.35 / 225.51;
                    background-image: url(./images/cards-decoration-02.svg);
                }
            }
        }
    }
    .content-footer {
        background-color: #fff;
        height: 10rem;
        position: relative;
        @media (max-width: 700px) {
            width: calc(100% + 3rem);
            left: -1.5rem;
            height: 5rem;
        }
        &::before,
        &::after {
            content: "";
            display: block;
            background-size: contain;
            position: absolute;
            bottom: 2.5rem;
            z-index: 15;
            @media (max-width: 700px) {
                bottom: 2rem;
            }
        }
        &::before {
            width: 40rem;
            aspect-ratio: 367.715 / 245.1856;
            background-image: url(./images/message-footer-decoration-01.svg);
            left: 5rem;
            @media (max-width: 700px) {
                width: 15rem;
                left: 2rem;
            }
        }
        &::after {
            width: 43rem;
            aspect-ratio: 389.9767 / 231.0444;
            background-image: url(./images/message-footer-decoration-02.svg);
            right: 5rem;
            @media (max-width: 700px) {
                width: 17rem;
                right: 2rem;
            }
        }
    }
}