/* イベントLP照合：/contact/event-form/?event=xxx のときだけ読み込む */

/* 日時カレンダー（既存フォームの入力欄に合わせる） */
.sui-event-lp-form .sui-event-lp-picker {
  max-width: 100%;
  background: #fff;
  color: #152227;
  cursor: pointer;
}

.sui-event-lp-form .sui-event-lp-picker:focus {
  outline: 2px solid #152227;
  outline-offset: 2px;
}

.sui-event-lp-form input[name="event_name"][readonly] {
  background: #f4f4f2;
  color: #152227;
  cursor: default;
}

/* 時間はカレンダー内で選ぶため、送信用の既存時間欄は隠す */
.sui-event-lp-form .sui-event-lp-time-row {
  display: none;
}

.sui-event-lp-form .sui-event-lp-clear {
  margin-top: 8px;
  padding: 6px 18px;
  border: 1px solid #152227;
  border-radius: 50px;
  background: #fff;
  color: #152227;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.sui-event-lp-form .sui-event-lp-clear:hover,
.sui-event-lp-form .sui-event-lp-clear:focus-visible {
  background: #152227;
  color: #fff;
}

/* flatpickr をサイトのトーン（明朝・濃紺）に合わせる */
.flatpickr-calendar {
  font-family: 'Shippori Mincho', serif;
  color: #152227;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(21, 34, 39, 0.18);
}

/* フォーム全体の select / input の min-height（60px）をカレンダー内では解除 */
.flatpickr-calendar select,
.flatpickr-calendar input {
  min-height: 0;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
span.flatpickr-weekday {
  color: #152227;
  fill: #152227;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: #152227;
  border-color: #152227;
  color: #fff;
}

.flatpickr-day.today {
  border-color: #be0000;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(21, 34, 39, 0.25);
}

.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator {
  font-family: inherit;
  color: #152227;
}

/* 未照合・受付不可の案内 */
.sui-event-lp-notice {
  text-align: center;
  color: #152227;
}

.sui-event-lp-notice .sui-event-lp-notice__title {
  margin: 0 0 1em;
  font-size: 20px;
  font-weight: 700;
}

.sui-event-lp-notice .sui-event-lp-notice__text {
  margin: 0 0 0.75em;
  line-height: 1.9;
}

.sui-event-lp-notice .sui-event-lp-notice__link {
  margin: 2em 0 0;
}

.sui-event-lp-notice .sui-event-lp-notice__link a {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid #152227;
  border-radius: 50px;
  background: #152227;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.sui-event-lp-notice .sui-event-lp-notice__link a:hover,
.sui-event-lp-notice .sui-event-lp-notice__link a:focus-visible {
  background: #fff;
  color: #152227;
}

@media screen and (max-width: 767px) {
  .sui-event-lp-notice .sui-event-lp-notice__title {
    font-size: 17px;
  }

  .sui-event-lp-notice .sui-event-lp-notice__text {
    font-size: 15px;
    text-align: left;
  }

  .sui-event-lp-notice .sui-event-lp-notice__link a {
    padding: 14px 32px;
  }
}

/* 専用ページ（入力・確認・完了）：既存イベント予約ページの縦書き見出し＋白いフォームパネルに合わせる */
.sui-event-lp-page .site-body {
  padding-top: 100px;
}

.sui-event-lp-layout {
  display: flex;
  justify-content: space-between;
}

.sui-event-lp-layout__side {
  position: sticky;
  top: 175px;
  width: 6.5%;
  height: 60vh;
  text-align: center;
  white-space: nowrap;
}

.sui-event-lp-layout__title {
  margin: 0 !important;
  writing-mode: vertical-rl;
  font-size: 32px;
}

.sui-event-lp-layout__main {
  width: 85%;
}

.sui-event-lp-panel {
  margin: 4rem 0;
  padding: 4rem 0;
  background: #fff;
  color: #000;
}

.sui-event-lp-panel a {
  color: #000;
}

.sui-event-lp-panel .form-leadText {
  padding: 0 20px;
  font-size: 20px;
}

.sui-event-lp-panel .form-box {
  padding: 60px 20px;
}

@media (min-width: 768px) {
  .sui-event-lp-panel {
    padding-right: 30px;
    padding-left: 30px;
  }
}

@media (min-width: 1200px) {
  .sui-event-lp-panel {
    padding-right: 50px;
    padding-left: 50px;
  }
}

@media screen and (max-width: 768px) {
  .sui-event-lp-page .site-body {
    padding-top: 50px;
  }

  .sui-event-lp-layout__side {
    margin-left: -5px;
  }

  .sui-event-lp-layout__title {
    font-size: 24px;
  }
}

@media screen and (max-width: 767px) {
  .sui-event-lp-panel .form-leadText {
    font-size: 18px;
  }

  .sui-event-lp-panel .form-box {
    padding: 40px 16px;
  }
}

/* 完了ページ */
.sui-event-lp-thanks .status li.current {
  color: #152227;
}

.sui-event-lp-thanks .status li.current .num::before {
  background: #152227;
}

.sui-event-lp-thanks .status li.current .num::after {
  border: 1px solid #152227;
}

.sui-event-lp-thanks .sui-event-lp-thanks__title {
  margin: 0 0 1.5em;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: #152227;
}

.sui-event-lp-thanks p {
  margin: 0 0 1.2em;
  line-height: 2;
}

.sui-event-lp-thanks .sui-event-lp-thanks__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 2.5em 0 0;
  padding: 0;
  list-style: none;
}

.sui-event-lp-button {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid #152227;
  border-radius: 50px;
  background: #152227;
  color: #fff !important;
  text-decoration: none;
  transition: 0.3s;
}

.sui-event-lp-button:hover,
.sui-event-lp-button:focus-visible {
  background: #fff;
  color: #152227 !important;
}

.sui-event-lp-button--outline {
  background: #fff;
  color: #152227 !important;
}

.sui-event-lp-button--outline:hover,
.sui-event-lp-button--outline:focus-visible {
  background: #152227;
  color: #fff !important;
}

@media screen and (max-width: 767px) {
  .sui-event-lp-thanks .sui-event-lp-thanks__title {
    font-size: 19px;
  }

  .sui-event-lp-thanks p {
    font-size: 15px;
  }

  .sui-event-lp-button {
    padding: 14px 32px;
  }
}

/* フォーム部品：既存イベント予約ページ（ページ個別CSS）と同じ表示を専用パネル内だけに適用 */
.sui-event-lp-panel .status {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 80px !important;
  padding: 0;
  list-style: none;
}

.sui-event-lp-panel .status::before {
  position: absolute;
  top: 31px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: #152227;
  transform: translateX(-50%);
  content: "";
}

.sui-event-lp-panel .status li {
  font-size: 20px;
  font-weight: 500;
  color: #cfcfcf;
}

.sui-event-lp-panel .status .num {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  aspect-ratio: 1 / 1;
  line-height: 1;
  color: #fff;
}

.sui-event-lp-panel .status li .num::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 40px;
  height: 40px;
  background: #cfcfcf;
  transform: translate(-50%, -50%) rotate(45deg);
  content: "";
}

.sui-event-lp-panel .status li .num::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: 50px;
  height: 50px;
  border: 1px solid #cfcfcf;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
  content: "";
}

