/* フロント表示のスタイル */

/* カレンダー形式 */
.bhc-frontend-calendar {
    margin: 30px 0;
}

.bhc-month-calendar {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bhc-month-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.bhc-frontend-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.bhc-frontend-table th {
    background: #f5f5f5;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    font-size: 16px;
}

.bhc-frontend-table th.bhc-sunday {
    color: #d63638;
}

.bhc-frontend-table th.bhc-saturday {
    color: #2271b1;
}

.bhc-frontend-table td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: center;
    vertical-align: middle;
    height: 70px;
    min-width: 60px;
    background: #fff;
}

.bhc-frontend-table td.bhc-empty {
    background: #fafafa;
}

.bhc-frontend-table td.bhc-sunday {
    color: #d63638;
}

.bhc-frontend-table td.bhc-saturday {
    color: #2271b1;
}

.bhc-frontend-table .bhc-day-number {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.bhc-frontend-table .bhc-day-label {
    font-size: 14px;
    font-weight: bold;
}

.bhc-frontend-table td.bhc-holiday {
    color: #fff;
}

.bhc-frontend-table td.bhc-weekly-holiday {
    color: #333;
}

/* 凡例 */
.bhc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
}

.bhc-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.bhc-legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #999;
    border-radius: 3px;
}

/* お知らせボックス */
.bhc-notice {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

.bhc-notice p {
    margin: 10px 0;
    font-weight: bold;
    color: #333;
}

/* リスト形式 */
.bhc-frontend-list {
    background: #fff;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bhc-list-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
}

.bhc-holiday-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bhc-holiday-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-left: 4px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.bhc-holiday-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.bhc-holiday-icon {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.bhc-holiday-date {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    min-width: 200px;
}

.bhc-holiday-type {
    display: inline-block;
    padding: 4px 12px;
    background: #333;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
}

.bhc-holiday-memo {
    color: #666;
    font-size: 14px;
    margin-left: auto;
}

.bhc-no-holidays {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* 定休日表示 */
.bhc-weekly-holidays {
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bhc-weekly-holidays p {
    margin: 0;
    font-size: 16px;
}

.bhc-weekly-label {
    font-weight: bold;
    color: #333;
}

/* モバイルではみ出さないための強制スクロール設定 */
.table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block; /* blockにすることで幅の計算を確実にする */
    margin-bottom: 20px;
}

/* テーブル自体の幅制限を解除 */
.table, .bhc-frontend-table {
    width: 100% !important;
    /*min-width: 500px !important; /* スマホでも「カレンダーの形」を保つための最低幅 */*/
    table-layout: auto !important;
}

/* セルの固定幅設定を上書きして解除 */
@media screen and (max-width: 768px) {
    .table td, .bhc-frontend-table td {
        min-width: auto !important; /* 60pxを解除 */
        height: auto !important;    /* 70pxを解除 */
        word-break: break-all;      /* 長い単語があっても改行させる */
        white-space: normal;        /* 折り返しを許可 */
    }

      .bhc-holiday-item{
        flex-wrap: wrap;
        /*align-items: flex-start;  左寄せに揃える */
        /* gap: 8px; 縦並び時の間隔を少し狭く調整 */
    }
    .bhc-holiday-memo {
    width: 100%;
}
    .bhc-holiday-icon{
        display: none;
    }

    
}

@media screen and (max-width: 480px) {
    /* さらに狭い画面向けの設定 */
    .bhc-frontend-table td {
        padding: 5px 2px;
    }

    .bhc-frontend-table .bhc-day-number {
        font-size: 14px;
    }

    .bhc-frontend-table .bhc-day-label {
        font-size: 10px;
    }
}
