@charset "utf-8";

/* ============================================================
   ページヘッダー
============================================================ */
#page-header {
  width: 100%;
  height: 300px;
  background-image: url(../contact/img/topimg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-header__logo {
  position: absolute;
  top: 32px;
  left: 48px;
  z-index: 2;
}

.page-header__logo img {
  width: 120px;
  height: auto;
  display: block;
}

.page-header__inner {
  padding: 0 48px;
  margin-top: 120px;
}

.page-header__title {
  font-family: "Zen Old Mincho", serif;
  font-weight: 700;
  font-size: 48px;
  color: #03407a;
  margin: 0 0 8px;
  line-height: 1.2;
}

.page-header__sub {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
}

.page-header__sub-text {
  font-size: 22px;
  font-weight: 400;
  color: #333;
  line-height: 1;
}

.page-header__sub-line {
  display: block;
  width: 200px;
  height: 2px;
  background-color: #03407a;
  flex-shrink: 0;
}


/* ============================================================
   フォームセクション
============================================================ */
.contact-section {
  padding: 80px 48px;
  background-color: #f3f7fa;
}

.contact-section__inner {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 56px 64px;
  border-radius: 8px;
}

/* 各行 */
.contact__row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 20px 0;
  border-bottom: 1px solid #e8eef4;
}

.contact__row:first-child {
  border-top: 1px solid #e8eef4;
}

/* ラベル */
.contact__label {
  width: 200px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  background-color: #e05555;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  border-radius: 2px;
  line-height: 1.4;
}

/* 入力フィールド */
.contact__field {
  flex: 1;
  min-width: 0;
}

.contact__input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #fff;
  border: 1px solid #c8d4e0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.contact__input:focus {
  border-color: #03407a;
}

.contact__input--half {
  max-width: 300px;
}

.contact__textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #fff;
  border: 1px solid #c8d4e0;
  border-radius: 4px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  line-height: 1.7;
}

.contact__textarea:focus {
  border-color: #03407a;
}

/* チェックボックス */
.contact__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 10px;
}

.contact__checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.contact__checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #03407a;
  cursor: pointer;
  flex-shrink: 0;
}

/* 個人情報テキスト */
.contact__privacy {
  margin-top: 32px;
  padding: 20px 24px;
  background-color: #f3f7fa;
  border-radius: 4px;
}

.contact__privacy p {
  font-size: 13px;
  font-weight: 400;
  color: #555;
  line-height: 1.8;
  margin: 0 0 4px;
}

.contact__privacy p:last-child {
  margin-top: 8px;
  margin-bottom: 0;
}

.contact__privacy-link {
  color: #03407a;
  text-decoration: underline;
  font-size: 13px;
  transition: opacity 0.2s ease;
}

.contact__privacy-link:hover {
  opacity: 0.7;
}

/* 送信ボタン */
.contact__submit {
  margin-top: 32px;
  text-align: center;
}

.contact__btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 56px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  font-family: "Noto Sans JP", sans-serif;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  letter-spacing: 0.05em;
}

.contact__btn-submit:hover {
  opacity: 0.75;
}

.contact__btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 戻るボタン */
.contact__btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: #888;
  color: #fff;
  font-size: 15px;
  font-family: "Noto Sans JP", sans-serif;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact__btn-back:hover {
  opacity: 0.75;
}

/* エラー表示 */
.contact__error {
  padding: 20px;
  background-color: #fff5f5;
  border: 1px solid #e05555;
  border-radius: 4px;
  margin-bottom: 24px;
}

.contact__error p {
  font-size: 14px;
  color: #c00;
  margin: 0 0 12px;
}

.error_messe {
  color: #c00;
  font-size: 13px;
  margin: 4px 0;
}

/* 確認画面 */
.contact__confirm-lead {
  font-size: 15px;
  color: #333;
  text-align: center;
  margin-bottom: 32px;
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.confirm-table th,
.confirm-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  border: 1px solid #d0dce8;
  line-height: 1.7;
  vertical-align: top;
}

.confirm-table th {
  width: 200px;
  background-color: #f3f7fa;
  font-weight: 500;
  text-align: left;
}

.contact__recaptcha {
  margin: 24px 0;
  text-align: center;
}

.contact__recaptcha p {
  font-size: 13px;
  color: #555;
  margin-bottom: 12px;
}

.contact__confirm-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}


/* ============================================================
   サンクスページ
============================================================ */
.thanks-section {
  padding: 80px 48px;
  background-color: #f3f7fa;
}

.thanks-section__inner {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 64px;
  border-radius: 8px;
  text-align: center;
}

.thanks__heading {
  font-family: "Zen Old Mincho", serif;
  font-weight: 700;
  font-size: 40px;
  color: #03407a;
  letter-spacing: 0.15em;
  margin: 0 0 24px;
}

.thanks__text {
  font-size: 15px;
  font-weight: 400;
  color: #333;
  line-height: 2;
  margin: 0 0 40px;
}

.thanks__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 56px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  border-radius: 2px;
  letter-spacing: 0.1em;
  transition: opacity 0.2s ease;
}

.thanks__btn:hover {
  opacity: 0.75;
}


/* ============================================================
   @media SP（1024px以下）
============================================================ */
@media (max-width: 1024px) {

  #page-header {
    height: 160px;
  }

  .page-header__inner {
    padding: 0 20px;
    margin-top: 40px;
  }

  .page-header__title {
    font-size: 28px;
  }

  .page-header__sub-text {
    font-size: 16px;
  }

  .page-header__sub-line {
    width: 80px;
  }

  .page-header__logo {
    display: none;
  }

  .contact-section {
    padding: 32px 16px;
  }

  .contact-section__inner {
    padding: 32px 20px;
  }

  .contact__row {
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
  }

  .contact__label {
    width: 100%;
    padding-top: 0;
  }

  .contact__field {
    width: 100%;
    flex: none;
  }

  .contact__input--half {
    max-width: 100%;
  }

  .contact__input,
  .contact__textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .contact__checkboxes {
    gap: 10px 16px;
    padding-top: 0;
  }

  .confirm-table th {
    width: auto;
    display: block;
  }

  .confirm-table td {
    display: block;
  }

  .contact__confirm-btns {
    flex-direction: column;
    align-items: center;
  }

  .thanks-section {
    padding: 32px 16px;
  }

  .thanks-section__inner {
    padding: 40px 24px;
  }

  .thanks__heading {
    font-size: 28px;
  }

  .thanks__btn {
    width: 100%;
  }

  .contact__btn-submit {
    width: 100%;
  }

} /* end @media 1024px */