/* mordal */
.cmp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
}

.cmp-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 28, 28, 0.8);
    cursor: pointer;
}

.cmp-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 375px;
    max-height: 90vh;
    background: #FFF;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.cmp-modal__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cmp-modal__header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: #FFF;
    position: relative;
    flex-shrink: 0;
}

.cmp-modal__inner {
    display: flex;
    padding: 12px 40px;
    align-items: center;
    flex: 1;
}

.cmp-modal__title {
    flex: 1;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: var(--font-S);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.cmp-modal__close {
    position: absolute;
    right: 0;
    top: 10px;
    display: flex;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cmp-modal__close:hover {
    opacity: 0.7;
}

.cmp-modal__main {
    display: flex;
    padding: 0 16px 16px;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cmp-modal__list {
    display: flex;
    flex-direction: column;
    background: #FFF;
}

.cmp-modal__item {
    display: flex;
    padding: 6px 8px;
    align-items: center;
    gap: 9px;
}

.cmp-modal__brand-img {
    width: 60.632px;
    height: 60.632px;
    flex-shrink: 0;
    object-fit: contain;
}

.cmp-modal__item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.cmp-modal__brand-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
}

.cmp-modal__brand-points {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px;
}

.cmp-modal__points-gray {
    color: #656565;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

.cmp-modal__points-red-num {
    color: #BF0000;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.cmp-modal__points-red {
    color: #BF0000;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

/* モーダルアニメーション */
.cmp-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cmp-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.cmp-modal__dialog {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cmp-modal.is-active .cmp-modal__dialog {
    transform: scale(1);
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
    .cmp-modal__dialog {
        max-width: 500px;
    }
}

/* ========== モーダル END ========== */