body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background: linear-gradient(to right, #00afcc, #e0f7fa); /* 背景グラデーション */
    padding-top: 30px;
}

.calendar {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 立体感 */
    width: 95%;
    max-width: 1000px;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease; /* アニメーション */
}

.calendar:hover {
    transform: scale(1.01); /* カレンダーを少しふくらませる */
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

th {
    background-color: #00afcc;
    color: #fff;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 10px;
}

td {
    background-color: #f9f9f9;
    height: 100px;
    border-radius: 10px;
    vertical-align: top;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

td:hover {
    background-color: #d0f0f7;
}

textarea {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    resize: none;
    padding: 8px;
    box-sizing: border-box;
    font-size: 0.9em;
    color: #333;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.controls label {
    font-weight: bold;
    color: #005662;
}

.controls input, .controls select, .controls button {
    padding: 8px 12px;
    font-size: 1em;
    border: 2px solid #00afcc;
    border-radius: 8px;
    outline: none;
}

.controls button {
    background-color: #00afcc;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: #008ba3;
}

.selected-date {
    text-align: center;
    margin: 20px 0;
}

.selected-date h2 {
    font-size: 1.5em;
    color: #004d58;
}

.selected-date p {
    font-size: 1.2em;
    color: #007f91;
}

/* 印刷用スタイルはそのまま */
@media print {
    .controls {
        display: none;
    }

    .calendar {
        border: none;
        padding: 0;
        box-shadow: none;
        transform: scale(0.92);
    }

    table {
        border-spacing: 0;
    }

    th, td {
        border: 1px solid #333;
        background: none;
        color: #000;
    }
}
