.yk-qv-lock {
    overflow: hidden;
}

.yk-qv-image-wrap {
    position: relative;
}

.yk-qv-trigger {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 170px;
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 24px;
    background: rgba(0,0,0,.65);
    color: #fff;
    letter-spacing: .04em;
    box-shadow: 0 3px 8px rgba(0,0,0,.25);
    cursor: pointer;
    opacity: 0;
    transform: translateY(5px);
    transition: .18s ease;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
}

.yk-qv-image-wrap:hover .yk-qv-trigger, .yk-qv-trigger:focus-visible {
    opacity: 1;
    transform: none;
}

.yk-qv-trigger__icon {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 18px;
}

.yk-qv-trigger__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yk-qv-trigger__icon-black {
    display: none !important;
}

.yk-qv {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    opacity: 0;
    font-family: Arial, "Noto Sans JP", sans-serif;
    transition: opacity .22s ease;
}

.yk-qv.is-visible {
    display: block;
}

.yk-qv.is-open {
    opacity: 1;
}

.yk-qv__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.42);
}

.yk-qv__dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(850px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow: visible;
    border-radius: 5px;
    background: #fff;
    color: #202020;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transform: translate(-50%, calc(-50% + 8px));
    transition: transform .22s ease;
    box-sizing: border-box;
}

.yk-qv__scroll {
    max-height: calc(100vh - 40px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 5px;
    background: #fff;
}

.yk-qv__dialog *, .yk-qv__dialog *::before, .yk-qv__dialog *::after {
    box-sizing: border-box;
}

.yk-qv.is-open .yk-qv__dialog {
    transform: translate(-50%, -50%);
}

.yk-qv__close {
    position: absolute;
    z-index: 5;
    top: -20px;
    right: -20px;
    left: auto;
    display: block;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: #485064;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    cursor: pointer;
    transform: none;
}

.yk-qv__close::before, .yk-qv__close::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 10px;
    width: 20px;
    height: 2px;
    background: #fff;
}

.yk-qv__close::before {
    transform: rotate(45deg);
}

.yk-qv__close::after {
    transform: rotate(-45deg);
}

.yk-qv__body {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 38px;
    padding: 45px 50px 40px;
    box-sizing: border-box;
}

.yk-qv__loading, .yk-qv__error {
    grid-column: 1/-1;
    min-height: 220px;
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
}

.yk-qv__spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: #485064;
    border-radius: 50%;
    animation: yk-qv-spin .8s linear infinite;
}

@keyframes yk-qv-spin {
    to {
        transform: rotate(360deg);
    }
}

.yk-qv__media {
    min-width: 0;
}

.yk-qv__slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
    box-sizing: border-box;
    touch-action: pan-y;
}

.yk-qv__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .28s ease;
}

.yk-qv__slide {
    flex: 0 0 100%;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.yk-qv__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yk-qv__counter {
    position: absolute;
    left: 50%;
    bottom: 10px;
    min-width: 50px;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(70,70,70,.72);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    text-align: center;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.yk-qv__nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transform: translateY(-50%);
    cursor: pointer;
}

.yk-qv__nav--prev {
    left: 18px;
}

.yk-qv__nav--next {
    right: 18px;
}

.yk-qv__nav::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 14px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #333;
    border-left: 2px solid #333;
}

.yk-qv__nav--prev::before {
    transform: rotate(-45deg);
}

.yk-qv__nav--next::before {
    left: 12px;
    transform: rotate(135deg);
}

.yk-qv__thumbs {
    display: flex;
    gap: 5px;
    margin-top: 9px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.yk-qv__thumbs.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

.yk-qv__thumb {
    flex: 0 0 calc((100% - 25px) / 6);
    width: calc((100% - 25px) / 6);
    aspect-ratio: 1/1;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
}

.yk-qv__thumb.is-active {
    border: 2px solid #485064;
}

.yk-qv__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.yk-qv__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    overflow: hidden;
}

