body {
  color: #212121;
}
.form-event-mv {
  text-align: center;
  img {
    width: calc(100% - 64px);
    margin-top: 32px;
  }
}
.form-event-summary {
  max-width: 760px;
  margin-top: -80px;
  margin-inline: auto;
  background-color: #fff;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
  padding: 40px;
}
#icj-mainArea .form-event-summary__schedule {
  background: #D5000E;
  color: #fff;
  width: fit-content;
  padding: 10px 33px;
  border-radius: 19px;
  line-height: 1;
}
.form-event-summary__date {
  margin-top: 20px;
}
.form-event-summary__date-label {
  background: #585858;
  color: #fff;
  display: inline-block;
  line-height: 1;
  font-size: 14px;
  border-radius: 5px;
  padding: 7px 10px;
  margin-right: 10px;
}
.form-event-summary__title {
  margin-top: 15px;
  font-size: 24px;
}
.form-event-summary__bnr {
  background: #E88B05;
  color: #fff;
  border-radius: 28px;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 56px;
  line-height: 56px;
  margin-inline: auto;
  margin-top: 37px;
  transition: opacity 300ms;
  &:hover {
    opacity: 0.85;
  }
  a {
    display: block;
    text-align: center;
    color: #fff;
    font-weight: bold;
    font-size: 17px;
  }
  span {
    position: absolute;
    right: 20px;
    top: 0;
    margin-left: auto;
    font-weight: bold;
  }
}
.form-event-summary__guide {
  margin-top: 37px;
  background: #F6F8F9;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  .form-event-summary__guide-title {
    font-size: 19px;
    font-weight: bold;
    display: flex;
    align-items: center;
    &:before {
      content: "";
      display: inline-block;
      height: 20px;
      width: 3px;
      margin-right: 10px;
      background: #185463;
    }
  }
  .form-event-summary__guide-address {
    font-size: 14px;
    margin-top: 8px;
  }
  .form-event-summary__guide-tel {
    font-size: 14px;
    margin-top: 8px;
    a {
      color: #212121;
    }
  }
  .form-event-summary__guide-access {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 0;
    font-size: 13px;
    margin-top: 8px;
    p {
      color: #8C8C8C;
      margin-right: 12px;
    }
    .iwaki-access-parts {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 0;
      .iwaki-access-label {
        width: 40px;
        height: 20px;
        display: flex;
        color: #8C8C8C;
        margin-right: 12px;
        text-align: center;
        justify-content: center;
        align-items: center;
        border: 1px solid #DEE3E7;
        background-color: #FFFFFF;
        padding: 2px 4px;
        text-align: center;
        border-radius: 4px;
        font-size: 12px;
      }
      .iwaki-access-detail {
        margin-right: 12px;
        font-size: 14px;
      }
    }
  }
  .gmap_url {
    position: absolute;
    top: 0;
    right: 20px;
    width: 100%;
    max-width: 78px;
    height: 27px;
    img {
      width: 100%;
      height: auto;
    }
  }
}

