/* ============================================================
   inquiry.css  –  お問合せフォーム スタイルシート
   ============================================================
   このCSSはフォーム単体で動作するシンプルなスタイルです。
   サイトのデザインに合わせて自由に上書きしてください。

   主なクラス:
     .inquiry-section   … フォーム全体のセクション
     .inquiry-wrap      … フォームの最大幅コンテナ
     .inquiry-title     … ページタイトル
     .inquiry-lead      … 説明テキスト
     .inquiry-table     … フォームテーブル
     .confirm-table     … 確認画面テーブル
     .required-mark     … ※ 必須マーク（赤）
     .optional-mark     … 任意バッジ
     .error-summary     … エラーまとめボックス
     .error-text        … 各フィールドのエラーメッセージ
     .btn               … ボタン共通
     .btn-primary       … 送信・確認ボタン
     .btn-secondary     … 戻るボタン
   ============================================================ */

/* ---- リセット（フォーム要素） ---- */
*, *::before, *::after { box-sizing: border-box; }

/* ---- セクション ---- */
.inquiry-section {
  padding: 84px 1rem;
  background:
    radial-gradient(circle at 86% 10%, rgba(215, 25, 32, 0.1), transparent 26%),
    linear-gradient(135deg, #f7f8fb 0%, #eef2f7 100%);
}

/* ---- コンテナ ---- */
.inquiry-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.inquiry-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

/* ---- タイトル ---- */
.inquiry-title {
  margin: 8px 0 0;
  color: var(--primary);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
}

/* ---- 説明テキスト ---- */
.inquiry-lead {
  margin: 18px 0 0;
  line-height: 1.8;
  color: var(--mid);
  font-size: clamp(15px, 1.6vw, 18px);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.contact-method {
  position: relative;
  padding: 24px 28px 22px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border: 1px solid rgba(13, 35, 69, 0.34);
}


.contact-method-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 8px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-method-label i {
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.contact-method-main {
  display: inline-block;
  color: var(--white);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.contact-method p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.inquiry-guide {
  padding: 20px 24px;
  margin: 0 0 30px;
  background: var(--white);
  border: 1px solid rgba(13, 35, 69, 0.18);
}

.inquiry-guide p {
  margin: 0;
  color: var(--mid);
  line-height: 1.9;
}

.inquiry-guide p + p {
  margin-top: 8px;
}

/* ---- 必須・任意マーク ---- */
.required-mark {
  color: var(--accent);
  font-weight: bold;
  margin-left: 0.25em;
}

.optional-mark {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.08em 0.55em;
  margin-left: 0.4em;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.78);
  vertical-align: middle;
  line-height: 1.5;
}

/* ---- フォームテーブル ---- */
.inquiry-table {
  width: 100%;
  margin-bottom: 2rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(13, 35, 69, 0.34);
  border-collapse: separate;
  border-spacing: 0;
}

.inquiry-table th,
.inquiry-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(13, 35, 69, 0.12);
  vertical-align: middle;
  text-align: left;
}

.inquiry-table th {
  width: 32%;
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  font-weight: bold;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}



.inquiry-table td {
  background: rgba(255, 255, 255, 0.96);
}

.inquiry-table tr:last-child th,
.inquiry-table tr:last-child td {
  border-bottom: 0;
}

/* エラーがある行 */
.inquiry-table tr.has-error td {
  background: #fff8f8;
}

/* ---- 英語ラベル ---- */
.label-en {
  display: block;
  font-size: 0.75rem;
  font-weight: normal;
  color: rgba(232, 212, 158, 0.85);
  margin-top: 0.1em;
}

/* ---- 入力要素共通 ---- */
.input-text,
.input-postcode,
.input-date,
.input-select,
.input-textarea {
  display: block;
  width: 100%;
  padding: 0.72em 0.85em;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--primary);
  background: #fff;
  border: 1px solid rgba(13, 35, 69, 0.24);
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.input-text:focus,
.input-postcode:focus,
.input-date:focus,
.input-select:focus,
.input-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.14);
}

/* エラー状態 */
.input-text.is-error,
.input-postcode.is-error,
.input-date.is-error,
.input-select.is-error,
.input-textarea.is-error {
  border-color: #c0392b;
}

/* ---- 入力幅の調整 ---- */
.input-postcode { max-width: 180px; display: inline-block; }
.input-date     { max-width: 220px; }

/* ---- セレクトボックス（矢印追加） ---- */
.input-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  padding-right: 2.2em;
  cursor: pointer;
}

