/* svgの設定 */
/* メールアイコン */
svg {
  width: 100%;
  height: auto;
}
.mail_icon {
  display: inline-block;
  width: 1.4em;
  height: 1em;
  margin-left: 5px;
}
.mailicon_b {
  fill: #ffffff;
}

.contact_hl {
  width: fit-content;
  margin: 0 auto;
  padding: 5px 10px;
  margin-bottom: 30px;
  font-family: "Yusei Magic", sans-serif;
  font-size: 1.6em;
  line-height: 1.4;
  text-align: center;
  position: relative;
}

.contact_hl::before,
.contact_hl::after {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: url(../images/common/furusato_wai.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  top: 0;
  transition: all 0.5s ease;
}
.contact_hl::before {
  left: -1em;
  transition: all 0.5s ease;
  transform: scale(-1, 1);
}
.contact_hl::after {
  right: -1em;
  transition: all 0.5s ease;
}
.contact_hl span::after {
  content: "";
  display: block;
  width: 0;
  max-width: 540px;
  height: 6px;
  background: var(--main-color);
  position: absolute;
  bottom: -10px;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact_hl.is-active span::after {
  width: 100%;
}
/* タブレット用のスタイル */
@media screen and (max-width: 1081px) {
  .contact_hl {
    padding: 2vw 3vw;
    margin-bottom: 5vw;
    font-size: clamp(2rem, calc(90vw / 26), 2.8rem);
  }
}
/* スマートフォン用のスタイル */
@media screen and (max-width: 768px) {
  .contact_hl {
    padding: 2vw 3vw;
    margin-bottom: 6vw;
    font-size: clamp(1.8rem, calc(90vw / 16), 2.4rem);
  }
  .contact_hl::before,
  .contact_hl::after {
    width: 2.3em;
    height: 2.3em;
  }
  .contact_hl span::after {
    height: 3px;
    bottom: -5px;
  }
}

/* お問い合わせページ以外に表示させる誘導枠 */
.contactad {
  padding: 120px 0 30px;
  width: 100%;
  margin-top: -36px;
  margin-bottom: 120px;
  background: url(../images/common/conts_hrbase.png) repeat-x top left;
  background-size: auto 36px;
  position: relative;
}
.contactad .contactad_wrap {
  width: fit-content;
  margin: 0 auto;
  padding: 20px;
  background: #edddab;
  border-radius: 35px;
}
.contactad .contactad_cntns {
  display: flex;
  flex-wrap: wrap;
  max-width: 940px;
  margin: 0 auto;
  padding: 40px 30px;
  background: url(../images/common/contactad_pc.png) no-repeat bottom 6% right 3%;
  background-size: auto 80%;
  border: 3px dashed #493821;
  border-radius: 20px;
  position: relative;
}
.contactad .contactad_cntns .contactad_img {
  width: 30%;
}
.contactad .contactad_cntns .contactad_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contactad .contactad_cntns .contactad_txt {
  margin-left: 20px;
  position: relative;
}
.contactad .contactad_cntns .contactad_txt p {
  font-size: 120%;
  margin: 0 auto 10px;
  font-weight: bold;
  line-height: 1.4;
}
.contactad .contactad_cntns .contactad_txt .contactad_link {
  display: block;
  margin-top: 10px;
  width: 100%;
  text-align: center;
  font-size: 80%;
  font-weight: normal;
  color: var(--main-color);
}

@media screen and (max-width: 1081px) {
  .contactad .contactad_wrap {
    width: 90%;
  }
  .contactad .contactad_cntns {
    width: 100%;
    padding: 3vw;
    border-radius: 15px;
  }
}
@media screen and (max-width: 768px) {
  .contactad {
    margin-bottom: 15vw;
  }
  .contactad .contact_hl::before,
  .contactad .contact_hl::after {
    width: 1.3em;
    height: 1.3em;
  }
  .contactad .contactad_wrap {
    border-radius: 20px;
    padding: 3vw;
  }
  .contactad .contactad_cntns {
    background: url(../images/common/contactad_sp.png) no-repeat bottom 3% center;
    background-size: 90% auto;
    padding: 3vw 3vw 26vw 3vw;
    border: 2px dashed #493821;
  }
  .contactad .contactad_cntns .contactad_img {
    margin: auto;
    width: 80%;
  }
  .contactad .contactad_cntns .contactad_txt {
    margin: 1vw auto 0;
    padding-left: 4px;
    font-size: 100%;
  }
  .contactad .contactad_cntns .contactad_txt p {
    text-align: center;
  }
}
.form_txt {
  font-size: 75%;
}

/* ----- contact.php #contact ----- */
.contact_box {
  padding: 120px 0 60px;
}
#contact .form {
  margin-bottom: 60px;
  position: relative;
  z-index: 0;
  overflow: hidden;
}
#contact .form .formTable {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
}
#contact .form .formTable .form_items {
  margin-bottom: 30px;
}
#contact .form .formTable .form_items dt {
  margin-bottom: 5px;
  padding-left: 0.75em;
  display: flex;
  align-items: baseline;
  font-weight: bold;
  position: relative;
}
#contact .form .formTable .form_items dt span {
  margin-left: 10px;
  font-size: 60%;
  color: #ffffff;
  background: #cc3333;
  padding: 3px 5px 4px;
  border-radius: 3px;
}
#contact .form .formTable .form_items dt.list-beasic {
  margin-left: 0;
}
#contact .form .formTable .form_items dt.list-beasic::before {
  content: " ";
  background: none;
  width: 1em;
  height: 1em;
  display: inline-block;
  border: var(--main-color) solid 0.5em;
  border-color: transparent transparent transparent var(--main-color);
  border-radius: 0;
  position: absolute;
  top: calc(50% - 8px);
  left: 0;
}

