
.calendar-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.calendar-container a {text-decoration: none; }
.calendar-container {
    padding: 20px;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    margin: auto;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.calendar-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}
.calendar-legend {
    font-size: 0.85em;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.legend-circle, .legend-square {
    color: #f58219;
}
.calendar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.calendar-button {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    width: 30px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    flex-shrink: 0;
    padding: 0;
    outline: none;
}
.calendar-button:hover:not(:disabled) {
    background-color: #e8e8e8;
}
.calendar-button:disabled {
    background-color: #f0f0f0;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}
.calendar-button:disabled .button-arrow {
    border-color: #aaa;
}
.button-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
}
.button-arrow--left {
    transform: rotate(-135deg);
    margin-left: 5px;
}
.button-arrow--right {
    transform: rotate(45deg);
    margin-right: 5px;
}
.calendar-content {
    flex-grow: 1;
    overflow-x: hidden;
}
.calendar-list {
    display: flex;
    flex-wrap: nowrap;
}
.calendar-item {
    flex-shrink: 0;
    min-width: 98px;
    width: calc((100% - (5px * 6)) / 7);
    box-sizing: border-box;
    text-align: center;
}
.calendar-item-link {
    display: block;
    height: 100%;
}
.calendar-item-inner {
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding-bottom: 5px;
}
.calendar-item + .calendar-item {
    margin-left: -1px;
}
.calendar-item-link:hover .calendar-item-inner {
    background-color: #fff5eb;
    cursor: pointer;
}
.calendar-item-inner--saturday .calendar-dayofweek,
.calendar-item-inner--saturday .calendar-date {
    color: #007bff;
}
.calendar-item-inner--sunday .calendar-dayofweek,
.calendar-item-inner--sunday .calendar-date {
    color: #dc3545;
}
.calendar-dayofweek {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    width: 100%;
    background-color: #efefef;
}
.calendar-date {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}
.calendar-status {
    font-size: 1.2em;
    font-weight: bold;
}
.calendar-status--tel {
    color: #666;
}
.calendar-status--available {
    color: #f58219;
}
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .calendar-title { font-size: 1.1em; }
    .calendar-legend { font-size: 0.8em; gap: 10px; }
    .calendar-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }
}