/**
 * 公開用 営業日カレンダー（和風・洗練デザイン）
 * LINE等で共有・モバイル対応
 */

.tcf-pub-calendar-wrap {
    max-width: 520px;
    margin: 0 auto 3rem;
    padding: 2.2rem 1.8rem 2rem;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: linear-gradient(180deg, #faf8f5 0%, #f5f0e8 100%);
    border: 1px solid #e8e0d5;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(60, 27, 17, 0.12);
}

/* バッジ（営業日カレンダー）：見出しの直上 */
.tcf-pub-calendar-badge-row {
    margin: 0 0 0.45rem;
    text-align: center;
}

.tcf-pub-calendar-title {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #2a1610;
    margin: 0 0 0.25rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.tcf-pub-calendar-ym {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0d6c8;
}

.tcf-pub-calendar-ym-main {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2a1610;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.tcf-pub-calendar-legend {
    font-size: 0.9rem;
    color: #6b5b4a;
    font-weight: 500;
    background: #efe6da;
    border: 1px solid #dfd0bd;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
}

.tcf-pub-calendar-legend-line {
    font-size: 0.8rem;
    color: #6b5b4a;
    margin: 0 0 0.25rem;
    padding: 0.5rem 0;
}

.tcf-pub-calendar-note {
    font-size: 0.75rem;
    color: #9a8b7a;
    margin: 0 0 1.25rem;
}

.tcf-pub-calendar-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tcf-pub-calendar-nav-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(180deg, #8d5634 0%, #7a492c 100%);
    color: #fffdf8 !important;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #6e4127;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    box-shadow: 0 2px 6px rgba(60, 27, 17, 0.2);
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.tcf-pub-calendar-nav-btn:hover {
    background: linear-gradient(180deg, #7f4d2e 0%, #6b3f25 100%);
    color: #fffdf8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(60, 27, 17, 0.25);
}

.tcf-pub-calendar-nav-btn:visited,
.tcf-pub-calendar-nav-btn:active,
.tcf-pub-calendar-nav-btn:focus {
    color: #fffdf8 !important;
}

.tcf-pub-calendar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tcf-pub-calendar-table thead th {
    padding: 10px 4px;
    font-weight: 600;
    color: #5c4a3a;
    border-bottom: 2px solid #d4c4b0;
    font-size: 0.85rem;
}

.tcf-pub-calendar-table thead th:first-child {
    color: #9b2c2c;
}

.tcf-pub-calendar-table thead th:last-child {
    color: #1d4ed8;
}

.tcf-pub-calendar-table tbody td {
    padding: 8px 4px;
    text-align: center;
    border: none;
    vertical-align: middle;
}

.tcf-pub-calendar-cell {
    min-height: 40px;
}

.tcf-pub-calendar-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 6px;
    transition: background 0.15s;
}

.tcf-pub-calendar-day-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    line-height: 1;
    font-weight: 500;
}

.tcf-pub-calendar-day--open {
    color: inherit;
}

.tcf-pub-calendar-day--open:hover {
    background: rgba(22, 163, 74, 0.08);
}

/* 営業日の赤は「丸枠」のみ。太字は「本日」のみ（下の --today） */
.tcf-pub-calendar-day--open .tcf-pub-calendar-day-num {
    border: 2px solid #9b2c2c;
    border-radius: 999px;
    font-weight: 500;
}

.tcf-pub-calendar-day--today .tcf-pub-calendar-day-num {
    font-weight: 800 !important;
}

.tcf-pub-calendar-day--closed {
    color: #8b3a3a;
}

.tcf-pub-calendar-day--regular_holiday {
    color: #9ca3af;
}

.tcf-pub-calendar-day--closed .tcf-pub-calendar-mark--closed {
    display: inline;
    color: #8b3a3a; /* 臨時休業：落ち着いた赤 */
    font-weight: 700;
    font-size: 0.75rem;
}

.tcf-pub-calendar-day--regular_holiday .tcf-pub-calendar-mark--open,
.tcf-pub-calendar-day--regular_holiday .tcf-pub-calendar-mark--closed {
    display: none;
}

.tcf-pub-calendar-mark {
    font-size: 0.75rem;
    line-height: 1;
}

/*
 * 日付の数字色（営業日の赤丸とは独立）
 * 日曜＝赤、土曜＝青、月〜金＝黒（定休・臨時休も同じ）、平日の祝日のみ赤
 */
.tcf-pub-calendar-dow-1 .tcf-pub-calendar-day-num,
.tcf-pub-calendar-dow-2 .tcf-pub-calendar-day-num,
.tcf-pub-calendar-dow-3 .tcf-pub-calendar-day-num,
.tcf-pub-calendar-dow-4 .tcf-pub-calendar-day-num,
.tcf-pub-calendar-dow-5 .tcf-pub-calendar-day-num {
    color: #1f2933;
    font-weight: 500;
}

.tcf-pub-calendar-holiday.tcf-pub-calendar-dow-1 .tcf-pub-calendar-day-num,
.tcf-pub-calendar-holiday.tcf-pub-calendar-dow-2 .tcf-pub-calendar-day-num,
.tcf-pub-calendar-holiday.tcf-pub-calendar-dow-3 .tcf-pub-calendar-day-num,
.tcf-pub-calendar-holiday.tcf-pub-calendar-dow-4 .tcf-pub-calendar-day-num,
.tcf-pub-calendar-holiday.tcf-pub-calendar-dow-5 .tcf-pub-calendar-day-num {
    color: #9b2c2c;
    font-weight: 500;
}

.tcf-pub-calendar-dow-0 .tcf-pub-calendar-day-num {
    color: #9b2c2c;
    font-weight: 500;
}

.tcf-pub-calendar-dow-6 .tcf-pub-calendar-day-num {
    color: #1d4ed8;
    font-weight: 500;
}

.tcf-pub-calendar-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid #e8e0d5;
    border-radius: 8px;
}

.tcf-pub-calendar-hours,
.tcf-pub-calendar-holiday {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #5c4a3a;
}

.tcf-pub-calendar-hours:last-child,
.tcf-pub-calendar-holiday:last-child {
    margin-bottom: 0;
}

.tcf-pub-calendar-footer-links {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.tcf-pub-calendar-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.58rem 1.05rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.tcf-pub-calendar-footer-link:hover {
    transform: translateY(-1px);
}

.tcf-pub-calendar-footer-link--primary {
    color: #fffdf8 !important;
    border: 1px solid #5c3422;
    background: linear-gradient(180deg, #8f5632 0%, #6f4328 100%);
    box-shadow: 0 4px 10px rgba(66, 34, 20, 0.2);
}

.tcf-pub-calendar-footer-link--primary:hover {
    background: linear-gradient(180deg, #7f4d2e 0%, #693e24 100%);
}

.tcf-pub-calendar-footer-link--ghost {
    color: #5c3c2d !important;
    border: 1px solid #ccb9a3;
    background: rgba(255, 255, 255, 0.92);
}

.tcf-pub-calendar-footer-link--ghost:hover {
    background: rgba(255, 255, 255, 0.98);
}

/* カレンダー確認ページへのリンクボタン（トップ・店舗案内用） */
.tcf-calendar-link-wrap {
    margin: 1.5rem 0;
}

.tcf-calendar-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.75rem;
    background: #7c4a2d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.tcf-calendar-link-btn:hover {
    background: #5c3820;
    color: #fff;
    transform: translateY(-2px);
}

.tcf-calendar-link-btn::after {
    content: ' ›';
    font-size: 1.1rem;
}

/* モバイル：1画面に収めやすいよう全体をコンパクト化（PCレイアウトは維持） */
@media (max-width: 781px) {
    .tcf-pub-calendar-wrap {
        max-width: 100%;
        margin-bottom: 1.5rem;
        padding: 1rem 0.75rem 0.95rem;
        border-radius: 10px;
        box-shadow: 0 4px 18px rgba(60, 27, 17, 0.1);
    }

    .tcf-pub-calendar-badge-row {
        margin-bottom: 0.35rem;
    }

    .tcf-pub-calendar-legend {
        font-size: 0.78rem;
        padding: 0.15rem 0.5rem;
    }

    .tcf-pub-calendar-title {
        font-size: 1.28rem;
        margin-bottom: 0.15rem;
        letter-spacing: 0.04em;
    }

    .tcf-pub-calendar-ym {
        margin-bottom: 0.55rem;
        padding-bottom: 0.5rem;
    }

    .tcf-pub-calendar-ym-main {
        font-size: 1.22rem;
    }

    .tcf-pub-calendar-legend-line {
        font-size: 0.72rem;
        margin-bottom: 0.15rem;
        padding: 0.25rem 0;
        line-height: 1.45;
    }

    .tcf-pub-calendar-note {
        font-size: 0.68rem;
        margin-bottom: 0.65rem;
        line-height: 1.45;
    }

    .tcf-pub-calendar-nav {
        margin-bottom: 0.65rem;
    }

    .tcf-pub-calendar-nav-btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .tcf-pub-calendar-table {
        font-size: 0.78rem;
    }

    .tcf-pub-calendar-table thead th {
        padding: 0.35rem 2px;
        font-size: 0.72rem;
    }

    .tcf-pub-calendar-table tbody td {
        padding: 3px 2px;
    }

    .tcf-pub-calendar-cell {
        min-height: 30px;
    }

    .tcf-pub-calendar-day {
        min-width: 28px;
        min-height: 30px;
        gap: 2px;
    }

    .tcf-pub-calendar-day-num {
        width: 1.45rem;
        height: 1.45rem;
        font-size: 0.78rem;
    }

    .tcf-pub-calendar-day--open .tcf-pub-calendar-day-num {
        border-width: 1.5px;
    }

    .tcf-pub-calendar-info {
        margin-top: 0.75rem;
        padding: 0.65rem 0.7rem;
    }

    .tcf-pub-calendar-hours,
    .tcf-pub-calendar-holiday {
        font-size: 0.82rem;
        margin-bottom: 0.35rem;
    }

    .tcf-pub-calendar-footer-links {
        margin-top: 0.65rem;
        gap: 0.45rem;
    }

    .tcf-pub-calendar-footer-link {
        min-height: 36px;
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
    }
}
