/* ------------------------------------------------
    イベント詳細：予約カレンダー
    （Figma: お知らせ詳細/ご予約フォーム）
------------------------------------------------- */
.eventBooking {
    --eventCalHiragino: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro", "Noto Sans JP", sans-serif;
    margin: 78px auto 56px;
    max-width: 950px;
}

.eventBooking__lead {
    margin-bottom: 44px;
    text-align: center;
}

.eventBooking__title {
    font-family: var(--fontNotoSansJP);
    font-size: 18px;
    font-weight: 500;
    line-height: 2;
}

.eventBooking__text {
    font-family: var(--fontNotoSansJP);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 2;
}

.eventBooking__text span {
    font-size: 16px;
}

.eventBooking__empty {
    font-size: var(--fontSize16);
    text-align: center;
}

.eventCal {
    color: #333;
    font-family: var(--fontNotoSansJP);
}

/* 月ナビ */
.eventCal__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 10px 40px;
}

.eventCal__month {
    color: #333;
    font-family: var(--eventCalHiragino);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 2;
    white-space: nowrap;
}

.eventCal__nav {
    align-items: center;
    background: none;
    border: 0;
    color: #333;
    cursor: pointer;
    display: flex;
    font-family: var(--eventCalHiragino);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 2;
    padding: 0;
}

.eventCal__nav--prev {
    flex-direction: row-reverse;
}

.eventCal__arrow {
    background: url("../images/event/calendar-arrow.svg") center / contain no-repeat;
    display: block;
    flex: none;
    height: 36.7px;
    width: 37.6px;
}

.eventCal__nav--prev .eventCal__arrow {
    transform: rotate(180deg);
}

/* グリッド */
.eventCal__grid {
    border-left: .88px solid #c8cfd5;
    border-top: .88px solid #c8cfd5;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.eventCal__week,
.eventCal__cell {
    border-bottom: .88px solid #c8cfd5;
    border-right: .88px solid #c8cfd5;
}

.eventCal__week {
    background: #fff;
    color: #1a1a1a;
    font-family: var(--eventCalHiragino);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    padding: 10px 26.389px;
    text-align: center;
}

.eventCal__cell {
    align-items: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 99px;
    padding: 6px 14px 0;
}

.eventCal__cell.is-weekend {
    background: #ffe8e8;
}

.eventCal__cell.is-closed,
.eventCal__cell.is-full {
    background: #eee;
}

.eventCal__cell.is-closed.is-weekend,
.eventCal__cell.is-full.is-weekend {
    background: #ffe8e8;
}

.eventCal__cell.is-available {
    cursor: pointer;
}

/* 日付 */
.eventCal__day {
    align-items: center;
    border-radius: 50%;
    color: #333;
    display: flex;
    flex: none;
    font-family: var(--eventCalHiragino);
    font-size: 18px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    line-height: 1.2;
    width: 34px;
}

.eventCal__cell.is-selected .eventCal__day {
    background: red;
    color: #fff;
    font-family: var(--fontNotoSansJP);
}

/* ○ △ ×（文字） */
.eventCal__mark {
    display: block;
    font-family: var(--fontNotoSansJP);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.eventCal__mark--o {
    color: #3598fc;
}

.eventCal__mark--t {
    color: #ffac33;
}

.eventCal__mark--x {
    color: #333;
    font-weight: 400;
}

/* 凡例 */
.eventCal__legend {
    align-items: center;
    display: flex;
    font-family: var(--fontNotoSansJP);
    font-weight: 500;
    gap: 16px;
    margin-top: 12px;
}

.eventCal__legend li {
    align-items: center;
    display: flex;
    font-size: 14px;
    letter-spacing: .04em;
    line-height: 2;
}

.eventCal__legend .eventCal__mark {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .04em;
    width: auto;
}

.eventCal__note {
    font-size: var(--fontSize15);
    margin-top: 24px;
    text-align: center;
}

/* 時間選択（日付を選ぶと切り替わる） */
.eventCal__dayTitle {
    font-family: var(--fontNotoSansJP);
    font-size: var(--fontSize24);
    font-weight: 500;
    letter-spacing: .1em;
    padding-bottom: 16px;
    text-align: center;
}

.eventCal__dayBody {
    border-top: 1px solid var(--colorLightGray);
    display: grid;
    grid-template-columns: 180px 1fr;
}

.eventCal__dayList,
.eventCal__timeList {
    border-bottom: 1px solid var(--colorLightGray);
}

.eventCal__dayList {
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .15);
    position: relative;
    z-index: 1;
}

.eventCal__dayItem {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--colorLightGray);
    display: flex;
    font-size: var(--fontSize18);
    gap: 24px;
    height: 56px;
    justify-content: center;
}

.eventCal__dayItem:last-child {
    border-bottom: 0;
}

.eventCal__dayItem.is-sun {
    color: #3b8be8;
}

.eventCal__dayItem.is-sat {
    color: #e0457b;
}

.eventCal__dayItem.is-available {
    cursor: pointer;
}

.eventCal__dayItem.is-available:hover {
    background: var(--colorThinGray);
}

.eventCal__dayItem.is-disabled {
    background: var(--colorThinGray);
    color: #aaa;
}

.eventCal__dayItem.is-current {
    background: var(--colorLightYellow);
    color: var(--colorBlack);
    font-weight: 700;
}

.eventCal__dayItemNum {
    font-family: var(--fontRoboto);
    min-width: 2em;
    text-align: right;
}

.eventCal__timeItem {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--colorLightGray);
    display: flex;
    font-size: var(--fontSize18);
    gap: 16px;
    height: 56px;
    padding: 0 24px;
}

.eventCal__timeItem:last-child {
    border-bottom: 0;
}

