/* ==============================
  Contact Form
============================== */

.inquiry {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid #e1e5ea;
  background: #fff;
}

.inquiry th,
.inquiry td {
  border: 1px solid #e1e5ea;
  padding: 18px;
  vertical-align: top;
  box-sizing: border-box;
}

.inquiry th {
  width: 28%;
  background: #f7f8fa;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}

.inquiry td {
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
}

/* 入力欄 */
.inquiry input[type="text"],
.inquiry select,
.inquiry textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.inquiry input[type="text"],
.inquiry select {
  min-height: 48px;
}

.inquiry textarea {
  min-height: 150px;
  resize: vertical;
}

.inquiry input[type="text"]:focus,
.inquiry select:focus,
.inquiry textarea:focus {
  outline: none;
  border-color: var(--color_main, #0b3768);
  box-shadow: 0 0 0 3px rgba(11, 55, 104, .12);
}

.inquiry ::placeholder {
  color: #9aa3af;
}

/* select 矢印 */
.inquiry select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

/* Contact Form 7 wrap */
.inquiry .wpcf7-form-control-wrap {
  display: block;
}

/* ラジオ・チェックボックス全体 */
.inquiry .wpcf7-radio,
.inquiry .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

/* 各選択肢 */
.inquiry .wpcf7-list-item {
  display: block;
  margin: 0;
}

/* ラベル内の配置 */
.inquiry .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 24px;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

/* ラジオ・チェックボックス本体 */
.inquiry input[type="radio"],
.inquiry input[type="checkbox"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  accent-color: var(--color_main, #0b3768);
  transform: none;
  vertical-align: middle;
}

/* CF7のテキストspan */
.inquiry .wpcf7-list-item-label {
  display: inline-block;
  line-height: 1.5;
}

/* 満足度評価は縦並び */
.review-stars .wpcf7-radio {
  display: grid;
  gap: 10px;
}

.review-stars .wpcf7-list-item label {
  font-size: 15px;
}

/* 条件分岐ブロック */
.conditional-block {
  margin-top: 14px;
}

.grade-block {
  margin-top: 18px;
}

.conditional-label,
.other-label {
  display: block;
  margin: 0 0 6px;
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.other-input {
  margin-top: 14px;
}

/* 注意文 */
.form-consent-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  background: #f7f8fa;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

.form-consent-note p {
  margin: 0;
}

/* Turnstile */
.turnstile-wrap {
  margin-top: 24px;
}

/* 中央寄せ */
.text-center {
  text-align: center;
}

/* 送信ボタン */
.wpcf7-submit {
  display: block;
  width: min(100%, 360px);
  min-height: 54px;
  margin: 20px auto 0;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: var(--color_main, #0b3768);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  transition: opacity .2s ease, transform .2s ease;
}

.wpcf7-submit:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.wpcf7-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* エラー */
.wpcf7-not-valid {
  border-color: #d64545 !important;
  background: #fffafa !important;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #c53030;
  font-size: 13px;
  line-height: 1.6;
}

.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
}

/* ==============================
  Mobile
============================== */

@media (max-width: 599px) {
  .inquiry,
  .inquiry tbody,
  .inquiry tr,
  .inquiry th,
  .inquiry td {
    display: block;
    width: 100%;
  }

  .inquiry {
    border: 1px solid #e1e5ea;
  }

  .inquiry tr {
    border-bottom: 1px solid #e1e5ea;
  }

  .inquiry tr:last-child {
    border-bottom: none;
  }

  .inquiry th,
  .inquiry td {
    border-left: none;
    border-right: none;
    box-sizing: border-box;
  }

  .inquiry th {
    padding: 13px 14px 8px;
    border-bottom: none;
    background: #f7f8fa;
    font-size: 14px;
  }

  .inquiry td {
    padding: 14px 14px 18px;
    border-top: none;
  }

  .inquiry input[type="text"],
  .inquiry select,
  .inquiry textarea {
    font-size: 16px;
  }

  .inquiry .wpcf7-radio,
  .inquiry .wpcf7-checkbox {
    display: grid;
    gap: 10px;
  }

  .inquiry .wpcf7-list-item label {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .review-stars .wpcf7-radio {
    gap: 10px;
  }

  .form-consent-note {
    font-size: 13px;
  }

  .wpcf7-submit {
    width: 100%;
    margin-top: 28px;
  }
}

.review-type-placeholder {
  padding: 13px 14px;
  border: 1px solid #e1e5ea;
  border-radius: 6px;
  background: #f7f8fa;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

.wpcf7 form:has(input[name="review-type"]:checked) .review-type-placeholder {
  display: none;
}