/*-------------------------------
  タイトルここから 
--------------------------------*/
.TtlBox {
  position: relative;
  margin-bottom: 10vh;
  width: 100vw;
  height: auto;
}

.TtlBox img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}

header h1 {
  display: none;
}

.ConvBox {
  display: none !important;
}

@media screen and (max-width: 767px) {
  /* .TtlBox {
    position: relative;
    margin-bottom: 15vh;
    width: 100vw;
    height: 100vh;
  } */

  .TtlBox img {
    width: 100vw;
    height: 100%;
    object-fit: cover;
  }

  .TtlBox h2 {
    font-size: 2.2rem;
    color: #fff;
  }

  header h1 {
    display: none;
  }
}

/*-------------------------------
  コンテンツ枠ここから 
--------------------------------*/

.ContBox {
  width: 50vw;
  margin: 0 auto;
}

.contFormBox p:first-child {
  margin-bottom: 3vh;
}

.Comp p {
  margin-bottom: 3vh;
}

.ContBox p span {
  color: #e550b4;
}

.wpcf7-form {
  font-size: unset !important;
  margin: 0 0 20px;
}

.mwform-field {
  display: ruby-text;
}

.wpcf7-form dl {
  border-bottom: none !important;
}

.Conf .wpcf7-form dl {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  border-bottom: none !important;
}

.wpcf7-form dl dt {
  float: none !important;
  padding-right: 0px !important;
  width: 100% !important;
  margin-bottom: 0.6vh !important;
}

.Conf .wpcf7-form dl dd {
  width: 100% !important;
}

.wpcf7-form dl dt {
  padding: 0px 0 0px !important;
}

.wpcf7-form dl dd {
  padding: 0px 0 20px !important;
}

.wpcf7-form dl dd.daytime input {
  width: 96.5%;
}

.wpcf7-form dl dd input,
.wpcf7-form dl dd textarea,
.wpcf7-form dl dd select {
  border: none !important;
  border-radius: 5px !important;
  margin: 0;
  width: 100%;
  max-width: 100% !important;
  background-color: #fffcf2;
  padding: 15px 12px !important;
  vertical-align: middle;
}

.ContactContBox form p {
  margin-bottom: 0vh;
  text-align: left;
}

.wpcf7-form dl dd textarea {
  width: 100% !important;
}

.wpcf7-form dl dt .mwform-require {
  position: inherit !important;
  top: 0 !important;
  right: 0 !important;
}

.wpcf7-form .mwform-require {
  color: #e550b4 !important;
}

.checkbox input[type="checkbox"].checkbox__item,
.checkbox input[type="radio"].radiobtn__item {
  display: none;
}

.checkbox label {
  display: inline-block;
  /* width: 100%; */
}

.checkbox .checkbox__item + span,
.checkbox .radiobtn__item + span {
  padding-left: 2rem;
  display: inline-block;
  position: relative;
  font-size: 12px;
  margin-bottom: 10px;
  line-height: 24px;
}

.checkbox .checkbox__item + span::after,
.checkbox .checkbox__item + span::before {
  content: "";
  display: block;
  position: absolute;
  width: 25px;
  height: 25px;
  top: 0;
  left: 0;
  background-color: #fffcf2;
  border-radius: 5px;
}

.checkbox .checkbox__item + span::after {
  opacity: 0;
  width: 8px;
  height: 13px;
  transform: rotate(45deg);
  left: 9px;
  border: none;
  border-right: 3px solid #3c3c3b;
  border-bottom: 3px solid #3c3c3b;
  border-radius: 0px;
  top: 5px;
}

.checkbox label input[type="radio"] {
  opacity: 0;
  appearance: none;
  position: absolute;
}

.checkbox .radiobtn__item + span::before {
  position: absolute;
  top: 0px;
  left: 0;
  width: 22px;
  height: 22px;
  border: 1px solid #fffcf2;
  background: #fffcf2;
  content: "";
  border-radius: 50%;
}

.checkbox .radiobtn__item + span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #3c3c3b;
  content: "";
  opacity: 0;
  transition: all 0.3s;
}

.checkbox .mwform-radio-field label input:checked + span::after {
  opacity: 1;
}

/*
  checked状態
  文字のcolorとボタンのopacityを変更
*/
.checkbox .checkbox__item:checked + span,
.checkbox .radiobtn__item:checked + span {
  color: #3c3c3b;
}

.checkbox .checkbox__item:checked + span::after {
  opacity: 1;
}

::placeholder {
  color: #ccc;
}

/* ボタンの共通CSS */
.ContactBtn {
  margin-top: 50px;
  text-align: center;
}
.ContactBtn a {
  background-color: #3c3c3b;
  border: 1px solid #3c3c3b;
  border-radius: 10px;
  color: #fff;
  display: inline-block;
  font-size: 0.9rem;
  position: relative;
  text-decoration: none;
  width: 280px;
  line-height: 1.6rem;
}

.ContactBtn a input {
  padding: 20px 100px;
}

.ContactBtn a:hover {
  background-color: rgb(255, 255, 255, 0);
  border: 1px solid #3c3c3b;
  transition: background-color 0.5s;
  color: #3c3c3b;
}

/* 矢印が画像(hoverで矢印移動) */
.ContactBtn a::before {
  background-image: url(../img/arrow.webp);
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0;
  content: "";
  height: 25px;
  margin: auto;
  position: absolute;
  right: 30px;
  top: 18px;
  transition: right 0.5s;
  width: 25px;
}

.ContactBtn.back a::before {
  background-image: url(../img/arrow.webp);
  background-repeat: no-repeat;
  background-size: contain;
  bottom: 0;
  content: "";
  height: 25px;
  margin: auto;
  position: absolute;
  left: 30px;
  top: 18px;
  transition: right 0.5s;
  transition: left 0.5s;
  width: 25px;
  transform: scale(-1, 1);
  right: inherit;
}

.ContactBtn a:hover::before {
  background-image: url(../img/arrow_g.webp);
  right: 20px;
}

.ContactBtn.back a:hover::before {
  background-image: url(../img/arrow_g.webp);
  left: 20px;
  right: inherit;
}

.conBtnBox {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.ContactBtn.back,
.Er .ContactBtn.back {
  display: none;
}

.Conf .ContactBtn.back {
  display: block;
}

.Comp .wpcf7-form_complete {
  text-align: center;
}

div.topBack {
  text-align: center;
  margin-top: 30px;
  text-decoration: underline;
}

.calendar-icon {
  cursor: pointer;
  margin-right: 10px;
  font-size: 1.4em;
  vertical-align: middle;
}

.wpcf7-spinner {
  display: contents !important;
}

@media screen and (max-width: 767px) {
  .ContBox {
    width: 90vw;
    margin: 0 auto;
  }

  .ContactPage {
    width: 90vw;
  }

  .formBtnBox {
    width: 100%;
    display: block;
    justify-content: space-between;
  }

  .Conf .wpcf7-form dl {
    display: block;
  }

  .wpcf7-form dl dd.daytime input {
    width: 100%;
  }

  .conBtnBox {
    display: block;
  }

  .ContactBtn {
    margin-top: 20px;
    text-align: center;
  }

  .wpcf7-form dl dd input,
  .wpcf7-form dl dd textarea {
    font-size: 16px;
  }

  .checkbox label {
    display: inline-block;
    width: 100%;
  }

  .wpcf7-form .horizontal-item + .horizontal-item {
    margin-left: 0px !important;
  }
}
