@charset "UTF-8";
/**
 * 買取「今すぐ価格チェック」ウィジェット スタイル
 * 影響範囲を限定するため、すべて #qc-widget / .qc 配下に閉じる。
 * （ファイル名に pc / sp を含めないこと：layout.inc が media 属性を付けてしまうため）
 */

.qc {
  box-sizing: border-box;
  padding: .8em 1em; /* form-wrap の枠線と各入力欄が接しないよう左右(・上下)に余白 */
}
.qc *,
.qc *::before,
.qc *::after {
  box-sizing: border-box;
}

/* --- 各フィールド --- */
.qc-field {
  margin-bottom: 14px;
}

.qc-label {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 0 6px;
  padding: 6px 10px;
  background: #ececec;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  border-radius: 3px;
}

.qc-badge {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.4;
  color: #fff;
  border-radius: 3px;
}
.qc-badge.req { background: #e60013; }
.qc-badge.opt { background: #888; }

/* --- プルダウン --- */
.qc-control {
  position: relative;
}

.qc-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 12px 38px 12px 12px;
  font-size: 16px; /* iOSの自動ズーム抑止のため16px以上 */
  line-height: 1.4;
  color: #222;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.qc-select:disabled {
  background: #f5f5f5;
  color: #999;
}
.qc-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(45deg);
  pointer-events: none;
}

/* --- 走行距離 --- */
.qc-mileage {
  display: flex;
  align-items: center;
}
.qc-mileage::after { content: none; } /* ▼マークは出さない */
.qc-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  line-height: 1.4;
  color: #222;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.qc-unit {
  flex: 0 0 auto;
  margin-left: 8px;
  font-size: 15px;
  font-weight: bold;
  color: #333;
}

/* --- チェックボタン --- */
.qc-submit {
  margin-top: 18px;
}
.qc-check-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 6px;
  background: #5fb336;
  color: #fff;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 0 #4a8f2a;
  transition: background .15s;
}
.qc-check-btn:hover { background: #69c23c; }
.qc-check-btn:disabled {
  background: #bdbdbd;
  box-shadow: 0 3px 0 #9e9e9e;
  cursor: not-allowed;
}
.qc-check-btn.is-loading {
  opacity: .7;
  cursor: progress;
}
.qc-check-sub {
  display: block;
  font-size: 13px;
}
.qc-check-main {
  display: block;
  font-size: 19px;
}

/* --- 結果表示 --- */
.qc-result {
  margin-top: 18px;
  padding: 18px 16px;
  background: #f2f2f2;
  border-radius: 6px;
  text-align: center;
}
.qc-result-label {
  margin: 0 0 6px;
  font-size: 14px;
  color: #555;
}
.qc-result-price {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: bold;
  color: #222;
}
.qc-result-price strong {
  font-size: 30px;
  color: #d3000f;
}
.qc-result-price.qc-nodata {
  font-size: 17px;
  color: #555;
}
.qc-result-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #888;
}

/* --- 査定依頼ボタン --- */
.qc-apply {
  margin-top: 14px;
}
.qc-apply-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding: 12px 14px;
  background: #c40d1c;
  border: none;
  border-radius: 6px;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 3px 0 #97000d;
  transition: background .15s, color .15s, box-shadow .15s;
}
/* hover: 背景白・赤枠に反転。文字/矢印/バッジもすべて赤に（base.css の a:hover=オレンジを上書き） */
.qc-apply-btn:hover {
  background: #fff;
  color: #c40d1c;
  box-shadow: inset 0 0 0 2px #c40d1c;
}
.qc-apply-btn:hover .qc-apply-sub {
  color: #fff;
  background: #c40d1c;
}
.qc-apply-sub {
  display: inline-block;
  margin-bottom: 3px;
  padding: 1px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #c40d1c;
  background: #fff;
  border-radius: 999px;
}
.qc-apply-main {
  font-size: 17px;
  line-height: 1.3;
}
.qc-apply-btn .qc-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

/* --- エラー --- */
.qc-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 4px;
  color: #b3261e;
  font-size: 14px;
  text-align: center;
}

/* --- PC --- */
@media (min-width: 1100px) {
  .qc-result-price { font-size: 24px; }
  .qc-result-price strong { font-size: 34px; }
}
