@charset "UTF-8";
/* =====================================================
   お問い合わせ（Contact Form 7 ＋ Multi-Step Forms for Contact Form 7）
   Figma: PC-水素の杜-お問い合わせ (227:4883) / 1280 幅基準
   ページ見出しは common.css の .page-hero（About / Company / FAQ / Movie と共通）
   フォームの HTML は inc/cf7/ の雛形。.contact-* は雛形側のクラス、
   .wpcf7-* は Contact Form 7 が出力するクラス
   ===================================================== */

/* 写真はデザインで右端に合わせてトリミングしている。 */
.page-hero--contact .page-hero__bg { object-position: 100% 50%; }

.contact-body {
  padding: 120px 0 180px;
  color: #fff;
  font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
}
/* 完了ページなど、本文に直接書いた段落。 */
.contact-body > p,
.contact-lead,
.contact-notice p {
  text-align: center;
  font-size: 16px;
  letter-spacing: 2.4px;
  line-height: 2.3;
}
.contact-body a { text-decoration: underline; }
.contact-lead { margin-bottom: 60px; }

/* =====================================================
   入力欄：見出し 140px ＋ 余白 40px ＋ 入力欄 550px（計 730px・中央）
   ===================================================== */
.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 730px;
  max-width: 100%;
  margin: 0 auto;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 40px;
}
/* 見出しが 2 行のもの・テキストエリアは上揃え。 */
.contact-row.is-top { align-items: flex-start; }
.contact-row.is-top .contact-row__label { padding-top: 12px; }
.contact-row__label {
  flex-shrink: 0;
  width: 140px;
  font-size: 14px;
  letter-spacing: 2.1px;
  line-height: 1.4;
}
.contact-row__field {
  flex: 1;
  min-width: 0;
}
.contact-row__note {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 1.8px;
  line-height: 1.4;
}
.contact-body .wpcf7-form-control-wrap { display: block; }

/* 白 10% 塗り＋白 1px 枠。 */
.contact-row input[type="text"],
.contact-row input[type="email"],
.contact-row input[type="tel"],
.contact-row textarea {
  display: block;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border: 1px solid #fff;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 16px;
  letter-spacing: 1.6px;
  -webkit-appearance: none;
  appearance: none;
}
.contact-row textarea {
  height: 200px;
  padding: 16px 20px;
  line-height: 1.6;
  resize: vertical;
}
.contact-row input:focus,
.contact-row textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* 確認画面：入力値を下線付きで並べる。 */
.contact-row__value {
  flex: 1;
  min-width: 0;
  min-height: 60px;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 16px;
  letter-spacing: 1.6px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.contact-row__value.is-multiline { white-space: pre-wrap; }

/* =====================================================
   同意チェック（[acceptance]）
   ===================================================== */
.contact-check {
  margin-top: 60px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 2.4px;
  line-height: 2.3;
}
.contact-notice + .contact-check { margin-top: 41px; }
.contact-check .wpcf7-list-item { margin: 0; }
.contact-check label {
  display: inline-flex;
  align-items: center;
  gap: 19px;
  cursor: pointer;
}
/* 22px の白枠チェックボックス。チェック時は白いレ点を表示する。 */
.contact-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1) no-repeat center / 14px 14px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.contact-check input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M1.5 7.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}
.contact-check input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

/* =====================================================
   注意書き・電話番号
   ===================================================== */
.contact-notice { margin-top: 70px; }
/* 完了ページ：お礼の文言の直後に置くときは、文言側の余白（60px）だけにする。 */
.contact-lead + .contact-notice { margin-top: 0; }
.contact-notice .contact-notice__tel {
  margin-top: 11px;
  line-height: 2;
}
.contact-notice__tel a { text-decoration: none; }
.contact-notice__hours {
  font-size: 12px;
  letter-spacing: 1.8px;
}

/* =====================================================
   送信ボタン（白 60% の 280 × 60。商品 LP の購入ボタンと同じ見た目）
   ===================================================== */
