:root {
  --bmw-blue: #1c69d4;
  --bmw-deep-blue: #0051a8;
  --bmw-navy: #07111f;
  --bmw-light-blue: #edf5ff;
  --text-main: #111;
  --text-sub: #555;
  --bg-light: #f5f5f5;
  --border-light: #e5e5e5;
  --gold: #b89555;
  --sale-red: #ff0000;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-main);
}

.kv-card {
  position: relative;
  overflow: hidden;
}

.kv-visual {
  position: relative;
  width: 100%;
  line-height: 0;
}

.kv-brand-overlay {
  position: absolute;
  inset: 0;
  padding: 0;
  pointer-events: none;
  z-index: 4;
}

.bmw-ci-lockup {
  --bmw-logo-size: clamp(60px, 6vw, 90px);
  --bmw-claim-gap: calc(var(--bmw-logo-size) / 6);

  position: absolute;
  right: clamp(24px, 4vw, 64px);
  bottom: clamp(24px, 4vw, 64px);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 48px);
  z-index: 5;
}

.bmw-ci-logo {
  display: block;
  width: var(--bmw-logo-size);
  height: auto;
  margin: 0 auto;
}

.bmw-ci-claim {
  align-self: center;
  margin: var(--bmw-claim-gap) 0 0;
  width: max-content;
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  white-space: nowrap;
}

.logo_wrap,
.logo2 {
  display: none !important;
}

.lead-copy {
  line-height: 2;
}

.section-title-en {
  color: var(--bmw-blue);
  letter-spacing: .08em;
}

.fair-section {
  padding: 3.5rem 0;
}

#bigSalePriceList,
#seriesDiesel,
#suvSelection,
#scForm {
  scroll-margin-top: 24px;
}

.fair-section.bg-light-gray {
  background: var(--bg-light);
}

.fair-section.bg-dark-blue {
  background: linear-gradient(135deg, #050b14 0%, #07111f 52%, #10284f 100%);
  color: #fff;
}

.kv-img {
  width: 100%;
  object-fit: cover;
}

.kv-copy-panel {
  position: absolute;
  left: 6%;
  bottom: 4%;
  width: min(760px, 78%);
  padding: 30px 34px;
  text-align: left;
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .34));
  border-left: 4px solid var(--bmw-blue);
  z-index: 3;
}

.kv-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: var(--bmw-blue);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.kv-title {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
}

.kv-sub {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.7;
}

.kv-cta-wrap {
  margin-top: 22px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 300px;
  padding: 16px 30px;
  background: var(--bmw-blue);
  color: #fff !important;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity .2s ease-in-out, transform .2s ease-in-out;
}

.cta-btn::after {
  content: "→";
  margin-left: .7em;
}

.cta-btn:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.limited-bar {
  background: var(--bmw-navy);
  color: #fff;
}

.limited-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .16);
}

.limited-item {
  padding: 24px 18px;
  background: var(--bmw-navy);
  text-align: center;
}

.limited-item span {
  display: block;
  margin-bottom: 8px;
  color: #9fc3ff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.limited-item strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.5;
}

.campaign-highlight-box {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  background: #fff;
  height: 100%;
}

.campaign-highlight-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--bmw-blue);
  color: #fff;
  font-weight: 700;
}

.campaign-highlight-title {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.5;
}

.campaign-highlight-copy {
  color: var(--text-sub);
  line-height: 1.8;
}

.highlight-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 18px;
  color: #fff !important;
  background: var(--text-main);
  border: 1px solid var(--text-main);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: opacity .2s ease-in-out, transform .2s ease-in-out, background .2s ease-in-out;
}

.highlight-link-btn::after {
  content: "↓";
  margin-left: .6em;
}

.highlight-link-btn:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.fair-card {
  position: relative;
  height: 100%;
  border: 1px solid var(--border-light);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .04);
}

.fair-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fair-card-body {
  padding: 1.25rem;
}

.fair-label {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .35rem .65rem;
  background: var(--text-main);
  color: #fff;
  font-size: .75rem;
  letter-spacing: .08em;
}

.model-card h3 {
  line-height: 1.45;
}

.gift-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

.gift-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==============================
   BIG SALE PRICE TABLE
============================== */

.special-price-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border-light);
}

.special-price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.special-price-table th,
.special-price-table td {
  padding: 16px 14px;
  border: 1px solid var(--border-light);
  line-height: 1.6;
  vertical-align: middle;
}

