﻿.dialog-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.8); /* 白半透明なオーバーレイ */
    /*backdrop-filter: blur(3px);*/ /* 背景をぼかす効果 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.dialog-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 440px;
    max-width: 90vw;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    text-align: center;
    animation: dialog-fade-in 0.3s ease-out;
    border-top: 5px solid;
    resize: both;
    overflow: auto;
    max-height: 80vh;
}

    .dialog-card.theme-info {
        border-color: #00BCD4;
    }

    .dialog-card.theme-question {
        border-color: #28a745;
    }

    .dialog-card.theme-warning {
        border-color: #ffc107;
    }

    .dialog-card.theme-error {
        border-color: #dc3545;
    }

@keyframes dialog-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dialog-icon-container {
    padding-top: 2rem;
}

.icon-svg {
    width: 80px;
    height: 80px;
}

    .icon-svg .path-circle {
        stroke-dasharray: 157;
        stroke-dashoffset: 157;
        stroke-width: 2;
        animation: draw-circle 0.7s ease-out forwards;
    }

    .icon-svg .path-check, .icon-svg .path-cross {
        stroke-dasharray: 50;
        stroke-dashoffset: 50;
        stroke-width: 3;
        stroke-linecap: round;
        animation: draw-path 0.5s 0.5s ease-out forwards;
    }

    .icon-svg .path-question, .icon-svg .path-warning {
        color: inherit;
        opacity: 0;
        animation: show-symbol 0.3s 0.7s ease-out forwards;
    }

.theme-info .icon-svg .path-circle, .theme-info .icon-svg .path-check {
    stroke: #00BCD4;
}

.theme-question .icon-svg .path-circle {
    stroke: #28a745;
}

.theme-question .icon-svg .path-question {
    color: #28a745;
}

.theme-warning .icon-svg .path-circle {
    stroke: #ffc107;
}

.theme-warning .icon-svg .path-warning {
    color: #ffc107;
}

.theme-error .icon-svg .path-circle, .theme-error .icon-svg .path-cross {
    stroke: #dc3545;
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-path {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes show-symbol {
    to {
        opacity: 1;
    }
}

.dialog-body {
    padding: 1rem 2rem;
    flex-grow: 1;
    overflow-y: auto;
}

    .dialog-body h3 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #333;
        margin: 0.5rem 0;
    }

    .dialog-body p {
        color: #6c757d;
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        word-break: break-word;
    }

.dialog-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

    .dialog-footer button {
        min-width: 100px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: all 0.2s;
    }

    .dialog-footer .btn-primary {
        background-color: #00BCD4;
        color: white;
    }

        .dialog-footer .btn-primary:hover {
            background-color: #0194a8;
        }

    .dialog-footer .btn-secondary {
        background-color: #e9ecef;
        color: #495057;
    }

        .dialog-footer .btn-secondary:hover {
            background-color: #dee2e6;
        }
