.gowan-event-calendar {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    padding: 1rem;
}

/* --- 今日・今週末ピックアップ（.gowan-event-calendar の外・直上） --- */
.gowan-ec-pickup {
    max-width: 980px;
    margin: 0 auto 1.15rem;
    padding: 0 1rem;
    box-sizing: border-box;
}

.gowan-ec-pickup-heading {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35em;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.8rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.gowan-ec-pickup-heading-text {
    line-height: 1.35;
}

/* 旧アイコン箱 bg-sky-500 と同系色（背景なし・線だけ） */
.gowan-ec-pickup-crown {
    color: #0ea5e9;
}

.gowan-ec-pickup-crown svg {
    stroke: currentColor;
    stroke-width: 2.25px;
}

.gowan-ec-pickup-track {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.1rem 0.15rem 0.65rem;
    margin: 0 -0.15rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #cbd5e1 transparent;
    scrollbar-width: thin;
}

.gowan-ec-pickup-card {
    flex: 0 0 min(300px, 86vw);
    min-width: 0;
    scroll-snap-align: start;
}

.gowan-ec-pickup-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gowan-ec-pickup-card-link:hover {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.gowan-ec-pickup-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #e0f2fe, #fef9c3);
    overflow: hidden;
}

.gowan-ec-pickup-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gowan-ec-pickup-today-chip {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.22rem 0.5rem;
    border-radius: 9999px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.gowan-ec-pickup-body {
    padding: 0.75rem 0.9rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.gowan-ec-pickup-cat-badge {
    display: inline-flex;
    align-self: flex-start;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.22rem 0.5rem;
    border-radius: 9999px;
    line-height: 1.25;
}

.gowan-ec-pickup-cat-badge.gowan-ec-cat--marche {
    background: #ffab91;
    color: #3e2723;
}

.gowan-ec-pickup-cat-badge.gowan-ec-cat--adoption {
    background: #f48fb1;
    color: #4a148c;
}

.gowan-ec-pickup-cat-badge.gowan-ec-cat--meetup {
    background: #fff59d;
    color: #0f172a;
}

.gowan-ec-pickup-cat-badge.gowan-ec-cat--seminar {
    background: #90caf9;
    color: #0d47a1;
}

.gowan-ec-pickup-cat-badge.gowan-ec-cat--photo {
    background: #ce93d8;
    color: #4a148c;
}

.gowan-ec-pickup-cat-badge.gowan-ec-cat--seasonal {
    background: #a5d6a7;
    color: #1b5e20;
}

.gowan-ec-pickup-cat-badge.gowan-ec-cat--training {
    background: #80cbc4;
    color: #004d40;
}

.gowan-ec-pickup-cat-badge.gowan-ec-cat--default {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #ffffff;
}

.gowan-ec-pickup-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gowan-ec-pickup-schedule {
    margin: 0;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
    line-height: 1.45;
}

.gowan-ec-pickup-venue {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    line-height: 1.4;
}

.gowan-ec-pickup-venue-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    margin-top: 0.12rem;
    stroke-width: 2.25;
}

@media (max-width: 767px) {
    .gowan-ec-pickup {
        max-width: none;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        margin-bottom: 1rem;
    }

    .gowan-ec-pickup-heading {
        font-size: 1.02rem;
    }

    .gowan-ec-pickup-card {
        flex-basis: min(280px, 88vw);
    }
}

.gowan-ec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gowan-ec-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gowan-ec-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.gowan-ec-nav {
    text-decoration: none;
    color: #0369a1;
    font-weight: 700;
    font-size: 0.9rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 9999px;
    padding: 0.45rem 0.85rem;
}

.gowan-ec-nav-today {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
    width: 2.1rem;
    min-width: 2.1rem;
    padding: 0.45rem 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
}

.gowan-ec-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    /* 外枠の top/left は付けない（曜日行に線が乗るのを防ぐ）。区切りは .gowan-ec-weekday の下線と .gowan-ec-day の枠で構成 */
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

/* 日付グリッド左端の縦線（1列目のセルのみ。曜日行には当たらない） */
.gowan-ec-grid > .gowan-ec-day:nth-child(7n + 8) {
    border-left: 1px solid #e0e0e0;
}

.gowan-ec-weekday {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    padding: 0.35rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.gowan-ec-day {
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    min-height: 132px;
    padding: 0.35rem;
    background: #ffffff;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gowan-ec-day.is-outside {
    background: #f8fafc;
}

/* 先月・来月の余白日（当月ビューではイベントは出力しない／JSONも当月のみ） */
.gowan-ec-day.is-other-month:not(.is-today) {
    background: #fcfcfc;
}

.gowan-ec-day.is-other-month:not(.is-today) .gowan-ec-date {
    color: #e0e0e0;
    font-weight: 600;
}

.gowan-ec-day.is-other-month:not(.is-today) .gowan-ec-holiday-name {
    color: #ececec;
    opacity: 0.85;
}

/* 今日より前の日（昨日以前）※今日とは排他 */
.gowan-ec-day.is-past:not(.is-today) {
    background: #f9f9f9;
}

.gowan-ec-day.is-past:not(.is-today) .gowan-ec-date {
    color: #b0b0b0;
}

.gowan-ec-day.is-past:not(.is-today).is-holiday .gowan-ec-date {
    color: #c4a8ab;
}

.gowan-ec-day.is-past:not(.is-today).is-holiday {
    background: #f5f0f1;
    border-color: #e8d9dc;
}

.gowan-ec-day.is-past:not(.is-today) .gowan-ec-holiday-name {
    color: #b8989c;
}

.gowan-ec-day.is-past:not(.is-today) .gowan-ec-pill,
.gowan-ec-day.is-past:not(.is-today) .gowan-ec-events-desktop {
    opacity: 0.5;
    filter: saturate(0.65);
}

.gowan-ec-day.is-past:not(.is-today) .gowan-ec-dot {
    opacity: 0.5;
    filter: saturate(0.65);
}

.gowan-ec-day.is-past:not(.is-today).has-event {
    background: #f3f3f3;
}

.gowan-ec-day.is-today {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2) inset;
}

.gowan-ec-day.is-other-month.is-today {
    background: #ffffff;
    border-color: #e0f2fe;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12) inset;
}

.gowan-ec-day.has-event {
    background: #fafafa;
}

/* 祝日（当月・まだ終わっていない日）— past / other-month は上記ルールで上書き済み */
.gowan-ec-day.is-holiday:not(.is-past):not(.is-other-month) {
    background: #fff5f7;
    border-color: #fecdd3;
}

.gowan-ec-day.is-holiday:not(.is-past):not(.is-other-month):not(.is-today) .gowan-ec-date {
    color: #dc4b5c;
}

.gowan-ec-day.is-holiday.is-today:not(.is-other-month) {
    background: #ffffff;
}

.gowan-ec-holiday-name {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.63rem;
    font-weight: 700;
    line-height: 1.2;
    color: #dc4b5c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gowan-ec-day-btn {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0;
    cursor: pointer;
    min-height: 44px;
}

.gowan-ec-date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    font-size: 0.87rem;
    font-weight: 700;
    color: #0f172a;
}

/* 今日の数字（過去・祝日・他月より優先） */
.gowan-ec-day.is-today .gowan-ec-date {
    background: #0ea5e9;
    color: #ffffff;
}

/* グリッド上「先月/来月」に出る今日は、当月内の今日より控えめに */
.gowan-ec-day.is-other-month.is-today .gowan-ec-date {
    background: #e8f4fc;
    color: #9ca3af;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.25);
}

.gowan-ec-dots {
    display: none;
    gap: 0.22rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* スマホ: カテゴリー色のドット（最大3） */
.gowan-ec-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.gowan-ec-dot.gowan-ec-cat--marche {
    background: #ffab91;
}

.gowan-ec-dot.gowan-ec-cat--adoption {
    background: #f48fb1;
}

.gowan-ec-dot.gowan-ec-cat--meetup {
    background: #fff59d;
}

.gowan-ec-dot.gowan-ec-cat--seminar {
    background: #90caf9;
}

.gowan-ec-dot.gowan-ec-cat--photo {
    background: #ce93d8;
}

.gowan-ec-dot.gowan-ec-cat--seasonal {
    background: #a5d6a7;
}

.gowan-ec-dot.gowan-ec-cat--training {
    background: #80cbc4;
}

.gowan-ec-dot.gowan-ec-cat--default {
    background: #94a3b8;
}

.gowan-ec-events-desktop {
    list-style: none;
    margin: 0.35rem -0.35rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
    overflow: visible;
}

.gowan-ec-pill {
    display: block;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 0.22rem 0.5rem;
    border-radius: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
    color: #0f172a;
    transition: filter 0.15s ease, transform 0.15s ease;
}

/* PC: カテゴリー色ピル（event_category スラッグ） */
.gowan-ec-pill.gowan-ec-cat--marche {
    background: #ffab91;
    color: #3e2723;
}

.gowan-ec-pill.gowan-ec-cat--adoption {
    background: #f48fb1;
    color: #4a148c;
}

.gowan-ec-pill.gowan-ec-cat--meetup {
    background: #fff59d;
    color: #0f172a;
}

.gowan-ec-pill.gowan-ec-cat--seminar {
    background: #90caf9;
    color: #0d47a1;
}

.gowan-ec-pill.gowan-ec-cat--photo {
    background: #ce93d8;
    color: #4a148c;
}

.gowan-ec-pill.gowan-ec-cat--seasonal {
    background: #a5d6a7;
    color: #1b5e20;
}

.gowan-ec-pill.gowan-ec-cat--training {
    background: #80cbc4;
    color: #004d40;
}

.gowan-ec-pill.gowan-ec-cat--default {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #ffffff;
}

.gowan-ec-pill.is-continue-left {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.gowan-ec-pill.is-continue-right {
    margin-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.gowan-ec-pill:not(.is-continue-left) {
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
}

.gowan-ec-pill:not(.is-continue-right) {
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
}

.gowan-ec-pill:hover {
    filter: brightness(1.05);
}

.gowan-ec-detail-panel {
    margin-top: 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.8rem;
    background: #f8fafc;
    padding: 0.8rem;
    transition: opacity 0.22s ease, transform 0.22s ease;
    opacity: 0.82;
    transform: translateY(4px);
}

.gowan-ec-detail-panel.is-active {
    opacity: 1;
    transform: translateY(0);
}

.gowan-ec-mobile-title {
    margin: 0 0 0.6rem;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 700;
}

.gowan-ec-mobile-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gowan-ec-mobile-list li + li {
    margin-top: 0.45rem;
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card {
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    display: block;
    position: relative;
    padding: 0.55rem 0.7rem;
    padding-right: 1.9rem;
    border-radius: 0.65rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    min-height: 44px;
    transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card.gowan-ec-cat--marche {
    border-left-color: #ffab91;
    background: linear-gradient(90deg, rgba(255, 171, 145, 0.12), #ffffff);
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card.gowan-ec-cat--adoption {
    border-left-color: #f48fb1;
    background: linear-gradient(90deg, rgba(244, 143, 177, 0.14), #ffffff);
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card.gowan-ec-cat--meetup {
    border-left-color: #fff59d;
    background: linear-gradient(90deg, rgba(255, 245, 157, 0.35), #ffffff);
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card.gowan-ec-cat--seminar {
    border-left-color: #90caf9;
    background: linear-gradient(90deg, rgba(144, 202, 249, 0.18), #ffffff);
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card.gowan-ec-cat--photo {
    border-left-color: #ce93d8;
    background: linear-gradient(90deg, rgba(206, 147, 216, 0.14), #ffffff);
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card.gowan-ec-cat--seasonal {
    border-left-color: #a5d6a7;
    background: linear-gradient(90deg, rgba(165, 214, 167, 0.18), #ffffff);
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card.gowan-ec-cat--training {
    border-left-color: #80cbc4;
    background: linear-gradient(90deg, rgba(128, 203, 196, 0.18), #ffffff);
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card.gowan-ec-cat--default {
    border-left-color: #94a3b8;
    background: #f8fafc;
}

.gowan-ec-mobile-item-title {
    display: block;
    line-height: 1.4;
}

.gowan-ec-mobile-list a.gowan-ec-mobile-card::after {
    content: "↗";
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 700;
    position: absolute;
    right: 0.65rem;
    top: 0.65rem;
}

.gowan-ec-mobile-meta {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.gowan-ec-mobile-meta-line {
    margin-top: 0.35rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
}

.gowan-ec-mobile-selected-date {
    margin: 0 0 0.7rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.gowan-ec-day.is-selected {
    background: #eff6ff;
    border-color: #93c5fd;
}

@media (max-width: 767px) {
    .gowan-event-calendar {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0.75rem;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .gowan-ec-title {
        font-size: 1.05rem;
    }

    .gowan-ec-nav {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }

    .gowan-ec-day {
        min-height: 58px;
        padding: 0.25rem;
    }

    .gowan-ec-grid {
        border-radius: 0;
    }

    .gowan-ec-events-desktop {
        display: none;
    }

    .gowan-ec-holiday-name {
        font-size: 0.56rem;
    }

    .gowan-ec-dots {
        display: flex;
    }

    .gowan-ec-detail-panel {
        display: block;
        margin-top: 0.75rem;
    }

    .gowan-ec-mobile-list a.gowan-ec-mobile-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }
}

@media (min-width: 768px) {
    .gowan-ec-dots {
        display: none !important;
    }
}
