/*
 * 営業日カレンダーのスタイル
 *
 * 必要に応じてテーマ側やカスタムCSSで上書きしてカスタマイズしてください。
 */

.shn-calendar {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    box-sizing: border-box;
    font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN", "YuGothic", sans-serif;
}

.shn-calendar__header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.shn-calendar__nav {
    background: #2876C3;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.shn-calendar__today {
    background: #FFC20B;
    color: #000;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
}

.shn-calendar__month-year {
    font-size: 18px;
    font-weight: bold;
    margin: 0 12px;
}

.shn-calendar__table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    table-layout: fixed;
}

.shn-calendar__table thead th,
.shn-calendar__table tbody td {
    text-align: center;
    padding: 6px 4px;
    font-size: 14px;
    vertical-align: middle;
}

.shn-calendar__table thead th {
    color: #2876C3;
    font-weight: bold;
}

.shn-calendar__table tbody td {
    border: 1px dashed #ddd;
    min-height: 50px;
    height: 50px;
    position: relative;
    color: #333;
}

.shn-calendar__table tbody td.shn-other-month {
    color: #aaa;
}

.shn-calendar__table tbody td.shn-closed {
    background: #E5E5E5;
    color: #666;
}

.shn-calendar__table tbody td.shn-test {
    background: #D9E8F5;
    color: #0066CC;
    font-weight: bold;
}

.shn-calendar__table tbody td.shn-today {
    border: 2px solid #E60012;
}

.shn-calendar__legend {
    display: flex;
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
}

.shn-calendar__legend-item {
    display: flex;
    align-items: center;
}

.shn-calendar__legend-box {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 4px;
    flex-shrink: 0;
}

.shn-calendar__legend-closed {
    background: #E5E5E5;
}

.shn-calendar__legend-test {
    background: #D9E8F5;
}

@media (max-width: 768px) {
    .shn-calendar__header {
        flex-direction: row;
    }
    .shn-calendar__today {
        margin-left: 0;
    }
}