@charset "UTF-8";

/* ==========================================================================
   Breakpoint: 601px を唯一の基準に統一（旧: 600px / 601px の混在を解消）
   - Mobile-first: ベースはSP、min-width: 601px でPC用に上書き
   ========================================================================== */

/* ---------- 共通ユーティリティ ---------- */
.font-sm {
  font-size: 0.5rem;
}

.me-3 {
  margin-right: 1.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.required {
  display: flex;
  align-items: center;
}

.required::after {
  content: "必須";
  background: #e45353;
  color: #fff;
  border-radius: 0.4rem;
  padding: 0 5px;
  margin-left: 10px;
  font-size: 0.8rem;
}

/* ---------- チェックボックス / ラジオボタン ---------- */
.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  display: block;
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 100%;
  color: #b3b3b3 !important;
  margin-bottom: 6px;
}

.custom-checkbox::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 24px;
  background-image: url("../img/not_checked_icon.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
}

.custom-checkbox:has(input[type="checkbox"]:checked)::before {
  background-image: url("../img/checked_icon.svg");
}

.custom-checkbox:has(input[type="checkbox"]:checked) {
  color: #171717 !important;
}

.custom-radio {
  display: block;
  position: relative;
  padding: 3px 0 3px 34px;
  color: #b3b3b3 !important;
  font-size: 15px !important;
  line-height: 1.6;
  cursor: pointer;
  margin-top: 5px;
}

.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.custom-radio::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #b3b3b3;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  transform: translateY(-50%);
}

.custom-radio:has(input[type="radio"]:checked) {
  color: #171717 !important;
}

.custom-radio:has(input[type="radio"]:checked)::before {
  border-color: #029a61;
  background: #029a61;
  box-shadow: inset 0 0 0 6px #fff;
}

