#contents {
    position: relative;

    &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 51.2rem;
        background-image: url(../../img/media/bg-left.png);
        background-size: 51.2rem 107.7rem;
        background-repeat: no-repeat;
        background-position: -20rem 2rem;
        z-index: -1;
        background-attachment: fixed;
    }

    &::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 51.2rem;
        background-image: url(../../img/media/bg-right.png);
        background-size: 51.2rem 107.7rem;
        background-repeat: no-repeat;
        background-position: calc(100% - -14rem) -3rem;
        z-index: -1;
        background-attachment: fixed;
    }

    @media screen and (max-width: 767px) {
        &::before,
        &::after {
            position: absolute;
            width: 37.5rem;
            height: 4rem;
            background-repeat: no-repeat;
            background-attachment: scroll;
            z-index: 1;
        }

        &::before {
            top: 0;
            right: 0;
            bottom: auto;
            background-image: url(../../img/media/bg-left-sp.png);
            background-size: 37.5rem 4rem;
            background-position: right 0 bottom 0;
        }

        &::after {
            top: auto;
            right: 0;
            bottom: 0;
            background-image: url(../../img/media/bg-right-sp.png);
            background-size: 37.5rem 4rem;
            background-position: right 0 bottom 0;
        }
    }
}

#media {
    padding-top: 8.5rem;

    @media screen and (max-width: 767px) {
    }
}

.media-container {
    display: flex;
    flex-direction: column;

    .media-card-date {
        padding-bottom: 3rem;
        @media screen and (max-width: 767px) {
        }
    }

    .media-card-title {
        font-family: "Noto Serif JP";
        font-style: normal;
        font-weight: 700;
        font-size: 3.8rem;
        line-height: 150%;
        letter-spacing: 0.1em;
        color: #000000;
        padding-bottom: 3.8rem;

        @media screen and (max-width: 767px) {
        }
    }

    .media-card-tag {
        margin-bottom: 4.5rem;

        @media screen and (max-width: 767px) {
        }
    }
}

.media-card-img {
    padding-bottom: 1rem;

    & img {
        width: 100%;
    }

    @media screen and (max-width: 767px) {
    }
}

.media-caption {
    font-family: "Noto Serif JP";
    font-style: normal;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 170%;
    letter-spacing: 0.1em;
    color: #000000;

    @media screen and (max-width: 767px) {
    }
}

@media screen and (max-width: 767px) {
}

.common-btn.type01 {
    margin-top: 11.8rem;

    @media screen and (max-width: 767px) {
        margin-top: 5.5rem;
    }
}

