@charset "UTF-8";
/* CSS Document */

/* =========================================================
  SINGLE CAR STYLE (for your single-car.php)
  - Mobile: fixed-width feel (max-width + centered)
  - Clean cards, readable numbers, neat tables
========================================================= */

/* ---- Theme collision safety ---- */
.car-single, .car-single * { box-sizing: border-box; }

/* ---- Variables ---- */
:root{
  --car-text:#0f172a;
  --car-muted:#64748b;
  --car-line:#e5e7eb;
  --car-soft:#f8fafc;
  --car-white:#ffffff;

  --car-red:#b91c1c;
  --car-blue:#1d4ed8;

  --car-radius:16px;
  --car-radius-sm:12px;

  --car-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

/* =========================================================
  Mobile-first layout: “fixed width” feeling
  - smartphoneでも読みやすい横幅に固定気味で中央寄せ
========================================================= */
.car-single{
  max-width: 720px;          /* ← モバイルの“固定幅感”の要 */
  margin: 0 auto;
  padding: 16px 12px 26px;
  color: var(--car-text);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans JP", sans-serif;
}

/* タイトル */
.car-single__title{
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: .02em;
}

/* 画像 */
.car-single__thumb{
  margin: 0 0 14px;
}
.car-single__thumb img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--car-radius);
  background: #f3f4f6;
  box-shadow: var(--car-shadow);
}

/* =========================================================
  Card sections
========================================================= */
.car-box{
  background: var(--car-white);
  border: 1px solid var(--car-line);
  border-radius: var(--car-radius);
  padding: 14px;
  margin: 0 0 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.car-box__title{
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 見出しの左に小さなアクセント */
.car-box__title::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 auto;
}

/* =========================================================
  A) Price
========================================================= */
.car-price{
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-color: #e2e8f0;
}

.car-price__total{
  text-align: center;
  padding: 12px;
  border-radius: var(--car-radius-sm);
  border: 1px solid var(--car-line);
  background: #ffffff;
  margin: 0 0 12px;
}

.car-price__total-label{
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--car-muted);
  margin-bottom: 6px;
}

.car-price__total-value{
  display: block;
  font-size: 30px;      /* mobile */
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.08;
  color: var(--car-red);
}

/* dl rows */
.car-dl{
  margin: 0;
  display: grid;
  gap: 8px;
}

.car-dl__row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #dbe3ee;
}
.car-dl__row:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.car-dl__dt{
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--car-muted);
}

.car-dl__dd{
  margin: 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--car-text);
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
  B) Specs (2 tables layout)
  - Mobile: stacked
========================================================= */
.car-spec-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* table */
.car-spec-table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border: 1px solid #e6e6e6;
  border-radius: var(--car-radius-sm);
  overflow: hidden;
  background: #fff;
}

.car-spec-table th,
.car-spec-table td{
  border-bottom: 1px solid #e6e6e6;
  border-right: 1px solid #e6e6e6;
  padding: 12px 12px;
  font-size: 13px;
  line-height: 1.45;
  vertical-align: middle;
}

.car-spec-table tr:last-child th,
.car-spec-table tr:last-child td{
  border-bottom: none;
}

.car-spec-table th:last-child,
.car-spec-table td:last-child{
  border-right: none;
}

.car-spec-table th{
  width: 36%;
  text-align: left;
  font-weight: 900;
  color: #475569;
  background: #f8fafc;
  white-space: nowrap;
}

.car-spec-table td{
  width: 64%;
  font-weight: 700;
  color: #111827;
  word-break: break-word;
}

/* =========================================================
  D) Loan
========================================================= */
.car-loan{
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-color: #dbeafe;
}

.car-loan__monthly{
  text-align: center;
  padding: 12px;
  border-radius: var(--car-radius-sm);
  border: 1px solid #dbeafe;
  background: #ffffff;
  margin: 0 0 12px;
}

.car-loan__monthly-label{
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--car-muted);
  margin-bottom: 6px;
}

.car-loan__monthly-value{
  display: block;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
  color: var(--car-blue);
  letter-spacing: .01em;
}

.car-loan__grid{
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 8px;
}

.car-loan__row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #dbeafe;
}
.car-loan__row:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.car-loan__label{
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
}

.car-loan__value{
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
  Content (optional)
========================================================= */
.car-single__content{
  margin-top: 14px;
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
}
.car-single__content p{ margin: 0 0 12px; }

/* =========================================================
  Tablet / PC
========================================================= */
@media (min-width: 768px){
  .car-single{
    max-width: 980px;      /* PCは広げる */
    padding: 24px 16px 34px;
  }

  .car-single__title{
    font-size: 30px;
    margin-bottom: 14px;
  }

  .car-box{
    padding: 18px;
    margin-bottom: 18px;
  }

  .car-box__title{
    font-size: 18px;
    margin-bottom: 12px;
  }

  .car-price__total-value{ font-size: 40px; }
  .car-loan__monthly-value{ font-size: 36px; }

  /* Specs: 2 columns on wider screens */
  .car-spec-layout{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  /* Loan: 2 columns */
  .car-loan__grid{
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
  }

  .car-spec-table th,
  .car-spec-table td{
    padding: 14px 16px;
    font-size: 14px;
  }

  .car-spec-table th{ width: 30%; }
  .car-spec-table td{ width: 70%; }
}

/* さらに大きいPC */
@media (min-width: 1024px){
  .car-single{ max-width: 1100px; }
}