.region-selection {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.region-selection[hidden] {
  display: none;
}

/* ==========================================================================
   お問い合わせフォーム
   ========================================================================== */
.contact_text {
  position: relative;
  color: #029a61;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  padding-top: 50px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  font-size: 20px;
}

.contact_text::after {
  content: "";
  display: block;
  background: #029a61;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 94px;
  height: 2px;
  margin: auto;
}

.contact-form {
  border-radius: 20px;
  border: 2px solid #029a61;
  background: #fff;
  padding: 20px 20px 10px;
  margin: 30px auto;
}

.contact-form .form-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

@media (min-width: 601px) {
  .contact_text {
    padding-top: 0;
    padding-bottom: 35px;
    margin-bottom: 40px;
    font-size: 1.25rem;
  }

  .contact_text::after {
    width: 100px;
  }

  .contact-form {
    width: 920px;
    padding: 40px 25px;
    margin: 60px auto 25px;
  }
}

@media (max-width: 600px) {
  .contact__merit {
    width: auto;
    margin: 0;
  }
}

/* ---------- フォーム項目（dl / dt / dd） ---------- */
.contact-form dl {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
}

.contact-form dl dt {
  display: flex;
  align-items: center;
  padding: 10px;
  background: #eee;
  border: 1px solid #ccc;
  font-weight: bold;
}

.contact-form dl dd {
  flex: 1;
  margin-bottom: 0;
  margin-left: 0;
  padding: 20px 10px;
  border: 1px solid #ccc;
}

.contact-form dl dd.d-flex {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-form dl dd input[type="text"],
.contact-form dl dd input[type="tel"],
.contact-form dl dd select {
  width: 100%;
  max-width: 375px;
}

.contact-form dl dd .address-item > * {
  margin-top: 10px;
}

.contact-form dl dd textarea {
  width: 100%;
  height: 15em;
  box-sizing: border-box;
  border: 2px solid #d9d9d9;
  color: #171717;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  padding: 13px 15px;
  border-radius: 8px;
  resize: vertical;
}

.contact-form dl dd .address-item {
  display: contents;
}

.contact-form dl dd .address {
  width: 470px;
  max-width: 100%;
  height: 51px;
  margin: 5px 10px 10px 0;
  padding: 15px;
  border: 2px solid #d9d9d9;
  border-radius: 8px;
  box-sizing: border-box;
  color: #171717;
  font-weight: 400;
  font-size: 16px;
}

.address-checkbox {
  width: 30px !important;
  height: 25px !important;
}

.contact-form dl dd .prefectures {
  width: 80px !important;
  margin: 0 10px;
}

.contact-form dl dd .prefectures:nth-child(1) {
  width: 60px !important;
}

.contact-form dl dd .prefectures:nth-child(2) {
  margin-right: 25px;
}

@media (min-width: 601px) {
  .contact-form dl > div {
    display: flex;
  }

  .contact-form dl dt {
    width: 240px;
  }

  .contact-form dl dt textarea {
    font-size: 14px;
  }
}

.form-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.form-text label {
  margin-right: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #171717;
}

.form-text input {
  width: 100%;
  max-width: 100%;
  margin-right: 10px;
  padding: 13px 15px;
  border: 2px solid #d9d9d9;
  border-radius: 8px;
  box-sizing: border-box;
  color: #171717;
  font-weight: 400;
  font-size: 16px;
}

.form-main select {
  width: 214px;
  margin-right: 25px;
  padding: 15px;
  border: 2px solid #029a61;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("../img/vector.svg");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1em;
  color: rgba(26, 26, 26, 0.3);
  font-weight: 400;
  font-size: 16px;
}

@media (max-width: 600px) {
  .form-main select {
    width: 180px;
    padding: 12px;
    font-size: 14px;
  }
}

.submit-button {
  display: block;
  position: relative;
  width: 54%;
  height: 64px;
  margin: 80px 0 30px;
  border-radius: 50px;
  border: 4px solid #029a61;
  background-color: #029a61;
  box-shadow: 0 6px 0 #006b47;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin: 100px auto 0;
}

@media (max-width: 600px) {
  .submit-button {
    width: 80%;
    height: 50px;
    margin: 70px auto auto;
    margin-bottom: 10px;
  }
}

.submit-message{
  display: none;
  margin-top: 50px;
  text-align: center;
}

/* ---------- プライバシーポリシー ---------- */
.privacy_box {
  width: 100%;
  height: 200px;
  padding: 15px;
  overflow: auto;
  border: 1px solid #8a8a8a;
  background: #f4f4f4;
  text-align: left;
}

.privacy_box textarea {
  max-width: 100%;
}

.u-box1 {
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  line-height: 1.5;
}

.u-box1.is-green {
  border: 1px solid #add863;
}

.u-ttl2 {
  margin-bottom: 25px;
  border-bottom: 3px solid #add863;
  font-size: 1.8rem;
  font-weight: bold;
}

.table-bordered {
  width: 100%;
  margin: 2px 0 15px;
  border: 1px solid #dee2e6;
}

.table-bordered td {
  border: 1px solid #dee2e6;
}

.error {
  margin-top: 5px;
  padding: 2px 0 2px 8px;
}

.error-box {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  border-radius: 3px;
  border-top: 3px solid #d2d6de;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.error-box.box-danger {
  border-top-color: red;
}

.error-message {
  display: block;
  width: 100%;
  flex-basis: 100%;
  margin-top: 4px;
  color: #e53935;
  font-size: 0.9em;
  line-height: 1.4;
}

.custom-checkbox .error-message {
  padding-left: 34px;
}

.input-error {
  margin-bottom: 0 !important;
  border: 1px solid #d9534f !important;
  background-color: #fff0f0;
}

.column dd {
  display: flex;
  flex-flow: column wrap;
}

/* reCAPTCHA バッジ位置調整 */
.grecaptcha-badge {
  position: fixed !important;
  bottom: 150px !important;
}
