@charset "utf-8";
/* ==========================================================================
   愛車無料査定シミュレーション
   本体サイトの配色（赤 #be0d0d / 黒 / 白）と角のない箱に合わせている
   ========================================================================== */

.hua {
  --hua-red: #be0d0d;
  --hua-red-dark: #9c0a0a;
  --hua-black: #111111;
  --hua-text: #333333;
  --hua-muted: #767676;
  --hua-line: #dddddd;
  --hua-gray: #f5f5f5;
  color: var(--hua-text);
  font-size: 14px;
  line-height: 1.8;
  background: #ffffff;
}

.hua *,
.hua *::before,
.hua *::after { box-sizing: border-box; }

/* 個別の余白指定が負けないよう、リセット側には優先度を持たせない */
.hua :where(p) { margin: 0; }

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */
.hua-hero {
  position: relative;
  background-color: #000000;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
}
.hua-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .62) 45%, rgba(0, 0, 0, .88) 100%);
}
.hua-hero-inner {
  position: relative;
  padding: 90px 15px 80px;
}
.hua-badge {
  display: inline-block;
  background: var(--hua-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .08em;
  padding: 7px 20px;
  margin-bottom: 22px;
}
.hua-hero-title {
  color: #ffffff;
  font-size: 52px;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 24px;
  border: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.hua-hero-lead {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 34px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.hua-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.hua .hua-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 15px 34px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hua .hua-btn-primary {
  background: var(--hua-red);
  color: #ffffff;
}
.hua .hua-btn-primary:hover { background: var(--hua-red-dark); color: #ffffff; }
.hua .hua-btn-primary:disabled {
  background: #cccccc;
  color: #ffffff;
  cursor: not-allowed;
}
.hua .hua-btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, .7);
}
.hua .hua-btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #ffffff; }
.hua .hua-btn-line {
  background: #ffffff;
  color: var(--hua-text);
  border-color: var(--hua-line);
  min-width: 180px;
  padding: 12px 26px;
  font-size: 13px;
}
.hua .hua-btn-line:hover { background: var(--hua-gray); }
.hua .hua-btn-lg { min-width: 300px; padding: 19px 40px; font-size: 17px; }

/* --------------------------------------------------------------------------
   セクションと見出し
   -------------------------------------------------------------------------- */
.hua-section { padding: 70px 0; }
.hua-section-gray { background: var(--hua-gray); }

.hua-heading { text-align: center; margin-bottom: 44px; }
.hua-heading-en {
  color: var(--hua-red);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .18em;
  margin-bottom: 6px;
}
.hua .hua-heading-ja {
  font-size: 30px;
  font-weight: bold;
  color: var(--hua-black);
  line-height: 1.4;
  margin: 0 0 16px;
  padding: 0;
  border: none;
}
.hua .hua-heading-ja::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--hua-red);
  margin: 16px auto 0;
}
.hua-heading-sub { font-size: 14px; color: var(--hua-muted); }

/* --------------------------------------------------------------------------
   入力カード
   -------------------------------------------------------------------------- */
.hua-card {
  background: #ffffff;
  border: 1px solid var(--hua-line);
  padding: 40px;
}
.hua-group { margin-bottom: 34px; }
.hua-group:last-of-type { margin-bottom: 0; }
.hua-group-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--hua-black);
  border-left: 5px solid var(--hua-red);
  padding-left: 12px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.hua-optional {
  display: inline-block;
  background: var(--hua-gray);
  color: var(--hua-muted);
  font-size: 11px;
  font-weight: normal;
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: middle;
}

.hua-grid { display: grid; gap: 18px; }
.hua-grid-4 { grid-template-columns: repeat(4, 1fr); }
.hua-grid-3 { grid-template-columns: repeat(3, 1fr); }

.hua-field { display: flex; flex-direction: column; }
.hua-field label {
  font-size: 13px;
  font-weight: bold;
  color: var(--hua-black);
  margin-bottom: 7px;
  display: block;
}
.hua-req {
  display: inline-block;
  background: var(--hua-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 7px;
  margin-left: 8px;
  vertical-align: 1px;
}
.hua .hua-select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--hua-text);
  background-color: #ffffff;
  border: 1px solid var(--hua-line);
  border-radius: 0;
  cursor: pointer;
}
.hua .hua-select:focus {
  outline: none;
  border-color: var(--hua-red);
  box-shadow: 0 0 0 2px rgba(190, 13, 13, .12);
}
.hua .hua-select:disabled {
  background-color: var(--hua-gray);
  color: #aaaaaa;
  cursor: not-allowed;
}
.hua-note { font-size: 12px; color: var(--hua-muted); margin-top: 7px; }

/* オプション装備（複数選択チェックボックス） */
.hua-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 18px;
}
.hua-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--hua-text);
  background-color: #ffffff;
  border: 1px solid var(--hua-line);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.hua-checkbox-item:hover { background-color: var(--hua-gray); }
