/* html/css/popup_notice.css */
.popup-notice-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--popup-notice-overlay-background);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.popup-notice-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-notice-content {
    background: var(--popup-notice-content-background-color);
    width: calc(100% - 32px);
    max-width: 512px;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow:var(--popup-notice-content-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: popup-slide-in 0.3s ease-out;
}

.popup-notice-close {
    width:24px;
    aspect-ratio:1/1;
    cursor: pointer;
    position: absolute;
    top: 3px;
    right:16px;
    z-index: 10;
    border-radius: 50px;
    background-color: var(--popup-notice-close-background-color);
    box-shadow:  var(--popup-notice-close-content-shadow);
    transition: background-color 0.2s;
}
.popup-notice-close:hover {
    background-color: var(--popup-notice-close-hover-background-color);
}
.popup-notice-close .icon_close{
    display: flex;
    width:100%;
    height:100%;
    border-radius: 50px;
    position: relative;
}

.popup-notice-close  .icon_close::before,
.popup-notice-close  .icon_close::after{
    content: '';
    width: 14px;
    height: 2px;
    background-color: var(--popup-notice-icon-close-background-color);
    position: absolute;
    top:calc(50% - 1px);
    left: 5px;
    transform: rotate(45deg) ;
}
.popup-notice-close .icon_close::after{
    transform: rotate(-45deg);
}
.popup-notice-title {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: bold;
    margin: 0 0 16px 0;
    padding-bottom: 16px;
    border-bottom: var(--popup-notice-title-border);
}

.popup-notice-body {
    padding:32px 16px 24px;
    overflow-y: auto;
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--popup-notice-body-text-color);
}

.popup-notice-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.popup-notice-footer {
    border-top: var(--popup-notice-footer-border);
    padding: 16px;
    background: var(--popup-notice-footer-background-color);
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.popup-notice-label {
    cursor: pointer;
    font-size: 13px;
    color: var(--popup-notice-label-text-color);
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.popup-notice-label input {
    margin-right: 6px;
    transform: scale(1.2);
}

@keyframes popup-slide-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}