@charset "UTF-8";

/* =============
header
============== */
.header {
    margin-top: 0;
}

/* =============
design
============== */
.section--design {
    padding: 64px 4.3%;
}

.design {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.design__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    justify-content: center;
}

.design__list img {
    width: calc(50% - 16px);
    aspect-ratio: 160 / 141;
    object-fit: cover;
    cursor: pointer;
}

.design__list img:last-of-type {
    display: none;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 30px;
}

.modal.is-active {
    display: flex;
}

.modal__content {
    background: #E3DED4;
    padding: 60px 40px 20px;
    border-radius: 40px;
    position: relative;
    max-width: 90%;
    text-align: center;
}

.modal__main-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    display: block;
    margin: 0 auto 16px;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    width: 30px;
    transition: opacity 0.3s;
}

.modal__close:hover {
    opacity: 0.7;
}

.modal__info {
    text-align: left;
    margin-top: 16px;
    width: 100%;
}

.modal__tag {
    display: inline-block;
    border: 1px solid #383431;
    border-radius: 20px;
    padding: 4px 16px;
    background: #fff;
    margin-bottom: 8px;
}

/* .pagenation */
.pagenation {
    padding: 32px 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
}

.pagenation__item {
    line-height: 1;
}

.pagenation__item a {
    display: block;
    width: 24px;
    height: 24px;
    padding: 4px 8px 6px 8px;
    text-align: center;
    color: #D18063;
    font-size: 1.6rem;
}

.pagenation__item--current a {
    background-color: #D18063;
    color: #fff;
}

.pagenation__item a:active {
    background-color: #b0664d;
    color: #fff;
}

.pagenation__item--next a {
    position: relative;
}

.pagenation__item--next a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 12px;
    background-image: url(../images/pagenation_arrow.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* design pc */
@media screen and (min-width: 769px) {
    .section--design {
        padding: 96px 9.7%;
    }

    .design__list {
        gap: 24px;
        margin-top: 32px;
    }

    .design__list img {
        width: calc(33.333% - 32px);
    }

    .design__list img:last-of-type {
        display: block;
    }

}