/* 背景写真 */
#Contact {
  display: block;
  background-image: url("../assets/contact/contact_background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100dvh;
}

.container {
  /* border: 2px solid blue; */
}

/*********** title ************/

::placeholder {
  color: rgb(200, 200, 200);
}

/* Top画像 */
#Contact .content.title {
  position: relative;
  width: 100%;
  padding: 9px;
  border: 5px solid black;
  border-bottom-width: 10px;
  margin-top: 40px;
  background-color: white;
}

#Contact .content.title::before,
#Contact .content.title::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: contain;
  pointer-events: none;
}

#Contact .wrapper .content.title::before {
  background-image: url(../../assets/images/warpLeft.png);
  background-position: left;
}

#Contact .content.title::after {
  background-image: url(../../assets/images/warpRight.png);
  background-position: right;
}

#Contact h2 {
  font-size: 40px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

#Contact h2::after {
  display: inline-block;
  content: attr(data);
  font-size: 12px;
  color: var(--black);
  margin: auto 6px;
}

@media (max-width: 997px) {
  #Contact h2 {
    line-height: 48px;
    flex-direction: column;
  }

  #Contact h2::after {
    line-height: normal;
  }
}

@media (max-width: 576px) {
  #Contact h2 {
    line-height: 32px;
    font-size: 32px;
  }
}

.explain_text {
  font-weight: bold;
  margin: 3% 0 1%;
  text-align: left;
}

.phone_reception {
  font-size: small;
  text-align: left;
  font-weight: bold;
}

span {
  font-weight: bold;
  font-size: 25px;
}

b {
  /* font-weight: unset; */
  font-size: 20px;
}

#Contact .form_text {
  font-size: 35px;
  text-align: left;
  /* border: 2px solid tomato; */
  margin: 3% 0 0;
  font-weight: unset;
}

.ico_phone,
.ico_clock,
.ico_calendar {
  width: 20px;
  height: 20px;
}

.flex_txt {
  gap: 20px;
  flex-wrap: wrap;
  align-items: baseline;
  display: flex;
  /* border: 2px solid rgb(71, 255, 141); */
}

.flex {
  gap: 8px;
  align-items: baseline;
  display: flex;
  /* border: 2px solid tomato; */
}

/* 電話とFAX */
.phone,
.fax {
  font-size: 30px;
}

/* FORM */
.form {
  /* margin-top: 20px; */
  margin-left: auto;
  margin-right: auto;
  /* max-width: 720px; */
  /* border: 2px solid blue; */
}

.form_item {
  border-top: 1px solid #ddd;
  padding: 1px 0;
  /* padding-top: 24px; */
  /* padding-bottom: 24px; */
  width: 100%;
  display: flex;
  align-items: baseline;
}

.form_item_label {
  width: 100%;
  max-width: 248px;
  letter-spacing: 0.05em;
  font-weight: bold;
  font-size: 18px;
}

.form_item_label.is_msg {
  margin-top: 8px;
  /* margin-bottom: auto; */
}

.form_item_label_required {
  /* margin-right: 8px; */
  padding: 2px 0;
  width: 48px;
  height: fit-content;
  display: inline-block;
  text-align: center;
  background: red;
  color: #fff;
  font-size: 14px;
}

.form_item_label_not_required {
  width: 48px;
}

/* 項目テキストの上幅を合わせ */
.text_top {
  text-align: left;
}

/* ラベルがないinputのサイズ調整 */
.department {
  max-width: 40%;
}

/* input 特定の長さを調整 */
.length_adjust {
  max-width: 30%;
  /* width: 30%; */
  min-width: 12rem;
}

/*郵便番号の2行全体調整  */
.post_input {
  margin-left: 10px;
  width: 100%;
  flex: 1;
  /* border: 2px solid tomato; */
}

/* 郵便番号のinput長さ調整 */
.form .post {
  border: 2px solid black;
  margin-left: 0;
  margin-right: auto;
  display: block;
  height: 48px;
  margin-bottom: 2px;
  min-width: 8rem;
  background: white;
  font-size: 18px;
}

.form .address {
  border: 2px solid black;
  height: 48px;
  width: 100%;
  width: 100%;
  background: white;
  font-size: 18px;
  padding-left: 5px;
}

.form_item_input {
  border: 2px solid black;
  /* margin-left: 10px; */
  padding-left: 5px;
  /* padding-right: 1em; */
  height: 48px;
  flex: 1;
  width: 100%;
  /* max-width: 410px; */
  background: white;
  padding-left: 15px;
  font-size: 18px;
  /* border: 2px solid blue; */
}

