@charset 'UTF-8';

:root {
  --border-color: #707070;
  --error-background-color: #ffeaea;
  --form-background-color: #e0e0e0;
  --form-border-color: #bbb;
  --form-title-color: #ffe678;
  --icon-font-family: 'Font Awesome 6 Free';
  --link-color: #0056b3;
  --main-color: #f9cc00;
  --main-color-hover: #c9a400;
  --main-font-family: 'Noto Sans JP', sans-serif;
  --num-font-family: 'Helvetica Neue' , Helvetica , Arial;
  --sub-color: #d71418;
  --text-color: #333;
  --transition-animation: all .3s 0s ease;
}

div.wpcf7 .wpcf7-spinner {
  display: none !important;
}


.mw_wp_form .error {
  background-color: var(--error-background-color) ;
  margin-top: 4px;
  padding: 8px;
}
/*
======================================
reserve-form
======================================
*/
.reserve-form-table {
  width: 100%;
}


.reserve-form__section {
  padding-bottom: 64px;
}

.reserve-form__title {
  align-items: center;
  background-color: var(--form-title-color);
  background-image: url('../images/background-gear-single.png');
  background-position: center left;
  background-repeat: no-repeat;
  background-size: 32px 64px;
  display: flex;
  font-size: 24px;
  margin-bottom: 40px;
  overflow-x: hidden;
  padding: 32px;
}


.reserve-form-table__subtitle {
  background-color: var(--sub-color);
  color: white;
  font-size: 18px;
  height: fit-content;
  margin-right: 64px;
  padding: 4px 16px;
}

.reserve-form-table__head {
  background-color: var(--form-background-color);
  line-height: 1.4;
  padding: 24px;
  position: relative;
  width: 400px;
}

.reserve-form-table__required {
  align-items: center;
  background-color: var(--sub-color);
  color: white;
  display: flex;
  font-size: 12px;
  height: 24px;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 64px;
}

.mw_wp_form_confirm .reserve-form-table__required,
.mw_wp_form_confirm .form-input-select::after,
.mw_wp_form_confirm .reserve-form-table__text {
  display: none;
}

.mw_wp_form_confirm .form-input-prev,
.mw_wp_form_confirm .reserve-form-popupbutton {
  display: none;
}

.reserve-form-table__data {
  padding: 16px 24px;
  width: 600px;
}

.reserve-form-table__text {
  color: var(--border-color);
  font-size: 14px;
  margin-top: 10px;
}

@media screen and (max-width:1024px) and (min-width:600px) {
  .reserve-form-table__title {
    display: block;
    width: calc(100% - 64px);
  }
  .reserve-form-table__head {
    width: 40%;
  }
  .reserve-form-table__data {
    width: 60%;
  }
}

@media screen and (max-width:599px) {
  .reserve-form-table__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .reserve-form-table__data {
    display: block;
    padding: 16px 8px;
    width: 100%;
  }
  .reserve-form__title {
    flex-wrap: wrap;
    font-size: 20px;
    padding: 16px 24px;
    row-gap: 8px;
  }
  .reserve-form-table__required {
    position: static;
  }
}


/*
======================================
ポップアップ
======================================
*/

.reserve-form-popupbutton {
  background-color: var(--sub-color);
  border: 1px solid var(--sub-color);
  border-radius: 8px;
  color: white;
  display: block;
  padding: 16px;
}

.reserve-form-popupbutton__text {
  color: white;
}

.reserve-form-popupbutton:hover {
  background-color: white;
  color: var(--sub-color);
  transition: var(--transition-animation);
}

/* ポップアップ */
.reserve-form-popup {
  background: rgba(0, 0, 0, .5);
  height: 100%;
  left: 0;
  position: fixed;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}

