/* ==========================================================
   CONTACT（お問い合わせ）ページ専用スタイル
   共通部分は /css/sub-common.css にあります
   ========================================================== */
/* --- ページ見出し（イントロ） --- */
.intro:before {
  content: "CONTACT";
  position: absolute;
  right: -5vw;
  top: 12%;
  font:
    900 clamp(120px, 22vw, 380px)/1 Arial,
    sans-serif;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: -0.09em;
  pointer-events: none;
}

/* --- OSで「動きを減らす」設定にしている人向け：アニメーションを止める --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* --- 会社概要 --- */
.company-kicker {
  font:
    12px Arial,
    sans-serif;
  color: #bd0018;
  letter-spacing: 0.24em;
}

/* --- フォーム --- */
.form-section {
  background: #f5f5f5;
  padding: 130px 8vw 150px;
  scroll-margin-top: 75px;
}
.form-wrap {
  max-width: 1180px;
  margin: auto;
}
.form-heading h2 {
  font:
    800 clamp(55px, 9vw, 126px)/0.95 Arial,
    sans-serif;
  letter-spacing: -0.075em;
  margin: 35px 0;
}
.form-heading h2 span,
.information-section h2 span {
  color: var(--red);
}
.form-heading > p:last-child {
  line-height: 2.3;
  color: #555;
  font-size: 15px;
}
.inquiry-form {
  margin-top: 70px;
  border-top: 1px solid #bbb;
}
.form-row {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid #d3d3d3;
}
.form-row label {
  font-size: 15px;
  font-weight: 600;
  padding-top: 16px;
}
.form-row label strong {
  font:
    11px Arial,
    sans-serif;
  color: #fff;
  background: #c90012;
  padding: 5px 9px;
  margin-left: 12px;
}
.form-row label small {
  font-size: 11px;
  color: #777;
  margin-left: 12px;
}
.form-row input,
.form-row select,
.form-row textarea {
  font: 16px/1.6 inherit;
  font-family: inherit;
  font-size: 16px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  padding: 17px 19px;
  color: #111;
}
.form-row textarea {
  resize: vertical;
  min-height: 180px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

/* --- 送信ボタン --- */
.form-submit {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding-top: 45px;
}

/* --- フォーム --- */
.form-note {
  color: #777;
  font-size: 12px;
  line-height: 2;
}

/* --- 送信ボタン --- */
.form-submit button {
  background: #c90012;
  color: #fff;
  border: 0;
  padding: 26px 60px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.form-submit button:disabled {
  background: #888;
  cursor: not-allowed;
}
.form-submit button span {
  margin-left: 22px;
}

/* --- INFORMATION --- */
.information-section {
  background: #111;
  color: #fff;
  padding: 130px 8vw 150px;
  scroll-margin-top: 75px;
}
.information-section h2 {
  font:
    800 clamp(50px, 8vw, 115px)/0.98 Arial,
    sans-serif;
  letter-spacing: -0.07em;
  margin: 45px 0;
}
.information-section p:last-child {
  line-height: 2.3;
  color: #bbb;
  font-size: 15px;
}

/* --- スマホ・タブレット（画面幅 800px 以下） --- */
@media (max-width: 800px) {
  .form-section,
  .information-section {
    padding: 85px 7vw 100px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-row label {
    padding: 0;
  }
  .form-submit {
    display: block;
  }
  .form-submit button {
    width: 100%;
    margin-top: 20px;
  }
  .form-heading h2 {
    overflow-wrap: anywhere;
  }
}

/* --- 送信ボタン --- */
.form-submit button.send-motion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #888;
  cursor: default;
  transition: background-color 0.45s ease;
}
.form-submit button.send-motion::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #c90012;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -1;
}
.form-submit button.send-motion:hover::before {
  transform: scaleX(1);
}
.form-submit button.send-motion .send-label,
.form-submit button.send-motion .send-arrow {
  position: relative;
  z-index: 1;
}
.form-submit button.send-motion .send-label {
  margin-left: 0;
}
.form-submit button.send-motion .send-arrow {
  display: inline-block;
  margin-left: 22px;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.form-submit button.send-motion:hover .send-arrow {
  transform: translateX(9px);
}

/* --- OSで「動きを減らす」設定にしている人向け：アニメーションを止める --- */
@media (prefers-reduced-motion: reduce) {
  .form-submit button.send-motion::before,
  .form-submit button.send-motion .send-arrow {
    transition: none;
  }
}


/* ==========================================================
   送信フォームの動作まわり（送信機能の組み込みで追加）
   ========================================================== */

/* --- 送信エラーの表示 --- */
.form-errors {
  margin-top: 50px;
  padding: 26px 30px;
  border-left: 4px solid var(--red);
  background: #fff;
  color: #111;
  scroll-margin-top: 110px;
}
.form-errors:focus {
  outline: none;
}
.form-errors p {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--red);
}
.form-errors ul {
  margin: 0;
  padding-left: 1.3em;
  line-height: 2;
  font-size: 15px;
}

/* --- BOT対策の入力欄（人には見えない場所に置く） --- */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- 送信中のボタン --- */
.form-submit button.send-motion:disabled {
  background: #888;
  cursor: wait;
}

/* --- 送信完了ページの補足文 --- */
.thanks-note {
  margin: 28px 0 48px;
  font-size: 13px;
  line-height: 2;
  color: #aaa;
}

/* --- スマホ・タブレット（画面幅 800px 以下） --- */
@media (max-width: 800px) {
  .form-errors {
    padding: 20px 22px;
  }
}
