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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.simulator-section {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.controls-panel {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.value-display {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.control-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.preview-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.monitor-frame {
    background: #222;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.screen {
    background: white;
    padding: 2rem;
    border-radius: 5px;
    min-height: 400px;
    transition: filter 0.3s ease;
}

.content-sample h2 {
    color: #333;
    margin-bottom: 1rem;
}

.content-sample p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.code-sample {
    background: #f8f8f8;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.code-sample pre {
    margin: 0;
}

.code-sample code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #333;
}

.color-blocks {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.color-block {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.color-block:hover {
    transform: scale(1.1);
}

.eye-strain-indicator {
    text-align: center;
}

.eye-strain-indicator h3 {
    margin-bottom: 1rem;
    color: #555;
}

.strain-meter {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.strain-bar {
    height: 100%;
    background: linear-gradient(to right, #4ade80, #fbbf24, #ef4444);
    width: 50%;
    transition: width 0.5s ease;
}

.strain-level {
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
}

.recommendations-section {
    margin-bottom: 3rem;
}

.recommendations-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rec-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.rec-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.rec-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.rec-card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.apply-preset {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.apply-preset:hover {
    background: #5a67d8;
}

.tips-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.tips-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip-content h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.tip-content p {
    color: #666;
    font-size: 0.95rem;
}

.export-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 3rem;
}

.export-section h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.export-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-button, .secondary-button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-button {
    background: #667eea;
    color: white;
}

.primary-button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.secondary-button {
    background: #e5e7eb;
    color: #4b5563;
}

.secondary-button:hover {
    background: #d1d5db;
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    border-top: 1px solid #e5e7eb;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .simulator-section {
        grid-template-columns: 1fr;
    }

    .recommendation-cards {
        grid-template-columns: 1fr;
    }

    .tips-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .export-controls {
        flex-direction: column;
    }

    .primary-button, .secondary-button {
        width: 100%;
    }
}