/* ============================================================
   資料請求フォーム 改修用スタイル（franchise/_request）
   ※ index.tpl / check.tpl から読み込み
============================================================ */

/* 固定メニューと重ならないよう下部に余白 */
.mb80 {
  margin-bottom: 80px !important;
}

/* ---- 入力欄（SPでの自動拡大防止：16px以上） ---- */
#form_section .form-control,
#form_section select,
#form_section textarea,
#form_section input[type="text"] {
  font-size: 16px;
}
#form_section select {
  height: 40px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}
#form_section .form-control {
  height: 44px;
}
#form_section textarea.form-control,
#form_section textarea {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  min-height: 150px;
  padding: 10px 12px;
  line-height: 1.6;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}
#form_section .form-sp .form-control,
#form_section .form-inline .form-control {
  display: inline-block;
  width: auto;
  max-width: 100%;
  vertical-align: middle;
}
#form_section input[type="text"][name="address"],
#form_section input[type="text"][name="address2"],
#form_section input[type="text"][name="build_area"],
#form_section input[type="text"][name="name"],
#form_section input[type="text"][name="ruby"],
#form_section input[type="text"][name="mail"],
#form_section input[type="text"][name="tel"] {
  width: 100%;
  max-width: 480px;
}

/* ---- 項目別エラー ---- */
.field-error {
  display: block;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #cc0000;
  font-weight: bold;
}
.field-error:empty {
  display: none;
}
#form_section .is-error,
#form_section .form-control.is-error,
#form_section select.is-error {
  border: 2px solid #cc0000;
  background-color: #fff5f5;
}
.error {
  font-weight: bold;
}

/* ---- 住所の自動入力（補助ボタン：自動入力が効かなかったとき用） ---- */
#form_section .btn_address {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: #444;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  vertical-align: middle;
  text-decoration: none;
}
#form_section .btn_address:hover {
  color: #222;
  background: #f2f2f2;
  border-color: #888;
}

/* ---- 補足テキスト ---- */
.field-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

/* ---- ボタン ---- */
.req-btn-area {
  text-align: center;
  margin: 30px 0 40px;
}
.req-btn-primary {
  display: inline-block;
  width: 100%;
  max-width: 520px;
  padding: 22px 30px;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
  color: #fff;
  background: #e8640a;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 0 #b84e05;
  cursor: pointer;
  transition: all .2s;
  -webkit-appearance: none;
  appearance: none;
}
.req-btn-primary:hover,
.req-btn-primary:focus {
  background: #c9560a;
  color: #fff;
  box-shadow: 0 2px 0 #b84e05;
  transform: translateY(2px);
}
.req-btn-primary[disabled] {
  opacity: .6;
  cursor: default;
}
.req-btn-primary .arrow {
  margin-left: 10px;
}
.req-btn-lead {
  margin: 0 0 12px;
  font-size: 15px;
  color: #333;
}
.req-btn-back {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  font-size: 15px;
  color: #666;
  background: transparent;
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.req-btn-back:hover {
  color: #333;
  background: #f2f2f2;
  text-decoration: none;
}

/* ---- 任意アンケートの開閉ボタン（控えめな見た目） ---- */
.acd-ttl.acd-ttl--secondary {
  background-color: #fff;
  border: 2px solid #1D3889;
  box-shadow: none;
  margin: 0 auto 30px;
  width: auto;
  max-width: 640px;
}
.acd-ttl.acd-ttl--secondary span {
  color: #1D3889;
  font-size: 18px;
  padding: 0 85px; /* 左のアイコン（left:50px + 25px）と右の矢印（right:50px）に被らない幅 */
}
.acd-ttl.acd-ttl--secondary span:before {
  border-color: #1D3889;
}
/* 開いているときは矢印を上向きに */
.acd-ttl.acd-ttl--secondary.is-open span:before {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.acd-ttl.acd-ttl--secondary .acd-ttl__sub {
  color: #1D3889;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* 白いホームアイコンが白地で消えるため、紺の丸い背景を敷く */
.acd-ttl.acd-ttl--secondary span:after {
  width: 36px;
  height: 36px;
  left: 40px;
  background-color: #1D3889;
  background-size: 55% auto;
  background-position: center;
  border-radius: 50%;
}
.acd-ttl.acd-ttl--secondary:hover {
  background-color: #f3f5fa;
}
.acd-ttl.acd-ttl--secondary .acd-ttl__sub {
  display: block;
  padding: 0;
  margin-top: 4px;
  font-size: 13px;
  font-weight: normal;
  color: #666;
}
.acd-ttl.acd-ttl--secondary .acd-ttl__sub:before,
.acd-ttl.acd-ttl--secondary .acd-ttl__sub:after {
  content: none;
}
.acd-divider {
  margin: 40px 0 24px;
  text-align: center;
  font-size: 15px;
  color: #666;
}

/* ---- アンケート：質問文と選択肢 ---- */
.q-title {
  display: block;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.6;
  color: #222;
}
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.choice-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 14px 8px 10px;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.choice-label input[type="radio"],
.choice-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  cursor: pointer;
}
.choice-label:hover {
  background: #f5f9ff;
}
#form_section .next-form .table > tbody > tr > th {
  font-weight: bold;
}

/* ---- 確認画面 ---- */
.confirm-btn-area {
  text-align: center;
  margin: 30px 0 0;
}

@media screen and (max-width: 767px) {
  .req-btn-primary {
    padding: 18px 20px;
    font-size: 18px;
  }
  .acd-ttl.acd-ttl--secondary span {
    font-size: 16px;
    padding: 0 60px; /* SP：アイコン left:16px + 32px、矢印 right:40px */
  }
  .acd-ttl.acd-ttl--secondary span:after {
    width: 32px;
    height: 32px;
    left: 16px;
  }
  .acd-ttl.acd-ttl--secondary .acd-ttl__sub {
    font-size: 12px;
  }
  .choice-group {
    gap: 8px 10px;
  }
  .choice-label {
    font-size: 15px;
  }
  #form_section .form-sp .form-control {
    width: 140px;
  }
  #form_section .form-sp .btn_address {
    padding: 8px 12px;
    font-size: 12px;
  }
  #form_section input[type="text"][name="zip"] {
    width: 160px;
  }
}
