/* =========================================================
   J4C お問い合わせ（contact.html）専用スタイル
   ※ページ見出し・パンくずは common.css の「下層ページ共通」
   ========================================================= */

.ct {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 40px 110px;
}
.ct-intro {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: #444;
}
.ct-section { margin-top: 64px; }
.ct-title {
  position: relative;
  padding-bottom: 16px;
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 700;
  letter-spacing: 0.1em;
}
.ct-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 3px;
  border-radius: 2px;
  background: var(--c-orange);
}
.ct-lead {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--c-sub);
}

/* =========================================================
   お電話でのお問い合わせ
   ========================================================= */
.ct-tel-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ct-tel {
  padding: 26px 28px;
  border-radius: 14px;
  background: #fffaf3;
  border: 1px solid #f3e6d4;
}
.ct-tel-place {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffa51f, #ff7a00);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.ct-tel-offices {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--c-sub);
}
.ct-tel-number {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-en);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color .25s;
}
.ct-tel-number:hover { color: var(--c-orange); }
/* 電話のアイコン */
.ct-tel-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff1df url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.ct-tel-address { margin-top: 8px; font-size: 13px; color: var(--c-sub); }
.ct-hours {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--c-sub);
}

/* =========================================================
   フォーム
   ========================================================= */
.ct-form {
  margin-top: 28px;
  padding: 40px 44px 44px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(170, 110, 40, .09);
}
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-field + .ct-field,
.ct-row + .ct-field,
.ct-field + .ct-row,
.ct-row + .ct-row { margin-top: 26px; }
.ct-note + .ct-field { margin-top: 26px; }
.ct-row > .ct-field { margin-top: 0; }
.ct-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ct-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ct-req,
.ct-opt {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.ct-req { background: #ff7a00; color: #fff; }
.ct-opt { background: #eeece7; color: var(--c-sub); }

.ct-input,
.ct-select select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e4ded3;
  border-radius: 10px;
  background: #fdfcfa;
  font: inherit;
  font-size: 16px;   /* スマホで入力欄を自動で拡大させないため16px */
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ct-input::placeholder { color: #b1aba0; }
.ct-input:focus,
.ct-select select:focus {
  outline: none;
  border-color: #ffa94d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 150, 40, .15);
}
.ct-input.is-invalid,
.ct-select select.is-invalid { border-color: #e2554a; background: #fff7f6; }
.ct-textarea { resize: vertical; min-height: 180px; line-height: 1.8; }

.ct-select { position: relative; }
.ct-select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.ct-select::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #999;
  border-bottom: 2px solid #999;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ラジオボタン（ボタン風） */
.ct-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-choice { position: relative; cursor: pointer; }
.ct-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ct-choice span {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid #e4ded3;
  border-radius: 999px;
  background: #fdfcfa;
  font-size: 15px;
  letter-spacing: 0.04em;
  transition: all .2s;
}
.ct-choice input:checked + span {
  border-color: #ff8a00;
  background: #fff3e3;
  color: #c65f08;
  font-weight: 700;
}
.ct-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(255, 150, 40, .2); }
.ct-choices.is-invalid .ct-choice span { border-color: #e2554a; }

.ct-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-sub);
}
.ct-note strong { color: var(--c-text); }

/* 同意チェック */
.ct-agree {
  margin-top: 30px;
  padding: 18px 20px;
  border-radius: 10px;
  background: #faf8f4;
}
.ct-check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.ct-check input { width: 22px; height: 22px; accent-color: #ff7a00; cursor: pointer; flex-shrink: 0; }
.ct-check a { color: #c65f08; font-weight: 700; border-bottom: 1px solid currentColor; }
.ct-check .ct-req { margin-left: 8px; }
.ct-agree.is-invalid { background: #fff1ef; }

.ct-error {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff1ef;
  color: #c0392b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.ct-submit-wrap { margin-top: 32px; text-align: center; }
.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 300px;
  padding: 18px 36px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9a1f, #ff7a00);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 24px rgba(255, 122, 0, .25);
  transition: transform .25s var(--ease), box-shadow .25s, opacity .25s;
}
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 122, 0, .3); }
.ct-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.ct-submit-arrow { position: relative; width: 16px; height: 10px; }
.ct-submit-arrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 2px;
  background: #fff;
}
.ct-submit-arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

/* 送信完了 */
.ct-done {
  margin-top: 28px;
  padding: 50px 30px;
  border-radius: 16px;
  background: #fffaf3;
  text-align: center;
}
.ct-done:focus { outline: none; }
.ct-done-icon {
  display: block;
  width: 70px; height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffa51f, #ff7a00);
  position: relative;
}
.ct-done-icon::after {
  content: "";
  position: absolute;
  left: 26px; top: 16px;
  width: 16px; height: 28px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(45deg);
}
.ct-done h3 { margin-top: 20px; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; }
.ct-done p { margin-top: 14px; font-size: 15px; line-height: 2; color: #444; }
.ct-back {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1.5px solid #ffb25c;
  background: #fff;
  font-weight: 700;
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 960px) {
  .ct { padding: 0 22px 80px; }
  .ct-intro br, .ct-lead br, .ct-done p br { display: none; }
  .ct-section { margin-top: 48px; }
  .ct-tel-grid { grid-template-columns: 1fr; }
  .ct-tel { padding: 22px 20px; }
  .ct-form { padding: 28px 20px 32px; }
  .ct-row { grid-template-columns: 1fr; gap: 26px; }
  .ct-submit { min-width: 0; width: 100%; }
}