@media screen and (max-width: 768px) {
  .form-event-mv {
    img {
      margin-top: 0;
      width: 100%;
    }
  }
  .form-event-summary {
    width: calc(100% - 30px);
    padding: 20px 16px;
    margin-top: -50px;
    .form-event-summary__date {
      margin-top: 15px;
    }
    .form-event-summary__title {
      font-size: 20px;
    }
    .form-event-summary__guide {
      margin-top: 20px;
      padding: 15px;
      .form-event-summary__guide-title {
        font-size: 17px;
      }
      .form-event-summary__guide-address {
        font-size: 13px;
      }
      .form-event-summary__guide-tel {
        font-size: 13px;
      }
      .tel_ico {
        display: none;
      }
      .form-event-summary__guide-access {
        display: block;
      }
      .iwaki-access-parts {
        gap: 5px 0;
        margin-top: 5px;
        .break {
          flex-basis: 100%;
          height: 0;
        }
      }
    }
    .form-event-summary__bnr {
      margin-top: 20px;
      height: 44px;
      line-height: 44px;
    }
  }
  #icj-mainArea .form-event-summary__schedule {
    padding: 6px 11px;
    font-size: 15px;
  }
  .form-event-summary__guide .gmap_url {
    max-width: 74px;
    height: 29px;
    right: 15px;
    top: 15px;
    img {
      margin-top: 0;
    }
  }
  .iwaki-access-parts .iwaki-access-detail {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* 入力フォーム（セクションごとのカード） */
.iwaki-form-wrap {
  max-width: 960px;
  padding-top: 20px;
  width: 100%;
  margin: auto;
}

.form-page .iwaki-closed {
  color: #c00;
  padding: 20px;
}

.form-page #event_form {
  font-size: 27px;
  font-weight: bold;
  padding-top: 0;
  margin-top: 0;
  line-height: 1;
}

.form-page .pca-title {
  padding-bottom: 25px;
}

.form-page .form-content.iwaki-form {
  margin-bottom: 0;
  padding: 0;
  background: none;
  &::before,
  &::after {
    display: none;
  }
}

.form-page .iwaki-form {
  font-size: 16px;
  color: #28303a;

  input[type="text"],
  select,
  textarea {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #E8E8E8;
    border-radius: 5px;
    background-color: #eee;
    font-size: 16px;
  }
  /* 日付は readonly の input だが、見た目は select と揃える */
  select,
  .iwaki-datepicker {
    padding-right: 40px;
    background: #eee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
    cursor: pointer;
  }
  textarea {
    height: 112px;
    padding: 8px 10px;
  }
  input::placeholder,
  textarea::placeholder {
    color: #aaa;
  }
  .form-required {
    flex-shrink: 0;
  }
  .form-notes {
    font-size: 13px;
  }
}

.form-page .iwaki-card {
  padding: 30px 50px 28px 50px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
  & + .iwaki-card {
    margin-top: 25px;
  }
}

.form-page .iwaki-card__title {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  color: #212121;
  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -15px;
    width: 3px;
    height: 16px;
    background: #D5000E;
    transform: translateY(-50%);
  }
}

.form-page .iwaki-card__note {
  margin: 36px 0 0 247px;
}

.form-page .iwaki-row {
  display: grid;
  grid-template-columns: 247px minmax(0, 1fr);
  align-items: start;
  margin-top: 36px;
  .iwaki-card__title + & {
    margin-top: 0;
  }
}

.form-page .iwaki-row--no-label .iwaki-row__field {
  grid-column: 2;
}

.form-page .iwaki-row__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 34px;
  font-weight: 500;
  line-height: 1.6;
  .form-required {
    margin-left: 0;
  }
}

.form-page .iwaki-row__note {
  margin-top: 8px;
}

.form-page .iwaki-sep {
  flex-shrink: 0;
}

/* 来場日時 */
.form-page .iwaki-visit-inner {
  display: flex;
  gap: 16px;
  > * {
    flex: 1;
  }
  select {
    color: #000;
    &:has(option[value=""]:checked) {
      color: #999999;
    }
    option {
      color: #000;
    }
    option[value=""],
    option:disabled {
      color: #999999;
    }
  }
}

/* お名前 */
.form-page .iwaki-name {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  .form-name {
    flex: 1;
    margin: 0;
  }
  .form-name-inner {
    gap: 12px;
  }
  .form-name-input {
    flex: 1;
    width: auto;
    margin: 0;
  }
  .form-name .errormess {
    width: auto;
    margin-left: 0;
  }
  > .errormess {
    flex-basis: 100%;
  }
}

/* 電話番号 */
.form-page .form-tel-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-page .iwaki-form .form-tel-inner input[type="text"] {
  width: 159px;
}

/* ご要望・ご質問 */
.form-page .iwaki-comment {
  margin: 0;
  line-height: 1.6;
}

