* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
    line-height: 1.8;
}

.demo-button {
    background-color: #d4af37;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.demo-button:hover {
    background-color: #b8941f;
}

/* 旧システム用スタイル (modal-domain.js用) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.show .modal-content {
    animation: slideUp 0.3s ease-out forwards;
}

/* 新システム用スタイル (modal.js用) */
.modal-hidden {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

.modal-visible {
    display: flex !important;
    visibility: visible;
    opacity: 1;
}

.modal-visible.show {
    opacity: 1;
}

.modal-visible.show .modal-content.show {
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(30px);
    opacity: 0;
}

.modal-header {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: white;
    padding: 24px 30px;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    line-height: 1;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 30px;
}

.section {
    margin-bottom: 32px;
}

.section:last-child {
    margin-bottom: 0;
}

.section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid #d4af37;
    font-weight: 600;
}

.section p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.section p:last-child {
    margin-bottom: 0;
}

.highlight-box {
    background: #fffbf0;
    border-left: 3px solid #d4af37;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 4px;
}

.domain-breakdown {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.domain-item {
    flex: 1;
    min-width: 180px;
    background: #f8f9fa;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.domain-item strong {
    color: #d4af37;
    font-size: 16px;
    display: block;
    margin-bottom: 6px;
}

.domain-item span {
    color: #666;
    font-size: 14px;
}

.shield-icon {
    text-align: center;
    font-size: 48px;
    margin: 20px 0;
    color: #d4af37;
    display: none;
}

@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px 24px;
    }

    .modal-header h2 {
        font-size: 19px;
        padding-right: 30px;
    }

    .modal-body {
        padding: 24px 20px;
    }

    .section h3 {
        font-size: 16px;
    }

    .domain-item {
        min-width: 100%;
    }
}
