/* MIYABI Easy Calendar v1.4.0 */
.ebc-calendar-wrap,
.ebc-calendar-wrap *,
.ebc-admin-wrap,
.ebc-admin-wrap * {
    box-sizing: border-box;
}

.ebc-calendar-wrap {
    width: 100%;
    overflow: hidden;
    transition: opacity .15s ease;
}

.ebc-calendar-wrap.is-loading {
    opacity: .55;
    pointer-events: none;
}

.ebc-calendar {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.ebc-title {
    margin: 0 0 15px;
    padding: 0 0 8px;
    border: 0;
    border-bottom: 1px dashed #999;
    background: transparent;
    color: #444;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.ebc-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    word-break: normal;
}

.ebc-week {
    padding: 6px;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.ebc-saturday { color: #1976d2; }
.ebc-sunday { color: #d32f2f; }

.ebc-day,
.ebc-empty {
    position: relative;
    width: 14.285%;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    vertical-align: top;
}

.ebc-day {
    background: var(--ebc-day-bg, #fff);
}

.ebc-day::before,
.ebc-empty::before {
    display: block;
    padding-top: 100%;
    content: "";
}

.ebc-date-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding-top: 8px;
    background: transparent;
    color: var(--ebc-day-text, #333);
    text-decoration: none !important;
}

.ebc-date-link:hover,
.ebc-date-link:focus-visible {
    background: rgba(255, 255, 255, .28);
    color: #111;
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25);
}

.ebc-number {
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.ebc-today {
    box-shadow: inset 0 0 0 3px #2196f3;
}

.ebc-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 0;
}

.ebc-month-link {
    display: inline-block;
    padding: 8px 18px;
    border: 0;
    border-radius: 6px;
    background: #444;
    color: #fff !important;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none !important;
}

.ebc-month-link:hover,
.ebc-month-link:focus-visible {
    opacity: .8;
}

.ebc-selected-date-area {
    min-height: 0;
}

.ebc-selected-date {
    display: block;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #444 !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

/* 管理画面 */
.ebc-admin-wrap { max-width: 1000px; }
.ebc-admin-card {
    max-width: 760px;
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    background: #fff;
}
.ebc-color-options { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.ebc-color-options label { display: inline-flex; align-items: center; gap: 5px; }
.ebc-color-chip { width: 18px; height: 18px; border: 1px solid rgba(0,0,0,.18); border-radius: 50%; }
.ebc-admin-navigation { display: flex; align-items: center; justify-content: space-between; max-width: 700px; margin: 0 0 20px; }
.ebc-admin-navigation h2 { margin: 0; }
.ebc-admin-calendar { width: 100%; max-width: 700px; border-collapse: collapse; table-layout: fixed; background: #fff; }
.ebc-admin-calendar th { padding: 10px; border: 1px solid #ddd; text-align: center; }
.ebc-admin-calendar th.is-saturday { color: #1976d2; }
.ebc-admin-calendar th.is-sunday { color: #d32f2f; }
.ebc-admin-calendar td { position: relative; height: 82px; padding: 0; border: 1px solid #ddd; text-align: center; vertical-align: top; }
.ebc-admin-calendar td.is-today { box-shadow: inset 0 0 0 3px #2196f3; }
.ebc-admin-calendar td > a { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 8px; color: inherit; text-decoration: none; }
.ebc-admin-calendar td span { margin-top: 5px; font-size: 11px; }
.ebc-day-form { margin-top: 24px; }

@media (max-width: 768px) {
    .ebc-title { font-size: 18px; }
    .ebc-week { padding: 5px 2px; font-size: 13px; }
    .ebc-date-link { padding-top: 6px; }
    .ebc-number { font-size: 15px; }
    .ebc-month-link { padding: 7px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
    .ebc-title { font-size: 17px; }
    .ebc-week { padding: 4px 1px; font-size: 12px; }
    .ebc-date-link { padding-top: 5px; }
    .ebc-number { font-size: 14px; }
    .ebc-navigation { margin-top: 15px; }
    .ebc-month-link { padding: 6px 10px; font-size: 12px; }
    .ebc-selected-date { margin-top: 15px !important; font-size: 14px !important; }
}