.yk-qv__title {
    margin: 2px 0 10px;
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: .03em;
    font-weight: 500;
}

.yk-qv__price {
    margin: 0;
    font-size: 23px;
    line-height: 1.4;
}

.yk-qv__price small {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 0 -5px;
}

.yk-qv__point {
    margin: 5px 0 0;
    color: #aaa;
    font-size: 14px;
}

.yk-qv__stocks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 6px;
    margin: 18px 0;
    padding: 0;
}

.yk-qv__stock {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 18px;
    background: #eee;
    color: #333;
    font-size: 12px;
    line-height: 1.4;
}

.yk-qv__stock b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    margin: 0;
}

.yk-qv__stock b[data-stock="×"] {
    font-size: 17px;
}

.yk-qv__stock b[data-stock="◯"] {
    /* font-size: 17px; */
}

.yk-qv__stock b[data-stock="△"]{
    /* font-size: 14px; */
}

.yk-qv__packet {
    display: block;
    width: auto;
    max-width: 122px;
    max-height: 28px;
    margin: 0 0 18px;
    object-fit: contain;
    object-position: left center;
}

.yk-qv__description {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 2.0;
    letter-spacing: .02em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    flex: 1 1 auto;
    min-height: 0;
}

.yk-qv__detail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    border-radius: 28px;
    background: #485064;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: opacity .2s;
}

.yk-qv__detail:hover {
    opacity: .82;
}

@media (max-width: 767px) {
    .yk-qv-trigger {
        right: 8px;
        bottom: 8px;
        min-width: 32px;
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 3px;
        background: rgba(255,255,255,.95);
        color: #777;
        opacity: 1;
        transform: none;
        box-shadow: 0 2px 7px rgba(0,0,0,.18);
    }

    .yk-qv-trigger__icon-white {
        display: none !important;
    }

    .yk-qv-trigger__icon-black {
        display: block !important;
    }

    .yk-qv-trigger__text {
        position: absolute;
        width: 1px;
        height: 1px;
        clip: rect(0,0,0,0);
        overflow: hidden;
    }

    .yk-qv__dialog {
        top: 16px;
        bottom: 16px;
        left: 16px;
        width: calc(100vw - 32px);
        max-height: none;
        transform: translateY(8px);
    }

    .yk-qv__scroll {
        height: 100%;
        max-height: none;
    }

    .yk-qv.is-open .yk-qv__dialog {
        transform: none;
    }

    .yk-qv__close {
        position: absolute;
        top: -8px;
        right: -8px;
        left: auto;
        width: 30px;
        height: 30px;
        margin: 0;
        transform: none;
    }

    .yk-qv__close::before, .yk-qv__close::after {
        top: 14px;
        left: 7px;
        width: 16px;
    }

    .yk-qv__body {
        display: block;
        padding: 25px 25px 25px;
    }

    .yk-qv__media {
        margin-bottom: 18px;
    }

    .yk-qv__thumbs {
        gap: 4px;
    }

    .yk-qv__thumb {
        flex-basis: calc((100% - 20px) / 6);
        width: calc((100% - 20px) / 6);
    }

    .yk-qv__title {
        margin-top: 5px;
        font-size: 18px;
    }

    .yk-qv__price {
        font-size: 17px;
    }

    .yk-qv__point {
        margin-bottom: 0px;
    }

    .yk-qv__stocks {
        gap: 7px;
        margin: 17px 0;
    }

    .yk-qv__stock {
        padding: 6px 10px;
        font-size: 11px;
    }

    .yk-qv__stock b {
        width: 16px;
        height: 16px;
        font-size: 12px;
        line-height: 16px;
    }

    .yk-qv__packet {
        margin-bottom: 14px;
    }

    .yk-qv__description {
        margin-bottom: 16px;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.8;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        flex: none;
    }

    .yk-qv__info {
        height: auto !important;
        overflow: visible;
    }

    .yk-qv__detail {
        min-height: 50px;
        font-size: 14px;
    }
}
