.myoshin-calendar-wrap {
    display: grid;
    gap: 18px;
}

.myoshin-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 1.05rem;
}

.myoshin-calendar-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #2f5d50;
    color: #2f5d50;
    text-decoration: none;
}

.myoshin-calendar-grid {
    display: grid;
    gap: 14px;
}

.myoshin-calendar-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) minmax(140px, 180px);
    gap: 16px;
    border: 1px solid #dfe7e1;
    border-radius: 14px;
    background: #ffffff;
    padding: 14px;
}

.myoshin-calendar-date {
    border-right: 1px dashed #b7c7bf;
    padding-right: 12px;
    text-align: center;
}

.myoshin-calendar-date h3 {
    margin: 4px 0 0;
    font-size: 1.9rem;
    line-height: 1;
}

.myoshin-calendar-date span,
.myoshin-date-month {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4f6663;
}

.myoshin-event-image {
    align-self: center;
}

.myoshin-event-image img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

.myoshin-calendar-event h4 {
    margin: 0;
    font-size: 1.12rem;
}

.myoshin-calendar-event h5 {
    margin: 6px 0 8px;
    font-size: 0.95rem;
    color: #4f6663;
}

.myoshin-calendar-event p {
    margin: 0 0 6px;
}

.myoshin-continue {
    color: #2f5d50;
    font-weight: 700;
}

.myoshin-popup {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2147483000;
}

.myoshin-popup.is-open {
    display: grid;
    place-items: center;
}

.myoshin-popup-inner {
    width: min(760px, 92vw);
    max-height: 82vh;
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    position: relative;
}

.myoshin-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.myoshin-upcoming-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.myoshin-up-date {
    color: #4f6663;
    font-size: 0.88rem;
}

.myoshin-widget-box {
    display: grid;
    gap: 8px;
}

.myoshin-widget-box h4 {
    margin: 0;
}

.myoshin-thought-vertical {
    display: grid;
    gap: 8px;
}

.myoshin-thought-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.myoshin-thought-slug {
    margin: 0;
    padding: 10px;
    border: 1px dashed #9eb2a8;
    border-radius: 10px;
    color: #324643;
}

@media (max-width: 768px) {
    .myoshin-calendar-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .myoshin-calendar-date {
        border-right: 0;
        border-bottom: 1px dashed #b7c7bf;
        padding-right: 0;
        padding-bottom: 8px;
        text-align: left;
    }

    .myoshin-event-image img {
        max-width: 100%;
    }
}
