/*---------
共通
----------*/

.l-page {
  padding-top: 120px;
}

@media (min-width: 768px) {
  .l-page {
    padding-bottom: 160px;
  }
}
/*---------
=========================
   Contact Form
=========================
----------*/

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/*---------
--- フォームグループ ---
----------*/
.form-group {
  margin-bottom: 40px;
}

/*---------
--- ラベル ---
----------*/
.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form-group:has(.radio-list) .form-label {
  margin-bottom: 20px;
}

.form-group:has(.privacy-box) .form-label {
  margin-bottom: 30px;
}

.form-label__text {
  font-size: 16px;
  font-weight: bold;
  line-height: calc(24 / 16);
}

/*---------
--- バッジ（必須/任意） ---
----------*/
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: calc(20 / 14);
  flex-shrink: 0;
}

.badge--required {
  background: #ca3c38;
}

.badge--optional {
  background: #888888;
}

/*---------
--- フォームフィールド共通 ---
----------*/
.form-field {
  width: 100%;
}

/*---------
横並び（氏名・フリガナ）
----------*/
.form-field--half {
  display: flex;
  gap: 12px;
}

.form-field--half .form-input {
  flex: 1;
}

/*---------
住所（縦積み）
----------*/
.form-field--address {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field--address .form-input:first-child,
.form-field--address .select-wrapper {
  max-width: 235px;
  width: 100%;
}

/*---------
--- input / select / textarea 共通 ---
----------*/
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  font-family: var(--main-font);
  color: #000;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 16px;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background: #f7f7f7;
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
  color: #bbb;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #999;
}

/*---------
--- select ラッパー（矢印付き） ---
----------*/
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* ▽ プレースホルダー風のグレー表示は <select> のみに限定
     （mwform_datepickerの<input class="form-select">まで
       グレーのままになっていた不具合の修正） ▽ */
select.form-select {
  cursor: pointer;
  color: #bbb;
}

/* ▽ 先頭のプレースホルダー用option（value=""）はdisabledではないため
     :not([disabled]) だと初期状態から黒判定になってしまう不具合を修正
     → 「選択中の値が空でない」ことで判定する ▽ */
select.form-select:has(option:checked:not([value=""])) {
  color: #000;
}
/* △ △ */

/*---------
--- textarea ---
----------*/
.form-textarea {
  resize: vertical;
  min-height: 200px;
}

/*---------
--- ラジオボタン ---
----------*/
.radio-list {
  list-style: none;
  padding-left: 15px;
}

.radio-item {
  margin-bottom: 25px;
}

.radio-item:last-child {
  margin-bottom: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 1px solid #707070;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: #fff;
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: #333;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #333;
  border-radius: 50%;
}

.radio-text {
  font-size: 16px;
  font-weight: 500;
}

/* mw-wp-form が出力するラジオボタン（.radio-listと同じ見た目にする） */
.mwform-radio-field.horizontal-item {
  display: block;
  margin-bottom: 25px;
}

.mwform-radio-field.horizontal-item:last-child {
  margin-bottom: 0;
}

.mwform-radio-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
}

.mwform-radio-field input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mwform-radio-field-text {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  font-weight: 500;
}

.mwform-radio-field-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid #707070;
  border-radius: 50%;
  background: #fff;
}

.mwform-radio-field
  input[type="radio"]:checked
  + .mwform-radio-field-text::before {
  border-color: #333;
}

.mwform-radio-field
  input[type="radio"]:checked
  + .mwform-radio-field-text::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #333;
  border-radius: 50%;
}

/*---------
--- チェックボックス ---
----------*/
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: calc(28 / 16);
  margin-top: 20px;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  background: #f7f7f7;
}

.checkbox-input:checked + .checkbox-custom {
  background: #333;
  border-color: #333;
}

.checkbox-input:checked + .checkbox-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* mw-wp-form が出力するチェックボックス（.checkbox-labelと同じ見た目にする） */
.mwform-checkbox-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: calc(28 / 16);
  margin-top: 20px;
}

.mwform-checkbox-field input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mwform-checkbox-field-text {
  position: relative;
  padding-left: 30px;
  font-weight: bold;
}

.mwform-checkbox-field-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f7f7f7;
}

.mwform-checkbox-field
  input[type="checkbox"]:checked
  + .mwform-checkbox-field-text::before {
  background: #333;
  border-color: #333;
}

.mwform-checkbox-field
  input[type="checkbox"]:checked
  + .mwform-checkbox-field-text::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-65%) rotate(45deg);
}

/*---------
--- 個人情報テキスト ---
----------*/
.privacy-box {
  font-size: 16px;
  line-height: calc(30 / 16);
}

.privacy-text {
  margin: 0;
  padding-left: 30px;
}

.privacy-link {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*---------
--- 送信ボタン ---
----------*/
.form-submit {
  margin-top: 40px;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 18px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: #000000;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0.05em;
}
body .mw_wp_form .horizontal-item + .horizontal-item {
  margin-left: 0;
}
.contact-complete-wrap {
  margin-bottom: 40px;
  margin-top: 60px;
  line-height: 1.5;
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
}

.finish-modoru {
  margin-top: 1em;
}
@media (min-width: 768px) {
  .contact-complete-wrap {
    margin-bottom: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 200px;
    margin-bottom: 200px;
  }
  .contact-form {
    max-width: 660px;
  }

  .form-label__text {
    font-size: 18px;
  }

  .radio-list {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 20px 30px;
  }

  .radio-item {
    margin-bottom: 0;
  }

  .form-field:has(.mwform-radio-field) {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 20px 30px;
  }

  .mwform-radio-field.horizontal-item {
    margin-bottom: 0;
  }

  .submit-btn {
    font-size: 18px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
    transition: opacity 0.3s;
  }

  .submit-btn:hover {
    opacity: 0.8;
  }
}
