/* ==========================================
   contact.css
   お問い合わせページ（Contact Form 7）
   ========================================== */

body {
  padding-top: 80px;
}

@media (max-width: 560px) {
  body {
    padding-top: 64px;
  }
}

/* ─────────────────────────────────────────
   案内文＋お電話
───────────────────────────────────────── */
.contact-intro {
  padding: 80px 20px 0;
  background-color: #fff;
}

.contact-intro__box {
  width: 100%;
  max-width: 702px;
  margin: 0 auto;
  padding: 50px 75px;
  box-sizing: border-box;
  background-color: #f1f3f4;
}

.contact-intro__text {
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 180%;
  letter-spacing: 0.51px;
  font-feature-settings: "palt" 1;
  color: #1d2e45;
  margin: 0 0 17px;
}

.contact-br--sp {
  display: none;
}

.contact-intro__tel {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 15px;
  margin: 0;
}

.contact-intro__tel-label {
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 160%;
  color: #1d2e45;
}

.contact-intro__tel-number {
  font-family: "Shippori Mincho", serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 160%;
  color: #1d2e45;
  text-decoration: none;
}

.contact-intro__hours {
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.42px;
  color: #1d2e45;
  text-align: center;
  margin: 5px 0 0;
}

/* ─────────────────────────────────────────
   フォームエリア
───────────────────────────────────────── */
.contact-form-area {
  padding: 100px 0 110px;
  background-color: #fff;
}

.contact-form-area__inner {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 103px;
  box-sizing: border-box;
}

/* フォームなし（完了ページ）：案内ボックスの下の余白だけ確保 */
.contact-form-area--empty {
  padding: 0 0 100px;
}

/* CF7 の標準余白・標準スタイルを打ち消す */
.contact-form-area .wpcf7 form {
  margin: 0;
}

.contact-form-area .wpcf7-form-control-wrap {
  display: block;
}

.cf-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ラベル */
.cf-label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.54px;
  font-feature-settings: "palt" 1;
}

.cf-label__text {
  font-weight: 700;
  color: #0e212f;
}

/* 上2つ（お問い合わせ種別・製品の資料請求）のラベルは濃い紺（Figmaの指定） */
.cf-form > .cf-field:nth-of-type(-n + 2) .cf-label__text {
  color: #1d2e45;
}

.cf-label__req {
  font-weight: 500;
  color: #456592;
}

.cf-label__opt {
  font-weight: 500;
  color: #bebebe;
}

/* 入力欄 */
.cf-form input[type="text"],
.cf-form input[type="email"],
.cf-form input[type="tel"],
.cf-form textarea {
  display: block;
  width: 100%;
  height: 64px;
  margin: 0;
  padding: 0 24px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: #f1f3f4;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.48px;
  font-feature-settings: "palt" 1;
  color: #0e212f;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.cf-form textarea {
  height: 164px;
  padding: 18px 24px;
  resize: vertical;
}

.cf-form input::placeholder,
.cf-form textarea::placeholder {
  color: #5d6c78;
  opacity: 1;
}

.cf-form input[type="text"]:focus,
.cf-form input[type="email"]:focus,
.cf-form input[type="tel"]:focus,
.cf-form textarea:focus {
  outline: none;
  border-color: #07344d;
  background-color: #fff;
}

/* 姓・名 / セイ・メイ */
.cf-pair {
  display: grid;
  grid-template-columns: 558fr 568fr;
  column-gap: 34px;
}

.cf-pair__item {
  display: flex;
  align-items: flex-start;
  margin-top: 0;
}

.cf-pair__item .wpcf7-form-control-wrap {
  flex: 1;
  min-width: 0;
}