.eventCal__timeItem[data-time] {
    cursor: pointer;
}

.eventCal__timeItem[data-time]:hover {
    background: var(--colorThinGray);
}

.eventCal__timeItem.is-selected {
    background: var(--colorLightYellow);
    box-shadow: inset 4px 0 0 var(--colorYellow);
    font-weight: 700;
}

.eventCal__timeItem.is-disabled {
    background: var(--colorThinGray);
    color: #aaa;
}

.eventCal__timeText {
    font-family: var(--fontRoboto);
    letter-spacing: .05em;
}

.eventCal__timeNote {
    color: #3b8be8;
    font-size: var(--fontSize15);
    margin-left: auto;
}

.eventCal__timeNote.is-few {
    color: #f5a623;
}

.eventCal__timeItem.is-disabled .eventCal__timeNote {
    color: #aaa;
}

.eventCal__actions {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.eventCal__submit,
.eventCal__back {
    border-radius: 40px;
    cursor: pointer;
    font-family: var(--fontNotoSansJP);
    font-size: var(--fontSize20);
    font-weight: 700;
    letter-spacing: .1em;
    max-width: 100%;
    padding: 16px 0;
    text-align: center;
    width: 340px;
}

.eventCal__submit {
    background: var(--colorYellow);
    border: 4px solid var(--colorYellow);
    color: var(--colorBlack);
    order: 1;
}

.eventCal__submit:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.eventCal__back {
    background: #fff;
    border: 4px solid var(--colorYellow);
    color: var(--colorBlack);
    order: 2;
}

@media screen and (max-width: 767px) {
    .eventBooking {
        margin: 40px auto 32px;
    }

    .eventBooking__lead {
        margin-bottom: 24px;
    }

    .eventBooking__title {
        font-size: 16px;
    }

    .eventBooking__text {
        font-size: 14px;
    }

    .eventCal__head {
        padding: 0 0 8px;
    }

    .eventCal__month {
        font-size: 20px;
    }

    .eventCal__nav {
        font-size: 14px;
    }

    .eventCal__arrow {
        height: 28px;
        width: 28px;
    }

    .eventCal__week {
        font-size: 12px;
        padding: 8px 0;
    }

    .eventCal__cell {
        gap: 2px;
        height: 64px;
        padding: 4px 0 6px;
    }

    .eventCal__day {
        font-size: 14px;
        height: 26px;
        padding: 0;
        width: 26px;
    }

    .eventCal__mark {
        font-size: 16px;
    }

    .eventCal__legend {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .eventCal__dayBody {
        grid-template-columns: 96px 1fr;
    }

    .eventCal__dayItem {
        font-size: 15px;
        gap: 10px;
        height: 52px;
    }

    .eventCal__timeItem {
        font-size: 16px;
        height: 52px;
        padding: 0 16px;
    }

    .eventCal__submit,
    .eventCal__back {
        width: 100%;
    }
}

/* ------------------------------------------------
    予約フォーム（/event-reservation/）
------------------------------------------------- */
.eventReservation__hp {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
}

.eventReservation .eventReservation__summary {
    align-items: center;
    border-bottom: 1px solid #999;
    margin-top: 0;
    min-height: 102px;
    padding: 16px 0;
}

.eventReservation .eventReservation__summary:first-of-type {
    margin-top: calc(8px * 3);
}

.eventReservation__summary .requestForm__itemBox {
    font-size: var(--fontSize16);
    line-height: 1.8;
}

.eventReservation__summary--last {
    margin-bottom: calc(8px * 6);
}

.eventReservation .requestForm__itemBox input[type="text"],
.eventReservation .requestForm__itemBox input[type="email"],
.eventReservation .requestForm__itemBox input[type="tel"],
.eventReservation .requestForm__itemBox textarea {
    border: 1px solid #999;
    border-radius: 4px;
    font-size: var(--fontSize16);
    padding: calc(8px * 1) calc(8px * 2);
    width: 100%;
}

.eventReservation .requestForm__itemBox textarea {
    resize: vertical;
}

.eventReservation__select {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: var(--fontSize16);
    min-width: 200px;
    padding: calc(8px * 1) 40px calc(8px * 1) calc(8px * 2);
}

.eventReservation__check {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: var(--fontSize16);
    gap: 8px;
}

.eventReservation__check a {
    color: var(--colorBlack);
    text-decoration: underline;
}

.eventReservation__error {
    color: #d93025;
    font-size: 14px;
    margin-top: 6px;
}

.eventReservation__errors {
    background: #fdecea;
    border: 1px solid #d93025;
    color: #d93025;
    font-size: var(--fontSize16);
    margin-top: calc(8px * 4);
    padding: 12px 16px;
}

.eventReservation__buttons {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: calc(8px * 8);
}

.eventReservation__buttons .buttonSend,
.eventReservation__buttons .buttonReset {
    min-width: 340px;
    text-align: center;
}

.eventReservation__buttons .buttonReset,
.eventReservation__done .buttonReset {
    color: var(--colorBlack);
    text-decoration: none;
}

.eventReservation__done {
    font-size: var(--fontSize16);
    line-height: 2;
    margin-top: calc(8px * 6);
    text-align: center;
}

.eventReservation__doneTitle {
    font-size: var(--fontSize24);
    font-weight: 700;
    margin-bottom: 16px;
}

.eventReservation__doneTel {
    margin-top: 16px;
}

@media screen and (max-width: 767px) {
    .eventReservation__buttons .buttonSend,
    .eventReservation__buttons .buttonReset {
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }

    .eventReservation .eventReservation__summary {
        align-items: flex-start;
        grid-template-columns: 100%;
        min-height: 102px;
        padding: 16px 0;
    }
}
