.shafu-calendar {
    position: relative;
    max-width: 960px;
    margin: 40px auto;
    padding: 42px 38px 28px;
    overflow: hidden;
    background: #ffffff;
    border: 3px solid #cceff8;
    border-radius: 32px;
    color: #183968;
}

.shafu-calendar::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    top: -85px;
    right: -55px;
    border: 12px solid #8edcf0;
    border-radius: 50%;
    opacity: 0.55;
    pointer-events: none;
}

.shafu-calendar::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 80px;
    left: -15px;
    bottom: 20px;
    background-image:
        radial-gradient(circle, #bfeaf5 4px, transparent 5px);
    background-size: 26px 26px;
    opacity: 0.55;
    pointer-events: none;
}

.calendar-heading {
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
    text-align: center;
}

.calendar-label {
    margin: 0 0 8px;
    color: #38b9e7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.calendar-heading h2 {
    margin: 0;
    color: #183968;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.calendar-line {
    width: 50px;
    height: 4px;
    margin: 14px auto 0;
    background: #4ec4ee;
    border-radius: 999px;
}

.calendar-spark {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.calendar-spark::before,
.calendar-spark::after {
    content: "";
    position: absolute;
    background: #55c5ed;
    border-radius: 999px;
}

.calendar-spark::before {
    width: 3px;
    height: 20px;
    left: 8px;
}

.calendar-spark::after {
    width: 20px;
    height: 3px;
    top: 8px;
}

.spark-1 {
    top: 28px;
    left: 7%;
    transform: rotate(12deg);
}

.spark-2 {
    top: 105px;
    right: 8%;
    transform: scale(0.7) rotate(25deg);
}

#shafu-stamp-calendar {
    position: relative;
    z-index: 2;
}

.shafu-calendar .fc {
    --fc-border-color: transparent;
    --fc-today-bg-color: transparent;
}

.shafu-calendar .fc-toolbar {
    margin-bottom: 22px;
}

.shafu-calendar .fc-toolbar-title {
    color: #183968;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.shafu-calendar .fc-button {
    min-width: 46px;
    height: 42px;
    padding: 0 16px;
    background: #ffffff;
    color: #38b9e7;
    border: 2px solid #48c3ef;
    border-radius: 999px;
    box-shadow: none;
    font-weight: 800;
    transition:
        background 0.2s,
        color 0.2s,
        transform 0.2s;
}

.shafu-calendar .fc-button:hover {
    background: #eefaff;
    color: #169ed1;
    transform: translateY(-2px);
}

.shafu-calendar .fc-col-header-cell {
    padding: 5px;
    background: transparent;
    border: 0;
}

.shafu-calendar .fc-col-header-cell-cushion {
    display: block;
    padding: 9px 4px;
    color: #31517c;
    background: #edf9fc;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
}

.shafu-calendar
.fc-col-header-cell.fc-day-sun
.fc-col-header-cell-cushion {
    color: #e97868;
    background: #fff2ef;
}

.shafu-calendar
.fc-col-header-cell.fc-day-sat
.fc-col-header-cell-cushion {
    color: #179fd2;
    background: #eaf9fd;
}

.shafu-calendar .fc-daygrid-day {
    padding: 5px;
    background: transparent;
    border: 0;
}

.shafu-calendar .fc-daygrid-day-frame {
    min-height: 112px;
    background: #ffffff;
    border: 2px solid #dff3f9;
    border-radius: 20px;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.shafu-calendar
.fc-daygrid-day:hover
.fc-daygrid-day-frame {
    transform: translateY(-3px);
    border-color: #8edcf0;
    box-shadow: 0 7px 0 #edf9fc;
}

.shafu-calendar .fc-daygrid-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    margin: 6px;
    padding: 0;
    color: #31517c;
    background: #f3fbfd;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 800;
}

.shafu-calendar
.fc-day-sun
.fc-daygrid-day-number {
    color: #e97868;
    background: #fff2ef;
}

.shafu-calendar
.fc-day-sat
.fc-daygrid-day-number {
    color: #169fd1;
    background: #eaf9fd;
}

.shafu-calendar
.fc-day-today
.fc-daygrid-day-frame {
    background: #f3fcff;
    border-color: #4ec4ee;
    box-shadow:
        inset 0 0 0 3px #e4f7fc;
}

