/*========================================
  イベント・見学会予約フォーム
  デザイン幅 1600px

  送信処理とカレンダーの日付選択は未実装（見た目だけ）。
========================================*/
.event-form {
    padding-bottom: 118px;
}

/*----------------------------------------
  ページ見出し（一覧ページと同じ作り）
----------------------------------------*/
.event-form__head {
    padding-top: 20px;
    text-align: center;
}

.event-form__icon {
    display: block;
    width: 40px;
    height: auto;
    margin: 0 auto;
}

.event-form__title {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1;
    text-indent: 0.08em;
}

.event-form__line {
    display: block;
    width: 153.23px;
    height: auto;
    margin: 22px auto 0;
}

.event-form__body {
    max-width: 1200px;
    margin: 24px auto 0;
}

/*----------------------------------------
  予約するイベント
----------------------------------------*/
.event-form__reserve {
    display: flex;
    align-items: center;
    padding: 13px 0;
    border-top: 2px solid gray;
    border-bottom: 2px solid gray;
}

.event-form__reserve-label {
    flex: 0 0 auto;
    width: 145px;
    padding-left: 26px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* 見出しと内容のあいだの縦罫 */
.event-form__reserve-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 0 12px 31px;
    border-left: 1px solid #999;
}

.event-form__reserve-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.event-form__reserve-date {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.event-form__reserve-company {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/*----------------------------------------
  フォームのセクション
  区切り線は左右を少し内側に詰める
----------------------------------------*/
.event-form__section {
    max-width: 1108px;
    margin: 0 auto;
}

.event-form__section-title {
    padding-bottom: 14px;
    border-bottom: 1px solid #999;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-indent: 19px;
}

/* 来場希望日時（1つめ）だけ、予約内容から少し離す */
.event-form__section:first-of-type .event-form__section-title {
    margin-top: 91px;
}

.event-form__section + .event-form__section .event-form__section-title {
    margin-top: 74px;
}

/*----------------------------------------
  ラベル＋入力欄の1行
----------------------------------------*/
.ef-field {
    display: flex;
    align-items: flex-start;
    margin-top: 24px;
    padding-left: 126px;
}

/* 続きの項目とのあいだを少し広くする（デザインのまとまり） */
.ef-field--gap {
    margin-top: 58px;
}

.ef-field__label {
    flex: 0 0 149px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* 先に別の項目を選ぶまで使えない項目 */
.ef-field__label--muted {
    color: #ccc;
}

.ef-field__body {
    flex: 1 1 auto;
    min-width: 0;
}

/* 必須バッジ */
.ef-field__badge {
    display: block;
    width: 51px;
    margin-top: 7px;
    border-radius: 10.37px;
    background: #d4145a;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 20.75px;
    text-align: center;
}

/*----------------------------------------
  入力欄
----------------------------------------*/
.ef-input {
    display: block;
    width: 694px;
    max-width: 100%;
    height: 51px;
    padding: 0 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #efefef;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.ef-input::placeholder {
    color: #cecccc;
    letter-spacing: 0.1em;
}

.ef-input:focus {
    outline: 2px solid #8cb4eb;
    outline-offset: -1px;
}

.ef-input--textarea {
    height: 198.5px;
    padding: 14px 16px;
    border-width: 2px;
    resize: vertical;
}

/* 来場希望日・来場希望時間（カレンダーができるまでの直接入力） */
.ef-input--datetime {
    width: 328.72px;
}

/* 入力欄の下に添える補足（開催期間・開催時間） */
.ef-field__note {
    margin-top: 8px;
    color: #666;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* 来場希望時間は「時」「分」の2つを中黒でつなぐ */
.ef-time {
    display: flex;
    align-items: center;
}

.ef-input--time {
    width: 328.72px;
    height: 54px;
}

.ef-time__separator {
    flex: 0 0 auto;
    width: 37.56px;
    height: 22px;
    background:
        radial-gradient(circle, #000 2px, transparent 2px) center top / 100% 50%
            no-repeat,
        radial-gradient(circle, #000 2px, transparent 2px) center bottom / 100%
            50% no-repeat;
}

/*----------------------------------------
  注記
----------------------------------------*/
.event-form__note {
    margin-top: 60px;
    padding-left: 275px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.event-form__note + .ef-field {
    margin-top: 6px;
}

/*----------------------------------------
  カレンダー
----------------------------------------*/
.ef-calendar {
    width: 700px;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.ef-calendar__head {
    height: 39px;
    line-height: 39px;
    border: 1px solid #999;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
}

.ef-calendar__cell {
    position: relative;
    height: 77.5px;
    padding: 6px 0 0 10px;
    border: 1px solid #999;
    text-align: left;
    vertical-align: top;
}

.ef-calendar__day {
    font-size: 20px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* 曜日ごとの文字色 */
.ef-calendar__cell--sun {
    color: #f792b4;
}

.ef-calendar__cell--sat {
    color: #999;
}

.ef-calendar__cell--weekday {
    color: #5b588c;
}

/* 予約できる日に付く○ */
.ef-calendar__mark {
    position: absolute;
    bottom: 7px;
    left: 50%;
    width: 41px;
    height: 41px;
    transform: translateX(-50%);
    border: 4.19px solid #ccc;
    border-radius: 50%;
}

/*----------------------------------------
  任意項目
----------------------------------------*/
.ef-optional {
    padding-left: 129px;
}

.ef-group {
    margin-top: 32px;
}

.ef-group__title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* アンケートの見出しでは、必須バッジを見出しの横に並べる */
.ef-group__title .ef-field__badge {
    display: inline-block;
    margin: 0 0 0 10px;
    vertical-align: 2px;
}

.ef-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 12px;
}

/* 選択肢は枠だけのボタン。ラジオ本体は隠して枠の見た目で表す */
.ef-chip {
    display: inline-flex;
    cursor: pointer;
}

.ef-chip__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ef-chip__label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 41.5px;
    padding: 0 17px;
    border: 1px solid #999;
    border-radius: 5px;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-align: center;
    transition:
        background 0.3s,
        border-color 0.3s;
}

.ef-chip__input:checked + .ef-chip__label {
    border-color: #f08278;
    background: #f08278;
    color: #fff;
}

.ef-chip__input:focus-visible + .ef-chip__label {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ef-input--area {
    width: 310.5px;
    height: 41.5px;
    margin-top: 12px;
    background: #fff;
    border-color: #999;
}

/*----------------------------------------
  同意と送信
----------------------------------------*/
.event-form__submit-area {
    max-width: 1108px;
    margin: 67px auto 0;
    padding-top: 41px;
    border-top: 1px solid #999;
}

.ef-agree {
    display: flex;
    align-items: center;
    padding-left: 129px;
    cursor: pointer;
}

/* input自体は隠し、見た目は .ef-agree__box で作る */
.ef-agree__input {
    position: absolute;
    width: 30px;
    height: 30px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.ef-agree__box {
    position: relative;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 1px solid #999;
    border-radius: 4.67px;
    background: #fff;
}

.ef-agree__input:checked + .ef-agree__box::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 9px;
    width: 8px;
    height: 16px;
    transform: rotate(45deg);
    border-right: 3px solid #d4145a;
    border-bottom: 3px solid #d4145a;
}

.ef-agree__input:focus-visible + .ef-agree__box {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ef-agree__text {
    margin-left: 14px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.ef-agree__link {
    border-bottom: 1px solid #d4145a;
}

.event-form__submit {
    display: block;
    width: 475px;
    max-width: 100%;
    height: 100px;
    margin: 93px auto 0;
    border-radius: 10.46px;
    background: #f08278;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-align: center;
    text-indent: 0.08em;
    transition: opacity 0.3s;
}

/*----------------------------------------
  エラー表示
----------------------------------------*/
.event-form__errors {
    max-width: 1108px;
    margin: 24px auto 0;
    padding: 20px 24px;
    border: 1px solid #e28383;
    background: #fcefec;
}

.event-form__errors-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.event-form__errors-list {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.8;
    list-style: disc;
}

/*----------------------------------------
  受付完了
----------------------------------------*/
.event-form__complete {
    max-width: 900px;
    margin: 64px auto 0;
    padding-bottom: 80px;
    text-align: center;
}

.event-form__complete-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.6;
}

.event-form__complete-text {
    margin-top: 24px;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 2;
}

.event-form__complete-note {
    margin-top: 24px;
    color: #666;
    font-size: 14px;
    letter-spacing: 0.02em;
    line-height: 1.8;
}

.event-form__complete-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}

.event-form__complete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    max-width: 100%;
    padding: 18px 0;
    border-radius: 10.46px;
    background: #f08278;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-indent: 0.08em;
    transition: opacity 0.3s;
}

.event-form__complete-btn--sub {
    background: #a7ce7a;
}

@media (hover: hover) {
    .event-form__complete-btn:hover,
    .event-form__submit:hover,
    .ef-agree__link:hover {
        opacity: 0.7;
    }

    .ef-chip__input:not(:checked) + .ef-chip__label:hover {
        background: #f7f7f7;
    }
}

/*========================================
  SP / タブレット（1023px 以下）
========================================*/
@media screen and (max-width: 1023px) {
    .event-form {
        padding-bottom: 56px;
    }

    .event-form__head {
        padding-top: 8px;
    }

    .event-form__icon {
        width: 34px;
    }

    .event-form__title {
        margin-top: 10px;
        font-size: 20px;
    }

    .event-form__line {
        width: 110px;
        margin-top: 12px;
    }

    .event-form__body {
        max-width: none;
        margin-top: 20px;
        padding: 0 16px;
    }

    /* 予約内容は縦積みにして、縦罫のかわりに上下の余白で区切る */
    .event-form__reserve {
        display: block;
        padding: 16px 0;
    }

    .event-form__reserve-label {
        width: auto;
        padding-left: 0;
        font-size: 15px;
    }

    .event-form__reserve-body {
        padding: 8px 0 0;
        border-left: 0;
    }

    .event-form__reserve-title,
    .event-form__reserve-company {
        font-size: 18px;
    }

    .event-form__reserve-date {
        font-size: 14px;
    }

    .event-form__section-title {
        padding-bottom: 10px;
        font-size: 16px;
        text-indent: 0;
    }

    .event-form__section:first-of-type .event-form__section-title {
        margin-top: 32px;
    }

    .event-form__section + .event-form__section .event-form__section-title {
        margin-top: 32px;
    }

    /* ラベルは入力欄の上に置く */
    .ef-field,
    .ef-field--gap {
        display: block;
        margin-top: 20px;
        padding-left: 0;
    }

    .ef-field__label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-top: 0;
        font-size: 15px;
    }

    .ef-field__badge {
        margin-top: 0;
        font-size: 11px;
        line-height: 18px;
    }

    .ef-field__body {
        margin-top: 8px;
    }

    .ef-input--datetime {
        width: 100%;
    }

    .ef-field__note {
        margin-top: 6px;
        font-size: 12px;
    }

    .ef-input {
        width: 100%;
        height: 46px;
    }

    .ef-input--textarea {
        height: 150px;
    }

    .ef-input--time {
        width: auto;
        height: 46px;
        flex: 1 1 0;
        min-width: 0;
    }

    .ef-time__separator {
        width: 24px;
    }

    .event-form__note {
        margin-top: 24px;
        padding-left: 0;
        font-size: 13px;
    }

    /* カレンダーは横幅いっぱい。狭いときは横スクロールさせる */
    .ef-field__body--calendar {
        overflow-x: auto;
    }

    .ef-calendar {
        width: 100%;
    }

    .ef-calendar__head {
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }

    .ef-calendar__cell {
        height: 54px;
        padding: 4px 0 0 6px;
    }

    .ef-calendar__day {
        font-size: 14px;
    }

    .ef-calendar__mark {
        bottom: 4px;
        width: 26px;
        height: 26px;
        border-width: 3px;
    }

    .ef-optional {
        padding-left: 0;
    }

    .ef-group {
        margin-top: 24px;
    }

    .ef-group__title {
        font-size: 15px;
    }

    .ef-chips {
        gap: 8px;
        margin-top: 10px;
    }

    .ef-chip__label {
        min-height: 38px;
        padding: 0 12px;
        font-size: 14px;
    }

    .ef-input--area {
        width: 100%;
    }

    .event-form__submit-area {
        margin-top: 32px;
        padding-top: 24px;
    }

    .ef-agree {
        padding-left: 0;
    }

    .ef-agree__box,
    .ef-agree__input {
        width: 24px;
        height: 24px;
    }

    .ef-agree__input:checked + .ef-agree__box::before {
        top: 3px;
        left: 7px;
        width: 7px;
        height: 13px;
    }

    .ef-agree__text {
        margin-left: 10px;
        font-size: 15px;
    }

    .event-form__submit {
        width: 100%;
        height: 64px;
        margin-top: 32px;
        font-size: 17px;
    }

    .event-form__errors {
        margin-top: 16px;
        padding: 16px;
    }

    .event-form__errors-title {
        font-size: 14px;
    }

    .event-form__errors-list {
        font-size: 13px;
    }

    .event-form__complete {
        margin-top: 40px;
        padding-bottom: 48px;
    }

    .event-form__complete-title {
        font-size: 18px;
    }

    .event-form__complete-text {
        margin-top: 20px;
        font-size: 14px;
        line-height: 1.9;
    }

    .event-form__complete-note {
        margin-top: 20px;
        font-size: 12px;
    }

    .event-form__complete-btns {
        gap: 12px;
        margin-top: 32px;
    }

    .event-form__complete-btn {
        width: 100%;
        padding: 16px 0;
        font-size: 14px;
    }
}
