@page {
    size: A4 landscape;
    margin: 0;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: lightblue;
    margin-top: 40px; /* メニューバーの高さ分のマージンを追加 */

}

.calendar {
    width: 100%;
    max-width: 297mm; /* A4横サイズ */
    border: 2px solid #000; /* カレンダー全体の枠線 */
    padding: 10px;
    box-sizing: border-box;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px; /* セル間のスペース */
}

th, td {
    border: 2px solid #333; /* 各セルのボーダー */
    padding: 15px; /* セル内の余白 */
    text-align: center;
    vertical-align: top;
}

td {
    height: 80px; /* セルの高さ */
}

textarea {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: none;
    resize: none;
    padding: 5px; /* テキストエリア内の余白 */
}

thead th {
    background-color: #f0f0f0;
    border-bottom: 2px solid #000; /* 曜日行の下のボーダー */
}

.calendar-cell {
    cursor: pointer;
}

.calendar-cell:hover {
    background-color: #e0e0e0;
}

.controls {
    margin-bottom: 20px;
}

.selected-date {
    margin-bottom: 20px;
}

.selected-date h2 {
    margin: 0;
}

.selected-date p {
    font-size: 1.2em;
    font-weight: bold;
}

/* ボタンの基本スタイル */
button {
    background-color: #AC7AE8; /* 背景色 */
    color: white; /* 文字色 */
    padding: 10px 20px; /* パディング */
    border: none; /* ボーダーなし */
    border-radius: 5px; /* 角丸 */
    cursor: pointer; /* カーソルがポインタに */
    font-size: 16px; /* 文字サイズ */
    transition: background-color 0.3s ease; /* ホバー時の背景色の変化をスムーズに */
}

/* ホバー時のスタイル */
button:hover {
    background-color: lightseagreen; /* ホバー時の背景色 */
}

/* クリック時のスタイル */
button:active {
    background-color: lightseagreen; /* クリック時の背景色 */
    transform: scale(0.98); /* クリック時に少し縮小 */
}

#outputDisplay {
    width: 90%; /* 横幅を画面の90%に設定 */
    max-width: 800px; /* 最大幅を800pxに設定 */
    height: 300px; /* 高さを300pxに設定 */
    overflow: auto; /* 内容が多い場合にスクロールバーを表示 */
    border: 1px solid #ccc; /* 枠線を追加 */
    padding: 10px; /* 内側の余白を追加 */
    box-sizing: border-box; /* 枠線とパディングを含めたサイズ設定 */
    margin: 0 auto; /* 水平方向に中央揃え */
}

textarea {
    width: 90%;
    overflow: auto;
}

 /* メニューバーのスタイル */
 .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgb(23, 104, 170);
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 1000;
}

.navbar .menu-btn {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
}

.navbar .menu {
    display: none; /* メニューを非表示にする */
    position: absolute;
    top: 40px;
    left: 0;
    background-color: rgb(23, 104, 170);
    border: 1px solid rgb(23, 104, 170);
    padding: 10px;
    width: 500px;
    box-shadow: 0 2px 5px rgb(23, 104, 170)(187, 100%, 50%, 0.692);
}

.navbar .menu.show {
    display: block; /* メニューを表示 */
}

.navbar .menu a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    text-align: left;
}

.navbar .menu a:hover {
    text-decoration: underline;
}


/* 印刷用のスタイル */
@media print {

    body{
        margin-top: 0;
    }
    .controls {
        display: none;
    }

    .selected-date {
        display: none;
    }

    .calendar {
        border: none;
        padding: 0;
        transform: scale(0.92); /* 8%縮小 */
    }

    table {
        border-spacing: 0;
    }

    th, td {
        border: 1px solid #333; /* 印刷用のセルのボーダー */
    }

    .print-header, .print-footer {
        display: block; /* 印刷時にヘッダーとフッターを表示 */
        text-align: left;
        margin: 25px 0;
    }
}
