/* ============================================================
   プラスパー自販機 — v12 FINAL
   自販機ビジュアルのみ実物風に変更
   それ以外は元のシンプルな構成を維持
   2026-05-19
   ============================================================ */

:root {
  --navy:      #0D2143;
  --red:       #C62828;
  --sky:       #5B9BD5;
  --green:     #10B981;
  --white:     #FFFFFF;
  --bg:        #F1F5F9;
  --text:      #1B1F3A;
  --text-mid:  #4A5168;
  --text-l:    #8A92A8;
  --border:    #E8ECF3;
  --shadow:    0 8px 28px rgba(13,33,67,0.08);

  /* Vending machine */
  --vm-blue:   #1565C0;
  --vm-blue-d: #0D47A1;
  --vm-blue-l: #1E88E5;
  --vm-chrome: #90A4AE;
  --vm-chrome-d: #546E7A;
  --vm-chrome-l: #CFD8DC;
  --vm-shelf:  #ECEFF1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.vending-body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── PROGRESS BAR ─── */
.vd-progress {
  max-width: 920px; margin: 8px auto 0; padding: 0 16px;
}
.vd-progress-track {
  height: 6px; background: var(--border);
  border-radius: 999px; overflow: hidden; position: relative;
}
.vd-progress-fill {
  position: absolute; inset: 0;
  width: var(--vd-fill, 0%);
  background: linear-gradient(90deg, var(--sky) 0%, #FDE047 100%);
  border-radius: 999px;
}
.vd-progress-label {
  margin-top: 5px; display: flex; justify-content: space-between;
  font-size: 0.68rem; color: var(--text-l);
  font-family: 'Roboto', sans-serif; letter-spacing: 0.08em;
}
.vd-progress-label .step-num { color: var(--navy); font-weight: 700; }

/* ─── MOCK BANNER ─── */
.vd-mock-banner {
  background: #FFF3CD; color: #856404; border-radius: 8px;
  padding: 5px 10px; font-size: 0.66rem;
  margin: 6px auto 8px; max-width: 920px;
  text-align: center; border: 1px solid #FFE082;
}

/* ─── PAGE TITLE (看板風) ─── */
.vd-title-wrap {
  text-align: center; margin: 14px 0 6px;
}
.vd-title {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  font-weight: 900;
  color: #FDE047;
  background: #1565C0;
  padding: 10px 28px; margin: 0;
  letter-spacing: 0.12em;
  border-radius: 10px;
  border: 5px solid #FDE047;
  box-shadow:
    0 6px 18px rgba(21,101,192,0.4),
    0 0 0 2px rgba(255,255,255,0.7);
  text-shadow:
    2px 2px 0 #0D47A1, -1px -1px 0 #0D47A1,
    1px -1px 0 #0D47A1, -1px 1px 0 #0D47A1,
    0 0 18px rgba(251,191,36,0.8);
  white-space: nowrap;
}
.vd-tagline {
  text-align: center;
  font-size: clamp(1rem, 3.4vw, 1.3rem);
  font-weight: 900; color: #1565C0;
  margin: 12px 0 4px;
  line-height: 1.4; letter-spacing: 0.02em;
}
.vd-subcatch {
  text-align: center; display: block;
  font-size: clamp(0.92rem, 3vw, 1.15rem);
  font-weight: 800; color: var(--red);
  margin: 0 0 6px; line-height: 1.4;
}

/* ═══════════════════════════════════════
   PRICE TAG — 値札風ローン金利シール
   駄菓子屋・古い飲料自販機の価格表示風
   アニメなし・完全静的
═══════════════════════════════════════ */

/* 値札ラッパー：自販機下部に自然に溶け込む */
.vm-price-tag-wrap {
  display: flex;
  justify-content: center;
  padding: 0 16px 4px;
  margin-top: -2px;           /* ヒントテキストと近づける */
}

/* 値札本体 */
.vm-price-tag {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 22px 12px;
  min-width: 180px;
  max-width: 260px;

  /* くすんだ黄色の紙質 */
  background:
    /* 細かい紙目テクスチャ風 */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.018) 2px,
      rgba(0,0,0,0.018) 4px
    ),
    #F4E8A8;

  /* 太い茶色枠線 */
  border: 3.5px solid #5C3B1A;
  border-radius: 4px;

  /* わずかに傾ける（シール感） */
  transform: rotate(-1.8deg);

  /* 紙ラベルがちょっとめくれた感じ */
  box-shadow:
    3px 4px 0 #5C3B1A,
    4px 6px 12px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.55);
}

/* 穴（値札の吊り穴） */
.vm-price-tag-hole {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1a1a2e;           /* ページ背景と同色で「抜け」感 */
  border: 1.5px solid #5C3B1A;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}

/* ラベルテキスト */
.vm-price-tag-label {
  font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #3A2010;
  letter-spacing: 0.18em;
  margin-top: 10px;            /* 穴の下にスペース */
  text-align: center;
}

/* 区切り線（ミシン目風） */
.vm-price-tag-divider {
  width: 100%;
  height: 2px;
  margin: 6px 0 8px;
  background: repeating-linear-gradient(
    90deg,
    #5C3B1A 0px,
    #5C3B1A 5px,
    transparent 5px,
    transparent 9px
  );
  opacity: 0.7;
}

/* 金利数字エリア */
.vm-price-tag-rate {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
}

/* 「低金利」小文字 */
.vm-price-tag-small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  color: #C62828;
  letter-spacing: 0.04em;
  margin-right: 4px;
  align-self: flex-end;
  padding-bottom: 3px;
}

/* 大きい数字「1.9」 */
.vm-price-tag-num {
  font-family: 'Roboto', 'Courier New', monospace;
  font-size: clamp(2.8rem, 10vw, 3.8rem);
  font-weight: 900;
  color: #C62828;              /* 赤で強調（駄菓子屋シール） */
  letter-spacing: -0.04em;
  line-height: 1;
  /* わずかな立体感 */
  text-shadow:
    1px 1px 0 rgba(0,0,0,0.12),
    2px 2px 0 rgba(120,0,0,0.10);
}

