/* Contact page styles */

#contact-page .content__sec {
  margin-bottom: 40px;
}

/* ヘッド */
#contact-page .contact__head {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
}
#contact-page .desc__block__inner {
  margin-bottom: 25px;
}
#contact-page .desc__block .l__1 {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 22px;
  line-height: 1.8;
}
#contact-page .desc__block .l__2 {
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.8;
}
#contact-page .desc__block .l__2:not(:last-child) {
  margin-bottom: 10px;
}
#contact-page .desc__block .l__2 a {
  color: #f29801;
}

/* フォームラッパー */
#contact-page .form__wrap {
  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  margin-bottom: 50px;
}

/* フォームブロック */
#contact-page .form__block .head {
  border-bottom: 1px solid #ddd;
  background: #f8f8f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 25px;
}
#contact-page .form__block .head__inner {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1;
}
#contact-page .form__block .head__inner p {
  display: inline-block;
}
#contact-page .form__block .head.mandatory .head__inner::after {
  content: '*';
  font-size: 1rem;
  color: #f29801;
}

/* インプット */
#contact-page .form__block .input {
  border-bottom: 1px solid #ddd;
  padding: 20px 25px;
}
#contact-page .form__block .input .wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#contact-page .form__block [type='text'],
#contact-page .form__block [type='email'],
#contact-page .form__block [type='tel'],
#contact-page .form__block [type='url'],
#contact-page .form__block textarea {
  border: 1px solid #b5b5b5;
  font-size: 1.6rem;
  width: 100%;
  height: 40px;
  padding: 4px 8px;
  box-sizing: border-box;
}
#contact-page .form__block textarea {
  height: 200px;
}

/* ラジオ */
#contact-page .form__block .input .wpcf7-list-item {
  margin: 0;
}
#contact-page .form__block .input .wpcf7-radio .wpcf7-list-item {
  display: block;
}
#contact-page .form__block .input .wpcf7-radio .wpcf7-list-item:not(:last-child) {
  margin-bottom: 10px;
}
#contact-page .form__block .input .wpcf7-radio input[type='radio'] {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  border: 1px solid #b5b5b5;
  top: 1px;
  outline: none;
  border-radius: 20px;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  cursor: pointer;
}
#contact-page .form__block .input .wpcf7-radio input[type='radio']:checked::after {
  content: '';
  position: absolute;
  margin: auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f29801;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#contact-page .form__block .input .wpcf7-radio .wpcf7-list-item-label {
  display: block;
  line-height: 1;
  font-size: 1.2rem;
}
#contact-page .form__block .input .wpcf7-radio label {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

/* inquiry-group-title */
#contact-page .form__block .input .inquiry-group-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 12px;
  margin-top: 4px;
}
#contact-page .form__block .input .inquiry-group-title--second {
  margin-top: 20px;
}

/* チェックボックス */
#contact-page .form__block .input .wpcf7-checkbox .wpcf7-list-item {
  display: block;
}
#contact-page .form__block .input .wpcf7-checkbox .wpcf7-list-item:not(:last-child) {
  margin-bottom: 10px;
}
#contact-page .form__block .input .wpcf7-checkbox input[type='checkbox'] {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  border: 1px solid #b5b5b5;
  border-radius: 0;
  top: 1px;
  outline: none;
  display: block;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
#contact-page .form__block .input .wpcf7-checkbox input[type='checkbox']:checked::after {
  content: '✓';
  position: absolute;
  margin: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f29801;
  font-weight: bold;
}
#contact-page .form__block .input .wpcf7-checkbox .wpcf7-list-item-label {
  display: block;
  line-height: 1;
  font-size: 1.2rem;
}
#contact-page .form__block .input .wpcf7-checkbox label {
  display: flex;
  align-items: center;
  margin-left: 10px;
}

/* select */
#contact-page .form__block .input select {
  border: 1px solid #b5b5b5;
  font-size: 1.6rem;
  width: 100%;
  height: 40px;
  padding: 4px 8px;
}

/* その他 */
#contact-page .form__block .input .other__wrap {
  margin: 0 8px;
}
#contact-page .form__block .input .other__wrap .other__tx {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #b5b5b5;
  margin-bottom: 10px;
}

/* term__inner: flex child として幅を持つ */
#contact-page .form__block .term__inner {
  flex: 1;
  min-width: 0;
}

/* プライバシー同意 */
#contact-page .form__block .input.privacy {
  padding: 20px 25px;
  border-bottom: 1px solid #ddd;
}
/* wpcf7-form-control-wrap を横並びに */
#contact-page .form__block .input.privacy .wpcf7-form-control-wrap {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
/* wpcf7-list-item を横並びに */
#contact-page .form__block .input.privacy .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: bold;
  font-size: 1.4rem;
  cursor: pointer;
}
#contact-page .form__block .input.privacy input[type='checkbox'] {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid #b5b5b5;
  border-radius: 0;
  margin: 0;
  outline: none;
  display: block;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
#contact-page .form__block .input.privacy input[type='checkbox']:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f29801;
  font-weight: bold;
}