.sui-event-lp-panel .status li.current {
  color: #152227;
}

.sui-event-lp-panel .status li.current .num::before {
  background: #152227;
}

.sui-event-lp-panel .status li.current .num::after {
  border: 1px solid #152227;
}

.sui-event-lp-panel .form-box dl + dl {
  margin-top: 40px;
}

.sui-event-lp-panel .form-row {
  display: grid;
}

.sui-event-lp-panel .form-row dt {
  margin-bottom: 0;
  font-weight: 700;
}

.sui-event-lp-panel .form-row dt label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 30px;
  transform: translateY(-50%);
}

.sui-event-lp-panel .form-row.--aifs dt label {
  align-items: flex-start;
}

.sui-event-lp-panel .form-row dt .require {
  padding: 3px;
  background: #be0000;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.sui-event-lp-panel .form-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 60px;
}

.sui-event-lp-panel input[type="date"]::placeholder,
.sui-event-lp-panel input[type="email"]::placeholder,
.sui-event-lp-panel input[type="tel"]::placeholder,
.sui-event-lp-panel input[type="text"]::placeholder,
.sui-event-lp-panel input[type="url"]::placeholder,
.sui-event-lp-panel select::placeholder,
.sui-event-lp-panel textarea::placeholder {
  color: #acacac;
  font-family: inherit;
}

.sui-event-lp-panel input[type="date"],
.sui-event-lp-panel input[type="email"],
.sui-event-lp-panel input[type="tel"],
.sui-event-lp-panel input[type="text"],
.sui-event-lp-panel input[type="url"],
.sui-event-lp-panel select,
.sui-event-lp-panel textarea {
  min-height: 60px;
  font-family: inherit;
}

.sui-event-lp-panel input[type="submit"].mwSubmit,
.sui-event-lp-panel input[type="submit"].mwReturn,
.sui-event-lp-panel input[type="button"].mwReturn {
  display: inline-block;
  padding: 20px 60px;
  border: 1px solid #152227;
  border-radius: 50px;
  background: #152227;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.sui-event-lp-panel .mwSubmit:hover,
.sui-event-lp-panel .mwReturn:hover {
  background: #fff;
  color: #152227;
}

.sui-event-lp-panel .submit-btn {
  margin-top: 60px;
}

.sui-event-lp-panel .return-btn {
  margin-top: 20px;
}

@media screen and (min-width: 768px) {
  .sui-event-lp-panel .form-row {
    grid-template-columns: 25% 1fr;
    gap: 15px;
  }

  .sui-event-lp-panel .form-row dd + dd {
    margin-top: 15px;
  }
}

@media screen and (max-width: 767px) {
  .sui-event-lp-panel .status::before {
    top: 26px;
  }

  .sui-event-lp-panel .status li {
    font-size: 16px;
  }

  .sui-event-lp-panel .status li .num::before {
    width: 30px;
    height: 30px;
  }

  .sui-event-lp-panel .status li .num::after {
    width: 40px;
    height: 40px;
  }

  .sui-event-lp-panel .form-row dd {
    min-height: 40px;
  }

  .sui-event-lp-panel input[type="date"],
  .sui-event-lp-panel input[type="email"],
  .sui-event-lp-panel input[type="tel"],
  .sui-event-lp-panel input[type="text"],
  .sui-event-lp-panel input[type="url"],
  .sui-event-lp-panel select,
  .sui-event-lp-panel textarea {
    min-height: 40px;
  }

  .sui-event-lp-panel input[type="submit"].mwSubmit,
  .sui-event-lp-panel input[type="submit"].mwReturn,
  .sui-event-lp-panel input[type="button"].mwReturn {
    padding: 15px 45px;
  }
}
