body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 10px;
    height: 100vh;
}

.calender-container-parent{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.calendar-container {
    width: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 636px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #007bff;
    color: #fff;
}

.calendar-header button {
    background: #0056b3;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.calendar-header button:hover {
    background: #003f7f;
}

.calendar-header select {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: #fff;
    color: #333;
    font-size: 16px;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    padding: 20px;
}

.day {
    border: 1px solid #ccc;
    padding: 10px;
    position: relative;
    background: #f9f9f9;
    border-radius: 5px;
    transition: background 0.3s;
    min-height: 50px;
}

.day:hover {
    background: #e9e9e9;
}

.event {
    background-color: var(--event-color, #ffcc00);
    padding: 5px;
    margin-top: 5px;
    border-radius: 3px;
    cursor: pointer;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    z-index: 1000;
}

.popup.active {
    display: block;
}

/* 暗い背景のスタイル */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* ポップアップの後ろに表示 */
    display: none; /* 初期状態では非表示 */
}

.overlay.active {
    display: block; /* ポップアップが表示されるときに表示 */
}

#color-picker {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.3s;
}

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

.color-option input {
    display: none;
}

.color-option:has(input:checked) {
    border: 2px solid #000;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-group button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-group button:hover {
    background: #0056b3;
}

.form-group button[type="button"] {
    background: #6c757d;
}

.form-group button[type="button"]:hover {
    background: #5a6268;
}

.form-group #delete-event {
    background: #dc3545;
}

.form-button {
    /* 右寄せ */
    text-align: right;
}

/* 予定一覧のスタイル */

#production-events-parent{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

#production-events {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
}

#production-events h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #333;
}

#production-events-list {
    list-style: none;
    padding: 0;
}

#production-events-list li {
    padding: 10px;
    margin-bottom: 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

#production-events-list li:hover {
    background-color: #f1f1f1;
}


/* 過去の予定のスタイル */
.past-event {
    color: #ccc;
    text-decoration: line-through;
}

/* タグ選択のスタイル */
.select-container {
    position: relative;
    display: inline-block;
    width: 200px;
}

.select-container select {
    width: 100%;
    padding: 10px;
    border: 2px solid #007bff;
    border-radius: 20px;
    background-color: white;
    color: #007bff;
    font-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.select-container select:hover {
    border-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.select-container::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #007bff;
}

/* 今日の日付をハイライトするスタイル */
.today {
    background-color: #ffce7f;
    /* ハイライトカラー */
    font-weight: bold;
}


/* サイトの説明 */

.site-usage-parent{
    display: flex;
    justify-content: center;
    align-items: center;
}

#site-usage {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    margin-top: 20px;
    max-width: 1200px;
    width: 100%;
}

#site-usage h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

#site-usage p {
    font-size: 14px;
    margin-bottom: 10px;
}

#site-usage ul {
    list-style-type: disc;
    padding-left: 20px;
}

#site-usage ul li {
    font-size: 14px;
    margin-bottom: 5px;
}

.advanced-design {
    padding: 20px;
    background: #ffffff;
    border-top: 2px solid #007bff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.advanced-design h2 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 15px;
    text-align: center;
}

.advanced-design p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

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

.advanced-design ul li {
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    color: #333;
}

.advanced-design ul li i {
    color: #007bff;
    margin-right: 10px;
}

/* 既存のスタイルはそのまま */

@media (max-width: 768px) {
    body {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    #calendar {
        gap: 1px;
        padding: 10px;
        font-size: 14px;
        grid-template-columns: repeat(7, 1fr);
    }

    .calendar-container {
        width: 100%;
        height: auto;
        margin-bottom: 20px;

        min-height: 390px;
    }

    .calendar-header {
        padding: 5px 10px;
    }

    .month-button {
        max-width: 4rem;
    }

    .year-month-select {
        display: flex;
        padding: 5px 10px;
    }

    .calendar-header button {
        padding: 5px 10px;
    }



    .day {
        padding: 2px;
        font-size: 8px;
        min-height: 40px;
    }

    .popup {
        width: 90%;
        padding: 10px;
    }

    .color-option {
        width: 20px;
        height: 20px;
    }

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

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }

    .form-group button {
        margin-bottom: 5px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input {
        height: 1.5rem;
    }

    .form-button button {
        padding: 5px 10px;
    }

}