/* ---- テキストエリア ---- */
.input-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---- ラジオ・チェックボックス グループ ---- */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.radio-label,
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.radio-label input,
.checkbox-label input {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.privacy-consent {
  padding: 22px 24px;
  margin: 0 0 2rem;
  background: var(--white);
  border: 1px solid rgba(13, 35, 69, 0.34);
}

.privacy-consent.has-error {
  background: #fff8f8;
}

.privacy-consent p {
  margin: 0;
  color: var(--mid);
  font-size: 0.94rem;
  line-height: 1.9;
}

.privacy-consent .agree-label {
  justify-content: center;
  width: 100%;
  margin-top: 16px;
}

.privacy-consent .error-text {
  color: #c0392b;
  text-align: center;
}

/* 同意チェックボックス */
.agree-label {
  font-size: 0.93rem;
}

.agree-label a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- 郵便番号アシストテキスト ---- */
.postcode-assist {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.5;
}

.postcode-assist.is-error {
  color: #c0392b;
}

/* ---- 補足テキスト ---- */
.field-note {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #777;
  line-height: 1.5;
}

/* ---- ファイル入力 ---- */
.input-file {
  display: block;
  width: 100%;
  max-width: 100%;
  font-size: 0.95rem;
  padding: 0.4em 0;
}

.input-file.is-error {
  outline: 1px solid #c0392b;
}

/* ---- ハニーポット（スパム対策・人間には見えない） ---- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- エラーまとめ ---- */
.error-summary {
  padding: 0.9rem 1.2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent);
  background: #fff8f8;
  color: var(--accent);
  font-size: 0.93rem;
}

/* ---- フィールドエラーテキスト ---- */
.error-text {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #c0392b;
  line-height: 1.5;
}

/* ---- reCAPTCHA ---- */
.recaptcha-wrap {
  margin: 1.2rem 0;
}

/* v3 の表示テキスト */
.recaptcha-v3-note {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* ---- ボタン共通 ---- */
.btn {
  display: inline-block;
  padding: 0.75em 2.5em;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

/* 送信・確認ボタン */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #b9151b;
  border-color: #b9151b;
  transform: translateY(-2px);
}

/* 戻るボタン */
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border-color: rgba(13, 35, 69, 0.34);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #f4f7fb;
}

/* ---- 送信ボタンエリア ---- */
.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.confirm-submit {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---- 確認画面テーブル ---- */
.confirm-table th {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
}

/* ---- 送信完了メッセージ ---- */
.complete-message {
  text-align: center;
  padding: 3rem 1.5rem;
  line-height: 2;
  color: var(--mid);
  background: var(--white);
  border: 1px solid rgba(13, 35, 69, 0.34);
}

.complete-message p {
  margin: 0;
}

.privacy-section {
  padding: 84px 1rem;
  background:
    radial-gradient(circle at 86% 10%, rgba(215, 25, 32, 0.1), transparent 26%),
    linear-gradient(135deg, #f7f8fb 0%, #eef2f7 100%);
}

.privacy-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 48px;
  background: var(--white);
  border: 1px solid rgba(13, 35, 69, 0.34);
}

.privacy-wrap h2 {
  position: relative;
  margin: 2.4rem 0 0.75rem;
  padding-left: 18px;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.privacy-wrap h2:first-of-type {
  margin-top: 2rem;
}

.privacy-wrap h2::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.privacy-wrap p {
  margin: 0.45rem 0 0.9rem;
  color: var(--mid);
  line-height: 1.95;
}

.privacy-wrap ul {
  margin: 0.45rem 0 0.9rem 1.4rem;
  padding: 0;
  color: var(--mid);
}

.privacy-wrap li {
  margin-bottom: 0.35rem;
}

.ip-note {
  padding: 18px 20px;
  margin: 1rem 0;
  color: var(--mid);
  background: #f4f7fb;
  border: 1px solid rgba(13, 35, 69, 0.16);
  font-size: 0.93rem;
}

.ip-note strong {
  color: var(--primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  margin-top: 2.2rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  background: var(--white);
  border: 1px solid rgba(13, 35, 69, 0.34);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   レスポンシブ対応
   ============================================================ */
@media (max-width: 640px) {
  .inquiry-section {
    padding: 64px 16px;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0;
  }

  .contact-method {
    padding: 20px 22px 18px;
  }

  .inquiry-guide {
    padding: 16px 18px;
  }

  .privacy-section {
    padding: 64px 16px;
  }

  .privacy-wrap {
    padding: 28px 22px;
  }

  .inquiry-table,
  .inquiry-table tbody,
  .inquiry-table tr,
  .inquiry-table th,
  .inquiry-table td {
    display: block;
    width: 100%;
  }

  .inquiry-table th {
    border-bottom: none;
    padding: 0.85rem 1rem 0.75rem 1.25rem;
  }

  .inquiry-table td {
    border-top: none;
    padding: 0.9rem 1rem 1.05rem 1.25rem;
  }

  .inquiry-table tr {
    border-bottom: 1px solid rgba(13, 35, 69, 0.12);
  }

  .inquiry-table tr:last-child {
    border-bottom: 0;
  }

  .confirm-submit {
    flex-direction: column-reverse;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }
}