.input_item {
  margin-left: 10px;
  /* padding-right: 1em; */
  flex: 1;
  width: 100%;
  text-align: left;
  display: grid;
}

.email_input {
  margin-left: 10px;
  width: 100%;
  flex: 1;
  /* border: 2px solid tomato; */
}

.email {
  width: 100%;
  border: 2px solid black;
  margin-left: 0;
  margin-right: auto;
  display: block;
  height: 48px;
  background: white;
  font-size: 18px;
  padding-left: 5px;
}

.one_more {
  text-align: left;
}

.form_item_textarea {
  border: 2px solid black;
  /* margin-left: 10px; */
  padding-left: 5px;
  padding-right: 1em;
  height: 216px !important;
  flex: 1;
  width: 100% !important;
  /* max-width: 410px; */
  background: white;
  font-size: 18px;
  align-self: flex-start;
}

/* .Form-Btn {
  border-radius: 6px;
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  width: 280px;
  display: block;
  letter-spacing: 0.05em;
  background: #5bc8ac;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
} */

/* Form Button */
.flex_btn {
  /* right: 0px; */
  width: 100%;
  display: flex;
  gap: 50px;
  /* border: 2px solid tomato; */
  /* margin-right: 0px; */
  margin-left: auto;
  padding-bottom: 20%;
  font-size: 24px;
}

#Contact .content.title.check {
  background-color: yellow;
}

#Contact .flex_btn .content.title::before {
  background-image: url(../../assets/images/warpLeft.png);
  background-position: left;
}

/* 黄色〇アイコン */
.icon::before {
  content: attr(data);
  border: 2px solid black;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
  height: 2rem;
  width: 2rem;
  background: conic-gradient(from -45deg, #fbee00, #cbc100, #fbee00, #cbc100, #fbee00);
  background-size: 12px 12px;
  text-align: center;
}

.sp_flex {
  width: 30%;
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  /* border: 2px solid tomato; */
}

#Contact button.content.title {
  font-weight: bold;
}

/* レスポンシブ対応 */

@media screen and (max-width: 992px) {
  .sp_flex {
    width: 100%;
  }

  #Contact .wrapper {
    padding-top: 1%;
  }

  #Contact .explain_text {
    font-size: 1.5em;
  }

  .form_item {
    display: block;
    border-top: unset;
    flex-direction: column;
  }

  .form_item_label {
    max-width: 100%;
    width: auto;
  }

  .email_input {
    margin-left: 0;
  }

  .form_item_input,
  .input_item,
  .form_item_textarea,
  .post_input,
  .length_adjust {
    max-width: 100%;
    margin: 0 auto 2%;
  }

  .text_top {
    margin: 1% 0;
  }

  .form_item_label_required {
    /* margin-right: 8px; */
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 18px;
    margin-top: auto;
    margin-bottom: auto;
  }

  .post {
    width: 20%;
  }

  .flex_txt {
    gap: 5px;
  }
}

@media screen and (max-width: 768px) {
  #Contact .explain_text {
    font-size: 1.3em;
    margin: 25px auto;
  }
}

@media screen and (max-width: 576px) {
  .flex_btn {
    gap: 5px;
  }

  #Contact button.content.title {
    margin-top: 0;
    padding: 10px;
    border: 3px solid black;
    border-bottom-width: 5px;
  }

  #Contact button.content.title div {
    font-size: 12px;
  }
}

/********** button *********/
.wrapper.button a {
  position: relative;
  display: block;

  width: 50%;
  min-width: 500px;
  padding: 1.5rem;
  margin: auto;

  border: 5px solid black;
  border-bottom-width: 10px;
  background-color: var(--white);

  font-weight: 900;
  text-wrap: nowrap;
  color: var(--black);
}

.wrapper.button a:hover {
  background-color: var(--yellow);
}

.wrapper.button a::before,
.wrapper.button a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: contain;
}

.wrapper.button a::before {
  background-image: url(../../assets/images/warpLeft.png);
  background-position: left;
}

.wrapper.button a::after {
  background-image: url(../../assets/images/warpRight.png);
  background-position: right;
}

@media screen and (max-width: 997px) {
  .wrapper.button a {
    width: 90%;
    min-width: unset;
    max-width: 700px;
  }
}

@media screen and (max-width: 576px) {
  .wrapper.button a {
    padding: 1rem;
    width: 100%;
    min-width: unset;
  }
}
