.yc-yamashita-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.yc-yamashita-popup-overlay.is-active {
    display: flex;
}

.yc-yamashita-popup-overlay.is-visible {
    opacity: 1;
}

.yc-yamashita-popup-overlay.is-hidden {
    display: none;
    opacity: 0;
}

.yc-yamashita-popup {
    position: relative;
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    color: #000000;
    border: 2px solid var(--color-pink, #ec7f92);
    border-radius: 16px;
    padding: 34px 28px 30px;
}

.yc-yamashita-popup-title {
    margin: 0 0 18px;
    color: var(--color-pink, #ec7f92);
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.yc-yamashita-popup-image {
    display: block;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    object-fit: cover;
}

.yc-yamashita-popup-image-placeholder {
    border: 1px solid var(--color-pink, #ec7f92);
    background: #ffffff;
}

.yc-yamashita-popup-text {
    margin: 0;
    color: #000000;
    font-size: 1rem;
    line-height: 1.9;
}

.yc-yamashita-popup-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--color-pink, #ec7f92);
    color: #ffffff;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    padding: 0;
}

.yc-yamashita-popup-close::before,
.yc-yamashita-popup-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
    transform-origin: center;
}

.yc-yamashita-popup-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.yc-yamashita-popup-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.yc-yamashita-popup-close:focus-visible {
    outline: none;
}

@media (max-width: 575px) {
    .yc-yamashita-popup {
        padding: 28px 18px 24px;
    }

    .yc-yamashita-popup-title {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }

    .yc-yamashita-popup-image {
        width: 112px;
        height: 112px;
        margin-bottom: 16px;
    }

    .yc-yamashita-popup-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}
