/* My Event Calendar v5.0 - フロント表示CSS */

.mec-wrap {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    font-family: sans-serif;
    font-size: 13px;
}

.mec-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mec-prev, .mec-next {
    padding: 5px 14px;
    background: #f0f0f0;
    border: 1px solid #bbb;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.mec-prev:hover, .mec-next:hover { background: #ddd; }

.mec-months { display: flex; gap: 14px; align-items: flex-start; }
.mec-month  { flex: 1; min-width: 0; }

.mec-front-table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.mec-front-table thead tr:first-child th {
    background: #555;
    color: #fff;
    text-align: center;
    padding: 6px 4px;
    font-size: 13px;
    font-weight: bold;
}

.mec-wdays th {
    background: #888;
    color: #fff;
    text-align: center;
    padding: 4px 2px;
    font-size: 11px;
    font-weight: normal;
    border: 1px solid #999;
}
.mec-wdays th.sat { color: #aaddff; }
.mec-wdays th.sun { color: #ffaaaa; }

.mec-front-table td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 0;
    height: 30px;
    vertical-align: middle;
    background: #fff;
}
.mec-empty { background: #f4f4f4 !important; }

.mec-num {
    display: block;
    font-size: 12px;
    font-weight: bold;
    line-height: 30px;
}

.mec-today .mec-num {
    background: #3366cc;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    margin: 0 auto;
}

.mec-sat .mec-num { color: #0055cc; }
.mec-sun .mec-num { color: #cc0000; }

/* ステータスカラー */
.mec-av { background-color: #c8f0a0 !important; }
.mec-bk { background-color: #f5b8c0 !important; }
.mec-co { background-color: #f5e08a !important; }

/* 凡例 */
.mec-legend-front {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    flex-wrap: wrap;
}
.mec-legend-item {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

@media (max-width: 500px) {
    .mec-months { flex-direction: column; }
}