.article-area {
    padding-top: 4rem;

    & h2 {
        position: relative;
        margin-bottom: 2rem;
        padding-left: 1.7rem;
        font-family: "Noto Serif JP";
        font-weight: 700;
        font-size: 2.2rem;
        letter-spacing: 0.1em;
        line-height: 1.5;
        color: #000;
        @media screen and (width < 767px) {
            margin-bottom: 1rem;
            padding-left: 1.2rem;
            font-size: 1.7rem;
            letter-spacing: 0.05em;
        }

        &:after {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            display: block;
            width: 0.4rem;
            height: 100%;
            background: var(--theme-color);
        }
        @media screen and (width < 767px) {
            &:after {
                width: 0.3rem;
            }
        }
    }

    /* h3 */
    & h3 {
        position: relative;
        margin-bottom: 2rem;
        padding: 0 0 1rem;
        font-family: "Noto Serif JP";
        font-weight: 700;
        font-size: 2rem;
        letter-spacing: 0.1em;
        line-height: 180%;
        @media screen and (width < 767px) {
            margin-bottom: 1rem;
            padding: 0 0 0.5rem;
            font-size: 1.6rem;
            line-height: 160%;
        }
        &:after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            display: block;
            width: 4rem;
            height: 0.3rem;
            background: var(--theme-color);
        }
    }
    /* h4 */
    & h4 {
        margin-bottom: 1rem;
        font-family: "Noto Serif JP";
        font-weight: 700;
        font-size: 1.8rem;
        letter-spacing: 0.1em;
        line-height: 160%;
        @media screen and (width < 767px) {
            margin-bottom: 0.5rem;
        }
    }
    /* h5 */
    & h5 {
        position: relative;
        margin-bottom: 1rem;
        padding-left: 1.8rem;
        font-family: "Noto Serif JP";
        font-weight: 700;
        @media screen and (width < 767px) {
            margin-bottom: 0.5rem;
        }
    }
    & h5:after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 1.4rem;
        height: 1.4rem;
        background: var(--theme-color);
    }
    /* h6 */
    & h6 {
        margin-bottom: 1rem;
        font-family: "Noto Serif JP";
        font-weight: 700;
        @media screen and (width < 767px) {
            margin-bottom: 0.5rem;
        }
    }
    /* p */
    & p {
        margin-bottom: 3rem;
        font-family: "Noto Serif JP";
        font-weight: 500;
        letter-spacing: 0.05em;
        line-height: 2;
        @media screen and (width < 767px) {
            margin-bottom: 1.5rem;
            line-height: 160%;
        }
    }
    /* ul */
    & ul {
        margin-bottom: 2rem;
        & li {
            position: relative;
            padding-left: 1rem;
            font-family: "Noto Serif JP";
            font-weight: 500;
            line-height: 2;
            &:after {
                content: "";
                position: absolute;
                left: 0;
                top: 1.3rem;
                display: block;
                width: 0.6rem;
                height: 0.6rem;
                border-radius: 0.3rem;
                background: var(--theme-color);
            }
        }
    }
    /* ol */
    & ol {
        margin-bottom: 2rem;
        counter-reset: number 0;
        & li {
            position: relative;
            padding-left: 2rem;
            font-family: "Noto Serif JP";
            line-height: 2;
            font-weight: 500;
            counter-increment: number 1;
            &:after {
                content: counter(number) ".";
                position: absolute;
                left: 0;
                top: 0.8rem;
                display: block;
                color: var(--theme-color);
                font-size: 1.4rem;
                line-height: 100%;
            }
        }
    }

    /* img float */
    & img.alignleft {
        float: left;
        margin: 0.8rem 1rem 1rem 0;
        @media screen and (width < 767px) {
            float: none;
            display: block;
            margin: 0 auto 1rem;
        }
    }
    & img.aligncenter {
        display: block;
        margin: 0 auto 2rem;
    }
    & img.alignright {
        float: right;
        margin: 0.8rem 0 1rem 1rem;
    }
    @media screen and (width < 767px) {
        & img.alignright {
            float: none;
            display: block;
            margin: 0 auto 1rem;
        }
    }
    /* & img {
        vertical-align: top;
        width: 100%;
        height: auto;
        margin-bottom: 2rem;
        object-fit: cover;
    } */

    & img {
        display: inline-block;
        width: 25rem;
        height: 20rem;
        object-fit: cover;
        object-position: center;
        margin-right: 2rem;
        margin-bottom: 2rem;
        vertical-align: top;
    }

    /* blockquote */
    & blockquote {
        position: relative;
        margin: 0 0 3rem 3rem;
        padding-left: 6rem;
        font-family: "Noto Serif JP";
        font-size: 1.4rem;
        line-height: 180%;
        @media screen and (width < 767px) {
            margin: 0 0 1.5rem 0;
            padding-left: 4rem;
            line-height: 160%;
        }
        &:after,
        &:before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            display: block;
        }
        &:after {
            top: 0.5rem;
            width: 0.2rem;
            height: 5rem;
            background: #ccc;
        }
        &:before {
            content: "“";
            position: absolute;
            left: 1rem;
            top: -0.5rem;
            color: #ccc;
            font-size: 6rem;
            line-height: 100%;
        }
    }

    a {
        color: var(--theme-color);
        text-decoration: underline;

        &:hover {
            text-decoration: none;
        }

        &[target="_blank"] {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;

            &::after {
                content: "";
                display: block;
                margin-top: 6px;
                margin-left: 10px;
                width: 16px;
                height: 16px;
                background-image: url(../../common/img/icon-newtab.svg);
                background-size: contain;
                background-repeat: no-repeat;
            }

            @media screen and (max-width: 767px) {
                &::after {
                    margin-top: 4px;
                    width: 14px;
                    height: 14px;
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    & img {
        vertical-align: top;
        width: 100%;
        height: auto;
        margin-bottom: 2rem;
        object-fit: cover;
    }
}

.article-area {
    padding-bottom: 4.5rem;

    @media screen and (max-width: 767px) {
        padding-top: 0;
        padding-bottom: 2.5rem;
    }
}

/* --------------------------------------------------------------- */
/* MEDIA CARD CONTENT */
/* --------------------------------------------------------------- */

.media-card-img-content {
    width: 100%;
    display: flex;
    gap: 1.5rem;

    @media screen and (max-width: 767px) {
        flex-wrap: wrap;
    }
}

.media-card-img-single {
    width: 24%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    & img {
        width: 100%;
        height: 20rem;
        object-fit: cover;
        background-repeat: no-repeat;
    }

    .media-card-img-cap {
        font-family: "Noto Serif JP";
        font-style: normal;
        font-weight: 400;
        font-size: 1.4rem;
        line-height: 170%;
        letter-spacing: 0.1em;
        color: #000000;
    }

    @media screen and (max-width: 767px) {
        width: 48% !important;

        & img {
            height: 20rem !important;
            margin-bottom: 0;
        }
    }
}
