/* 画像エリア */
.up-d_production-img-area {
    margin-bottom: 3rem;
    border-radius: 10px;
    background: rgb(243, 244, 246);
    -webkit-box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    position: relative;

    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
}

/* スライド群（高さが潰れないように） */
.up-d_img-slides {
    height: 400px;
    position: relative;
}

/* 各スライド：重ねて、activeだけ表示 */
.up-d_slide {
    height: 100%;
    opacity: 0;
    pointer-events: none;
    position: absolute;

    inset: 0;
}

.up-d_slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    /* activeだけ通常フローに戻して高さを確保 */
}

.up-d_slide a {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* 画像 */
.up-d_slide img {
    width: auto;
    height: 100%;
    display: block;
    -o-object-fit: contain;
    object-fit: contain;
}

/* ボタン */
.up-d_production-btn-area,
[data-element-id] .up-d_production-btn-area>div[data-collection-list-content] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;

    gap: 12px;
}

.up-d_production-btn {
    width: 105px;
    height: 105px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-align: center;
    align-items: center;
    -ms-flex-align: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    overflow: hidden;
    padding: 0.5em;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-weight: 500;
    line-height: 1.5;
    border: 2px solid #d7dbe3;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    -webkit-transition: 0.5s;
    transition: 0.5s;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    aspect-ratio: 1 / 1;
}

.up-d_production-btn-inner {
    width: 100%;
    display: -webkit-box;
    -webkit-box-flex: 1;
    -webkit-box-orient: vertical;
    -ms-flex-positive: 1;
    flex-grow: 1;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;

    line-clamp: 4;
    -webkit-line-clamp: 4;
}

.up-d_production-btn.is-active {
    border-color: rgb(59, 130, 246);
    background: rgb(239 246 255);
}

.up-d_production-btn:hover {
    border-color: rgb(59, 130, 246);
}
