@charset "UTF-8";

/* ==========================================================================
   お問い合わせフォーム固有スタイル
   destyle.css + style.css + fk.css の上に読み込まれる
   ========================================================================== */


/* ---------- フォームセクション ---------- */

.form-section {
  padding: 80px 32px;
  background-color: #f7f9f4;
}

.form-section__inner {
  max-width: 1024px;
  margin-inline: auto;
}

.form-section__lead {
  text-align: center;
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 48px;
}


/* ---------- フォームテーブル ---------- */

.form-table {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-table__row {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
}

.form-table__row:last-child {
  border-bottom: none;
}

.form-table__header {
  flex-shrink: 0;
  width: 240px;
  padding: 24px;
  background-color: #f2f4ed;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
}

.form-table__body {
  flex: 1;
  padding: 24px;
}


/* ---------- ラベルバッジ ---------- */

.form-label__badge {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  vertical-align: middle;
}

.form-label__badge--req {
  background-color: #e09f43;
  color: #fff;
}

.form-label__badge--opt {
  background-color: #999;
  color: #fff;
}


/* ---------- 入力フィールド共通 ---------- */

.form-section input[type="text"],
.form-section select,
.form-section textarea {
  font-family: inherit;
  font-size: 1.6rem;
  line-height: 1.5;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #3a4b25;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form-section input[type="text"]:focus,
.form-section select:focus,
.form-section textarea:focus {
  outline: none;
  border-color: #8dc21f;
  box-shadow: 0 0 0 3px rgba(141, 194, 31, 0.15);
}

.form-section input[type="text"] {
  width: 100%;
  max-width: 480px;
}

.form-section textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
}

.form-section select {
  min-width: 200px;
  cursor: pointer;
}


/* ---------- 住所フィールド ---------- */

.form-addr {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-addr__zip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-addr__zip-mark {
  font-size: 1.6rem;
  font-weight: 500;
  flex-shrink: 0;
}

.form-addr__zip input[type="text"] {
  max-width: 200px;
}

.form-addr__pref select {
  width: 100%;
  max-width: 280px;
}

.form-addr__city input[type="text"] {
  max-width: 100%;
}


/* ---------- チェックボックス ---------- */

.form-checkbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
}

.form-checkbox__item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1.6rem;
  padding: 8px 0;
}

.form-checkbox__item input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #8dc21f;
}

.form-checkbox__note {
  font-size: 1.4rem;
  color: #888;
  margin-top: 4px;
}


/* ---------- テキストエリア注記 ---------- */

.form-note {
  font-size: 1.4rem;
  color: #888;
  margin-top: 4px;
}


/* ---------- 送信ボタン ---------- */

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

.form-submit__btn {
  display: inline-block;
  min-width: 280px;
  padding: 20px 48px;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  background-color: #e09f43;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  letter-spacing: 0.05em;
}

.form-submit__btn:hover {
  background-color: #c88a35;
  transform: translateY(-2px);
}

.form-submit__btn:active {
  transform: translateY(0);
}


/* ---------- FormKit上書き ---------- */

.form-section .fk-error-message {
  font-size: 1.4rem;
  margin-top: 4px;
}

.form-section .fk-marker-error {
  margin-left: 4px;
}


/* ---------- 完了画面 ---------- */

.form-complete {
  padding: 80px 32px;
}

.form-complete__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.form-complete__icon {
  font-size: 6.4rem;
  color: #8dc21f;
  margin-bottom: 24px;
}

.form-complete__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #3a4b25;
  margin-bottom: 24px;
}

.form-complete__text {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 48px;
}

.form-complete__btn {
  display: inline-block;
  min-width: 280px;
  padding: 20px 48px;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  background-color: #3a4b25;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
}

.form-complete__btn:hover {
  background-color: #2e3d1e;
  transform: translateY(-2px);
}


/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media (max-width: 1279px) {
  .form-section {
    padding: 64px 24px;
  }

  .form-table__header {
    width: 200px;
    padding: 20px;
  }

  .form-table__body {
    padding: 20px;
  }

  .form-complete {
    padding: 64px 24px;
  }
}

@media (max-width: 767px) {
  .form-section {
    padding: 48px 16px;
  }

  .form-section__lead {
    text-align: left;
    margin-bottom: 32px;
  }

  .form-table__row {
    flex-direction: column;
  }

  .form-table__header {
    width: 100%;
    padding: 16px;
  }

  .form-table__body {
    padding: 16px;
  }

  .form-section input[type="text"] {
    max-width: 100%;
  }

  .form-addr__zip input[type="text"] {
    max-width: 160px;
  }

  .form-checkbox {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .form-submit__btn {
    width: 100%;
    min-width: auto;
    padding: 16px 32px;
  }

  .form-complete {
    padding: 48px 16px;
  }

  .form-complete__title {
    font-size: 2.0rem;
  }

  .form-complete__btn {
    width: 100%;
    min-width: auto;
    padding: 16px 32px;
  }
}
