.detail_page {
    display: grid;
    gap: 7rem;
    max-width: 1350px;
    margin: 0 auto 8rem auto;
    padding: 0 8%;
}

.page_title {
    font-size: 3rem;
    line-height: 1.5;
}

.description {
    line-height: 2;
}

.description h3 {
    font-size: 1.7rem;
}

.description a {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
    padding: 0.7rem;
    border-radius: 10px;
    background: var(--base-color);
    box-shadow: 5px 5px 10px var(--shadow-darkcolor), -5px -5px 8px var(--shadow-brightcolor);
    width: fit-content;
    font-size: 1.4rem;
}

.box_1 a,
.box_2 a,
.box_3 a,
.box_4 a {
    position: relative;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.box_1 a img,
.box_2 a img,
.box_3 a img,
.box_4 a img {
    display: block;
    transition: filter 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時に内側に押し込まれる */
.box_1 a:hover,
.box_2 a:hover,
.box_3 a:hover,
.box_4 a:hover {
    background: none;
    box-shadow: inset 2px 2px 4px var(--shadow-darkcolor), inset -2px -2px 4px var(--shadow-brightcolor) !important;
    filter: brightness(0.9) contrast(1.05);
}

/* クリック時にさらに押し込まれる */
.box_1 a:active,
.box_2 a:active,
.box_3 a:active,
.box_4 a:active {
    box-shadow:
        inset 0 4px 6px var(--dark-color),
        inset 0 1px 8px var(--dark-color) !important;
    transform: scale(0.95);
}

.image-wrapper {
    width: fit-content;
    height: fit-content;
}

.image-wrapper img {
    max-width: 450px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow:
        0px -8px 100px 5px var(--bright-color),
        0px 8px 15px 5px var(--dark-color);
}

.box_1,
.box_2,
.box_3,
.box_4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    align-items: center;
}

@media (max-width:768px) {
    .box_1, .box_2, .box_3, .box_4 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .box_3 .description {
        grid-area: description;
    }

    .box_3 .image-wrapper {
        grid-area: image;
    }

    .box_3 {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "description";
    }

    .page_title {
        font-size: 2rem !important;
    }

    .icon_label {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .icon_label p {
        font-size: 0.8rem;
        padding: 0.8rem;
        white-space: nowrap;
    }
}