.cf-pair__prefix {
  flex: 0 0 38px;
  width: 38px;
  padding-top: 14px;
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.54px;
  color: #0e212f;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}

.cf-pair__item:nth-child(2) .cf-pair__prefix {
  flex-basis: 50px;
  width: 50px;
  padding-left: 12px;
  box-sizing: border-box;
}

/* 郵便番号 */
.cf-zip {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 6px;
}

.cf-zip__mark {
  padding-top: 16px;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  color: #0e212f;
}

.cf-zip .wpcf7-form-control-wrap {
  width: 240px;
  max-width: 100%;
}

/* チェックボックス（お問い合わせ種別・製品） */
.cf-form .wpcf7-checkbox,
.cf-form .wpcf7-acceptance {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.cf-form .wpcf7-list-item {
  margin: 0;
}

.cf-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cf-form .wpcf7-list-item-label {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.54px;
  font-feature-settings: "palt" 1;
  color: #1d2e45;
}

.cf-form input[type="checkbox"] {
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background-color: #f1f3f4;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.cf-form input[type="checkbox"]:hover {
  border-color: #07344d;
}

.cf-form input[type="checkbox"]:checked {
  background-color: #07344d;
  border-color: #07344d;
}

.cf-form input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cf-form input[type="checkbox"]:focus-visible {
  outline: 2px solid #456592;
  outline-offset: 2px;
}

/* 個人情報の同意 */
.cf-agree {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.cf-agree input[type="checkbox"]:checked::after {
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 8px;
}

.cf-agree .wpcf7-list-item-label {
  font-weight: 500;
  color: #0e212f;
}

.cf-agree .wpcf7-acceptance .wpcf7-list-item-label::after {
  content: "※必須";
  margin-left: 6px;
  color: #456592;
}

.cf-agree__link {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.54px;
  font-feature-settings: "palt" 1;
  color: #0e212f;
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}

.cf-agree__link:hover {
  opacity: 0.6;
}

/* 送信ボタン */
.cf-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.cf-form .cf-submit {
  display: block;
  width: 240px;
  height: 52px;
  padding: 0 52px 0 20px;
  box-sizing: border-box;
  border: 1px solid #07344d;
  border-radius: 0;
  background-color: #fff;
  background-image: url("../image/top/arrow-right.svg");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 18px 8px;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
  text-align: left;
  color: #07344d;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.3s, color 0.3s;
}

.cf-form .cf-submit:hover {
  background-color: #07344d;
  background-image: url("../image/top/arrow-right_white.svg");
  color: #fff;
}

.cf-form .wpcf7-spinner {
  display: none;
}

/* エラー表示 */
.contact-form-area .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #b3261e;
}

.contact-form-area .wpcf7-not-valid {
  border-color: #b3261e !important;
}

.contact-form-area .wpcf7 form .wpcf7-response-output {
  margin: 32px auto 0;
  padding: 16px 20px;
  max-width: 720px;
  border: 1px solid #07344d;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  color: #1d2e45;
}

.contact-form-area .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-area .wpcf7 form.failed .wpcf7-response-output {
  border-color: #b3261e;
  color: #b3261e;
}

/* ─────────────────────────────────────────
   スマホ
───────────────────────────────────────── */
@media (max-width: 560px) {
  .contact-intro {
    padding: 48px 20px 0;
  }

  .contact-intro__box {
    padding: 28px 20px 28px;
  }

  .contact-intro__text {
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.3px;
  }

  .contact-br--pc {
    display: none;
  }

  .contact-br--sp {
    display: inline;
  }

  .contact-intro__text {
    margin-bottom: 14px;
  }

  .contact-intro__tel {
    gap: 10px;
  }

  .contact-intro__tel-number {
    font-size: 28px;
  }

  .contact-form-area {
    padding: 56px 0 72px;
  }

  .contact-form-area__inner {
    padding: 0 20px;
  }

  .cf-form {
    gap: 24px;
  }

  .cf-label {
    font-size: 16px;
  }

  .cf-form .wpcf7-checkbox {
    flex-direction: column;
    gap: 0;
  }

  .cf-form .wpcf7-list-item-label {
    font-size: 16px;
  }

  .cf-form input[type="text"],
  .cf-form input[type="email"],
  .cf-form input[type="tel"] {
    height: 56px;
    padding: 0 16px;
    font-size: 16px;
  }

  .cf-form textarea {
    height: 160px;
    padding: 14px 16px;
  }

  .cf-pair {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }

  .cf-pair__prefix {
    flex-basis: 36px;
    width: 36px;
    padding-top: 10px;
    font-size: 16px;
  }

  .cf-pair__item:nth-child(2) .cf-pair__prefix {
    flex-basis: 36px;
    width: 36px;
    padding-left: 0;
  }

  .cf-zip__mark {
    padding-top: 10px;
  }

  .cf-agree__link {
    font-size: 15px;
  }

  .cf-submit-wrap {
    margin-top: 8px;
  }
}

/* ─────────────────────────────────────────
   確認画面（Multi-Step Forms の最終ステップ）
───────────────────────────────────────── */
.cf-confirm {
  border-top: 1px solid #c8c2b8;
}

.cf-confirm__row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #c8c2b8;
}

.cf-confirm__label {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.54px;
  font-feature-settings: "palt" 1;
  color: #0e212f;
}

.cf-confirm__value {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.54px;
  font-feature-settings: "palt" 1;
  color: #1d2e45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cf-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
}

.cf-form .cf-back,
.cf-form .wpcf7-previous {
  display: block;
  width: 240px;
  height: 52px;
  padding: 0 20px;
  box-sizing: border-box;
  border: 1px solid #c8c2b8;
  border-radius: 0;
  background-color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.48px;
  text-align: center;
  color: #5d6c78;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.cf-form .cf-back:hover,
.cf-form .wpcf7-previous:hover {
  border-color: #07344d;
  color: #07344d;
}

@media (max-width: 560px) {
  .cf-confirm__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .cf-confirm__label,
  .cf-confirm__value {
    font-size: 15px;
  }

  .cf-actions {
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
  }
}
