/* ========================================
   otoiawase.html 専用CSS
======================================== */
 
/* ---- フォームラッパー ---- */
.form-intro {
  background: var(--or-pale);
  border-left: 4px solid var(--or);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.75;
}
.required-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.required-note .req {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}
 
/* ---- フォームグループ ---- */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.req {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.opt {
  display: inline-block;
  background: var(--muted);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
 
/* ---- 入力フィールド ---- */
.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 3px rgba(222,122,42,.12);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #bbb;
  font-size: 13px;
}
.form-input.half { max-width: 340px; }
.form-textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}
 
/* ---- 2カラムグリッド ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
 
/* ---- セクション区切り ---- */
.form-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  margin-top: 26px;
}
.form-section-label:first-of-type { margin-top: 4px; }
 
/* ---- エラー表示 ---- */
.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}
 
/* ---- ボタン ---- */
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.btn-submit {
  background: linear-gradient(135deg, #de7a2a, #c96a24);
  color: #fff;
  border: none;
  padding: 14px 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(180,80,0,.3);
  transition: all .2s;
  font-family: inherit;
}
.btn-submit:hover {
  background: linear-gradient(135deg, #c96a24, #b05a1e);
  box-shadow: 0 6px 20px rgba(180,80,0,.4);
  transform: translateY(-1px);
}
.btn-reset {
  background: none;
  color: var(--muted);
  border: 1.5px solid var(--border);
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
}
.btn-reset:hover {
  border-color: var(--muted);
  color: var(--text);
}
 
/* ---- お問い合わせ先ボックス ---- */
.contact-alt {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 20px;
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.8;
}
.contact-alt h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--or-d);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.contact-alt h3::before {
  content: "📞";
  font-size: 14px;
}
.contact-alt .tel-large {
  font-size: 20px;
  font-weight: 900;
  color: var(--or-d);
  letter-spacing: .06em;
}
.contact-alt a { color: var(--or); }
 
/* ---- インラインバリデーション エラー表示 ---- */
.field-error-msg {
  font-size: 12px;
  color: #c0392b;
  font-weight: 700;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: errShake .25s ease;
}
@keyframes errShake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.form-input.has-error,
.form-textarea.has-error {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 3px rgba(192,57,43,.12) !important;
}
.form-input.has-ok,
.form-textarea.has-ok {
  border-color: #27ae60 !important;
}
/* バリデーション総合エラーバナー */
#form-error-banner {
  display: none;
  background: #fff5f5;
  border: 1.5px solid #f5c6c6;
  border-left: 4px solid #c0392b;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #c0392b;
  font-weight: 700;
}
 
/* ---- カテゴリ選択ボタン ---- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 6px;
}
.category-btn {
  position: relative;
  cursor: pointer;
}
.category-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.category-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all .18s;
  text-align: center;
  line-height: 1.35;
}
.category-label:hover {
  border-color: var(--or);
  background: var(--or-pale);
}
.category-btn input[type="radio"]:checked + .category-label {
  border-color: var(--or);
  background: var(--or-pale);
  box-shadow: 0 0 0 3px rgba(222,122,42,.15);
}
.category-btn input[type="radio"]:checked + .category-label .cat-icon {
  transform: scale(1.12);
}
.cat-icon {
  font-size: 26px;
  transition: transform .18s;
  display: block;
}
.cat-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}
.cat-desc {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.4;
}
.category-btn input[type="radio"]:checked + .category-label .cat-name {
  color: var(--or-d);
}
/* カテゴリ選択後にテキストエリアのplaceholderを変更するためのダミー */
.category-btn input[type="radio"]:focus + .category-label {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}
 
/* ---- プライバシーポリシー同意チェックボックス ---- */
.privacy-agree-box {
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 24px 0 20px;
  transition: border-color .18s, background .18s;
}
.privacy-agree-box.has-error {
  border-color: #c0392b;
  background: #fff5f5;
}
.privacy-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}
.privacy-agree-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--or);
  cursor: pointer;
  border-radius: 4px;
}
.privacy-agree-label .agree-text { flex: 1; }
.privacy-agree-label .agree-text a {
  color: var(--or);
  font-weight: 700;
  text-decoration: underline;
}
.privacy-agree-label .agree-text a:hover { color: var(--or-d); }
.privacy-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  padding-left: 32px;
  line-height: 1.65;
}
.privacy-error-msg {
  font-size: 12px;
  color: #c0392b;
  font-weight: 700;
  margin-top: 8px;
  padding-left: 32px;
  display: none;
}
.privacy-error-msg.visible { display: block; }
 
/* ---- レスポンシブ ---- */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .form-input.half { max-width: 100%; }
  .btn-submit { width: 100%; padding: 14px 20px; }
  .btn-reset { width: 100%; }
}
 
/* ---- 郵便番号自動入力 ---- */
.zip-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.zip-input {
  flex: 1;
  min-width: 0;
}
.btn-zip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: var(--or-pale);
  border: 1.5px solid var(--or);
  color: var(--or-d);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
  flex-shrink: 0;
}
.btn-zip:hover {
  background: var(--or);
  color: #fff;
}
.btn-zip:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-zip-icon { font-size: 13px; }
#zip-status { min-height: 18px; margin-top: 5px; }
#zip-status.status-ok   { color: #27ae60; font-weight: 700; }
#zip-status.status-err  { color: #c0392b; font-weight: 700; }
#zip-status.status-load { color: var(--muted); }
 
/* ---- FAQ誘導セクション ---- */
.faq-cta-section {
  background: linear-gradient(135deg, #1a3a5c 0%, #1e4976 100%);
  border-radius: var(--r);
  padding: 22px 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.faq-cta-section::after {
  content: "?";
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 100px; font-weight: 900; color: rgba(255,255,255,.06);
  line-height: 1; pointer-events: none;
}
.faq-cta-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.faq-cta-badge {
  background: #f39c12; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 20px;
}
.faq-cta-section h3 {
  font-size: 15px; font-weight: 800; color: #fff; margin: 0;
}
.faq-cta-section p {
  font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 16px;
}
.faq-categories {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.faq-cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.9); font-size: 12px; font-weight: 600;
  padding: 5px 13px; border-radius: 20px;
  text-decoration: none; transition: all .18s;
}
.faq-cat-chip:hover {
  background: rgba(255,255,255,.25); color: #fff; text-decoration: none;
}
.faq-cat-chip .chip-icon { font-size: 14px; }
.btn-faq-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f39c12; color: #fff;
  padding: 12px 26px; border-radius: 8px;
  font-size: 14px; font-weight: 800; text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
  transition: all .18s;
}
.btn-faq-primary:hover {
  background: #e67e22; color: #fff; text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0,0,0,.3);
}
.faq-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 18px;
  color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em;
}
.faq-divider::before, .faq-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* 入力エラー表示（クライアント側チェック用） */
.form-error-summary {
  background: #fff5f5;
  border: 1.5px solid #f5c6c6;
  border-left: 4px solid #c0392b;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 0 0 18px;
  color: #8a1f17;
  font-size: 13px;
  line-height: 1.7;
}
.form-error-summary:focus { outline: 3px solid rgba(192,57,43,.22); }
.form-error-summary strong { display: block; font-size: 13.5px; margin-bottom: 6px; }
.form-error-summary ul { margin: 6px 0 0 1.2em; }
.form-error-summary a { color: #c0392b; text-decoration: underline; }
.form-input.is-error,
.form-textarea.is-error {
  border-color: #c0392b !important;
  background: #fffafa;
}
.field-error {
  color: #c0392b;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 5px;
  font-weight: 700;
}