/* 利用規約 */
#contact-page .form__block .terms {
  padding: 30px 25px 0;
  height: 215px;
  overflow: hidden;
}
#contact-page .form__block .terms__inner {
  background: #f4f4f4;
  border: 1px solid #ddd;
  padding: 16px 17px;
  overflow-y: scroll;
  height: 100%;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* 送信ボタン */
#contact-page .submitbtn {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
#contact-page .submitbtn input[type='submit'] {
  width: 336px;
  height: 80px;
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  background: #f8b62d;
  display: block;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.4s;
}
#contact-page .submitbtn input[type='submit']:hover {
  background: #e5a01a;
}
#contact-page .submitbtn::after {
  content: '';
  width: 14px;
  height: 5px;
  background: url('../images/ico-arrow.svg') center center / cover no-repeat;
  display: block;
  position: absolute;
  top: 38px;
  right: 30px;
  pointer-events: none;
}

/* エラー・完了メッセージ */
#contact-page .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #dc3232;
  font-size: 1.2rem;
}
#contact-page .wpcf7 form .wpcf7-response-output {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin-top: 16px;
}
#contact-page .wpcf7 form.invalid .wpcf7-response-output,
#contact-page .wpcf7 form.unaccepted .wpcf7-response-output,
#contact-page .wpcf7 form.failed .wpcf7-response-output {
  color: #dc3232;
  border-color: #dc3232;
}
#contact-page .wpcf7 form.sent .wpcf7-response-output {
  color: #46b450;
  border-color: #46b450;
}

/* PC (min-width: 768px) */
@media only screen and (min-width: 768px) {
  #contact-page .contact__head {
    display: flex;
    padding-bottom: calc(100vw * (20 / 1366));
    margin-bottom: calc(100vw * (50 / 1366));
  }
  #contact-page .contact__head .arc__title {
    margin-right: calc(100vw * (186 / 1366));
    margin-bottom: calc(2.93vw);
    flex-shrink: 0;
  }
  #contact-page .desc__block .l__1 {
    font-size: calc(100vw * (22 / 1366));
    margin-bottom: calc(100vw * (30 / 1366));
  }
  #contact-page .form__wrap {
    width: calc(100vw * (908 / 1366));
    margin: 0 auto calc(100vw * (60 / 1366));
  }
  #contact-page .form__block {
    display: flex;
  }
  #contact-page .form__block .head {
    width: calc(100vw * (320 / 1366));
    padding: calc(100vw * (20 / 1366)) 0;
    border-right: 1px solid #ddd;
    flex-shrink: 0;
  }
  #contact-page .form__block .head__inner {
    font-size: calc(100vw * (16 / 1366));
  }
  #contact-page .form__block .input {
    width: calc(100vw * (590 / 1366));
    padding: calc(100vw * (13 / 1366)) calc(100vw * (25 / 1366));
  }
  #contact-page .form__block.select .input,
  #contact-page .form__block.textarea .input {
    padding-top: calc(100vw * (24 / 1366));
    padding-bottom: calc(100vw * (24 / 1366));
  }
  #contact-page .form__block [type='text'],
  #contact-page .form__block [type='email'],
  #contact-page .form__block [type='tel'],
  #contact-page .form__block [type='url'] {
    height: calc(100vw * (40 / 1366));
  }
  #contact-page .form__block textarea {
    height: calc(100vw * (280 / 1366));
  }
  #contact-page .form__block .input .wpcf7-radio input[type='radio'] {
    width: calc(100vw * (25 / 1366));
    height: calc(100vw * (25 / 1366));
    border-radius: 100%;
  }
  #contact-page .form__block .input .wpcf7-radio input[type='radio']:checked::after {
    width: calc(100vw * (11 / 1366));
    height: calc(100vw * (11 / 1366));
  }
  #contact-page .form__block .input .wpcf7-radio .wpcf7-list-item-label {
    font-size: calc(100vw * (14 / 1366));
  }
  #contact-page .form__block .input .wpcf7-checkbox input[type='checkbox'] {
    width: calc(100vw * (25 / 1366));
    height: calc(100vw * (25 / 1366));
  }
  #contact-page .form__block .input .wpcf7-checkbox .wpcf7-list-item-label {
    font-size: calc(100vw * (14 / 1366));
  }
  #contact-page .form__block .term__inner {
    width: calc(100vw * (588 / 1366));
  }
  #contact-page .form__block .terms {
    margin: 0;
    padding: calc(100vw * (30 / 1366)) calc(100vw * (25 / 1366)) 0;
  }
  #contact-page .form__block .input.privacy {
    padding: calc(100vw * (30 / 1366)) calc(100vw * (25 / 1366)) calc(100vw * (20 / 1366));
  }
  #contact-page .submitbtn input[type='submit'] {
    width: calc(100vw * (336 / 1366));
    height: calc(100vw * (90 / 1366));
  }
  #contact-page .submitbtn::after {
    top: calc(100vw * (42 / 1366));
    right: calc(100vw * (450 / 1366));
    width: calc(100vw * (14 / 1366));
    height: calc(100vw * (5 / 1366));
  }
  #contact-page header nav .parents > li:nth-of-type(6) .f-en,
  #contact-page header nav .parents > li:nth-of-type(6) .f-ja {
    color: #f39800;
  }
}