.hua-checkbox-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--hua-red);
  cursor: pointer;
}
.hua-checkbox-item:has(input:checked) {
  border-color: var(--hua-red);
  background-color: rgba(190, 13, 13, .05);
}

.hua-submit-wrap { text-align: center; margin-top: 40px; }
.hua-submit-note { font-size: 12px; color: var(--hua-muted); margin-bottom: 20px; }
.hua-submit-sub { font-size: 12px; color: var(--hua-muted); margin-top: 14px; }

/* --------------------------------------------------------------------------
   査定結果
   -------------------------------------------------------------------------- */
.hua-result { margin-top: 46px; border: 2px solid var(--hua-red); }
.hua-result-head {
  background: var(--hua-red);
  color: #ffffff;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.hua-result-head-title { font-size: 17px; font-weight: bold; }
.hua-result-head-car { font-size: 13px; }
.hua-result-body { padding: 40px 30px; }

/* 事故歴あり・不動車のとき、価格表示部分の代わりに出す個別査定メッセージ */
.hua-special-message {
  background: var(--hua-gray);
  border-left: 5px solid var(--hua-red);
  padding: 28px 26px;
  margin-bottom: 36px;
  text-align: center;
}
.hua-special-message-title { font-size: 19px; font-weight: bold; color: var(--hua-black); margin-bottom: 10px; }
.hua-special-message-text { font-size: 14px; color: var(--hua-text); line-height: 1.9; }

.hua-price { text-align: center; margin-bottom: 36px; }
.hua-price-label { font-size: 14px; font-weight: bold; color: var(--hua-muted); margin-bottom: 8px; }
/* 文字サイズが違っても「〜」が数字の高さの中央に来るよう、行揃えでなく中央揃えにする */
.hua-price-value {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hua-red);
  font-size: 60px;
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.hua-price-tilde { font-size: 32px; color: #999999; margin: 0 12px; }
.hua-price-unit { font-size: 20px; color: var(--hua-text); margin-left: 10px; align-self: flex-end; padding-bottom: 8px; }
.hua-price-note { font-size: 12px; color: var(--hua-muted); margin-top: 10px; }

.hua-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 36px; }
/* display:grid が hidden 属性より優先されるため、個別査定時に点数が隠れなかった */
.hua-metrics[hidden] { display: none; }
.hua-metric { background: var(--hua-gray); border: 1px solid var(--hua-line); padding: 20px 10px; text-align: center; }
.hua-metric-score { font-size: 30px; font-weight: bold; color: var(--hua-black); line-height: 1.2; }
.hua-metric-unit { font-size: 13px; color: var(--hua-muted); margin-left: 2px; }
.hua-metric-label { font-size: 12px; color: var(--hua-muted); margin-top: 4px; }

.hua-trend { margin-bottom: 36px; }
.hua-trend-title {
  font-size: 15px;
  font-weight: bold;
  color: var(--hua-black);
  border-left: 5px solid var(--hua-red);
  padding-left: 12px;
  margin-bottom: 16px;
}
/* 棒は 0円からの高さで描く。高さの差がそのまま金額の差になる */
.hua-chart {
  position: relative;
  background: var(--hua-gray);
  border: 1px solid var(--hua-line);
  padding: 54px 20px 0 62px;
}
.hua-chart-grid {
  position: absolute;
  left: 62px;
  right: 20px;
  top: 54px;
  height: 260px;
  pointer-events: none;
}
.hua-chart-gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #cfcfcf;
}
/* 目盛りの数字は棒に重ならないよう、グラフの外（左）へ出す */
.hua-chart-gridline span {
  position: absolute;
  right: 100%;
  top: -9px;
  width: 52px;
  padding-right: 8px;
  text-align: right;
  font-size: 11px;
  color: #999999;
}
.hua-chart-items {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 260px;
}
.hua-bar-item { position: relative; flex: 1; height: 100%; text-align: center; }
.hua-bar-stack { position: absolute; left: 0; right: 0; bottom: 0; transition: height .6s ease; }
.hua-bar-caption { position: absolute; left: 0; right: 0; bottom: 100%; padding-bottom: 8px; }
.hua-bar-amount { font-size: 15px; font-weight: bold; color: var(--hua-black); }
.hua-bar-amount small { font-size: 11px; font-weight: bold; }
.hua-bar-diff { font-size: 11px; color: var(--hua-red); min-height: 15px; }
.hua-bar-fill { width: 100%; max-width: 76px; height: 100%; margin: 0 auto; background: var(--hua-red); }
.hua-chart-labels { display: flex; gap: 16px; padding: 10px 0 16px; }
.hua-chart-labels span { flex: 1; text-align: center; font-size: 12px; color: var(--hua-muted); }
.hua-trend-note { font-size: 12px; color: var(--hua-muted); margin-top: 10px; }