/* 個人情報・同意・送信 */
.form-page .iwaki-privacy {
  margin-top: 40px;
  padding: 0 48px;
  font-size: 13px;
  p {
    line-height: 1.9;
  }
}
.form-page .iwaki-privacy__title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: bold;
  * + & {
    margin-top: 24px;
  }
}
.form-page #form .iwaki-privacy__link {
  margin-top: 24px;
  a {
    color: #1a6fd0;
    font-weight: bold;
  }
}
.form-page #form .privacy__advice {
  width: 430px;
  margin: 40px auto 0;
  padding: 14px 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form-page .iwaki-submit {
  margin-top: 34px;
  .button {
    min-width: 420px;
    height: 80px;
    font-size: 18px;
    font-weight: bold;
    &::after {
      display: none;
    }
  }
}

@media screen and (max-width: 768px) {
  .form-page #event_form {
    padding-bottom: 16px;
    font-size: 18px;
    text-align: center;
  }
  .form-page .iwaki-form {
    font-size: 13px;
    input[type="text"],
    select,
    textarea {
      height: 33px;
      font-size: 13px;
    }
    textarea {
      height: 76px;
    }
    .form-notes {
      font-size: 12px;
    }
  }
  .form-page .iwaki-card {
    padding: 18px 10px 24px;
    & + .iwaki-card {
      margin-top: 16px;
    }
    &:last-of-type {
      .iwaki-card__title {
        margin-bottom: 0;
      }
    }
  }
  .form-page .iwaki-card__title {
    margin-bottom: 20px;
    font-size: 15px;
    &::before {
      left: -9px;
      height: 14px;
    }
  }
  .form-page .iwaki-card__note {
    margin: 10px 0 0;
  }
  .form-page .iwaki-row {
    display: block;
    margin-top: 26px;
  }
  .form-page .iwaki-row__label {
    gap: 4px 8px;
    min-height: 0;
    margin-bottom: 10px;
    padding-right: 0;
    line-height: 1.5;
    font-size: 14px;
    .form-required {
      font-size: 10px;
    }
  }
  .form-page .iwaki-visit-inner {
    flex-direction: column;
    gap: 8px;
    /* 縦並びで flex: 1 のままだと高さが潰れる */
    > * {
      flex: none;
    }
  }
  /* SPは姓・名を縦に積む */
  .form-page .iwaki-name {
    flex-direction: column;
    gap: 8px;
  }
  .form-page .iwaki-form .form-tel-inner input[type="text"] {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .form-page .iwaki-privacy {
    margin-top: 24px;
    padding: 0 9px;
    font-size: 11px;
    p {
      line-height: 1.7;
    }
  }
  .form-page .iwaki-privacy__title {
    margin-bottom: 6px;
    font-size: 13px;
    * + & {
      margin-top: 20px;
    }
  }
  .form-page #form .iwaki-privacy__link {
    margin-top: 16px;
    font-size: 13px;
  }
  .form-page #form .privacy__advice {
    width: auto;
    margin: 24px 9px 0;
    padding: 12px 13px;
  }
  .form-page .privacy__advice__inner {
    justify-content: flex-start;
    text-align: left;
    .custom-radio.privacy > input[type="checkbox"] + span {
      padding-right: 0;
      font-size: 12px;
    }
  }
  .form-page .iwaki-submit {
    margin-top: 28px;
    .button {
      min-width: 0;
      width: calc(100% - 18px);
      height: 48px;
      font-size: 15px;
    }
  }
  label.form-name-label {
    color: #858585;
  }
}