.contact-submit {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.contact-submit input[type="submit"],
.contact-submit input[type="button"],
.contact-submit button {
  width: 280px;
  max-width: 100%;
  height: 60px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.6);
  color: #3c3c3c;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2.7px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease;
}
.contact-submit input[type="submit"]:hover { background: rgba(255, 255, 255, 0.8); }
/* 確認画面の「戻る」は枠線だけにして、送信と区別する。 */
.contact-submit input[type="button"],
.contact-submit button {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}
/* 同意チェックが済むまでは Contact Form 7 が送信ボタンを無効にする。 */
.contact-submit input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* 送信中のくるくるはボタンの右に出す（ボタンの位置をずらさない）。 */
.contact-submit .wpcf7-spinner {
  position: absolute;
  top: 18px;
  left: calc(50% + 152px);
  margin: 0;
}

/* 完了ページの「トップページへ戻る」。 */
.contact-back {
  margin-top: 60px;
  text-align: center;
  font-size: 16px;
  letter-spacing: 2.4px;
  line-height: 2.3;
}

/* =====================================================
   エラー・送信結果（Contact Form 7 の出力）
   ===================================================== */
.contact-body .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #ffd9d0;
  font-size: 12px;
  letter-spacing: 1.2px;
}
.contact-check .wpcf7-not-valid-tip { text-align: center; }
/* 空のうちは枠だけ見えないよう隠す（通常は Contact Form 7 の CSS でも隠れる）。 */
.contact-body .wpcf7 form .wpcf7-response-output:empty { display: none; }
.contact-body .wpcf7 form .wpcf7-response-output {
  max-width: 730px;
  margin: 40px auto 0;
  padding: 12px 20px;
  border: 1px solid #fff;
  text-align: center;
  font-size: 14px;
  letter-spacing: 1.4px;
  line-height: 1.6;
}

/* =====================================================
   レスポンシブ
   - max-width: 767px … Figma「SP-水素の杜-お問い合わせ」(238:4321 / 375px) の実寸。
   ===================================================== */
@media (max-width: 767px) {

  /* --- 本文 --- */
  .contact-page .contact-body {
    width: 100%;
    max-width: none;
    padding: 70px 20px 140px;
  }
  /* リード文はデザインでは左揃え（PC は中央）。 */
  .contact-lead {
    margin-bottom: 36px;
    font-size: 14px;
    letter-spacing: 2.1px;
    line-height: 2.2;
    text-align: left;
  }

  /* --- 入力欄：見出しを入力欄の上に積む --- */
  .contact-rows {
    width: 100%;
    gap: 30px;
  }
  .contact-row,
  .contact-row.is-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .contact-row__label {
    width: auto;
    font-size: 14px;
    letter-spacing: 2.1px;
    line-height: 1.4;
  }
  .contact-row input[type="text"],
  .contact-row input[type="email"],
  .contact-row input[type="tel"] {
    height: 50px;
    padding: 0 16px;
  }
  .contact-row textarea { padding: 14px 16px; }
  .contact-row__value {
    min-height: 50px;
    padding: 12px 16px;
  }

  /* --- 同意チェック --- */
  /* 1 つ目（営業・勧誘…）は左揃え、2 つ目（プライバシーポリシー）は中央。 */
  .contact-check {
    margin-top: 50px;
    font-size: 14px;
    letter-spacing: 2.1px;
    line-height: 2.2;
    text-align: left;
  }
  .contact-notice + .contact-check {
    margin-top: 60px;
    text-align: center;
  }
  /* 文が 2 行になるので、チェックボックスは 1 行目の高さに合わせる。 */
  .contact-check label { align-items: flex-start; }
  .contact-check input[type="checkbox"] { margin-top: 5px; }

  /* --- 注意書き・電話番号 --- */
  .contact-notice { margin-top: 60px; }
  .contact-notice p {
    font-size: 14px;
    letter-spacing: 2.1px;
    line-height: 2.2;
    text-align: left;
  }
  .contact-notice .contact-notice__tel {
    margin-top: 24px;
    font-size: 16px;
    line-height: 2.2;
    text-align: center;
  }
  .contact-notice__hours { font-size: 12px; }

  /* --- 送信ボタン --- */
  .contact-submit { margin-top: 60px; }
  .contact-submit .wpcf7-spinner { left: auto; right: 0; }

  .contact-back {
    margin-top: 50px;
    font-size: 14px;
    letter-spacing: 2.1px;
    line-height: 2.2;
  }
  .contact-body .wpcf7 form .wpcf7-response-output { margin-top: 30px; }
}