.hua-cta { background: var(--hua-black); color: #ffffff; padding: 36px 24px; text-align: center; }
.hua-cta-title { font-size: 19px; font-weight: bold; margin-bottom: 14px; }
.hua-cta-lead { font-size: 14px; color: #dddddd; margin-bottom: 34px; }
.hua-cta-sub { font-size: 12px; color: #aaaaaa; margin-top: 14px; }
.hua-cta .hua-btn-line { margin-top: 20px; }

/* 来店査定・出張査定・写真で相談の3導線 */
.hua-visit-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: left;
}
.hua-visit-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #ffffff;
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
.hua-visit-option:hover { background: rgba(255, 255, 255, .12); border-color: var(--hua-red); }
.hua-visit-option-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--hua-red);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}
.hua-visit-option-title { font-size: 15px; font-weight: bold; color: #ffffff; }
.hua-visit-option-desc { font-size: 12px; color: #cccccc; line-height: 1.7; }

/* --------------------------------------------------------------------------
   よくある質問
   -------------------------------------------------------------------------- */
.hua-faq { max-width: 860px; margin: 0 auto; }
.hua-faq-item { background: #ffffff; border: 1px solid var(--hua-line); margin-bottom: 12px; }
.hua .hua-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: bold;
  font-family: inherit;
  color: var(--hua-black);
  text-align: left;
  line-height: 1.6;
  cursor: pointer;
}
/* セクション背景と同じグレーにすると箱の境目と隙間が背景に溶けて詰まって見えるので、白地に薄い赤を重ねる */
.hua .hua-faq-q:hover { background: rgba(190, 13, 13, .05); }
.hua-faq-icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.hua-faq-icon::before,
.hua-faq-icon::after {
  content: "";
  position: absolute;
  background: var(--hua-red);
  transition: transform .2s;
}
.hua-faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.hua-faq-icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.hua-faq-q[aria-expanded="true"] .hua-faq-icon::after { transform: scaleY(0); }
.hua-faq-a { padding: 0 20px 20px; }
.hua-faq-a p { font-size: 14px; color: var(--hua-text); line-height: 1.9; }

/* --------------------------------------------------------------------------
   店舗情報
   -------------------------------------------------------------------------- */
.hua-shops { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.hua-shop { border: 1px solid var(--hua-line); padding: 26px; }
.hua .hua-shop-name {
  font-size: 17px;
  font-weight: bold;
  color: var(--hua-black);
  border-left: 5px solid var(--hua-red);
  padding-left: 12px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.hua-shop-addr { font-size: 14px; margin-bottom: 6px; }
.hua-shop-tel { font-size: 22px; font-weight: bold; line-height: 1.4; }
.hua-shop-tel a { color: var(--hua-red); text-decoration: none; }
.hua-shop-time { font-size: 13px; color: var(--hua-muted); }

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */
@media only screen and (max-width: 991px) {
  .hua-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hua-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hua-checkbox-grid { grid-template-columns: repeat(3, 1fr); }
  .hua-hero-title { font-size: 40px; }
  .hua-card { padding: 30px 24px; }
  .hua-visit-options { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 767px) {
  .hua-section { padding: 50px 0; }
  .hua-hero-inner { padding: 60px 15px 54px; }
  .hua-badge { margin-bottom: 16px; }
  .hua-hero-title { font-size: 30px; margin-bottom: 18px; }
  .hua-hero-lead { font-size: 13px; line-height: 1.9; margin-bottom: 26px; }
  .hua-hero-btns { flex-direction: column; align-items: stretch; }
  .hua .hua-btn { width: 100%; min-width: 0; }
  .hua .hua-btn-lg { min-width: 0; padding: 17px 20px; font-size: 15px; }
  .hua .hua-heading-ja { font-size: 23px; }
  .hua-grid-4,
  .hua-grid-3 { grid-template-columns: 1fr; }
  .hua-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
  .hua-card { padding: 24px 18px; }
  .hua-result-body { padding: 28px 18px; }
  .hua-special-message { padding: 22px 18px; }
  .hua-visit-options { grid-template-columns: 1fr; max-width: none; }
  .hua-price-value { font-size: 40px; }
  .hua-price-tilde { font-size: 22px; margin: 0 6px; }
  .hua-metrics { gap: 8px; }
  .hua-metric { padding: 14px 4px; }
  .hua-metric-score { font-size: 22px; }
  .hua-metric-label { font-size: 11px; }
  .hua-chart { padding: 46px 10px 0 46px; }
  .hua-chart-grid { left: 46px; right: 10px; top: 46px; height: 210px; }
  .hua-chart-gridline span { width: 40px; padding-right: 6px; font-size: 10px; }
  .hua-chart-items { height: 210px; gap: 6px; }
  .hua-bar-fill { max-width: 46px; }
  .hua-bar-amount { font-size: 12px; }
  .hua-bar-amount small { font-size: 9px; }
  .hua-bar-diff { font-size: 9px; min-height: 13px; }
  .hua-chart-labels { gap: 6px; }
  .hua-chart-labels span { font-size: 10px; }
  .hua-shops { grid-template-columns: 1fr; }
}
