/* ===== お問い合わせフォーム ヘッダー ===== */
.contact-header {
  background: #5fac7b;
  color: #fff;
  padding: 40px 20px;
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}

/* ラインを上下に配置（横幅はヘッダーいっぱい） */
.contact-header::before,
.contact-header::after {
  content: "";
  position: absolute;
  left: 0; /* ← 横幅いっぱい */
  right: 0;
  height: 4px;
  background: #fff;
}

.contact-header::before {
  top: 20px; /* 上から10px内側 */
}

.contact-header::after {
  bottom: 20px; /* 下から10px内側 */
}

.contact-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 左アイコン（紙飛行機） */
.contact-header .icon-left img {
  max-width: 150px; /* 小さめに */
  height: auto;
  position: absolute;
  top: 10px;
  left: 100px;
  opacity: 0.5;
}

/* 右アイコン（メールボックス） */
.contact-header .icon-right img {
  max-width: 150px; /* 小さめに */
  height: auto;
  position: absolute;
  bottom: 1px;
  right: 100px;
}

.contact-header .header-text {
  flex: 1;
  padding: 0 120px; /* アイコンと被らないよう余白を確保 */
}

.contact-header h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300;
  margin-top: 15px;
  margin-bottom: 15px;
}

.contact-header p {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 400;
  margin: 8px 0;
  margin-bottom: 30px;
}

.contact-header .tel-info {
  font-weight: bold;
}

.contact-header .back-link {
  display: block; /* ← ブロック要素にする */
  text-align: left;
  margin: 0; /* 余白消す */
  padding: 5px 20px; /* 左だけ少し余白 */
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
}

.contact-header .back-link:hover {
  text-decoration: underline;
}

/* ===== フォーム本体 ===== */
.contact-form-section {
  background: #fff url("../img/kamihikouki_bg.png") no-repeat center/50%;
  padding: 40px 20px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  border-radius: 4px;
}

.form-group.checkbox {
  text-align: center; /* ← 全体を中央寄せ */
}
.form-group.checkbox p {
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group.checkbox .agree-label {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* ← チェックボックスと文字の間 */
  font-size: 14px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  white-space: nowrap; /* ← 折り返さない */
}

.form-group.checkbox input[type="checkbox"] {
  transform: scale(1.2);
}

.form-group.checkbox a {
  color: #2a7b3e;
  text-decoration: underline;
}

.form-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* a.btn / button.btn の初期差を吸収して完全一致させる */
a.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* サイズを固定基準で統一 */
  min-width: 160px;
  min-height: 44px; /* ← 高さ差が出やすいので固定 */
  padding: 12px 28px; /* ← 余白も同じに */

  /* 文字周りを統一 */
  font: inherit; /* フォント族/サイズ/太さを継承 */
  line-height: 1.2; /* 行高の差を吸収 */
  letter-spacing: inherit;

  /* ブラウザ独自スタイルを無効化 */
  -webkit-appearance: none;
  appearance: none;

  /* 既存デザインを踏襲 */
  box-sizing: border-box;
  background: #fff;
  color: #2a7b3e;
  border: 1px solid #2a7b3e;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

/* hoverは既存のやつでもOK。統一したいならこちらに寄せても◎ */
a.btn:hover,
button.btn:hover {
  background: #2a7b3e;
  color: #fff;
}

/* ===== 確認画面・サンクスページ共通 ===== */

.confirm-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  color: #206322;
  margin-bottom: 30px;
}

.contact-form-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 300;
  color: #206322;
  margin-right: 50px;
  margin-bottom: 50px;
  text-align: left; /* ボックス内の文字は左寄せ */
}

.contact-form-section p {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 300;
  line-height: 1.8;
  color: #333;
  max-width: 700px;
  margin: 0 auto 20px;
}

/* 確認画面：入力内容の表示 */
.confirm-list {
  max-width: 700px;
  margin: 0 auto 40px auto;
  text-align: left;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 30px;
}

.confirm-list p {
  margin-bottom: 16px;
  font-size: 16px;
}

.confirm-list strong {
  color: #206322;
  display: inline-block;
  width: 100px; /* ラベル部分を揃える */
}

/* ボタンの配置（確認・修正） */
.contact-form-section .form-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* 1) 絶対配置をやめて通常フローへ戻す */
.contact-form-section .btn {
  position: static;
  right: auto;
  bottom: auto;
}

/* 2) ボタンを中央に横並び */
.contact-form .form-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap; /* 狭い時は折返し */
  margin-top: 30px;
}

/* 3) 念のため、pなどに押し出されないよう幅の自動調整 */
.contact-form .form-buttons .btn {
  white-space: nowrap;
}

.contact-form-section .btn:hover {
  background: #2a7b3e;
  color: #fff;
}

.breadcrumb {
  display: none;
}
.pc-only {
  display: block;
}

/* ====================  
      確認フォーム 
======================   */
/* ===== 確認画面 共通レイアウト ===== */

.contact-confirm {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* フォーム項目の表示形式に変更 */
.contact-confirm .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.contact-confirm label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #206322;
  font-size: 16px;
}

.contact-confirm .confirm-value {
  font-size: 16px;
  color: #333;
  background: transparent;
  border: none;
  padding: 8px 0;
  white-space: pre-wrap;
}

@media screen and (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .breadcrumb {
    display: block;
    background-color: #a6d6b8;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    font-size: 13px;
    text-align: left;
  }
  .contact-header {
    background: #fff;
    color: #333; /* テキスト色を濃いグリーンに */
    padding: 10px 0px;
    text-align: center;
    margin-bottom: 0px;
  }

  .contact-header h2,
  .contact-header .tel-info {
    color: #5fac7b;
    text-align: center;
  }

  .contact-header .tel-info {
    white-space: normal; /* スマホでは折返しOK */
    font-size: inherit; /* 文字サイズ復活 */
    line-height: 1.6;
  }
  .contact-header .tel-info br {
    display: inline; /* スマホでは改行有効化 */
  }

  .contact-header p {
    color: #304330;
    text-align: center;
  }

  .contact-header .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: static;
  }

  .contact-header .icon-left,
  .contact-header .icon-right {
    display: none; /* SPではアイコン非表示にするなら */
  }

  .contact-header .tel-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    line-height: 1.6;
    white-space: nowrap;
  }

  .contact-header .tel-info br {
    display: none;
  }

  .contact-header .back-link {
    text-align: left;
    font-size: 13px;
    margin-top: 16px;
  }

  .contact-form-section {
    position: relative;
    padding-top: 50px;
  }

  .contact-form-section::before {
    content: "";
    display: block;
    width: 300px; /* ← ラインの長さを指定 */
    height: 1px;
    background: #a6d6b8;
    margin: -100px auto 40px; /* 中央寄せ＋下に余白 */
  }

  .form-group.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 12px; /* ← さらに小さめ */
    height: 12px;
    border: 1px solid #2a7b3e;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
  }

  /* ✔ を小さく中央に配置 */
  .form-group.checkbox input[type="checkbox"]:checked::after {
    content: "✔";
    font-size: 12px;
    color: #2a7b3e;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%); /* ← ほんの少し上に */
  }

  .footer-nav {
    display: none !important;
  }

  br.sp-only {
    display: inline !important;
  }
}
