@import url(sanitize.css);

body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 0 20px 20px;
    max-width: 1200px;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

h1 {
    margin-top: 10px;
    margin-bottom: 0;
}

h2 {
    margin: -8px 0 10px;
}

#calendar {
    width: 400px;
}

.controls {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#time-selector {
    margin: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

#start-time, #end-time {
    padding: 8px;
    font-size: 1.1em;
    width: 100px;
}

.add-button {
    margin-top: 0;
    padding: 10px 50px;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
}

#result {
    width: 100%;
    height: 150px;
    margin-top: 0;
    font-size: 1.3em;
    padding: 10px;
}

.copy-button {
    margin-top: 15px;
    padding: 12px 40px;
    font-size: 1.2em;
    cursor: pointer;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
}

.flatpickr-day {
    font-size: 16px;
}

hr {
    margin: 50px 0 30px;
}

footer {
    text-align: center;
}

.weekend, .holiday {
    color: red;
}

/* カレンダーの曜日と日付の色設定 */
/* 基本の曜日の色を黒に設定 */
.flatpickr-calendar .flatpickr-weekday {
    color: #000000 !important;
}

/* 土曜日の色を青に設定 */
.flatpickr-calendar .flatpickr-weekday:last-child,
.flatpickr-calendar .saturday:not(.holiday) {
    color: #0066cc !important;
}

/* 日曜日の色を赤に設定 */
.flatpickr-calendar .flatpickr-weekday:first-child,
.flatpickr-calendar .sunday {
    color: #ff0000 !important;
}

/* 祝日の色を赤に設定（優先度を上げる） */
.flatpickr-calendar .flatpickr-day.holiday,
.flatpickr-calendar .holiday {
    color: #ff0000 !important;
    font-weight: bold;
}

@media (max-width: 600px) {
    #calendar, .controls {
        width: 100%;
    }
    
    #start-time, #end-time {
        width: 90px;
    }
}