/* 「%」 */
.vm-price-tag-pct {
  font-family: 'Roboto', monospace;
  font-size: 1.2rem;
  font-weight: 900;
  color: #C62828;
  align-self: flex-end;
  padding-bottom: 5px;
  letter-spacing: -0.02em;
}

/* 「最長 60回まで」 */
.vm-price-tag-term {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: 0.06em;
  margin-top: 6px;
  text-align: center;
  border-top: 1px solid rgba(92,59,26,0.35);
  padding-top: 6px;
  width: 100%;
}

/* 注記 */
.vm-price-tag-note {
  font-size: 0.48rem;
  color: #7A5A38;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 5px;
  text-align: center;
  line-height: 1.4;
}

/* スマホ: 傾きを少し緩める */
@media (max-width: 480px) {
  .vm-price-tag { transform: rotate(-1.2deg); }
}

/* ─── TRUST BADGES (3つ) ─── */
.vd-trust-bar {
  display: flex; justify-content: center; gap: 8px;
  max-width: 720px; margin: 10px auto 14px;
  padding: 0 12px; flex-wrap: wrap;
}
.vd-trust-item {
  flex: 1; min-width: 90px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px;
  background: #fff; border: 2px solid var(--navy);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(13,33,67,0.08);
}
.vd-trust-icon { font-size: clamp(1.2rem, 4vw, 1.6rem); line-height: 1; }
.vd-trust-label {
  font-size: clamp(0.68rem, 2.1vw, 0.85rem);
  font-weight: 800; color: var(--navy);
  text-align: center; line-height: 1.2; letter-spacing: 0.01em;
}
.vd-trust-label small {
  display: block; font-size: 0.62rem; font-weight: 600;
  color: var(--text-mid); margin-top: 2px; letter-spacing: 0;
}
@media (max-width: 540px) {
  .vd-trust-bar { gap: 4px; padding: 0 8px; }
  .vd-trust-item { padding: 6px 4px; }
}

/* ═══════════════════════════════════════════════════
   THE VENDING MACHINE — 実物飲料自販機風
   Pure CSS 3段構成（3-3-2台）+ 右縦サイン + 下部アナログパネル
═══════════════════════════════════════════════════ */

.vm-scene {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding: 0 12px;
}

/* ── 本体 ── */
.vm {
  width: 100%;
  max-width: 400px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(165deg,
    var(--vm-blue-l) 0%, var(--vm-blue) 18%,
    #1258B0 45%, var(--vm-blue-d) 70%,
    #0B3D91 88%, var(--vm-blue-d) 100%);
  border: 3px solid var(--vm-chrome);
  border-bottom: 5px solid var(--vm-chrome-d);
  border-top: 3px solid var(--vm-chrome-l);
  border-radius: 8px 8px 4px 4px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    0 16px 40px rgba(0,0,0,0.45),
    inset 5px 0 12px rgba(255,255,255,0.07),
    inset -5px 0 12px rgba(255,255,255,0.04),
    inset 0 3px 8px rgba(255,255,255,0.15);
}
/* 縦スジ */
.vm::before {
  content: ''; position: absolute;
  top: 12%; bottom: 12%; left: 12px; width: 2px;
  background: linear-gradient(180deg,
    transparent, rgba(255,255,255,0.15) 30%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.15) 70%, transparent);
  border-radius: 2px;
}
.vm::after {
  content: ''; position: absolute;
  top: 12%; bottom: 12%; right: 12px; width: 2px;
  background: linear-gradient(180deg,
    transparent, rgba(255,255,255,0.15) 30%,
    rgba(255,255,255,0.22) 50%,
    rgba(255,255,255,0.15) 70%, transparent);
  border-radius: 2px;
}

/* ── 上部看板 ── */
.vm-top-brand {
  padding: 16px 18px 14px;
  text-align: center; position: relative;
  border-bottom: 3px solid var(--vm-chrome-d);
  background: linear-gradient(180deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.04) 60%,
    rgba(0,0,0,0.08) 100%);
}
.vm-top-brand::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,0.6) 20%,
    rgba(255,255,255,0.9) 50%,
    rgba(255,255,255,0.6) 80%, transparent 100%);
}
.vm-brand { position: relative; z-index: 1; }
.vm-brand-company {
  font-size: 0.5rem; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: rgba(255,255,255,0.65); display: block; margin-bottom: 4px;
}
.vm-brand-main {
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  font-size: clamp(1.5rem, 6.5vw, 2.5rem);
  font-weight: 900; letter-spacing: 0.08em;
  line-height: 0.95; color: #fff; display: block;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.35),
    0 0 20px rgba(255,255,255,0.3),
    0 0 40px rgba(147,197,253,0.25);
}
.vm-brand-sub {
  font-family: 'Bebas Neue', 'Roboto', sans-serif;
  font-size: clamp(0.75rem, 2.8vw, 1.1rem);
  font-weight: 900; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.75); display: block; margin-top: 2px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.vm-brand-live {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 7px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 3px 10px;
  font-size: 0.5rem; color: rgba(255,255,255,0.75);
  font-weight: 700; letter-spacing: 0.08em;
}
.vm-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4CAF50;
  animation: vm-blink 1.7s ease-in-out infinite;
}
@keyframes vm-blink {
  0%,100% { opacity:1; box-shadow: 0 0 4px rgba(76,175,80,.9); }
  50%      { opacity:.35; box-shadow: 0 0 2px rgba(76,175,80,.3); }
}

