@charset "utf-8";
/* ============================================================
   vehicle-gallery.css
   /wp-content/themes/nik/css/vehicle-gallery.css
   ============================================================ */

/* --- 2列グリッド（既存の ul.vehicle-contents に対応） --- */
ul.vehicle-contents li {
  margin: 0;
  padding: 0;
}

/* ============================================================
   ギャラリーウィジェット本体 .vg-wrap
   ============================================================ */
.vg-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
}

/* --- メイン画像エリア --- */
.vg-main {
  position: relative;
  width: 100%;
  aspect-ratio: 600 / 350;
  overflow: hidden;
  background: #222;
}

.vg-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.vg-main img.vg-active {
  opacity: 1;
}

/* --- 枚数カウンター --- */
.vg-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 4px 9px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 2;
}

/* --- 前後ナビゲーションボタン --- */
.vg-prev,
.vg-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  font-size: 18px;
  transition: background 0.2s;
}

.vg-prev { left: 8px; }
.vg-next { right: 8px; }

.vg-prev:hover,
.vg-next:hover {
  background: rgba(0, 0, 0, 0.65);
}

.vg-prev svg,
.vg-next svg {
  width: 10px;
  height: 10px;
  fill: #fff;
  flex-shrink: 0;
}

.vg-prev.vg-hidden,
.vg-next.vg-hidden {
  display: none;
}

/* --- サムネイル行 --- */
.vg-thumbs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #f0f0f0;
  overflow-x: auto;
  scrollbar-width: none;
}

.vg-thumbs::-webkit-scrollbar {
  display: none;
}

.vg-thumbs.vg-single {
  display: none;
}

.vg-thumb {
  flex: 0 0 calc(25% - 3px);
  aspect-ratio: 600 / 350;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 2px;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}

.vg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.vg-thumb.vg-active {
  border-color: #c1862b;
  opacity: 1;
}

.vg-thumb:hover {
  opacity: 0.9;
}




table.vehicle_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 1.65em;
}

table.vehicle_table th,
table.vehicle_table td {
  border: 1px solid #ccc;
  padding: 5px 8px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

table.vehicle_table th {
  background: #eef0f3;
  width: 80px;
  font-weight: bold;
  white-space: nowrap;
}
