/* Concert Calender Styles - v8.2.0 */

.mes-event-list-container {
    padding: 20px 0;
}
.mes-year-navigation {
    text-align: left;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.mes-year-link {
    display: inline-block;
    margin: 0 10px 0 0;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mes-text-color, #333);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all .3s ease;
    opacity: 0.6;
}
.mes-year-link:hover,
.mes-year-link.active {
    color: #000;
    border-bottom-color: #000;
    opacity: 1;
}
.mes-event-table {
    border: none;
}
.mes-event-row {
    border-bottom: 1px solid var(--mes-border-color, #eee);
    background-color: var(--mes-table-bg-color, #fff);
}
.mes-event-row:first-child {
    border-top: 1px solid var(--mes-border-color, #eee);
}
.mes-event-summary {
    display: flex;
    align-items: center;
    padding: 1.5em 1.5em; 
    line-height: 1.5;
}
.mes-event-date {
    flex: 0 0 120px;
    font-weight: 700;
    font-size: var(--mes-font-size, 15px);
    color: var(--mes-text-color, #555);
}
.mes-event-name {
    flex-grow: 1;
    font-size: var(--mes-font-size, 15px);
    font-weight: 600;
    color: var(--mes-text-color, #333);
    padding: 0 10px;
}
.mes-event-actions {
    flex-shrink: 0;
}

/* ボタン共通スタイル */
.mes-details-button,
.mes-external-link-button,
.mes-pdf-download-button {
    background-color: var(--mes-button-bg-color, #333);
    color: var(--mes-button-text-color, #fff);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .3s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
}

/* 詳細ボタン・外部リンクボタン */
.mes-details-button,
.mes-external-link-button {
    font-size: 12px;
    padding: 0.7em 1.4em; 
}

/* PDFボタン */
.mes-pdf-download-button {
    margin: 5px auto 0;
    font-size: 11px;
    padding: 0.6em 1.5em;
    display: table; /* 中央寄せ用 */
}

.mes-details-button:hover,
.mes-external-link-button:hover,
.mes-pdf-download-button:hover {
    background-color: var(--mes-button-hover-bg-color, #000);
    color: var(--mes-button-text-color, #fff);
}

.mes-event-details-accordion {
    background-color: #f9f9f9; 
    background-color: color-mix(in srgb, var(--mes-table-bg-color, #fff), transparent 40%);
    padding: 20px;
    border-top: 1px solid var(--mes-border-color, #eee);
    overflow: hidden;
}
.mes-details-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
}
.mes-flyer-image {
    flex: 0 0 200px;
    text-align: center;
}
.mes-flyer-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.mes-details-text-col {
    flex-grow: 1;
    min-width: 0;
}

.mes-detail-item {
    margin-bottom: 8px;
    color: #222;
    font-weight: 500;
    line-height: 1.8;
    font-size: min(calc(var(--mes-font-size, 14px) - 1px), 13px);
    display: flex;
    align-items: baseline;
}
.mes-detail-item .mes-label {
    font-weight: 700;
    color: #333;
    margin-right: .5em;
    flex-shrink: 0;
    white-space: nowrap;
}
.mes-detail-item .mes-content {
    flex-grow: 1;
}

.mes-program-details {
    display: block; 
    white-space: pre-wrap; 
    color: #222;
    font-weight: 500;
    line-height: 1.8;
    font-size: min(calc(var(--mes-font-size, 14px) - 1px), 13px);
    margin-bottom: 8px;
}
.mes-external-links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}
.mes-feedback-message {
    padding: 40px 20px;
    text-align: center;
    font-size: 1.1em;
    color: #666;
}
.mes-feedback-message.is-error {
    color: #dc3232;
}

/* =========================================
   Event Widget Banner Styles (v8.2.0)
   ========================================= */
.mes-widget-banner {
    display: flex;
    text-decoration: none;
    /* ★修正: 背景色を変数対応 */
    background-color: var(--mes-widget-bg-color, #ffffff);
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: opacity 0.2s ease;
    color: inherit;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}
.mes-widget-banner:hover {
    opacity: 0.8;
}

/* Image Column (Left) */
.mes-widget-image-col {
    flex: 0 0 30%;
    display: flex;
    align-items: flex-start;
    background-color: #f0f0f0;
    overflow: hidden;
}
.mes-widget-image-col img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Info Area (Right) */
.mes-widget-info {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* Text Elements */
.mes-widget-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
.mes-widget-weekday {
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
    margin-left: 5px;
}
.mes-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    line-height: 1.3;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mes-widget-meta {
    font-size: 0.8rem;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    line-height: 1.2;
    margin-bottom: 4px;
}
.mes-widget-time {
    font-weight: 600;
}
.mes-widget-venue {
    opacity: 0.9;
}
.mes-widget-price {
    /* ★修正: フォントサイズ縮小 (0.8rem -> 0.75rem) */
    font-size: 0.75rem;
    color: #555;
    opacity: 0.9;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 480px) {
    .mes-widget-image-col {
        flex: 0 0 30%;
    }
    .mes-widget-info {
        padding: 8px 10px;
    }
    .mes-widget-date {
        font-size: 0.95rem;
    }
    .mes-widget-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    .mes-widget-meta, .mes-widget-price {
        font-size: 0.7rem;
    }
}

/* Responsive adjustment for list view */
@media (max-width: 768px) {
    .mes-event-summary { padding: 10px 15px }
    .mes-event-date { flex-basis: 90px; font-size: calc(var(--mes-font-size, 15px) * 0.9); }
    .mes-event-name { white-space: normal; overflow: visible; text-overflow: clip; }
    .mes-details-inner { flex-direction: column }
    .mes-flyer-image { max-width: 250px; margin: 0 auto; }
}
.mes-time-part + .mes-time-part { margin-left: 1.5em; }