/* スライダー（Swiper） */
.form-event-slider {
  margin-top: 50px;
  padding-top: 50px;
  background: #EDE6D8;
}
.form-event-slider__item {
  max-width: 600px;
  margin-inline: auto;
  p {
    line-height: 170%;
    margin-top: 20px;
    color: #333;
  }
}
.iwaki-slider {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.iwaki-slider__body {
  position: relative;
}
.iwaki-slider-item {
  margin: 0;
  padding-bottom: 10px;
  .iwaki-slider-item__title {
    min-height: 36px;
    margin: 0 0 32px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    line-height: 36px;
    color: #333;
  }
  img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
  }
  figcaption {
    margin-top: 14px;
    font-size: 13px;
    color: #595959;
  }
}
.iwaki-slider__nav {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
.iwaki-slider__prev,
.iwaki-slider__next {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  &::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
  }
}
.iwaki-slider__prev {
  transform: translateX(calc(-100% - 18px));
  &::before {
    transform: translate(-30%, -50%) rotate(-135deg);
  }
}
.iwaki-slider__next {
  transform: translateX(calc(100% + 18px));
  &::before {
    transform: translate(-70%, -50%) rotate(45deg);
  }
}
.iwaki-slider__pagination.swiper-pagination-bullets {
  display: flex;
  justify-content: center;
  margin-top: 2px;
  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0;
    background: #bbb;
    opacity: 1;
  }
  .swiper-pagination-bullet-active {
    background: #585858;
  }
}

@media screen and (min-width: 769px) {
  #icj-main {
    overflow-x: clip;
  }
  .form-event-slider {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }
  .iwaki-slider {
    max-width: none;
    border-bottom: none;
  }
  .iwaki-slider .iwaki-slider-item {
    width: 450px !important;
    transition: transform 500ms;
    img,
    figcaption,
    .iwaki-slider-item__title {
      transition: opacity 500ms;
    }
    &:not(.swiper-slide-active) {
      transform: scale(0.9);
      img {
        opacity: 0.5;
      }
      figcaption {
        opacity: 0.5;
      }
      .iwaki-slider-item__title {
        opacity: 0;
      }
    }
  }
  .iwaki-slider__nav {
    left: 50%;
    right: auto;
    width: 450px;
    transform: translateX(-50%);
  }
  .iwaki-slider__pagination.swiper-pagination-bullets {
    max-width: 450px;
    margin-inline: auto;
    padding-bottom: 11px;
  }
}

@media screen and (max-width: 768px) {
  .form-event-slider {
    margin-top: 11px;
    padding-top: 25px;
  }
  .iwaki-slider .iwaki-slider-item .iwaki-slider-item__title {
    min-height: 30px;
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 30px;
  }
  .form-event-slider .form-event-slider__bnr {
    margin-top: 40px;
    width: calc(100% - 50px);
    padding-bottom: 48px;
  }
  .iwaki-slider {
    width: calc(100% - 60px);
    max-width: 450px;
    margin: 0 auto;
    padding-bottom: 11px;
    .iwaki-slider__prev {
      margin-left: -16px;
    }
    .iwaki-slider__next {
      margin-right: -16px;
    }
  }
  #icj-mainArea .form-event-slider__item p {
    font-size: 15px;
    width: calc(100% - 50px);
    margin-inline: auto;
    line-height: 170%;
  }
  .iwaki-slider__nav {
    top: 50px;
  }
  .iwaki-slider__prev,
  .iwaki-slider__next {
    transform: none;
  }
  .iwaki-slider .iwaki-slider__swiper {
    margin-inline: -10px;
    padding-inline: 10px;
  }
}

.form-event-slider__bnr {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  margin-top: 36px;
  padding-bottom: 54px;
  transition: opacity 300ms;
  &:hover {
    opacity: 0.85;
  }
  img {
    width: 100%;
  }
}

/* 確認画面 */
.form-page #subtitleArea .dashed-title + p {
  margin-left: 0;
}
.form-table-wrapper tr th {
  padding: 18px 0;
}
@media screen and (max-width: 768px) {
  .form-page #subtitleArea .dashed-title + p {
    margin: 0;
    font-size: 16px;
    text-align: left;
    margin: 10px 0 20px;
  }
}