/* Modern Tech Design - White Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors */
    --primary: #111827;
    --primary-dark: #000000;
    --accent-blue: #3b82f6;

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Neutral Colors */
    --white: #ffffff;
    --surface: #fafafa;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;

    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--white);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Opening Screen */
.opening-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.8s ease-out 2s forwards;
}

.opening-logo {
    max-width: 500px;
    width: 80%;
    height: auto;
    animation: logoFadeIn 0.8s ease-out;
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.opening-screen.hidden {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    margin-bottom: 32px;
    text-align: center;
}

.header-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Coming Soon Section */
.coming-soon-section {
    padding: 80px 0 120px;
    text-align: center;
}

.coming-soon-content {
    max-width: 700px;
    margin: 0 auto;
}

.coming-soon-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.coming-soon-message {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.coming-soon-submessage {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Title */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

/* Input Section */
.input-section {
    background: transparent;
    padding: 0;
    margin-bottom: 48px;
}

/* Consent Group */
.consent-group {
    margin-bottom: 20px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.consent-checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.notice-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.notice-link:hover {
    text-decoration: none;
}

a.notice-link {
    color: var(--primary);
    text-decoration: underline;
}

a.notice-link:hover {
    text-decoration: none;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.url-input {
    width: 100%;
    padding: 12px 0;
    font-size: 0.938rem;
    border: none;
    border-bottom: 2px solid var(--border);
    transition: all 0.2s;
    font-family: ui-monospace, 'SF Mono', 'Courier New', monospace;
    background: transparent;
}

.url-input:focus {
    outline: none;
    border-bottom-color: var(--primary);
    background: transparent;
}

.btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.938rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--text-tertiary);
}

/* Loading */
.loading {
    text-align: center;
    margin-top: 16px;
    padding: 16px;
}

.spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Error Message */
.error-message {
    background: transparent;
    color: var(--danger);
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--danger);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.3s ease-out;
}

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

/* Total Score */
.total-score-card {
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.score-circle {
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.04em;
}

.score-max {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-left: 2px;
    font-weight: 500;
}

.score-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.meta-item {
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.meta-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.813rem;
    min-width: 72px;
}

.meta-value {
    color: var(--text-primary);
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 0.813rem;
    word-break: break-all;
    flex: 1;
}

/* Notice Box */
.notice-box {
    background: var(--surface);
    border-left: 3px solid var(--text-tertiary);
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.notice-box p {
    font-size: 0.813rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.notice-box strong {
    color: var(--text-primary);
}

/* Category Scores */
.category-scores {
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
}

.category-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-card {
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card:last-child {
    border-bottom: none;
}

.category-card:hover {
    background: var(--surface);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 6px;
    border-bottom: 1px solid transparent;
}

.category-card h3 {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    flex: 1;
    letter-spacing: -0.01em;
}

.category-card .score {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0;
    min-width: 60px;
    text-align: right;
    letter-spacing: -0.02em;
}

.category-card .score.high {
    color: var(--success);
}
.category-card .score.medium {
    color: var(--accent-blue);
}
.category-card .score.low {
    color: var(--warning);
}
.category-card .score.very-low {
    color: var(--danger);
}

/* Details Section */
.details-section {
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
}

.detail-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.detail-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-category h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.detail-item {
    background: transparent;
    padding: 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.detail-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.detail-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.813rem;
}

.detail-item-score {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.813rem;
}

.detail-item-data {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.detail-item-data code {
    background: transparent;
    padding: 0 4px;
    font-family: ui-monospace, 'SF Mono', monospace;
    font-size: 0.688rem;
    color: var(--text-primary);
}

.detail-item-data strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 24px 0;
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-content p {
    margin-bottom: 2px;
    font-size: 0.813rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Privacy Policy Page */
.privacy-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.privacy-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
    letter-spacing: -0.02em;
}

.privacy-content {
    margin-bottom: 48px;
}

.privacy-intro {
    font-size: 0.938rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.privacy-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.privacy-item:last-of-type {
    border-bottom: none;
}

.privacy-item h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.privacy-item p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.privacy-item ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.privacy-item li {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.privacy-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
}

.contact-info {
    font-family: ui-monospace, 'SF Mono', monospace;
    color: var(--text-primary);
    font-weight: 500;
}

.privacy-date {
    font-size: 0.813rem;
    color: var(--text-tertiary);
    text-align: right;
    margin-top: 32px;
}

.back-link-container {
    text-align: center;
    margin: 32px 0;
}

.back-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.back-link:hover {
    background: var(--primary-dark);
}

/* Help Icon */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    font-size: 0.688rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.help-icon:hover {
    background: var(--primary);
    transform: scale(1.1);
}

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

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease-out;
    z-index: 1001;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-logo {
        max-width: 400px;
    }

    .coming-soon-section {
        padding: 60px 0 80px;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .coming-soon-message {
        font-size: 1rem;
    }

    .header-top {
        padding: 0 16px;
    }

    .header h1 {
        font-size: 1.5rem;
        padding: 0 16px;
    }

    .subtitle {
        font-size: 0.875rem;
        padding: 0 16px;
    }

    .score-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .score-value {
        font-size: 2rem;
    }

    .meta-item {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }

    .meta-label {
        min-width: auto;
    }

    .header-top {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .limited-badge {
        font-size: 0.688rem;
        padding: 3px 10px;
    }

    .category-card h3 {
        font-size: 0.813rem;
    }

    .category-card .score {
        font-size: 1.25rem;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        max-width: 300px;
    }

    .coming-soon-section {
        padding: 40px 0 60px;
    }

    .coming-soon-title {
        font-size: 1.75rem;
    }

    .coming-soon-message {
        font-size: 0.938rem;
    }

    .coming-soon-submessage {
        font-size: 0.875rem;
    }
}
