@charset "utf-8";

/* =========================
   Contact 共通
========================= */

/* タイトル・リード */
.p-index_contact {
  padding: 32px 5% 8px;
  text-align: center;
}

.p-index_contact .section-title {
  font-family: "Source Serif 4", serif;
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  color: #153a6b;
}

.p-index_contact .section-txt {
  margin-top: 12px;
  font-size: 1.5rem;
  line-height: 1.4;

  color: #333;
}

/* =========================
   フォーム全体
========================= */

.contact-form {
  max-width: 800px;
  margin: 16px auto 56px;
  padding: 0 5%;
}

.contact-form__body {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 1行分（ラベル＋入力）の塊：縦並び前提 */
.form-group {
  margin-top: 24px;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ラベル行（必須＋項目名） → SPのまま縦レイアウトで使う */
.form-label-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

/* 左側の「必須」バッジ */
.form-required {
  display: inline-block;
  padding: 4px 10px;
  font-size: 1.2rem;
  color: #fff;
  background-color: #8b0015;
  border-radius: 2px;
}

/* ラベルテキスト */
.form-label-text {
  font-weight: 700;
  color: #1b1b1b;
}

/* 入力フィールド側（下にドンと来る） */
.form-field {
  max-width: 520px;
}

.form-field--full {
  max-width: none;
}

/* input / textarea 共通 */
.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  font-size: 1.4rem;
  line-height: 1.5;
  background-color: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b5b5b5;
}

.form-input:focus,
.form-textarea:focus {
  outline: 2px solid rgba(21, 58, 107, 0.35);
  border-color: #153a6b;
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

/* =========================
   チェックボックス（内容）
========================= */

.form-checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 4px;
}

/* デフォルトは1列（SP想定） */
.form-checkbox-item {
  width: 100%;
}

.form-checkbox-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.3rem;
  color: #333;
}

/* チェックボックスの見た目（destyle対策） */
.form-checkbox-item input[type="checkbox"],
.form-checkbox-policy input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #a5a5a5;
  border-radius: 2px;
  background-color: #fff;
  position: relative;
}

.form-checkbox-item input[type="checkbox"]::after,
.form-checkbox-policy input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #8b0015;
  border-bottom: 2px solid #8b0015;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.12s ease-out;
}

.form-checkbox-item input[type="checkbox"]:checked::after,
.form-checkbox-policy input[type="checkbox"]:checked::after {
  transform: rotate(45deg) scale(1);
}

/* =========================
   プライバシーポリシー
========================= */

.form-group--policy {
  margin-top: 28px;
  font-size: 1.3rem;
}

.form-checkbox-policy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.form-policy-link {
  margin-top: 6px;
  font-size: 1.2rem;
}

.form-policy-link a {
  color: #153a6b;
  text-decoration: underline;
}

/* =========================
   送信ボタン
========================= */

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

.btn-submit {
  width: 260px;
  max-width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 4px;
  background-color: #d70018;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

/* 矢印 */
.btn-submit__arrow {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

/* ホバー時 */
.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(1px);
}

/* 無効状態 */
.btn-submit.is-disabled,
.btn-submit:disabled {
  background-color: #c0c0c0;
  cursor: not-allowed;
  opacity: 0.8;
}

/* =========================
   レイアウト調整（PC）
========================= */

@media (min-width: 768px) {
  .p-index_contact {
    padding-top: 48px;
  }

  .p-index_contact .section-title {
    font-size: 4rem;
  }
  .section-txt {
    font-size: 1.6rem;
  }

  .contact-form {
    margin-bottom: 72px;
  }

  /* 内容のチェックボックス2列 */
  .form-checkbox-item {
    width: calc(50% - 12px);
  }

  .form-group--policy .form-field--full {
    max-width: 520px;
  }

  /* ★ PC時のボタンサイズ調整 */
  .btn-submit {
    width: 320px; /* 幅少し大きめ */
    font-size: 1.8rem; /* 文字も少し大きく */
  }
}
/* =========================
   お問い合わせ完了（Thanks）
========================= */

.thanks {
  padding: 48px 5% 72px;
  text-align: center;
}

.thanks-hero__eyecatch {
  font-family: "Source Serif 4", serif;
  font-weight: 800;
  font-size: 3.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #153a6b;
}

.thanks-hero__sub {
  margin-top: 8px;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: #8b0015;
}

/* 3枚並びの画像（SPでは非表示） */
.thanks-images {
  margin: 32px auto 24px;
  max-width: 780px;
  display: flex;
  gap: 8px;
}

.thanks-images__item {
  flex: 1;
}

.thanks-images__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.thanks-message p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--primary-dark_brown);
  font-weight: 500;
}
.thanks-message span {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--primary-red);
  font-weight: 500;
}

.thanks-message__em {
  font-weight: 700;
}

.thanks-btn {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* SPでは画像ブロックを非表示にする */
@media (max-width: 767px) {
  .thanks-images {
    display: none;
  }

  .thanks {
    padding-top: 40px;
  }
}
@media (min-width: 768px) {
  .thanks-hero__eyecatch {
    font-size: 6rem;
  }
  .thanks-hero__sub {
    font-size: 3rem;
    line-height: 1;
  }
  .thanks-images {
    margin: 32px auto 24px;
    max-width: 880px;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center; /* 底をそろえる */
  }

  .thanks-images__item {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
  }
  .thanks-images__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ★高さを変える：中央を一番高く、両端を少し低く */
  .thanks-images__item:nth-child(1),
  .thanks-images__item:nth-child(3) {
    height: 280px; /* 両端：少し低め */
  }

  .thanks-images__item:nth-child(2) {
    height: 340px; /* 中央：高め */
  }
  .thanks-message {
    line-height: 1.6;
  }
}
