.main-content-container {
    min-height: 600px;
}

.title-message {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 15px;
}

.reservation-calendar {
    max-width: 800px;
    margin: 20px auto;
    font-family: sans-serif;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.calendar-header button {
    /* デフォルトのボーダーや背景をリセット */
    background: none;
    border: none;
    cursor: pointer;
    
    /* 楕円形にするためのスタイル */
    background-color: #fbfbfb; /* ボタンの背景色 */
    border: 1px solid #ccc; /* 薄いグレーのボーダー */
    border-radius: 10px; /* 角を丸くして楕円形に */
    padding: 6px 12px; /* ボタンのサイズと文字の余白 */
    font-size: 14px; /* 文字サイズ */
    font-weight: normal; /* 文字を太字にしない */
    color: #333; /* 文字色 */
    transition: all 0.2s ease; /* ホバー時のアニメーション効果 */

    /* 位置 */
    margin: 0px 20px;
}

/* ホバー時のスタイル */
.calendar-header button:hover {
    background-color: #f3f3f3;
}

/* 押した時のスタイル */
.calendar-header button:active {
    background-color: #e1e1e1;
    transform: translateY(1px);
}

/* ボタンが非活性の場合のスタイル */
.calendar-header button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* SVGアイコンのスタイル */
.calendar-header button svg {
    /* 上下中央に表示する */
    vertical-align: middle;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
    width: 14%;
    text-align: center;
    padding: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: normal;
}

.day-cell {
    transition: background-color 0.2s, color 0.2s;
}

.day-cell:hover:not(.past-day):not(.selected) {
    background-color: #f1f3f5;
}

/* 詳細度(Specificity)を高めるために定義名を".day-cell.selected"から変更  */
.calendar-table td.day-cell.selected {
    background-color: #333;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5%;
}

/* カレンダー日曜日 */
.calendar-table th:first-child,
.calendar-table td:nth-child(1) {
    color: #e60021; /* 日曜日を赤色に */
}

/* カレンダー土曜日 */
.calendar-table th:last-child,
.calendar-table td:nth-child(7) {
    color: #39a4da; /* 土曜日を青色に */
}

/* 過去日のスタイル */
.calendar-table .past-day {
    /* 文字色をグレーに */
    color: #a0a0a0;
    /* 取り消し線を追加 */
    text-decoration: line-through;
    cursor: not-allowed;
}

/* 過去日にカーソルを合わせたときのスタイル */
.calendar-table .past-day:hover {
    /* カーソルを禁止マークに */
    cursor: not-allowed;
}

.slot-container {
    /* カレンダーと横幅を合わせる */
    max-width: 800px;
    margin: 20px auto;
}

.slot-group {
    margin-top: 5px;
}

.slot-buttons {
    gap: 8px;
    padding: 10px 10px;
}

.slot-buttons button {
    box-sizing: border-box;
    /* 4等分の幅 */
    width: calc(100% / 4);
    min-width: auto;
    /* 4等分の幅からボタン間の隙間を引いた幅 */
    max-width: calc((100% - 40px) / 4);
    padding: 13px 30px; /* パディングを調整 */
    border: none;
    border-radius: 6px;
    background: #f3f3f3;
    cursor: pointer;
    min-width: 70px;
    font-size: 14px;
    font-weight: bold;
    font-family: "Meiryo UI", "Square Sans Text VF", "Square Sans Text", helvetica, arial, sans-serif;
    color: #333;
    margin: 5px;
}

.no-slot-message {
    font-size: 15px;
    text-align: center;
}

.slot-buttons button:hover {
    background: #fae7e7;
    color: rgb(28, 28, 28);
    /* 浮いたデザインにする */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(33, 150, 243, 0.2);
}

.period {
    font-size: 15px;
    text-align: center;
    margin: 10px;
}

.selected-date {
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    color: #333;
}

.slot-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 13px;
}

/* 最後の行のみ左寄せ */
.slot-row.last-row {
    /* 左寄せ */
    justify-content: flex-start;
}

.calendar-title {
    color: #333;
    font-weight: bold;
}

/* 今週の週だけを表示する */
.week.current-week {
    display: table-row;
}

.weekday-header {
    color: #333;
    /* カーソルホバーのデザインが変わらないように制御 */
    pointer-events: none;
}

.calendar-open {
    padding-top: 10px;
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */

    /* ボタンと下部の境界線の間に余白を追加 */
    padding-bottom: 20px;

    /* 目的の境界線を追加 */
    border-bottom: 1px solid rgba(221, 221, 221, 0.5);;
}

.open-toggle-btn {
    background-color: #f3f3f3;
    border: none;
    cursor: pointer;
    font-size: 0.6em;
    font-weight: bold;
    color: #4b4e51;
    /* widthとheigthを同じ長さかつradiuo50%で円になる */
    width: 30px;
    height: 30px;
    padding: 15px;
    border-radius: 50%;

    /* Flexboxを使って中身を中央に配置する */
    display: flex;
    justify-content: center; /* 水平方向の中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
}

.open-toggle-btn:hover {
    background-color: #fae7e7;
    color: #495057;
}

.no-slots-message {
    color: #888;
    /* グレー */
    font-size: 0.9rem;
    padding: 0px;
    text-align: center;
}

@media (max-width: 768px) {
    .slot-buttons button {
        font-size: 13px;
        padding: 15px; /* 調整しないと文字が右寄りになってしまう */
    }
}