/* ── ガラスディスプレイ ── */
.vm-display {
  margin: 0 10px; position: relative;
  background: linear-gradient(140deg,
    rgba(200,230,255,0.06) 0%,
    rgba(180,210,255,0.02) 100%),
    rgba(8,16,32,0.82);
  border: 3px solid var(--vm-chrome-d);
  border-top: 2px solid var(--vm-chrome);
  border-bottom: 2px solid var(--vm-chrome);
  overflow: hidden;
}
/* ガラス上部反射 */
.vm-display::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.015) 65%, transparent 100%);
  pointer-events: none; z-index: 20;
}
/* 右端縦ハイライト */
.vm-display::after {
  content: ''; position: absolute;
  top: 5%; right: 8%; width: 8px; height: 88%;
  background: linear-gradient(180deg,
    transparent 0%, rgba(255,255,255,0.055) 35%,
    rgba(255,255,255,0.025) 70%, transparent 100%);
  transform: skewX(-12deg); pointer-events: none; z-index: 20;
}

/* ── 棚仕切り ── */
.vm-shelf-divider {
  width: 100%; height: 10px;
  background: linear-gradient(180deg,
    #D0D8E0 0%, var(--vm-shelf) 30%,
    #FAFAFA 60%, #D8DDE4 100%);
  border-top: 1px solid #B0BEC5;
  border-bottom: 2px solid var(--vm-chrome);
  position: relative; z-index: 10; flex-shrink: 0;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.8),
    inset 0 -1px 2px rgba(0,0,0,0.15);
}
.vm-shelf-divider::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 100%; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, transparent 100%);
}

/* ── 各段（商品ゾーン） ── */
.vm-row {
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg,
      rgba(200,225,255,0.05) 0%,
      rgba(180,210,255,0.02) 100%),
    rgba(8,18,40,0.78);
}
.vm-row-grid {
  display: flex; gap: 0; padding: 7px 5px 0; flex: 1;
}
.vm-row-bottom { height: 5px; background: rgba(0,0,0,0.18); }

/* ── 各商品セル ── */
.vm-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  position: relative; padding: 0 3px;
  transition: transform 0.18s ease;
}
.vm-item:hover { transform: scale(1.03); z-index: 5; }
.vm-item:active { transform: scale(0.97); }

/* 車両写真 */
.vm-item-photo {
  width: 100%; aspect-ratio: 3/2; overflow: hidden;
  position: relative; background: #0a1428;
  border-radius: 3px 3px 0 0;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.4);
}
.vm-item-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.88) saturate(1.05);
  transition: transform 0.4s ease, filter 0.3s ease;
}
.vm-item:hover .vm-item-photo img {
  transform: scale(1.08); filter: brightness(1.0) saturate(1.1);
}
/* 写真→情報グラデ */
.vm-item-photo::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(transparent, rgba(0,10,30,0.88));
  pointer-events: none;
}
/* ガラス反射 */
.vm-item::before {
  content: ''; position: absolute;
  top: 0; left: 3px; right: 3px; height: 30%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.065) 0%,
    rgba(255,255,255,0.015) 70%, transparent 100%);
  pointer-events: none; z-index: 8;
  border-radius: 3px 3px 0 0;
}

