@charset "utf-8";

.detail-group {
    padding: 30px 5.3%;
    color: var(--black);
}

.works-img {
    overflow: hidden; /* これを記述することではみ出た部分を非表示にします。 */
}

.works-annotation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.works-annotation p {
    font-size: 1.4rem;
    background-color: var(--gray);
    width: 31.3%;
    text-align: center;
    padding: 5px 0;
}

.works-name {
    margin-top: 10px;
    font-size: 2.2rem;
    font-weight: 600;
}

.works-region {
    margin-top: 10px;
    font-size: 1.4rem;
}

.detail-list {
    margin-top: 20px;
}

dt {
    font-weight: 400;
}

.detail-list dt {
    margin-top: 20px;
    font-size: 1.4rem;
}

.detail-list dd {
    margin-top: 5px;
    font-size: 1.4rem;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--black);
}

.detail-list dd:last-of-type {
    font-family: "Noto Sans JP";
    line-height: 1.7;
}

.detail-list dd a {
    color: #003f71;
    border-bottom: 1px solid #003f71;
}

.detail-img-group {
    margin-top: 50px;
}

.detail-img-group h3 {
    font-size: 2.6rem;
    font-weight: 600;
    text-align: center;
}

.detail-img {
    margin: 10px auto 0;
}

.back {
    margin-top: 50px;
}

.detail-nav {
    margin: 50px auto 0;
    font-size: 1.4rem;
    font-family: "Noto Sans JP";
    max-width: 375px;
}

.detail-nav a {
    border-bottom: 1px solid var(--black);
}

.detail-nav a:hover {
    opacity: 0.5;
}

.detail-next {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* tb */
@media screen and (min-width: 768px) {
    .detail-group {
        padding: 40px 0;
        width: 85.4%;
        margin: 0 auto;
    }

    .works-contents {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .works-img {
        width: 40%;
    }

    .works-txt-group {
        width: 50%;
    }

    .works-annotation {
        margin-top: 0;
    }

    .works-region {
        font-size: 1.6rem;
    }

    .detail-list {
        margin-top: 30px;
    }

    .detail-list dt {
        margin-top: 30px;
        font-size: 1.6rem;
    }

    .detail-list dd {
        margin-top: 10px;
        font-size: 1.6rem;
    }

    .detail-img-group {
        margin-top: 60px;
        display: flex;
        align-items: start;
        justify-content: space-between;
    }

    .front {
        width: 50%;
        max-width: 324px;
    }

    .detail-img-group h3 {
        font-size: 3rem;
    }

    .detail-img {
        margin: 20px auto 0;
        width: 100%;
    }

    .back {
        margin-top: 0;
        width: 50%;
        max-width: 324px;
    }

    .detail-nav {
        margin: 60px auto 0;
        font-size: 1.6rem;
    }

    .detail-next {
        margin-top: 40px;
    }
}

/* pc */
@media screen and (min-width: 1280px) {
    .detail-group {
        padding: 50px 0;
        width: 57.2%;
        max-width: 1100px;
    }

    .works-img {
        width: 54.5%;
        max-width: 600px;
    }

    .works-txt-group {
        width: 38.1%;
        max-width: 420px;
    }

    .works-annotation p {
        width: 32%;
    }

    .works-name {
        font-size: 2.4rem;
    }

    .detail-list {
        margin-top: 40px;
    }

    .detail-list dt {
        margin-top: 40px;
    }

    .detail-list dd {
        margin-top: 20px;
    }

    .detail-img-group {
        margin-top: 70px;
    }

    .front {
        max-width: 550px;
    }

    .detail-img-group h3 {
        font-size: 3.4rem;
    }

    .detail-img {
        margin: 30px auto 0;
        min-height: 80vh;
        max-height: 80vh;
    }

    .back {
        max-width: 550px;
    }

    .detail-nav {
        margin: 70px auto 0;
    }

    .detail-next {
        margin-top: 50px;
    }
}