/* Modal overlay body scroll lock */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

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

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

.top_box div:first-child {
    display: grid;
    gap: 3rem;
}

.description,
.detail {
    line-height: 2;
}

.icon_label {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-content: center;
    gap: 3rem;
    color: var(--text-color);
    text-align: center;
}

.icon_label p {
    padding: 1rem;
    border-radius: 50px;
    border: 1px solid var(--text-color);
}

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

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

.contents_box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
}

.box_2,
.box_3,
.box_4 {
    display: grid;
    gap: 2rem;
}

.section_box__trigger {
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
}

.box_2 .section_box__trigger,
.box_4 .section_box__trigger {
    cursor: default;
    pointer-events: none;
}

.section_box__trigger img {
    width: 100%;
    height: auto;
    display: block;
}

.section_box__dialog {
    border: none;
    border-radius: 20px;
    padding: 0;
    width: min(90vw, 1200px);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.25);
    overflow: visible;
}

.section_box__dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.section_box__dialog-inner {
    overflow: auto;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem;
    background-color: #fff;
    border-radius: 20px;
    position: relative;
}

.section_box__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--base-color);
    border-radius: 50%;
    border: 1px solid var(--text-color);
    box-shadow: 5px 5px 10px var(--shadow-darkcolor), -5px -5px 8px var(--shadow-brightcolor);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.section_box__close: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);
}

.section_box__close:active {
    box-shadow:
        inset 0 4px 6px var(--dark-color),
        inset 0 1px 8px var(--dark-color) !important;
    transform: scale(0.95);
}

.section_box__dialog-body {
    display: grid;
}

.section_box__unified-content {
    display: flex;
    gap: clamp(1.5rem, 2.5vw, 3rem);
    align-items: center;
}

.section_box__dialog-image {
    flex: 0 0 200px;
}

.section_box__dialog-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.section_box__dialog-text {
    flex: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 1rem;
    color: var(--text-color);
}

.section_box__dialog-text h3 {
    font-size: 1.75rem;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.section_box__dialog-text p {
    white-space: pre-wrap;
    font-size: 1rem;
}






@media (max-width:768px) {
    .contents_box, .top_box, .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: 1rem;
    }

    .icon_label p {
        font-size: 0.8rem;
        padding: 0.8rem;
        line-height: 1rem;
    }

    .section_box__dialog {
        width: 90vw;
    }

    .section_box__dialog-inner {
        padding: 2rem 1.5rem;
    }

    .section_box__unified-content {
        flex-direction: column;
    }

    .section_box__dialog-body {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .section_box__dialog-image {
        width: 100%;
    }

    .section_box__dialog-text p {
        line-height: 1.3;
    }
}