@charset "UTF-8";

#works {
    padding-top: 8.6rem;
    padding-bottom: 10.4rem;
    @media screen and (max-width: 767px) {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    .section-works {
        position: relative;
    }
    .duration-contents {
        display: flex;
        align-items: center;
        gap: 1rem;
        position: absolute;
        right: 0;
        top: -1rem;
        @media screen and (max-width: 767px) {
            position: relative;
        }
        .duration-label {
            width: 8.4rem;
            height: 3.3rem;
            border-radius: 16.5px;
            background: #ddd;
            font-family: "Noto Sans JP", sans-serif;
            font-weight: normal;
            font-size: 1.2rem;
            letter-spacing: 0.05em;
            text-align: left;
            color: #000;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .duration-text {
            font-family: "Noto Sans JP", sans-serif;
            font-weight: normal;
            font-size: 1.4rem;
            letter-spacing: 0.15em;
            text-align: left;
            color: #000;
        }
    }
}

#works .works-contents .date-and-cat .list-category {
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.3rem 1rem;
    box-sizing: border-box;
}

.red-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    font-size: 2rem;
    letter-spacing: 0.01em;
    line-height: 3.5rem;
    text-align: left;
    color: #dc020b;
    margin-bottom: 1rem;
    @media screen and (max-width: 767px) {
        font-size: 1.6rem;
        line-height: 1.4;
    }
}

.works_img {
    margin-bottom: 3rem;
    @media screen and (max-width: 767px) {
        margin-bottom: 1rem;
    }
}

/* edit css */

h1.works-title {
    font-family: var(--noto);
    font-weight: bold;
    font-size: 3rem;
    letter-spacing: 0.2em;
    line-height: 3.5rem;
    text-align: left;
    color: #000;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
    border-bottom: #dddddd 5px solid;
    position: relative;
}

h1.works-title::after {
    position: absolute;
    content: "";
    width: 10rem;
    height: 5px;
    background-color: #e14140;
    left: 0;
    bottom: -5px;
}

@media screen and (max-width: 767px) {
    h1.works-title {
        font-size: 1.8rem;
        line-height: 2.8rem;
    }
}

/* h2 */
.works-area {
    & h2 {
        font-family: var(--noto);
        position: relative;
        margin-bottom: 3.7rem;
        padding-bottom: 2rem;
        font-weight: bold;
        font-size: 2.4rem;
        letter-spacing: 0.1em;
        line-height: 3.2rem;
        color: #000;
        border-bottom: 1px solid #dddddd;
        @media screen and (max-width: 767px) {
            margin-bottom: 1rem;
            padding-bottom: 1.2rem;
            font-size: 1.7rem;
            letter-spacing: 0.05em;
        }
        &:after {
            position: absolute;
            content: "";
            width: 5rem;
            height: 1px;
            background-color: #e14140;
            left: 0;
            bottom: -1px;
        }
        @media screen and (max-width: 767px) {
            &:after {
                width: 5rem;
            }
        }
    }

    /* h3 */
    & h3 {
        position: relative;
        margin-bottom: 2rem;
        padding: 0 0 1rem;
        font-size: 1.8rem;
        letter-spacing: 0.1em;
        line-height: 3.4rem;
        @media screen and (max-width: 767px) {
            margin-bottom: 1rem;
            padding: 0 0 0.5rem;
            font-size: 1.6rem;
            line-height: 160%;
        }
    }
    /* h4 */
    & h4 {
        margin-bottom: 2rem;
        font-size: 1.6rem;
        letter-spacing: 0.1em;
        line-height: 160%;
        @media screen and (max-width: 767px) {
            margin-bottom: 0.5rem;
        }
    }
    /* h5 */
    & h5 {
        position: relative;
        margin-bottom: 1rem;
        padding-left: 1.8rem;
        font-weight: bold;
        @media screen and (max-width: 767px) {
            margin-bottom: 0.5rem;
        }
    }
    & h5:after {
        content: "";
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 1.4rem;
        height: 1.4rem;
        background: #d20000;
    }
    /* h6 */
    & h6 {
        margin-bottom: 1rem;
        font-weight: bold;
        @media screen and (max-width: 767px) {
            margin-bottom: 0.5rem;
        }
    }
    /* p */
    & p {
        margin-bottom: 3rem;
        font-weight: normal;
        letter-spacing: 0.05em;
        line-height: 3.2rem;
        font-size: 1.8rem;
        @media screen and (max-width: 767px) {
            font-size: 1.4rem;
            margin-bottom: 1.5rem;
            line-height: 160%;
        }
    }
    /* ul */
    & ul {
        margin-bottom: 2rem;
        & li {
            position: relative;
            padding-left: 2rem;
            font-weight: bold;
            font-size: 1.8rem;
            line-height: 2;
            &:after {
                content: "";
                position: absolute;
                left: 0;
                top: 1.3rem;
                display: block;
                width: 1.2rem;
                height: 0.3rem;
                border-radius: 0.3rem;
                background: #d20000;
            }
        }
    }
    /* ol */
    & ol {
        margin-bottom: 2rem;
        counter-reset: number 0;
        & li {
            position: relative;
            padding-left: 2rem;
            line-height: 2;
            font-weight: bold;
            font-size: 1.8rem;
            counter-increment: number 1;
            &:after {
                content: counter(number) ".";
                position: absolute;
                left: 0;
                top: 0.8rem;
                display: block;
                color: #d20000;
                font-size: 1.4rem;
                line-height: 100%;
            }
        }
    }
    /* img float */
    & img.alignleft {
        float: left;
        margin: 0.8rem 1rem 1rem 0;
        @media screen and (max-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 (max-width: 767px) {
        & img.alignright {
            float: none;
            display: block;
            margin: 0 auto 1rem;
        }
    }
    & img {
        vertical-align: top;
        max-width: 100%;
        height: auto;
        @media screen and (max-width: 767px) {
            width: 100%;
        }
    }
    /* blockquote */
    & blockquote {
        position: relative;
        margin: 0 0 3rem 3rem;
        padding-left: 6rem;
        font-size: 1.4rem;
        line-height: 180%;
        @media screen and (max-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%;
        }
    }
}

.edit-area a {
    font-family: var(--noto);
    font-weight: normal;
    text-decoration: underline;
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    line-height: 3.2rem;
    text-align: left;
    color: #e14140;
    margin-bottom: 1.5rem;
    position: relative;
}

.edit-area a[target="_blank"] {
    padding-right: 2rem;
    display: inline-block;
    position: relative;
}

.edit-area a[target="_blank"]::after {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    background: url("../../img/index/external.svg") no-repeat center / 100% auto;
    filter: brightness(0) saturate(100%) invert(27%) sepia(85%) saturate(1590%) hue-rotate(337deg) brightness(103%) contrast(84%);
    padding-top: 3rem;
}

.common-btn.type01 {
    width: 20.7rem;
    height: 5.1rem;
    border-radius: 25.5px;
    background: #e14140;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease-in;
    margin: 0 auto 8rem;
    cursor: pointer;
    @media screen and (max-width: 767px) {
        margin: 0 auto;
    }
}
.edit-area.works .common-btn.type01 a.cover {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.common-btn.type01 span {
    font-family: var(--noto);
    font-weight: 500;
    font-size: 1.8rem;
    text-align: center;
    color: #fff;
    line-height: 1;
    @media screen and (max-width: 767px) {
        font-size: 1.6rem;
    }
}

.common-btn.type01:hover {
    opacity: 0.75;
}