.reserve-form-popup__items {
  background-color: white;
  left: 50%;
  max-height: 80vh;
  max-width: 800px;
  min-height: 300px;
  overflow-y: scroll;
  padding: 32px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.reserve-form-popup__item {
  margin-bottom: 32px;
}

.reserve-form-popup__flewbox {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.reserve-form-popup__images {
  width: 25%;
}

.reserve-form-popup__title {
  border-bottom: 1px solid var(--border-color);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  padding: 16px;
  text-align: center;
}

.reserve-form-popup__subtitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
}

.reserve-form-popup__strong {
  color: var(--sub-color);
}

.reserve-form-popup-step {
  background-color: var(--form-title-color);
  font-size: 16px;
  margin-right: 8px;
  padding: 8px 16px;
}

.reserve-form-popup--open {
  animation: FadeIn-PopUp .6s ease forwards;
}

.reserve-form-popup--close {
  animation: FadeOut-PopUp .6s ease forwards;
}

.reserve-form-popup--none {
  visibility: hidden;
}

@keyframes FadeIn-PopUp {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes FadeOut-PopUp {
  0% {
    display: fixed;
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@media screen and (max-width:599px) {
  .reserve-form-popup__flewbox {
    flex-direction: column;
    gap: 0;
  }
  .reserve-form-popup__images {
    margin-bottom: 8px;
    order: 1;
    width: 100%;
  }
  .reserve-form-popup__items {
    padding: 24px;
    width: 90%;
  }
  .reserve-form-popup-step {
    display: block;
    margin-bottom: 8px;
  }
  .reserve-form-popup__subtitle {
    margin-bottom: 16px;
  }
}

/* --------------------------
添付ファイルボックス
---------------------------*/
.reserve-form-dropapreas {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.mw_wp_form_confirm .reserve-form-dropapreas {
  display: block;
}

@media screen and (max-width:1024px) {
  .reserve-form-dropapreas {
    flex-wrap: nowrap;
    overflow-x: scroll;
    width: calc((100vw / 1024) * 504);
  }
  .reserve-form-dropapreas::-webkit-scrollbar {
    height: 12px;
  }

  .reserve-form-dropapreas::-webkit-scrollbar-track {
    background-color: #ccc;
    border-radius: 24px;
  }

  .reserve-form-dropapreas::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 24px;
  }
  .mw_wp_form_confirm .reserve-form-dropapreas::-webkit-scrollbar {
    display: none;
  }
  .mw_wp_form_confirm .reserve-form-dropapreas::-webkit-scrollbar-track {
    display: none;
  }
}

@media screen and (max-width:599px) {
  .reserve-form-dropapreas {
    width: calc((100vw / 375) * 320);
  }
}

/* ----------------------------------
background
----------------------------------*/
#background-popup {
  z-index: 15;
}

/*---------------------
reserve-thanks
----------------------*/
.reserve-thanks {
  border: solid 2px var(--main-color);
  padding: 64px 20px;
}

.reserve-thanks__title {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.reserve-thanks__text {
  margin-bottom: 40px;
  text-align: center;
}

.form-button {
  background-color: var(--main-color);
  border: solid 2px var(--main-color);
  border-radius: 12px;
  color: var(--text-color);
  display: block;
  font-size: 24px;
  font-weight: bold;
  margin: auto;
  max-width: 400px;
  padding: 16px 24px;
  position: relative;
  text-align: center;
  width: 100%;
}

.form-button::after {
  color: var(--text-color);
  content: '\f054';
  font-family: var(--icon-font-family);
  font-weight: 600;
  position: absolute;
  right: 20px;
  top: 16px;
}

.form-button:hover {
  background-color: white;
  color: var(--main-color);
  transition: var(--transition-animation);
}

.form-backbutton {
  background-color: var(--form-background-color);
  border-radius: 12px;
  color: var(--text-color);
  cursor: pointer;
  display: block;
  font-family: var(--main-font-family);
  font-size: 24px;
  font-weight: bold;
  margin: auto;
  max-width: 300px;
  padding: 16px 24px;
  position: relative;
  text-align: center;
  width: 100%;
}

.form-backbutton:hover {
  opacity: .7;
  transition: var(--transition-animation);
}

.form-button--submit {
  padding: 0;
}

.form-button__submit {
  color: var(--text-color);
  font-family: var(--main-font-family);
  padding: 16px 24px;
  width: 400px;
}

.form-botton-box {
  display: flex;
  gap: 32px;
  justify-content: center;
}

@media screen and (max-width:599px) {
  .form-botton-box {
    flex-direction: column;
  }
  .form-button__submit {
    width: 100%;
  }
}

/* ----------------------
form-steps
-----------------------*/

.form-steps {
  border: solid 2px var(--main-color);
  display: flex;
  margin-bottom: 64px;
}

.form-step {
  align-items: center;
  background-color: white;
  color: var(--text-color);
  display: flex;
  font-family: var(--main-font-family);
  font-size: 24px;
  font-weight: bold;
  height: 64px;
  justify-content: center;
  padding-left: 32px;
  position: relative;
  width: 33%;
}

.form-step--current {
  background-color: var(--form-title-color);
}

.form-step:first-child::before,
.form-step:first-child::after {
  display: none;
}

.form-step::before {
  background-color: var(--main-color);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: '';
  height: 64px;
  left: 0;
  position: absolute;
  width: 32px;
}


.form-step--current + .form-step::after {
  background-color: var(--form-title-color);
}

.form-step::after {
  background-color: white;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: '';
  height: 64px;
  left: -2px;
  position: absolute;
  width: 32px;
}

@media screen and (max-width:599px) {
  .form-step {
    font-size: 16px;
    padding-left: 16px;
    text-align: center;
  }
  .form-step::before,
  .form-step::after {
    width: 16px;
  }
}

/* ---------------------
form
---------------------- */

.form-input-text,
.form-input-textarea,
.form-input-selectbox,
.form-input-date {
  background-color: white;
  border: solid 1px var(--form-border-color);
  padding: 8px 12px;
  width: 100%;
}

.form-input-text:focus,
.form-input-textarea:focus,
.form-input-selectbox:focus,
.form-input-date:focus {
  border: 2px solid var(--main-color);
  outline: 0;
}

.form-input-text {
  height: 40px;
}

.form-input-textarea {
  height: 120px;
  resize: none;
}

.form-input-selectbox {
  height: 40px;
  line-height: 1.4;
  max-width: 400px;
}

.form-input-select {
  max-width: 400px;
  position: relative;
}

.form-input-date {
  cursor: pointer;
  max-width: 400px;
  position: relative;
}

.form-input-droparea {
  flex-shrink: 0;
  margin-bottom: 16px;
  position: relative;
  width: 30%;
}

.mw_wp_form_confirm .form-input-droparea {
  margin-bottom: 0;
  width: 100%;
}

.mw-wp-form_image {
  overflow-wrap: break-word;
  width: 100%;
}

.mwform-file-delete {
  background-color: var(--main-color);
  border-radius: 50px;
  bottom: 120px;
  font-size: 20px;
  font-weight: bold;
  left: 4px;
  padding: 0 8px;
  position: absolute;
  z-index: 2;
}

.form-input-prev {
  position: relative;
}

.form-input-prev::before {
  color: var(--form-border-color);
  content: 'ここにファイルをドロップ または ファイルを選択してください。';
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 80%;
}

.form-input-prev__images {
  border: dashed 1px var(--form-border-color);
  border-radius: 8px;
  min-height: 160px;
  min-width: 100%;
}

.form-input-file {
  margin-bottom: 8px;
}

.mw_wp_form input[type='file'] {
  display: none;
}

.form-input-file::file-selector-button {
  background: gray;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 10px;
}

.form-input-select::after {
  color: #707070;
  content: '\f078';
  font-family: var(--icon-font-family);
  font-weight: 600;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translate(-50%,-50%);
}

input::placeholder,
textarea::placeholder {
  color: var(--form-border-color);
}

@media screen and (max-width:1024px) {
  .form-input-droparea {
    width: 184px;
  }
}


@media screen and (max-width:599px) {
  .form-input-file {
    width: 100%;
  }
  .form-input-textarea {
    height: 184px;
  }
}

/* -----------------------
reserve-form-privacy
------------------------ */
.reserve-form-privacy {
  display: block;
  font-weight: bold;
  margin: auto;
  margin-bottom: 64px;
  max-width: 340px;
  text-align: center;
}

.mw_wp_form_confirm .reserve-form-privacy {
  display: none;
}

.reserve-form-privacy__link {
  color: var(--link-color);
  margin-left: 24px;
  text-decoration: underline;
}

.reserve-form-privacy__text {
  font-family: var(--main-font-family);
}

.form-checkbox {
  background-color: white;
  border: solid 2px var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  height: 24px;
  width: 24px;
}

.form-checkbox:checked {
  background-color: #0097db;
  background-image: url('../images/check.svg');
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--transition-animation);
}


/* -----------------------
.privacy-policy-box
------------------------ */
.privacy-policy-box {
  border: solid 1px var(--form-border-color);
  font-family: var(--main-font-family);
  height: 200px;
  line-height: 1.8;
  margin-bottom: 40px;
  overflow-y: scroll;
  padding: 24px;
  white-space: pre-wrap;
}

.privacy-policy {
  margin-bottom: 8px;
  text-align: center;
}

.mw_wp_form_confirm .privacy-policy-box,
.mw_wp_form_confirm .privacy-policy {
  display: none;
}
