/* -------------------------------------

   お問合せフォーム

-------------------------------------- */

.form-guide,
.form-errors,
.form-section {
  width: min(100% - 60px, 1200px);
  margin-inline: auto;
}
/* -------------------------------------
   フォーム見出し
-------------------------------------- */

.form-guide__title {
  position: relative;

  margin-bottom: 50px;
  padding-bottom: 20px;

  border-bottom: 1px solid #ccc;

  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-align: center;
}

.form-guide__title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;

  width: 80px;
  height: 4px;

  background-color: #00a88f;

  transform: translateX(-50%);
}

/* 閲覧支援時は装飾線を非表示 */
html:is(.contrast-black, .contrast-yellow, .contrast-blue)
  .form-guide__title::after {
  display: none;
}

@media (max-width: 750px) {
  .form-guide__title {
    margin-bottom: 35px;
    padding-bottom: 15px;

    font-size: 1.5rem;
  }

  .form-guide__title::after {
    width: 60px;
  }
}
/* -------------------------------------
   ご案内
-------------------------------------- */

.form-guide__item {
  text-align: center;
}

.form-guide__item + .form-guide__item {
  margin-top: 80px;
}

.form-guide__item p {
  line-height: 1.8;
}

.form-guide__tel {
  font-size: 1.5rem;
  font-weight: 700;
}

.form-guide__tel a {
  color: var(--link);
}

/* -------------------------------------
   必須
-------------------------------------- */

.form-required {
  display: inline-block;

  margin-left: 8px;
  padding: 2px 8px;

  border: 1px solid var(--border);

  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

/* -------------------------------------
   エラー
-------------------------------------- */

.form-errors {
  margin-top: 50px;
  padding: 25px 30px;

  border: 2px solid var(--border);
  background-color: var(--surface);
}

.form-errors__title {
  margin-bottom: 10px;
  font-weight: 700;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.5em;
}

/* -------------------------------------
   フォーム本体
-------------------------------------- */

.form-section {
  padding: 60px 0 100px;
}

.form-list {
  width: 100%;
  border-top: 1px solid var(--border);
}

.form-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);

  border-bottom: 1px solid var(--border);
}

.form-item__label,
.form-item__field {
  padding: 24px 30px;
}

.form-item__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  background-color: var(--heading-bg);

  color: var(--text);
  font-weight: 700;
}

.form-item__field {
  min-width: 0;
  background-color: var(--surface);
}

/* -------------------------------------
   入力欄
-------------------------------------- */

.form-item__field input[type="text"],
.form-item__field input[type="tel"],
.form-item__field input[type="email"],
.form-item__field textarea {
  width: 100%;
  padding: 12px 15px;

  border: 1px solid var(--border);

  background-color: var(--surface);
  color: var(--text);

  font: inherit;
}

.form-item__field input[type="text"],
.form-item__field input[type="tel"],
.form-item__field input[type="email"] {
  max-width: 650px;
}

.form-item__field textarea {
  display: block;
  min-height: 220px;
  resize: vertical;
}

.form-item__field input:focus-visible,
.form-item__field textarea:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* 確認用メールアドレス */

.form-sub-label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 700;
}

/* -------------------------------------
   個人情報
-------------------------------------- */

.form-policy {
  margin-top: 50px;
  padding: 30px;

  border: 1px solid var(--border);
  background-color: var(--surface);

  line-height: 1.8;
}

.form-policy > p {
  margin-bottom: 20px;
}

.form-policy a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-agree {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

.form-agree input {
  flex-shrink: 0;

  width: 20px;
  height: 20px;
  margin-top: 4px;
}

/* -------------------------------------
   送信
-------------------------------------- */

.form-submit {
  margin-top: 50px;
  text-align: center;
}

.form-submit button {
  width: min(100%, 320px);
  min-height: 60px;
  padding: 12px 30px;

  border: 1px solid var(--border);

  background-color: var(--text);
  color: var(--surface);

  font-size: 1.125rem;
  font-weight: 700;
}

.form-submit button:hover {
  opacity: 0.8;
}

.form-submit button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

/* -------------------------------------
   honeypot
-------------------------------------- */

.form-honeypot {
  position: absolute;
  left: -9999px;

  width: 1px;
  height: 1px;

  overflow: hidden;
}

/* -------------------------------------
   SP
-------------------------------------- */

@media (max-width: 750px) {
  .form-guide,
  .form-errors,
  .form-section {
    width: min(100% - 40px, 1200px);
  }

  .form-guide__item + .form-guide__item {
    margin-top: 60px;
  }

  .form-section {
    padding: 40px 0 80px;
  }

  /* PC：左右 → SP：上下 */

  .form-item {
    display: block;
  }

  .form-item__label,
  .form-item__field {
    padding: 15px 20px;
  }

  .form-item__label {
    justify-content: flex-start;
  }

  .form-item__field {
    padding-bottom: 25px;
  }

  .form-item__field input[type="text"],
  .form-item__field input[type="tel"],
  .form-item__field input[type="email"] {
    max-width: none;
  }

  .form-item__field textarea {
    min-height: 180px;
  }

  /* 個人情報 */

  .form-policy {
    margin-top: 35px;
    padding: 20px;
  }

  .form-agree {
    justify-content: flex-start;
  }

  /* 送信 */

  .form-submit {
    margin-top: 35px;
  }

  .form-submit button {
    width: 100%;
  }
}
.form-list {
  width: min(100%, 900px);
  margin-inline: auto;
  border-top: 1px solid var(--border);
}
.form-policy {
  width: min(100%, 900px);
  margin: 50px auto 0;
}
.form-required {
  display: inline-block;
  flex-shrink: 0;

  margin-left: 8px;
  padding: 3px 7px;

  border: 0;
  border-radius: 3px;

  background-color: #c93636;
  color: #fff;

  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}
html:is(.contrast-black, .contrast-yellow, .contrast-blue) .form-required {
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
}

/* -------------------------------------

   お問合せ完了

-------------------------------------- */

.form-complete {
  width: min(100% - 60px, 900px);
  margin: 80px auto 120px;
  text-align: center;
}

.form-complete__title {
  margin-bottom: 35px;

  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
}

.form-complete__body {
  line-height: 2;
}

.form-complete__body p + p {
  margin-top: 10px;
}

.form-complete__button {
  margin-top: 50px;
}

.form-complete__button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: min(100%, 320px);
  min-height: 60px;
  padding: 12px 30px;

  border: 1px solid var(--border);

  background-color: var(--text);
  color: var(--surface);

  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.form-complete__button a:hover {
  opacity: 0.8;
}

.form-complete__button a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 750px) {
  .form-complete {
    width: min(100% - 40px, 900px);
    margin: 60px auto 80px;
  }

  .form-complete__button {
    margin-top: 40px;
  }

  .form-complete__button a {
    width: 100%;
  }
}
