@charset "utf-8";

/* マウスオーバー設定===================== */
.product__item {
    cursor: pointer;
    width: 100%;
}

.product__imgWrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3 / 2;
}

.product__imgWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product__item:hover img {
  transform: scale(1.1);
}


/* ローカルナビ================== */
.local__nav {
    display: none;
}
/* ローカルナビ＠PC表示================== */
@media screen and (min-width: 769px) {
    .local__nav {
        display: flex;
        font-size: 1.2rem;
        font-weight: 400;
        gap: 16px;
        margin: 20px 0 0 20px;
    }
}

/* メインコンテンツ================== */
.modal__content {
    margin-top: 64px;
    padding: 16px;
}

.product__scroll {
    display: none;
}

.product__slider-main img {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.product__slider-main p {
    margin-top: 8px;
    font-size: 1.2rem;
}

.product__item {
    position: relative;
}

.product__item::after {
    content: '';
    position: absolute;
    background-image: url(../images/common/expansion.svg);
    width: 16px;
    height: 16px;
    z-index: 10;
    right: 12px;
    bottom: 36px;
    opacity: 0.6;
}

.product__slider-nav {
    margin: 16px auto;
}

.product__slider-nav li {
    max-width: 32vw;
    margin: 0 8px;
}

.product__slider-nav img {
    border-radius: 2px;
}

.product__topicWrap {
    margin: 40px 0 64px;
}

.product__topic {
    font-size: 2rem;
    font-weight: 600;
}

.product__txt,
.product__topicWrap dd {
    margin-top: 4px;
    color: var(--primary-black);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.8;
}

.product__topicWrap dt {
    margin-top: 24px;
    font-size: 1.6rem;
    font-weight: 600;
}

.back {
    position: relative;
    width: 100%;
    padding: 24px;
    background-color: var(--primary-navy);
    text-align: center;
    color: var(--primary-white);
    font-size: 1.6rem;
    font-weight: 600;
}

.back::after {
    content: '';
    display: inline-block;
    width: 9px;
    height: 14px;
    background-image: url(../images/common/arrow.svg);
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(700%, -40%);
}

/* ローカルナビ＠PC表示================== */
@media screen and (min-width: 769px) {
    .modal__content {
        display: flex;
        flex-direction: row-reverse;
        margin-top: 64px;
        padding: 0px 8.3%;
        min-height: auto;
        gap: 1.5vw;
    }

    .product__scroll {
        display: flex;
        width: 24px;
        height: 24px;
        transform-origin: center;
        transform: rotate(90deg);
        position: relative;
    }

    .product__scroll::after {
        content: '';
        position: absolute;
        top: -8px;
        left: 50px;
        background-color: var(--primary-blue);
        width: 2px;
        height: 32px;
        transform: rotate(90deg);
    }

    .product__item {
        margin-bottom: 32px;
    }

    .product__item::after {
        width: 32px;
        height: 32px;
    }

    .product__slider-nav {
        display: none;
    }

    .product__topicWrap {
        width: 80%;
        min-width: 320px;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        position: sticky;
        top: 84px;
        left: 0;
        overflow-y: auto;
    }

    .product__txt,
    .product__topicWrap dd {
        color: var(--primary-black);
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 1.8;
    }
}

/* モーダル画像========================== */
.modal__item {
    z-index: -10;
    opacity: 0;
    transition: opacity 0.4s;
    width: 0;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 2px 4px 12px 4px rgba(0, 0, 0, 0.04);
}

.modal__item.open {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000000;
    opacity: 1;
    width: auto;
    max-width: 80vw;
    max-height: 80vh;
}

.modal__content::after {
    display: none;
    content: '';
    background-color: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100vh;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000001;
}

.modal__content.open::after {
    display: block;
}

/* モーダル内の画像 */
.modal__item img {
    max-width: 80vw;
    max-height: 80vh;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* closeボタン */
.modal__close {
    display: none;
    width: 24px;
    height: 24px;
    position: absolute;
    z-index: 100000001;
    cursor: pointer;
    right: 8px;
    top: -40px;
}

.modal__close.open {
    display: block;
}

.modal__close img {
    width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
  .modal__item.open {
    width: 95vw;
    max-height: 95vh;
    padding: 0;
    border-radius: 0;
  }
}