#contact .form .formTable input[type="text"],
#contact .form .formTable textarea {
  width: 100% !important;
  height: 50px;
  display: block;
  padding: 2%;
  background: #fff;
  font-size: 18px;
  border: 3px solid #999999;
  border-radius: 5px;
  line-height: 1.6;
}
#contact .form .formTable textarea {
  height: 120px !important;
}
#contact .form .formTable input[type="radio"] {
  width: 15px;
  height: 15px;
  margin-left: 30px;
  display: inline-block;
  transform: scale(1.5);
  border: 3px solid #999999;
}
#contact .form .formTable button.main_btn {
  width: fit-content;
  min-height: 60px;
  margin: auto;
  padding: 10px 80px 10px 50px;
  font-size: 1.2em;
  overflow: hidden;
}
#contact .form .formTable button.main_btn::after {
  background: var(--main-color);
}

#contact .form .formTable .form_tyui {
  margin: 20px auto;
  font-size: 80%;
  line-height: 1.6;
}
#contact .form .formTable .form_tyui a {
  display: inline;
  color: var(--main-color);
  text-decoration: underline;
  font-weight: bold;
}

@media screen and (max-width: 1081px) {
  #contact .form .formTable .form_items dt {
    font-size: 130%;
  }
  #contact .form .formTable input[type="radio"] {
    width: 3vw;
    max-width: 16px;
    height: 2vw;
    min-height: 20px;
    margin-right: 1vw;
    margin-left: 5vw;
    border: 2px solid #999999;
  }
}
@media screen and (max-width: 768px) {
  .contactad {
    margin-top: -6vw;
    margin-bottom: 15vw;
    background-size: auto 6vw;
  }
  .contact_box {
    padding: 12vw 0 6vw;
  }
  #contact .gobocha {
    padding: 12vw 0 8vw;
  }
  #contact .form .formTable label {
    display: block;
    padding: 5px 0 0 0;
    font-size: 110%;
  }
  #contact .form .formTable .form_items dt {
    font-size: 120%;
  }
  #contact .form .formTable input[type="radio"] {
    margin-left: 0;
  }
}
#contact .form .formTable button[type="submit"] {
  line-height: 1;
  border-radius: 6px;
  box-shadow: 0 6px 0 #ffd98000;
  position: relative;
  transition: all 0.3s ease 0s;
  cursor: pointer;
}
#contact .form .formTable input#postcode {
  width: 30% !important;
}
#contact .form .formTable .postcodebtn {
  display: block;
  margin-top: 5px;
  padding: 5px 10px;
  background: #edddab;
  color: var(--text-color);
  font-size: 80%;
  border: 1px solid #40505b;
  border-radius: 5px;
  cursor: pointer;
}
/* privacy */
#contact .privacy {
  padding: 80px 0 120px;
}
#contact .privacy_box {
  width: 80%;
  height: 36vh;
  max-height: 360px;
  overflow-y: scroll;
  max-width: 1075px;
  margin: 0 auto;
  padding: 30px 50px;
  background: #fdfdfc;
  border: 2px solid #333333;
  position: relative;
  z-index: 0;
}
#contact .privacy_box h3 {
  margin-bottom: 20px;
  font-size: 140%;
  font-weight: bold;
  text-align: center;
  color: #333333;
}
#contact .privacy_box p {
  margin-bottom: 30px;
  text-indent: 20px;
}
#contact .privacy_box dl dt {
  font-weight: bold;
}
#contact .privacy_box dl dd {
  line-height: 1.8;
  margin: 10px 0 40px;
  text-indent: 20px;
  font-size: 90%;
}
#contact .privacy_box dl dd ul {
  margin: 10px 0;
  text-indent: 0;
}
#contact .privacy_box dl dd ul li {
  margin-bottom: 10px;
}
#contact .privacy_box dl .list-beasic {
  padding-left: 1em;
  text-indent: -1em;
  line-height: 1.2;
}
@media screen and (max-width: 768px) {
  #contact .privacy_box {
    max-height: 50vh;
    padding: 6vw 6vw 0;
  }
  #contact .privacy_box dl dd {
    line-height: 1.6;
  }
  #contact .privacy_box h3 {
    margin-bottom: 20px;
    font-size: 1.4em;
  }
}

/* サンクス */
.thanks .form {
  padding: 120px 0 80px;
}
.thanks .introduction {
  padding: 10px 0;
}
.thanks_box {
  max-width: 800px;
  width: 90%;
  margin: 0 auto 60px;
  padding: 50px 20px;
  background: #ffffff;
  border: 2px solid #333333;
  border-radius: 10px;
}
.thanks_box div {
  margin: 20px 0 30px;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.6;
}
.thanks_box p {
  line-height: 1.4;
}
