/********************
 contact
********************/
.bg-leaf {
  background: url("../../images/logo/yk_logo_mark.svg");
  background-size: 5200px auto;
  background-position: -2512px -445px;
  background-repeat: no-repeat;
  padding-bottom: 200px;
}
.contact .section-title {
  margin-top: 150px;
  display: flex;
  font-weight: bold;
  margin-bottom: 50px;
  border-bottom: 1px solid #006a35;
  justify-content: space-between;
}
.contact .section-title h1 {
  font-size: 52px;
  color: #006a35;
  font-style: italic;
}
.contact .section-title .sub-title {
  font-size: 24px;
  color: #006a35;
  align-content: end;
  padding-bottom: 10px;
}
.contact .table-border {
  border-radius: 5px;
  border: 1px solid #819b88;
  margin-bottom: 80px;
}
.contact table {
  background: #fff;
  border-color: transparent;
  border-radius: 5px;
  margin-bottom: 0;
}
.contact table th {
  background: #fff;
  padding: 30px;
  vertical-align: middle;
  width: 300px;
  border-right: 1px solid #819b88;
  font-size: 20px;
}
.contact table td {
  background: #fff;
  padding: 30px;
  vertical-align: middle;
  font-size: 20px;
}
.contact table th span:nth-of-type(2) {
  color: #983140;
  margin-left: 1em;
}
.contact table tr:first-child th {
  border-radius: 5px 0 0 0;
}
.contact table tr:first-child td {
  border-radius: 0 5px 0 0;
}
.contact table tr:last-child th {
  border-radius: 0 0 0 5px;
}
.contact table tr:last-child td {
  border-radius: 0 0 5px 0;
}
.contact tr:not(:last-child) th {
  border-bottom: 1px solid #819b88;
}
.contact tr:not(:last-child) td {
  border-bottom: 1px solid #819b88;
}
.contact table tr th p,
.contact table tr td p {
  margin: 0;
}
.contact .mb {
  margin-bottom: 15px;
}
.contact input[type="text"],
.contact input[type="email"],
.contact input[type="tel"],
.contact textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #819b88;
  border-radius: 5px;
}
.contact input[type="text"]::placeholder {
  color: #819b88;
}
.contact .radio-btn-custom {
  margin-bottom: 15px;
}
.contact .radio-btn-custom .wpcf7-list-item {
  display: block;
  width: 100%;
  margin-left: 0;
  font-size: 20px;
  font-weight: bold;
}
/* 1. デフォルトのラジオボタンを「絶対に」非表示にする */
.contact .radio-btn-custom .wpcf7-list-item input[type="radio"] {
  display: none !important; /* 基本はこれ */
  opacity: 0 !important; /* 万が一表示されても透明にする */
  appearance: none !important; /* ブラウザ独自のスタイルを無効化 */
  -webkit-appearance: none !important;
  position: absolute !important; /* 空間を占有しないようにする */
}

/* 2. ラベルの配置を整える（ここから先は前回のデザイン維持） */
.contact .radio-btn-custom .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  line-height: 1.5;
  padding: 8px 0;
}

/* 3. 外側の円（未選択時） */
.contact .radio-btn-custom .wpcf7-list-item-label::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #819b88; /* 未選択時の枠色 */
  border-radius: 50%;
  background: #fff;
  margin-right: 10px;
  box-sizing: border-box;
  transform: translate(0, 5px);
}

/* 4. チェックされた時の中の丸（●） */
.contact
  .radio-btn-custom
  .wpcf7-list-item
  input[type="radio"]:checked
  + .wpcf7-list-item-label::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: #819b88; /* 選択時の色 */
  border-radius: 50%;
  position: absolute;
  left: 6px; /* 位置がズレる場合はここを調整 */
  top: 20px;
}
.contact .title-label {
  color: #819b88;
  font-weight: bold;
  margin-bottom: 5px;
}
.contact .contact-catch {
  text-align: center;
  line-height: 1.5em;
  margin-bottom: 50px;
}
.contact .contact-catch span {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  color: #000;
}
.contact .privacy-link {
  text-align: center;
  margin-bottom: 30px;
}
.contact .privacy-link a {
  font-size: 20px;
  color: #006a35;
}
.contact .doui-btn {
  text-align: center;
  font-size: 20px;
  color: #006a35;
  margin-bottom: 50px;
}
.contact .confirm-btn {
  text-align: center;
}
.contact .confirm-btn input {
  border: none;
  display: inline-block;
  font-size: 20px;
  color: #46b331;
  background: #006a35;
  border-radius: 5px;
  max-width: 450px;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  letter-spacing: 1em;
  text-indent: 1em;
  font-weight: bold;
}
.contact .wpcf7-spinner {
  display: none;
}
.contact .wpcf7 form.invalid .wpcf7-response-output,
.contact .wpcf7 form.unaccepted .wpcf7-response-output,
.contact .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #ffb900;
  color: #fff;
}
@media (max-width: 991px) {
  .contact table th {
    display: block;
    width: 100%;
    border-right: none;
  }
  .contact table td {
    display: block;
    width: 100%;
  }
  .contact table tr:first-child th {
    border-radius: 5px 5px 0 0;
  }
  .contact table tr:first-child td {
    border-radius: 0 0px 0 0;
  }
  .contact table tr:last-child th {
    border-radius: 0 0 0 0px;
    border-bottom: 1px solid #819b88;
  }
  .contact table tr:last-child td {
    border-radius: 0 0 5px 5px;
  }
  .contact .section-title {
    margin-top: 50px;
    margin-bottom: 30px;
  }
}
@media (max-width: 767px) {
  .contact .section-title h1 {
    font-size: 26px;
  }
  .contact .section-title .sub-title {
    font-size: 13px;
  }
  .contact .contact-catch {
    text-align: left;
  }
  .contact .contact-catch span {
    display: inline;
  }
  .contact table th {
    font-size: 16px;
  }
  .contact table td {
    font-size: 16px;
  }
  .contact .radio-btn-custom .wpcf7-list-item {
    font-size: 16px;
  }
}