.special-price-table th {
  background: var(--bmw-navy) !important;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.special-price-table th:nth-child(1),
.special-price-table td:nth-child(1) {
  width: 110px;
  text-align: center;
}

.special-price-table td:nth-child(1) {
  background: #fff;
}

.special-price-table th:nth-child(2),
.special-price-table td:nth-child(2) {
  width: 30%;
  min-width: 260px;
  font-weight: 700;
  text-align: left;
}

.special-price-table td:nth-child(2) {
  color: var(--text-main);
}

.special-price-table th:nth-child(3),
.special-price-table td:nth-child(3) {
  width: 27%;
  min-width: 220px;
  font-weight: 700;
  text-align: left;
}

.special-price-table td:nth-child(3) {
  color: var(--text-main);
}

.special-price-table th:nth-child(4),
.special-price-table td:nth-child(4) {
  width: 15%;
  min-width: 140px;
  white-space: nowrap;
}

.special-price-table th:nth-child(4) {
  text-align: center;
}

.special-price-table td:nth-child(4) {
  color: var(--text-main);
  font-weight: 500;
  text-align: right;
}

.special-price-table th:nth-child(5),
.special-price-table td:nth-child(5) {
  width: 28%;
  min-width: 240px;
  text-align: center;
}

.special-price-table th:nth-child(5) {
  color: var(--sale-red) !important;
}

.special-price-car-img {
  display: block;
  width: 90px;
  height: 64px;
  margin: 0 auto;
  object-fit: contain;
  background: transparent !important;
}

.inquiry-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.inquiry-code {
  display: inline-block;
  color: var(--text-main);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
}

.stock-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  max-width: 100%;
  padding: 8px 12px;
  color: var(--sale-red) !important;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
  transition: opacity .2s ease-in-out;
}

.stock-link-btn:hover {
  opacity: .75;
}

/* ==============================
   OTHER SECTIONS
============================== */

.support-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.support-flow-item {
  padding: 24px 20px;
  background: #fff;
  color: var(--text-main);
}

.support-flow-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--bmw-blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.event-info-box {
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}

.event-info-box dt {
  font-weight: 700;
}

.event-info-box dd {
  margin-bottom: 0;
}

.note-list {
  color: #666;
  font-size: .875rem;
  line-height: 1.8;
}

.form-lead-box {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.formrun-embed {
  width: 100%;
  min-height: 900px;
}

.red-text {
  color: var(--sale-red);
}

.date-note {
  display: inline-block;
  margin-left: .5em;
  color: #666;
  font-size: .78em;
  font-weight: 400;
  line-height: 1.5;
  vertical-align: baseline;
}

@media (max-width: 991px) {
  .limited-bar-inner,
  .support-flow {
    grid-template-columns: 1fr;
  }

  .kv-copy-panel {
    left: 5%;
    bottom: 7%;
    padding: 24px;
  }

  .special-price-table {
    min-width: 980px;
  }
}

@media (max-width: 767px) {
  .bmw-ci-lockup {
    --bmw-logo-size: clamp(40px, 14vw, 56px);
    right: 18px;
    bottom: 18px;
  }

  .bmw-ci-claim {
    font-size: 11px;
    font-weight: 400;
    text-shadow: 0 2px 7px rgba(0, 0, 0, .55);
  }

  .fair-section {
    padding: 2.5rem 0;
  }

  .lead-copy {
    line-height: 1.8;
  }

  .kv-copy-panel {
    position: static;
    width: 100%;
    padding: 24px 20px;
    background: var(--bmw-navy);
    border-left: 0;
    border-top: 4px solid var(--bmw-blue);
  }

  .kv-title {
    font-size: 2rem;
  }

  .cta-btn {
    width: 100%;
    min-width: auto;
  }

  .campaign-highlight-box,
  .fair-card-body,
  .support-flow-item {
    padding: 1.25rem;
  }

  .highlight-link-btn {
    width: 100%;
  }

  .special-price-table {
    min-width: 0;
    table-layout: auto;
  }

  .special-price-table,
  .special-price-table thead,
  .special-price-table tbody,
  .special-price-table tr,
  .special-price-table th,
  .special-price-table td {
    display: block;
    width: 100%;
  }

  .special-price-table thead {
    display: none;
  }

  .special-price-table tr {
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
    background: #fff;
  }

  .special-price-table td {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px 12px;
    border: 0;
    border-bottom: 1px solid var(--border-light);
    text-align: left !important;
  }

  .special-price-table td:last-child {
    border-bottom: 0;
  }

  .special-price-table td::before {
    content: attr(data-label);
    color: #555;
    font-size: .82rem;
    font-weight: 700;
  }

  .special-price-table td:nth-child(1),
  .special-price-table td:nth-child(2),
  .special-price-table td:nth-child(3),
  .special-price-table td:nth-child(4),
  .special-price-table td:nth-child(5) {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .special-price-table td:nth-child(1) {
    background: transparent;
  }

  .special-price-car-img {
    width: min(220px, 100%);
    height: 140px;
    margin: 0 auto;
    background: transparent !important;
  }

  .inquiry-cell {
    align-items: flex-start;
    text-align: left;
  }

  .stock-link-btn {
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    padding: 0;
    text-align: left;
  }

  .date-note {
    display: block;
    margin-left: 0;
    margin-top: 4px;
    font-size: .78em;
  }

}