.shafu-calendar
.fc-day-today
.fc-daygrid-day-number {
    color: #ffffff;
    background: #4ec4ee;
}

.shafu-calendar
.fc-day-other
.fc-daygrid-day-frame {
    background: #fbfdfe;
    border-color: #edf5f7;
}

.shafu-calendar
.fc-day-other
.fc-daygrid-day-number {
    color: #b8cbd4;
    background: #f5f9fa;
}

.shafu-calendar .fc-daygrid-event {
    margin: 2px 0;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* スタンプ */
.stamp-wrap {
    display: flex;
    justify-content: center;
    padding: 3px 0 8px;
}

.stamp {
    position: relative;
    min-width: 60px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 12px;
    background: #ffffff;
    color: #218fba;
    border: 3px solid #4ec4ee;
    border-radius: 999px;
    box-shadow:
        0 4px 0 #d8f2f9,
        0 8px 18px rgba(24, 57, 104, 0.08);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    transform: rotate(-2deg);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.stamp::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px dashed #8edcf0;
    border-radius: 999px;
}

.stamp-check,
.stamp-text {
    position: relative;
    z-index: 2;
}

.stamp-check {
    width: 19px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4ec4ee;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

.stamp-spark {
    position: absolute;
    z-index: 3;
    width: 16px;
    height: 16px;
    top: -8px;
    right: -8px;
    transform: rotate(15deg);
}

.stamp-spark::before,
.stamp-spark::after {
    content: "";
    position: absolute;
    background: #ff9e80;
    border-radius: 999px;
}

.stamp-spark::before {
    width: 3px;
    height: 16px;
    left: 6px;
}

.stamp-spark::after {
    width: 16px;
    height: 3px;
    top: 6px;
}

.shafu-calendar
.fc-daygrid-event:hover
.stamp {
    background: #f3fcff;
    transform:
        translateY(-2px)
        rotate(1deg);
    box-shadow:
        0 5px 0 #d8f2f9,
        0 10px 22px rgba(24, 57, 104, 0.10);
}

/* 使い方 */
.calendar-guide {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 28px auto 0;
    padding: 20px 24px;
    background: #edf9fc;
    border-radius: 18px;
    color: #31517c;
}

.calendar-guide-title {
    margin: 0 0 10px;
    color: #183968;
    font-size: 16px;
    font-weight: 800;
}

.calendar-guide ul {
    margin: 0;
    padding-left: 1.4em;
    font-size: 14px;
    line-height: 1.9;
}

.calendar-storage-note {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid #cceff8;
    color: #738ba8;
    font-size: 12px;
    line-height: 1.8;
}

@media (max-width: 700px) {
    .shafu-calendar {
        margin: 20px auto;
        padding: 28px 10px 20px;
        border-radius: 24px;
    }

    .calendar-heading h2 {
        font-size: 24px;
    }

    .shafu-calendar .fc-toolbar-title {
        font-size: 18px;
    }

    .shafu-calendar .fc-button {
        min-width: 38px;
        height: 38px;
        padding: 0 11px;
    }

    .shafu-calendar .fc-col-header-cell {
        padding: 2px;
    }

    .shafu-calendar .fc-col-header-cell-cushion {
        padding: 7px 2px;
        border-radius: 10px;
        font-size: 12px;
    }

    .shafu-calendar .fc-daygrid-day {
        padding: 2px;
    }

    .shafu-calendar .fc-daygrid-day-frame {
        min-height: 82px;
        border-radius: 13px;
    }

    .shafu-calendar .fc-daygrid-day-number {
        min-width: 27px;
        height: 27px;
        margin: 3px;
        font-size: 12px;
    }

    .stamp {
        min-width: 42px;
        height: 32px;
        padding: 0 7px;
        border-width: 2px;
        font-size: 10px;
    }

    .stamp::before {
        inset: 3px;
    }

    .stamp-check {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }

    .stamp-spark {
        width: 12px;
        height: 12px;
        top: -6px;
        right: -6px;
    }

    .stamp-spark::before {
        width: 2px;
        height: 12px;
        left: 5px;
    }

    .stamp-spark::after {
        width: 12px;
        height: 2px;
        top: 5px;
    }

    .calendar-guide {
        margin-top: 20px;
        padding: 16px;
    }

    .calendar-guide ul {
        font-size: 13px;
    }
}
body.page .wp-entry-title {
    display: none !important;
}