/* 在庫シール */
.vm-item-sticker {
  position: absolute; top: 3px; right: 3px;
  font-size: 0.44rem; font-weight: 800;
  background: #4CAF50; color: #fff;
  padding: 1px 4px; border-radius: 2px; letter-spacing: 0.04em;
  z-index: 9; line-height: 1.3;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* 車名 */
.vm-item-name {
  position: absolute; bottom: 3px; left: 0; right: 0;
  text-align: center;
  font-size: clamp(0.42rem, 1.4vw, 0.56rem);
  font-weight: 800; color: rgba(255,255,255,0.9);
  line-height: 1.15; padding: 0 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  z-index: 3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 価格プレート（白いプラスチックタグ） */
.vm-price-plate {
  width: 100%; padding: 3px 2px 4px; text-align: center;
  background: linear-gradient(180deg, #fff 0%, #F5F5F5 60%, #ECEFF1 100%);
  border: 1px solid #B0BEC5; border-top: 2px solid var(--vm-chrome);
  border-radius: 0 0 3px 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 4px rgba(0,0,0,0.22);
}
.vm-price-val {
  font-family: 'Bebas Neue', 'Roboto', monospace;
  font-size: clamp(0.9rem, 3.2vw, 1.3rem);
  font-weight: 900; color: var(--red);
  letter-spacing: 0.01em; line-height: 1; display: block;
}
.vm-price-val small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.48em; font-weight: 700;
  color: #546E7A; margin-left: 1px;
}

/* 購入ボタン（緑） */
.vm-item-buy {
  display: block; width: 100%; margin-top: 4px; padding: 6px 4px 5px;
  text-align: center;
  font-size: clamp(0.5rem, 1.7vw, 0.65rem);
  font-weight: 900; letter-spacing: 0.04em;
  color: #fff; cursor: pointer; border: none;
  font-family: inherit; -webkit-tap-highlight-color: transparent;
  border-radius: 3px;
  transition: transform 0.1s ease, filter 0.12s ease;
  line-height: 1.1; text-decoration: none;
  background: linear-gradient(180deg, #43A047 0%, #2E7D32 55%, #1B5E20 100%);
  box-shadow: 0 3px 0 #1A4A1C, inset 0 1px 0 rgba(255,255,255,0.25),
    0 0 8px rgba(67,160,71,0.35);
}
.vm-item-buy:hover { filter: brightness(1.12); }
.vm-item-buy:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #1A4A1C, inset 0 2px 4px rgba(0,0,0,0.3);
}

/* ════════════════════════════
   下部操作パネル（アナログ物理質感）
════════════════════════════ */
.vm-panel {
  margin: 0 10px 0;
  background: linear-gradient(180deg,
    #D8DADB 0%, #C8CACC 8%, #E8EAEB 18%, #DCDFE0 100%);
  border: 3px solid #8A9098;
  border-top: 2px solid #AAB0B8;
  position: relative;
}
.vm-panel::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(180deg,
    #BFC3C8 0%, #A8ADB4 40%, #8A9098 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.vm-panel::after {
  content: ''; position: absolute;
  left: 8px; right: 8px; top: 5px; height: 1px;
  background: linear-gradient(90deg, transparent 0%, #fff 15%, #fff 85%, transparent 100%);
  opacity: 0.4;
}
/* リベット */
.vm-rivet {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    #D0D4D8 0%, #9AA0A8 45%, #707880 100%);
  border: 1px solid #606870;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.4);
  top: 9px; z-index: 3;
}
.vm-rivet-l { left: 10px; }
.vm-rivet-r { right: 10px; }
.vm-rivet::before, .vm-rivet::after {
  content: ''; position: absolute; background: rgba(0,0,0,0.25);
  border-radius: 1px; top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.vm-rivet::before { width: 3px; height: 1px; }
.vm-rivet::after  { width: 1px; height: 3px; }

.vm-panel-inner { padding: 10px 10px 0; display: flex; flex-direction: column; gap: 0; }

/* 投入口エリア */
.vm-insert-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding-bottom: 8px; border-bottom: 1px solid #B0B4B8; position: relative;
}
.vm-insert-row::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0; height: 1px;
  background: rgba(255,255,255,0.6);
}
.vm-bill-slot, .vm-coin-slot {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.vm-bill-hole {
  width: 100%; height: 9px;
  background: linear-gradient(180deg, #505860 0%, #1a1e22 30%, #0c0e10 60%, #1a1e22 100%);
  border: 2px solid #606870; border-radius: 2px;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.95), 0 1px 0 rgba(255,255,255,0.35);
  position: relative;
}
.vm-bill-hole::after {
  content: '→'; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 0.36rem; font-weight: 900;
  color: rgba(255,220,0,0.7); line-height: 1; font-family: monospace;
}
.vm-coin-hole {
  width: 60%; height: 9px;
  background: linear-gradient(180deg, #484E56 0%, #18191c 25%, #000 55%, #18191c 100%);
  border: 2px solid #5A6070; border-radius: 999px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,1), 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
}
.vm-coin-hole::before {
  content: ''; position: absolute; top: 2px; left: 25%; right: 25%;
  height: 2px; background: #000; border-radius: 999px;
}
.vm-bill-label, .vm-coin-label {
  font-size: 0.42rem; font-weight: 800; color: #505860;
  letter-spacing: 0.08em; text-align: center; line-height: 1.2;
}

/* 金額表示 + ONランプ + 現金シール */
.vm-display-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid #B0B4B8; position: relative;
}
.vm-display-row::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,0.55);
}
.vm-on-lamp {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #88FF88 0%, #22CC44 40%, #0A8A20 100%);
  border: 1px solid #076018;
  box-shadow: 0 0 4px rgba(34,204,68,0.7), inset 0 1px 1px rgba(255,255,255,0.4);
  flex-shrink: 0; animation: vm-lamp 2.4s ease-in-out infinite;
}
@keyframes vm-lamp {
  0%,100% { box-shadow: 0 0 4px rgba(34,204,68,0.7), inset 0 1px 1px rgba(255,255,255,0.4); }
  50%      { box-shadow: 0 0 8px rgba(34,204,68,0.9), 0 0 16px rgba(34,204,68,0.3), inset 0 1px 1px rgba(255,255,255,0.4); }
}
.vm-amount-window {
  flex: 1;
  background: linear-gradient(180deg, #0E120E 0%, #080D08 60%, #0E120E 100%);
  border: 2px solid #3A4240; border-radius: 2px; padding: 4px 8px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.9), 0 1px 0 rgba(255,255,255,0.2);
}
.vm-amount-label {
  font-size: 0.38rem; font-weight: 700; color: rgba(120,200,100,0.5);
  letter-spacing: 0.12em; font-family: 'Roboto Mono', monospace;
  display: block; margin-bottom: 1px; text-transform: uppercase;
}
.vm-amount-value {
  font-family: 'Roboto Mono', monospace;
  font-size: clamp(0.7rem, 2.5vw, 0.95rem); font-weight: 700;
  color: #FFAA44; letter-spacing: 0.08em; line-height: 1; display: block;
  text-shadow: 0 0 6px rgba(255,160,40,0.65), 0 0 14px rgba(255,120,0,0.2);
  animation: vm-seg 4s ease-in-out infinite;
}
@keyframes vm-seg {
  0%,88%,100% { opacity:1; }
  91%,95% { opacity:0.55; }
}
.vm-cash-sticker {
  flex-shrink: 0; width: 34px; padding: 4px 3px;
  background: #F5E642; border: 1.5px solid #C8B800;
  text-align: center; font-size: 0.38rem; font-weight: 900;
  color: #333300; letter-spacing: 0.04em; line-height: 1.4;
  border-radius: 2px; transform: rotate(-1.5deg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(0,0,0,0.2);
}

/* メーカープレート */
.vm-maker-row {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 4px; gap: 6px;
}
.vm-maker-plate {
  background: linear-gradient(135deg,
    #C8CACC 0%, #B0B4B8 30%, #D8DADC 60%, #B8BCC0 100%);
  border: 1px solid #90969E; border-radius: 2px; padding: 4px 10px;
  font-size: 0.4rem; font-weight: 700; color: #404850;
  letter-spacing: 0.10em; text-align: center; line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(0,0,0,0.3);
  text-transform: uppercase;
}
.vm-maker-plate-serial {
  font-size: 0.36rem; color: #606870; letter-spacing: 0.06em;
  display: block; font-family: 'Roboto Mono', monospace;
}

/* 取出口 */
.vm-outlet { margin: 6px 10px 0; position: relative; }
.vm-outlet-frame {
  height: 14px;
  background: linear-gradient(180deg,
    #B8BEC6 0%, #8E969E 30%, #767E88 60%, #8E969E 100%);
  border: 2px solid #5A6268; border-bottom: none;
  border-radius: 4px 4px 0 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.35), inset 0 -1px 2px rgba(0,0,0,0.3);
}
.vm-outlet-label {
  font-size: 0.42rem; font-weight: 800; color: rgba(255,255,255,0.75);
  letter-spacing: 0.10em; text-shadow: 0 1px 0 rgba(0,0,0,0.5); text-transform: uppercase;
}
.vm-outlet-door {
  height: 30px;
  background: linear-gradient(180deg,
    #3C4450 0%, #252D38 35%, #1A2028 55%, #252D38 80%, #3C4450 100%);
  border: 2px solid #4A5260; border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.85), inset 0 -2px 4px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
.vm-outlet-door::before {
  content: ''; position: absolute; top: 50%; left: 5%; width: 90%; height: 1px;
  background: rgba(255,255,255,0.05);
}
.vm-outlet-door::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 4px;
  background: linear-gradient(180deg, #6A7280 0%, #4A5260 50%, #3A4250 100%);
  border-radius: 999px; border: 1px solid #3A4250;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 2px rgba(0,0,0,0.6);
}

/* 小銭返却口 */
.vm-change-tray {
  margin: 5px 14px 0; height: 20px; position: relative;
  background: linear-gradient(180deg,
    #7A8088 0%, #5A6068 20%, #3A4048 60%, #2A3038 100%);
  border: 2px solid #4A5060; border-radius: 999px;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.8), 0 2px 0 rgba(255,255,255,0.2);
  overflow: hidden;
}
.vm-change-tray::after {
  content: 'お釣り口'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 0.36rem; font-weight: 700; color: rgba(255,255,255,0.22);
  letter-spacing: 0.08em; white-space: nowrap;
  font-family: 'Noto Sans JP', sans-serif;
}

/* 底面 */
.vm-bottom-frame {
  margin: 4px 6px 0; height: 14px;
  background: linear-gradient(180deg, #1056A8 0%, #0D47A1 40%, #093A8A 100%);
  border: 2px solid #5A6878; border-radius: 0 0 5px 5px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.55);
}

/* ── 右縦サインボード ── */
.vm-sign {
  width: 44px; flex-shrink: 0; align-self: stretch; margin-left: 5px;
  position: relative;
  background: linear-gradient(180deg,
    var(--vm-blue-l) 0%, var(--vm-blue) 30%,
    var(--vm-blue-d) 70%, #0B3D91 100%);
  border: 2px solid var(--vm-chrome); border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 3px 0 6px rgba(255,255,255,0.05);
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; padding: 10px 3px; overflow: hidden;
}
.vm-sign::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--vm-chrome-l), transparent);
}
.vm-sign-title {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.65rem; font-weight: 900; color: #fff;
  letter-spacing: 0.12em; line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.vm-sign-checks { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.vm-sign-check { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vm-sign-check-mark {
  width: 16px; height: 16px;
  background: rgba(76,175,80,0.22); border: 1.5px solid rgba(76,175,80,0.55);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.vm-sign-check-mark svg {
  width: 9px; height: 9px; stroke: #69F0AE; fill: none;
  stroke-width: 2.5; stroke-linecap: round;
}
.vm-sign-check-txt {
  writing-mode: vertical-rl; font-size: 0.42rem; font-weight: 700;
  color: rgba(255,255,255,0.65); letter-spacing: 0.08em;
}
.vm-sign-tel {
  writing-mode: vertical-rl; font-family: 'Roboto Mono', monospace;
  font-size: 0.44rem; font-weight: 700; color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
}

/* ── ヒント ── */
.vm-hint {
  max-width: 420px; margin: 12px auto 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 0.7rem; color: var(--text-mid); font-weight: 600;
  letter-spacing: 0.03em; padding: 0 16px; text-align: center;
}
.vm-hint-icon {
  font-size: 1rem; animation: vd-bob 1.9s ease-in-out infinite; display: inline-block;
}
@keyframes vd-bob { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-4px); } }

/* ═══════════════════
   車両カードリスト
═══════════════════ */
.vd-section { max-width: 920px; margin: 0 auto; padding: 0 12px 60px; }

.vd-cars-title {
  text-align: center; margin: 28px 0 14px;
  font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  font-weight: 900; color: var(--navy); letter-spacing: -0.01em;
}
.vd-cars-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 540px) { .vd-cars-grid { grid-template-columns: 1fr; } }

.vd-car-card {
  background: #fff; border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.vd-car-photo {
  aspect-ratio: 16/9; overflow: hidden;
  background: #1a2a42; position: relative;
}
.vd-car-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.vd-car-card:hover .vd-car-photo img { transform: scale(1.04); }
.vd-car-badges {
  display: flex; gap: 5px; padding: 8px 12px 0; flex-wrap: wrap;
}
.vd-car-badge {
  font-size: 0.58rem; font-weight: 800; padding: 2px 6px; border-radius: 3px;
}
.vd-badge-stock { background: rgba(16,185,129,0.12); color: #0A7A50; border: 1px solid rgba(16,185,129,0.3); }
.vd-badge-day   { background: rgba(13,33,67,0.08); color: var(--navy); border: 1px solid rgba(13,33,67,0.2); }
/* シンプルカード: 車名 */
.vd-car-name {
  font-size: 1.0rem; font-weight: 900; color: var(--navy);
  padding: 12px 14px 0; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* シンプルカード: フッター */
.vd-car-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 14px; margin-top: auto;
  border-top: 1px solid var(--border);
}
.vd-car-price {
  font-family: 'Bebas Neue', 'Roboto', monospace;
  font-size: 1.5rem; font-weight: 900; color: var(--red); line-height: 1;
}
.vd-car-price small {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.52em; font-weight: 700; color: var(--text-l); margin-left: 2px;
}
/* 購入ボタン：大きく・緑・目立つ */
.vd-car-buy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 5px; padding: 9px 16px;
  background: #2E7D32; color: #fff;
  font-size: 0.78rem; font-weight: 900; letter-spacing: 0.04em;
  border-radius: 6px; border: none; cursor: pointer;
  font-family: inherit; text-decoration: none;
  box-shadow: 0 3px 0 #1B5E20, 0 0 8px rgba(46,125,50,0.35);
  transition: filter 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.vd-car-buy-btn:hover { filter: brightness(1.1); }
.vd-car-buy-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #1B5E20; }

/* ═══════════════════
   ルール・制約セクション
═══════════════════ */
.vd-rules {
  max-width: 820px; margin: 0 auto 32px;
  padding: 20px 16px; background: #fff;
  border-radius: 14px; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.vd-rules-title {
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  font-weight: 900; color: var(--red); margin: 0 0 6px; text-align: center;
}
.vd-rules-lead {
  text-align: center; font-size: 0.85rem;
  color: var(--text-mid); margin: 0 0 18px;
}
.vd-rules-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.vd-rules-card {
  background: #FAFBFD; border-left: 4px solid var(--red);
  border-radius: 8px; padding: 12px 14px;
}
.vd-rules-card-label {
  font-size: 0.92rem; font-weight: 800; color: var(--navy); margin: 0 0 6px;
}
.vd-rules-card ul { margin: 0; padding-left: 1.1em; }
.vd-rules-card li {
  list-style: disc; font-size: 0.8rem; color: var(--text-mid);
  line-height: 1.7; margin-bottom: 2px;
}
.vd-rules-card li strong { color: var(--red); }
.vd-rules-note {
  text-align: center; font-size: 0.82rem; color: var(--text-mid);
  margin: 18px 0 0; padding: 10px;
  background: #FEF3C7; border-radius: 6px;
}
@media (max-width: 540px) { .vd-rules-grid { grid-template-columns: 1fr; } }

/* ═══════════════════
   固定下部CTA
═══════════════════ */
.vd-fixed-cta {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 40;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 999px; padding: 8px 8px 8px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 12px 30px rgba(13,33,67,0.15);
  border: 1px solid var(--border);
}
.vd-fixed-cta-text { font-size: 0.78rem; color: var(--text-mid); font-weight: 600; }
.vd-fixed-cta a {
  display: inline-flex; align-items: center; gap: 4px;
  background: #06C755; color: #fff;
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; transition: opacity 0.2s ease;
}
.vd-fixed-cta a:hover { opacity: 0.88; }

/* 空きスロット */
.vm-item-empty { pointer-events: none; opacity: 0.35; }
.vm-item-photo-empty {
  background: repeating-linear-gradient(
    45deg, #0a1428, #0a1428 4px, #0d1830 4px, #0d1830 8px);
  display: flex; align-items: center; justify-content: center;
}
.vm-item-empty-label {
  font-size: 0.5rem; font-weight: 800;
  color: rgba(255,255,255,0.3); text-align: center;
  letter-spacing: 0.08em; line-height: 1.4;
}

/* fade-up */
.vd-fade-up { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2,.8,.2,1); }
.vd-fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════
   VFD金額反映 インタラクション追加
═══════════════════════════════════ */

/* セル選択ハイライト */
.vm-item.vm-selected {
  border-color: rgba(255,220,50,0.85) !important;
  box-shadow:
    inset 0 4px 16px rgba(0,0,0,0.35),
    0 0 18px rgba(255,220,50,0.45),
    0 0 40px rgba(255,220,50,0.15) !important;
  z-index: 6;
}
.vm-item.vm-selected .vm-item-photo img {
  filter: brightness(1.05) saturate(1.15);
}

/* ONランプ強化点滅（タップ時） */
.vm-on-lamp.vm-lamp-flash {
  background:
    radial-gradient(circle at 35% 30%,
      #ffffff 0%,
      #BBFF88 20%,
      #44EE44 50%,
      #0A8A20 100%) !important;
  box-shadow:
    0 0 14px rgba(100,255,100,1),
    0 0 30px rgba(50,220,50,0.8),
    0 0 60px rgba(30,180,30,0.4),
    inset 0 1px 1px rgba(255,255,255,0.6) !important;
  animation: none !important;
}

/* VFD値テキスト切り替わり時のグロー強化 */
#vmAmountValue {
  transition: text-shadow 0.15s ease;
}
.vm-amount-window.vm-vfd-active #vmAmountValue {
  text-shadow:
    0 0 10px rgba(255,170,50,0.9),
    0 0 22px rgba(255,120,0,0.5),
    0 0 40px rgba(255,80,0,0.2);
  color: #FFD070;
}

/* VFDラベル（スロット番号・車名） */
#vmSlotLabel {
  font-size: 0.42rem;
  font-weight: 700;
  color: rgba(120,220,100,0.6);
  letter-spacing: 0.10em;
  font-family: 'Roboto Mono', monospace;
  display: block;
  margin-bottom: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.vm-amount-window.vm-vfd-active #vmSlotLabel {
  color: rgba(150,255,120,0.85);
}

/* ═══════════════════════════════════
   購入決定演出アニメーション
═══════════════════════════════════ */

/* 自販機本体振動 */
@keyframes vm-shake {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  15%  { transform: translate(-3px, 1px) rotate(-0.3deg); }
  30%  { transform: translate(3px,-1px) rotate(0.3deg); }
  45%  { transform: translate(-2px, 2px) rotate(-0.2deg); }
  60%  { transform: translate(2px,-1px) rotate(0.2deg); }
  75%  { transform: translate(-1px, 1px) rotate(-0.1deg); }
}
.vm.vm-shaking {
  animation: vm-shake 0.45s cubic-bezier(.2,.8,.2,1);
}

/* 取出口フラップ開閉 */
@keyframes vm-flap-open {
  0%   { transform: perspective(400px) rotateX(0deg); }
  40%  { transform: perspective(400px) rotateX(-55deg); }
  70%  { transform: perspective(400px) rotateX(-50deg); }
  100% { transform: perspective(400px) rotateX(0deg); }
}
.vm-outlet-door.vm-flap-anim {
  transform-origin: top center;
  animation: vm-flap-open 1.0s cubic-bezier(.4,0,.2,1) forwards;
}

/* 落下する車画像（取出口の上から落ちてくる） */
.vm-dropped-car {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
@keyframes vm-car-drop {
  0%   { transform: translateY(-80px) scale(0.55) rotate(-8deg); opacity: 0; }
  55%  { transform: translateY(0px)  scale(1.05) rotate(3deg);  opacity: 1; }
  75%  { transform: translateY(-12px) scale(1.0) rotate(-1deg); opacity: 1; }
  100% { transform: translateY(0px)   scale(1.0) rotate(0deg);  opacity: 1; }
}
.vm-dropped-car img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.6);
  animation: vm-car-drop 0.65s cubic-bezier(.2,.8,.2,1) forwards;
}
.vm-dropped-car-msg {
  background: rgba(13,33,67,0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: vm-car-drop 0.65s 0.1s cubic-bezier(.2,.8,.2,1) both;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* コインアニメ（パネルのコイン投入口から） */
.vm-coin-drop-el {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D4E0F0 0%, #8AA8CC 50%, #C0D5EB 100%);
  border: 1.5px solid #9EB8D5;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 2px 5px rgba(0,0,0,0.4);
  z-index: 400;
  pointer-events: none;
  font-size: 0.4rem;
  font-weight: 900;
  color: rgba(60,80,120,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Mono', monospace;
}
@keyframes vm-coin-fall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  60%  { transform: translateY(50px)  rotate(180deg); opacity: 1; }
  100% { transform: translateY(70px)  rotate(240deg); opacity: 0; }
}
.vm-coin-drop-el.active {
  animation: vm-coin-fall 0.5s cubic-bezier(.4,0,.2,1) forwards;
}

/* VFD決定メッセージ（遷移前） */
@keyframes vm-vfd-msg {
  0%,100% { opacity:1; }
  50% { opacity:0.4; }
}
#vmAmountValue.vm-vfd-confirm {
  animation: vm-vfd-msg 0.5s ease-in-out 3;
  color: #88FF88 !important;
  text-shadow: 0 0 12px rgba(100,255,100,0.9) !important;
}

/* ═══════════════════════════════════════
   詳細フローページ互換スタイル
   jimny/、wagon-r/、buy/、form/ 等で使用
   旧CSS(v=20260514-vd-mock2)からの継承
═══════════════════════════════════════ */

/* ページ背景をフロー用に上書き */
body.vending-body { background: var(--bg); }

/* ヘッダー */
.vd-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.vd-header-inner {
  max-width: 920px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.vd-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.95rem;
  color: var(--navy); letter-spacing: -0.01em;
}
.vd-logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #5B9BD5 0%, #1E3A5F 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff;
  box-shadow: 0 4px 12px rgba(30,58,95,0.3);
}
.vd-back {
  font-size: 0.85rem; color: var(--text-mid);
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 999px;
  transition: background 0.2s ease;
}
.vd-back:hover { background: var(--border); }

/* セクション */
.vd-section {
  max-width: 920px; margin: 0 auto;
  padding: 0 16px 100px;
}

/* 見出し */
.vd-eyebrow {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 8px; margin-top: 20px;
}
.vd-section h1.vd-title {
  font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900;
  color: var(--navy); letter-spacing: -0.03em; line-height: 1.2;
  margin: 0 0 8px;
  background: none; border: none; padding: 0; text-shadow: none;
  border-radius: 0; letter-spacing: -0.03em;
  display: block; text-align: left; white-space: normal;
}
.vd-section h1.vd-title em {
  font-style: normal; color: var(--sky);
}
.vd-lead {
  font-size: 0.92rem; color: var(--text-mid);
  margin: 0 0 20px; line-height: 1.7;
}

/* カードパネル */
.vd-panel {
  background: #fff; border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.vd-panel-title {
  font-size: 1.05rem; font-weight: 800; color: var(--navy);
  margin: 0 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.vd-panel-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, #5B9BD5 0%, #FDE047 100%);
  font-size: 0.85rem;
}

/* ボタン共通 */
.vd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px; border-radius: 14px;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em;
  border: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none; font-family: inherit;
}
.vd-btn-primary {
  background: linear-gradient(135deg, #5B9BD5 0%, #1E3A5F 100%);
  color: #fff; box-shadow: 0 6px 18px rgba(30,58,95,0.35);
}
.vd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,58,95,0.45); }
.vd-btn-secondary {
  background: #fff; color: var(--navy);
  border: 2px solid var(--border);
}
.vd-btn-secondary:hover { border-color: var(--navy); }
.vd-btn-block { width: 100%; padding: 16px; font-size: 1rem; }
.vd-btn-lg { padding: 18px 28px; font-size: 1.05rem; border-radius: 16px; }

/* 詳細画像 */
.vd-detail-hero {
  background: #fff; border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px;
}
.vd-detail-img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f3f5fa 0%, #e8eef7 100%);
  position: relative;
}
.vd-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.vd-detail-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; font-size: 6rem;
}
.vd-detail-tag-row {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 16px 0;
}
.vd-tag {
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; letter-spacing: 0.04em;
}
.vd-tag-lime { background: rgba(16,185,129,0.18); color: #0A8459; }
.vd-tag-pink { background: rgba(255,107,157,0.2); color: #D14878; }
.vd-tag-navy { background: rgba(13,33,67,0.08); color: var(--navy); }
.vd-detail-body { padding: 14px 18px 22px; }
.vd-detail-name {
  font-size: 1.5rem; font-weight: 900; margin: 0 0 4px;
  color: var(--navy); letter-spacing: -0.02em;
}
.vd-detail-sub { color: var(--text-mid); font-size: 0.85rem; margin: 0 0 18px; }
.vd-detail-price {
  background: linear-gradient(135deg, #FFF8E7 0%, #E0EAFE 100%);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 20px;
}
.vd-detail-price-label {
  font-size: 0.72rem; color: var(--text-mid); font-weight: 600;
  display: block; margin-bottom: 4px;
}
.vd-detail-price-value {
  font-family: 'Bebas Neue','Roboto',monospace;
  font-size: 2.2rem; font-weight: 900; color: var(--navy);
  line-height: 1; letter-spacing: 0.01em;
}
.vd-detail-price-value small {
  font-size: 0.85rem; font-weight: 600; margin-left: 4px;
  color: var(--text-mid); font-family: 'Noto Sans JP', sans-serif;
}

/* スペックリスト */
.vd-spec-list {
  list-style: none; padding: 0; margin: 0 0 20px;
  border-top: 1px solid var(--border);
}
.vd-spec-list li {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.vd-spec-list dt { color: var(--text-l); font-weight: 500; margin: 0; }
.vd-spec-list dd { color: var(--navy); font-weight: 700; margin: 0; }

/* フォーム */
.vd-form-group { margin-bottom: 18px; }
.vd-label {
  display: block; font-size: 0.82rem; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
}
.vd-label-req::after {
  content: '必須'; display: inline-block; margin-left: 6px;
  background: #1E3A5F; color: #fff;
  font-size: 0.62rem; padding: 2px 7px; border-radius: 999px; font-weight: 700;
}
.vd-input, .vd-textarea, .vd-select {
  width: 100%; padding: 14px; font-size: 0.95rem;
  border: 2px solid var(--border); border-radius: 12px;
  background: #fff; font-family: inherit; color: var(--text);
  transition: border-color 0.2s ease;
}
.vd-input:focus, .vd-textarea:focus, .vd-select:focus {
  outline: none; border-color: #5B9BD5;
}
.vd-textarea { resize: vertical; min-height: 100px; }

/* タイムライン */
.vd-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.vd-timeline::before {
  content: ''; position: absolute; left: 17px; top: 14px; bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, #5B9BD5 0%, #FDE047 100%);
  border-radius: 999px;
}
.vd-timeline li {
  position: relative; padding: 10px 0 10px 48px; font-size: 0.9rem;
}
.vd-timeline li::before {
  content: ''; position: absolute; left: 10px; top: 16px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid #5B9BD5; z-index: 1;
}
.vd-timeline li.done::before { background: #10B981; border-color: #10B981; }
.vd-timeline-time {
  font-family: 'Roboto', sans-serif; font-size: 0.78rem; font-weight: 700;
  color: #1E3A5F; display: block; margin-bottom: 2px;
}
.vd-timeline li.done .vd-timeline-time { color: #0A8459; }
.vd-timeline-text { color: var(--text); font-weight: 600; }

/* ナビゲーション */
.vd-nav { display: flex; gap: 10px; margin-top: 20px; }
.vd-nav .vd-btn { flex: 1; }
.vd-nav .vd-btn-secondary { flex: 0 0 auto; padding-left: 18px; padding-right: 18px; }

/* アップロード */
.vd-upload {
  border: 2px dashed var(--border); border-radius: 14px;
  padding: 28px 18px; text-align: center; background: #fafbfd;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer; display: block; margin-bottom: 14px;
}
.vd-upload:hover { border-color: #5B9BD5; background: #fff; }
.vd-upload-icon { font-size: 2.4rem; margin-bottom: 6px; }
.vd-upload-title { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.vd-upload-sub { font-size: 0.72rem; color: var(--text-l); margin: 0; }

/* 振込ボックス */
.vd-pay-box {
  background: linear-gradient(135deg, #FFF8E7 0%, #E0EAFE 100%);
  border-radius: 18px; padding: 22px; margin-bottom: 16px;
}
.vd-pay-total-label { font-size: 0.78rem; color: var(--text-mid); font-weight: 700; margin-bottom: 4px; }
.vd-pay-total {
  font-family: 'Bebas Neue','Roboto',monospace;
  font-size: 2.6rem; font-weight: 900; color: var(--navy);
  letter-spacing: 0.01em; line-height: 1.1;
}
.vd-pay-total small { font-size: 1rem; color: var(--text-mid); margin-left: 4px; font-weight: 600; }
.vd-pay-deadline {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--navy); font-weight: 700; font-size: 0.82rem;
  padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(30,58,95,0.2);
}
.vd-bank { background: #fff; border-radius: 14px; padding: 18px; margin-bottom: 14px; border: 1px solid var(--border); }
.vd-bank-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.vd-bank-row:last-child { border-bottom: none; }
.vd-bank-row dt { color: var(--text-l); font-weight: 500; margin: 0; }
.vd-bank-row dd { color: var(--navy); font-weight: 700; margin: 0; font-family: 'Roboto', monospace; }
.vd-copy-btn {
  background: #FDE047; color: #000; border: none;
  padding: 4px 10px; border-radius: 8px;
  font-size: 0.7rem; font-weight: 700; margin-left: 8px; cursor: pointer; font-family: inherit;
}

/* 完了画面 */
.vd-success {
  text-align: center; padding: 36px 20px 28px; background: #fff;
  border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.vd-success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #0A8459 100%);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #fff;
  box-shadow: 0 12px 30px rgba(16,185,129,0.4);
  animation: vd-bounce 0.8s cubic-bezier(.2,.8,.2,1);
}
@keyframes vd-bounce {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.vd-success-title {
  font-size: 1.5rem; font-weight: 900; color: var(--navy);
  margin: 0 0 8px; letter-spacing: -0.02em;
}
.vd-success-sub { font-size: 0.9rem; color: var(--text-mid); margin: 0; }
