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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    color: #4a90e2;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
}

.subtitle {
    font-size: 1.2em;
    color: #a0a0a0;
}

.controls {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.control-group:last-child {
    margin-bottom: 0;
}

label {
    font-weight: 500;
    color: #b0b0b0;
    min-width: 120px;
}

input[type="number"],
input[type="datetime-local"],
select {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus {
    outline: none;
    border-color: #4a90e2;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

input[type="range"] {
    width: 200px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90e2;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

button {
    padding: 8px 16px;
    background: #4a90e2;
    border: none;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
}

button:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.5);
}

button:active {
    transform: translateY(0);
}

.custom-location {
    padding-left: 20px;
    border-left: 3px solid #4a90e2;
}

.star-chart-container {
    position: relative;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#star-chart {
    width: 100%;
    height: 600px;
    border-radius: 10px;
    cursor: grab;
    background: radial-gradient(ellipse at center, #0a1929 0%, #000511 100%);
}

#star-chart:active {
    cursor: grabbing;
}

.info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.info-panel h3 {
    color: #4a90e2;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#info-content {
    font-size: 0.9em;
    line-height: 1.6;
}

#info-content p {
    margin-bottom: 5px;
}

.instructions {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.instructions h3 {
    color: #4a90e2;
    margin-bottom: 15px;
}

.instructions ul {
    list-style: none;
    padding-left: 0;
}

.instructions li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.instructions li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: #4a90e2;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    font-size: 0.9em;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    label {
        min-width: auto;
    }
    
    input[type="range"] {
        width: 100%;
    }
    
    #star-chart {
        height: 400px;
    }
    
    .info-panel {
        position: static;
        margin-top: 20px;
        width: 100%;
    }
}

/* アニメーション */
@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* プリント時のスタイル */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .controls,
    .instructions,
    footer {
        display: none;
    }
    
    #star-chart {
        border: 1px solid black;
    }
}