@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg_deep: #141413;
  --card: #151514;
  --ink: #ece4d2;
  --sub: #9c947f;
  --line: rgba(200, 169, 106, 0.2);
  --gold: #c8a96a;
  --gold_hi: #f0d896;
  --gold_grad: linear-gradient(100deg, #8a6a2f 0%, #e9cf8f 25%, #b8904a 45%, #fff1c9 55%, #b8904a 70%, #e1c27f 85%, #8a6a2f 100%);
  --accent: #c8a96a;
  --danger: #e0676b;
  --price_up: #f0a3a6;
  --price_down: #9fd3a4;
  --state_ng: #f0a3a6;
  --state_ok: #9fd3a4;
  --floor: radial-gradient(60% 100% at 50% 0%, rgba(214, 174, 96, 0.22), rgba(0, 0, 0, 0) 70%);
  --font_en: "Inter", "Noto Sans JP", sans-serif;
  --font_ja: "Noto Sans JP", sans-serif;
  --font_mincho: "Shippori Mincho", serif;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font_ja);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sub);
  font-family: var(--font_en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.lead {
  color: var(--sub);
}

.note,
.field_help {
  display: block;
  margin: 6px 0 0;
  color: var(--sub);
  font-size: 12px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 26px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.btn_primary {
  background: var(--ink);
  color: var(--bg);
}
.btn_primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn_small {
  min-height: 40px;
  padding: 6px 18px;
  font-size: 13px;
}

.btn_text {
  border-color: transparent;
  padding: 10px 6px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.btn_text:hover {
  background: transparent;
  color: var(--ink);
}

.btn_danger {
  color: var(--danger);
}
.btn_danger:hover {
  color: var(--danger);
}

/* ---------- 上のバー ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
}

.wordmark {
  font-family: var(--font_en);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-decoration: none;
  white-space: nowrap;
}

.bar_help {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 14px;
  border: 1px solid rgba(200, 169, 106, 0.5);
  border-radius: 50%;
  color: var(--gold_hi);
  font-family: var(--font_mincho);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.bar_help:hover, .bar_help:focus-visible {
  background-color: rgba(200, 169, 106, 0.16);
  box-shadow: 0 0 14px rgba(200, 169, 106, 0.4);
}

.bar .bar_nav {
  margin-left: auto;
}

@media (max-width: 400px) {
  .bar .bar_nav {
    gap: 12px;
  }
  .bar_help {
    width: 36px;
    height: 36px;
    margin-left: 8px;
  }
  .bar .wordmark {
    letter-spacing: 0.28em;
  }
}
.bar_nav {
  display: flex;
  gap: 22px;
}
.bar_nav a {
  flex-shrink: 0;
  padding: 6px 0;
  color: var(--sub);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.bar_nav a[aria-current=page] {
  color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 48px) 80px;
}

.page_title {
  margin: 24px 0 8px;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.sec_title {
  margin: 0;
  font-family: var(--font_en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.28em;
}
.sec_title span {
  margin-left: 10px;
  color: var(--sub);
  letter-spacing: 0.08em;
}

/* ---------- 車の見た目と床 ---------- */
.car_img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.car_sil .sil {
  display: block;
  width: 100%;
  height: auto;
}

.sr_floor {
  height: 40px;
  margin-top: -20px;
  background: var(--floor);
}

/* ---------- ガレージ（ショールーム） ---------- */
.showroom {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 56px;
  min-height: min(72vh, 680px);
}

.sr_stage {
  position: relative;
  padding: 40px 0 0;
}

.sr_car {
  animation: sr_in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.sr_car.is_out {
  animation: sr_out 0.26s ease-in both;
}

@keyframes sr_in {
  from {
    opacity: 0;
    transform: translateX(-8%) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes sr_out {
  to {
    opacity: 0;
    transform: translateX(10%);
    filter: blur(6px);
  }
}
.sr_info {
  animation: sr_text 0.9s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes sr_text {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.sr_name,
.dh_name {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.sr_sub {
  margin: 8px 0 0;
  color: var(--sub);
}

.sr_facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sr_facts div {
  padding: 14px 0;
}
.sr_facts div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.sr_facts dt {
  color: var(--sub);
  font-size: 11px;
  letter-spacing: 0.1em;
}
.sr_facts dd {
  margin: 2px 0 0;
  font-family: var(--font_en);
  font-size: 22px;
  font-weight: 300;
  white-space: nowrap;
}
.sr_facts dd small {
  margin-left: 3px;
  color: var(--sub);
  font-size: 12px;
}

.sr_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.lineup {
  margin-top: 56px;
}

.lineup_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.lineup_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.lu_item {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lu_item:hover {
  background: var(--bg_deep);
}
.lu_item[aria-pressed=true] {
  border-color: var(--ink);
}

.lu_visual {
  display: block;
  aspect-ratio: 16/7;
  margin-bottom: 10px;
}
.lu_visual img,
.lu_visual .car_sil {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lu_name {
  font-weight: 500;
}

.lu_sub {
  color: var(--sub);
  font-size: 12px;
}

/* ---------- 空のガレージ・ログイン ---------- */
.empty {
  display: grid;
  justify-items: center;
  padding: 40px 0;
  text-align: center;
}

.empty_stage {
  width: min(640px, 100%);
  margin-inline: auto;
}

.empty_title {
  margin: 24px 0 6px;
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 300;
}

.empty_lead {
  max-width: 34em;
  margin: 0 auto 24px;
  color: var(--sub);
}

/* ---------- ログイン：黒地に金の明朝、舞う金の粉（kawabe さんのサンプル 2026-10-07） ---------- */
body.login {
  background: #070708;
}

.lx {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: #e9e3d6;
  background: radial-gradient(70% 55% at 30% 45%, rgba(255, 255, 255, 0.07), transparent 70%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.75)), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 3px), linear-gradient(180deg, #121214, #070708);
}

.lx_dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lx_gauges {
  position: relative;
  padding: 0 clamp(16px, 4vw, 64px);
  animation: lx_gauge_in 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.lx_gauges::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6%;
  height: 22%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(214, 174, 96, 0.18), transparent 70%);
  pointer-events: none;
}

.gg_pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 40px);
}

.gg_g {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(240, 216, 150, 0.4));
}

.gg_odo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
  color: #e9dcb8;
  font-family: var(--font_en);
}

.gg_odo_n {
  padding: 4px 12px;
  border: 1px solid rgba(200, 169, 106, 0.4);
  background: linear-gradient(180deg, #0c0c0c, #1a1917 50%, #0c0c0c);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
}

.gg_odo_u {
  color: #b49a62;
  font-size: 12px;
  letter-spacing: 0.2em;
}

@keyframes lx_gauge_in {
  from {
    opacity: 0;
    transform: scale(0.94);
    filter: brightness(0.2);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
.lx_copy {
  position: relative;
  padding: 40px clamp(20px, 5vw, 80px) 40px 0;
}

.lx_eyebrow {
  margin: 0 0 22px;
  color: #c8a96a;
  font-family: var(--font_en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.32em;
  animation: lx_up 1s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lx_title {
  margin: 0 0 28px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(30px, 4.3vw, 66px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: 0.04em;
}
.lx_title span {
  display: block;
  white-space: nowrap;
  background: linear-gradient(100deg, #8a6a2f 0%, #e9cf8f 22%, #b8904a 40%, #fff1c9 50%, #b8904a 60%, #e1c27f 78%, #8a6a2f 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6));
  animation: lx_up 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both, lx_shine 7s 2s ease-in-out infinite;
}
.lx_title span:nth-child(1) {
  animation-delay: 0.7s, 2s;
}
.lx_title span:nth-child(2) {
  animation-delay: 0.85s, 2.4s;
}

@keyframes lx_up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes lx_shine {
  0%, 100% {
    background-position: 100% 0;
  }
  50% {
    background-position: 0 0;
  }
}
.lx_lead {
  margin: 0 0 34px;
  color: #b9b3a6;
  font-size: 16px;
  line-height: 1.95;
  animation: lx_up 1s 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lx_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(460px, 100%);
  min-height: 60px;
  padding: 12px 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: linear-gradient(180deg, #1b1a17, #0d0d0c) padding-box, linear-gradient(120deg, #6e5426, #e9cf8f, #8a6a2f, #f3dda0, #6e5426) border-box;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 18px 40px -18px rgba(200, 169, 106, 0.55);
  color: #f3ead7;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  animation: lx_up 1s 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transition: box-shadow 0.3s, transform 0.3s;
}
.lx_btn span {
  position: relative;
  white-space: nowrap;
}
.lx_btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 230, 170, 0.28) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: lx_sweep 4.5s 2.5s ease-in-out infinite;
}
.lx_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 24px 50px -16px rgba(220, 186, 116, 0.8);
}

@keyframes lx_sweep {
  40%, 100% {
    transform: translateX(100%);
  }
}
.lx_note {
  margin: 14px 0 0;
  color: #8f897d;
  font-size: 13px;
  animation: lx_up 1s 1.25s both;
}

.lx_legal {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  font-size: 13px;
  animation: lx_up 1s 1.3s both;
}
.lx_legal a {
  color: #b9b3a6;
  text-underline-offset: 4px;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 28px;
  font-size: 12px;
}
.legal a {
  color: var(--sub);
}

/* ---------- 車の詳細 ---------- */
.detail_hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px 48px;
  padding-top: 24px;
}

.dh_stage {
  animation: sr_in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 40px 0 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.tab {
  flex-shrink: 0;
  padding: 12px 18px;
  color: var(--sub);
  font-size: 14px;
  white-space: nowrap;
}
.tab.is_on {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}
.tab.is_soon::after {
  content: "準備中";
  margin-left: 6px;
  font-size: 10px;
}

.specs {
  margin-top: 32px;
}

.spec_sec {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.spec_sec h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.spec_sec dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
}

.spec_row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dotted var(--line);
}
.spec_row dt {
  flex-shrink: 0;
  color: var(--sub);
  font-size: 13px;
}
.spec_row dd {
  margin: 0;
  text-align: right;
}
.spec_row dd small {
  color: var(--sub);
  font-size: 11px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px var(--line);
  vertical-align: -1px;
}

.memo {
  margin: 0;
}

/* ---------- 登録・編集 ---------- */
.vform {
  max-width: 960px;
  margin: 0 auto;
}

.vform_preview {
  position: sticky;
  top: 60px;
  z-index: 2;
  margin: 0 auto;
  padding: 8px 0 0;
  background: linear-gradient(var(--bg) 85%, transparent);
}
.vform_preview .vform_car {
  width: min(520px, 100%);
  margin: 0 auto;
}

.fsec {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.fsec_title {
  margin: 0 0 18px;
  font-family: var(--font_en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
}
.fsec_title span {
  margin-left: 10px;
  font-family: var(--font_ja);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip {
  flex-shrink: 0;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.chip[aria-pressed=true] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.body_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.body_opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px;
  border: 1px solid transparent;
  background: var(--card);
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.body_opt[aria-pressed=true] {
  border-color: var(--ink);
}
.body_opt .body_sil {
  width: 100%;
}
.body_opt .body_sil .sil {
  display: block;
  width: 100%;
  height: auto;
}

.camper_row {
  margin-top: 14px;
  max-width: 320px;
}

.grid2,
.grid3 {
  display: grid;
  gap: 14px 20px;
}

.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: block;
}

.field_label {
  display: block;
  margin-bottom: 4px;
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s;
}
.input:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

select.input {
  color-scheme: light dark;
  background: var(--card);
}
select.input option {
  background: var(--card);
  color: var(--ink);
}

textarea.input {
  border: 1px solid var(--line);
}

.field_error {
  display: block;
  margin-top: 4px;
  color: var(--danger);
  font-size: 12px;
}

.colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.swatch {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.6), transparent 45%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s;
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch[aria-pressed=true] {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 3px var(--bg), 0 0 0 4px var(--ink);
}

.swatch_custom {
  overflow: hidden;
  background: conic-gradient(#e53, #ea3, #3b5, #39e, #a3e, #e53);
}
.swatch_custom input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo_box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.photo_box .field_help {
  flex-basis: 100%;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.form_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- 記録（期限・整備・給油・費用） ---------- */
.rec_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 32px 0 14px;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--sub);
  font-size: 13px;
}

.chip_small {
  min-height: 34px;
  padding: 4px 12px;
  font-size: 13px;
}

.rec_list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rec_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.rec_item.is_done {
  opacity: 0.6;
}

.rec_main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rec_kind {
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.rec_title {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.rec_title:empty {
  display: none;
}

.econ {
  margin-left: 10px;
  font-family: var(--font_en);
  font-weight: 500;
}

.rec_meta {
  color: var(--sub);
  font-size: 13px;
}

.rec_side {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.rec_btns {
  display: flex;
  gap: 4px;
}

.rec_amount {
  font-family: var(--font_en);
  font-size: 16px;
  white-space: nowrap;
}

.rec_empty {
  padding: 22px 0;
  color: var(--sub);
}

.rec_done {
  margin-top: 18px;
}
.rec_done summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--sub);
  cursor: pointer;
}

.rec_sub {
  margin: 4px 0 16px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}

.badge_soon {
  border-color: #b8904a;
  color: #8a6a2f;
}

.badge_over {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.due_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.due_card {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.due_card p {
  margin: 0;
}

.due_over {
  border-color: var(--danger);
}

.due_soon {
  border-color: #b8904a;
}

.due_name {
  font-weight: 500;
}

.due_when {
  margin-top: 4px !important;
  color: var(--sub);
  font-size: 13px;
}

.due_left {
  margin-top: 8px !important;
  font-size: 13px;
}
.due_over .due_left {
  color: var(--danger);
}
.due_soon .due_left {
  color: #8a6a2f;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpis div {
  padding: 16px 0;
}
.kpis div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.kpis dt {
  color: var(--sub);
  font-size: 12px;
}
.kpis dd {
  margin: 4px 0 0;
  font-family: var(--font_en);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 300;
  white-space: nowrap;
}
.kpis dd small {
  margin-left: 4px;
  color: var(--sub);
  font-size: 12px;
}

.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 160px;
  margin: 24px 0 8px;
}

.month {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.month_bar {
  display: block;
  height: var(--h);
  min-height: 2px;
  background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 60%, transparent));
  animation: bar_up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform-origin: bottom;
}

@keyframes bar_up {
  from {
    transform: scaleY(0);
  }
}
.month_lbl {
  margin-top: 6px;
  color: var(--sub);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.cats {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.cats li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.cats b {
  font-family: var(--font_en);
  font-weight: 400;
  text-align: right;
}

.cat_bar {
  height: 6px;
  background: var(--bg_deep);
}
.cat_bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--ink);
}

.sub_title {
  margin: 32px 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.rules {
  display: grid;
  gap: 4px;
}

.rule_row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 26px 70px 36px;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.rule_row small {
  color: var(--sub);
  font-size: 12px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.sheet_back {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}
.is_open .sheet_back {
  opacity: 1;
}

.sheet_panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(720px, 100%);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 22px clamp(16px, 4vw, 32px) max(24px, env(safe-area-inset-bottom));
  background: var(--bg);
  transform: translate(-50%, 100%);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.is_open .sheet_panel {
  transform: translate(-50%, 0);
}
.sheet_panel .field {
  margin-bottom: 12px;
}

.sheet_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet_head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.sheet_x {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

.upcoming {
  margin-top: 40px;
}
.upcoming:empty {
  display: none;
}

.up_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.up_item a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 150px auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.2s;
}
.up_item a:hover {
  background: var(--bg_deep);
}

.up_kind {
  font-weight: 500;
}

.up_car,
.up_when {
  color: var(--sub);
  font-size: 13px;
}

a.tab {
  text-decoration: none;
}

@media (max-width: 640px) {
  .rec_item {
    align-items: flex-start;
  }
  .kpis dd {
    font-size: 18px;
  }
  .cats li {
    grid-template-columns: 96px minmax(0, 1fr) 84px;
    font-size: 13px;
  }
  .up_item a {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
  }
  .up_when {
    grid-column: 1;
  }
  .rule_row {
    grid-template-columns: minmax(0, 1fr) 70px 22px 56px 32px;
  }
}
/* ---------- 設定：通知 ---------- */
.chips_wrap {
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.chip_check {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.chip_check input {
  position: absolute;
  opacity: 0;
}
.chip_check:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.chip_check:has(input:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.push_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.device_list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.device_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 14px;
}
.device_row small {
  color: var(--sub);
}

/* ---------- お知らせ ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.is_show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.is_error {
  background: var(--danger);
  color: #fff;
}

@media (max-width: 900px) {
  .showroom,
  .detail_hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .lx {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
  }
  .lx_gauges {
    padding: 48px 20px 8px;
  }
  .lx_copy {
    padding: 0 20px 48px;
  }
  .grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .spec_sec {
    grid-template-columns: minmax(0, 1fr);
  }
  .spec_sec dl {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .grid2,
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .sr_facts dd {
    font-size: 18px;
  }
  .lineup_list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .body_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .btn {
    padding: 10px 18px;
  }
  .lx_btn {
    font-size: 14px;
    letter-spacing: 0.02em;
  }
}
/* ==================================================================
   黒と金（2026-10-07）：上の部品の色を、ここでまとめて金に寄せる
   ================================================================== */
body.app {
  background: radial-gradient(80% 50% at 50% 0%, rgba(214, 174, 96, 0.06), transparent 70%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 3px), var(--bg);
  background-attachment: fixed;
}

.bar {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--gold);
}

.bar_nav a[aria-current=page] {
  color: var(--gold_hi);
  box-shadow: 0 1px 0 var(--gold);
}

.eyebrow,
.sec_title,
.fsec_title {
  color: var(--gold);
}

.sec_title span,
.fsec_title span {
  color: var(--ink);
}

.sr_name,
.dh_name {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.3;
  word-break: auto-phrase;
}

.sr_name,
.dh_name,
.page_title,
.empty_title {
  font-family: var(--font_mincho);
  font-weight: 600;
  background: var(--gold_grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lx_shine 8s 1s ease-in-out infinite;
}

.btn {
  border-color: var(--gold);
  border-radius: 4px;
  color: var(--gold_hi);
}
.btn:hover {
  background: rgba(200, 169, 106, 0.12);
  color: var(--gold_hi);
}

.btn_primary {
  border-color: transparent;
  background: linear-gradient(180deg, #e7cd8c, #b38d48);
  color: #17140d;
  box-shadow: 0 12px 30px -16px rgba(214, 174, 96, 0.8);
}
.btn_primary:hover {
  background: linear-gradient(180deg, #f3dda0, #c39a52);
  color: #17140d;
}

.btn_text {
  border-color: transparent;
  color: var(--gold);
}
.btn_text:hover {
  background: transparent;
  color: var(--gold_hi);
}

.btn_danger,
.btn_danger:hover {
  color: var(--danger);
}

.chip {
  border-color: var(--line);
  color: var(--ink);
}
.chip[aria-pressed=true] {
  border-color: var(--gold);
  background: rgba(200, 169, 106, 0.16);
  color: var(--gold_hi);
}

.chip_check:has(input:checked) {
  border-color: var(--gold);
  background: rgba(200, 169, 106, 0.16);
  color: var(--gold_hi);
}

.input:focus {
  border-bottom-color: var(--gold);
}

select.input {
  color-scheme: dark;
  background: #151514;
  color: var(--ink);
}
select.input option,
select.input optgroup {
  background: #151514;
  color: var(--ink);
}

textarea.input {
  background: transparent;
}

.check input {
  accent-color: var(--gold);
}

.lu_item:hover {
  background: rgba(200, 169, 106, 0.06);
}
.lu_item[aria-pressed=true] {
  border-color: var(--gold);
}

.tab.is_on {
  color: var(--gold_hi);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.spec_row dd,
.sr_facts dd,
.kpis dd,
.rec_amount {
  color: var(--ink);
}

.badge_soon {
  border-color: var(--gold);
  color: var(--gold_hi);
}

.due_soon {
  border-color: var(--gold);
}

.due_soon .due_left {
  color: var(--gold_hi);
}

.month_bar {
  background: linear-gradient(180deg, var(--gold_hi), #6e5426);
}

.cat_bar {
  background: rgba(255, 255, 255, 0.06);
}
.cat_bar i {
  background: var(--gold_grad);
}

.body_opt {
  background: transparent;
}

.sheet_panel {
  border-top: 1px solid var(--gold);
  background: #101010;
}

.sheet_x {
  color: var(--gold);
}

.toast {
  border: 1px solid var(--gold);
  background: #151514;
  color: var(--gold_hi);
}

.swatch[aria-pressed=true] {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 0 3px var(--bg), 0 0 0 4px var(--gold);
}

.vform_preview {
  background: linear-gradient(var(--bg) 85%, transparent);
}

/* ---------- 写真が無い車：スポットライトの台＋金の輪の紋章 ---------- */
.car_ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 16/9;
  overflow: hidden;
  isolation: isolate;
}

.ph_spot {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(38% 30% at 50% 88%, rgba(230, 196, 120, 0.22), transparent 70%), conic-gradient(from 180deg at 50% -10%, transparent 160deg, rgba(255, 236, 190, 0.1) 172deg, rgba(255, 236, 190, 0.16) 180deg, rgba(255, 236, 190, 0.1) 188deg, transparent 200deg);
  animation: ph_spot 6s ease-in-out infinite alternate;
}

@keyframes ph_spot {
  to {
    filter: brightness(1.35);
  }
}
.ph_mark {
  display: block;
  width: clamp(84px, 24%, 168px);
}

.ph_emblem {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(214, 174, 96, 0.3));
  animation: ph_glow 5s ease-in-out infinite alternate;
}

@keyframes ph_glow {
  to {
    filter: drop-shadow(0 0 30px rgba(240, 216, 150, 0.55));
  }
}
.ph_meter {
  width: clamp(160px, 46%, 300px);
}
.ph_meter .gg_mini {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1px rgba(240, 216, 150, 0.4));
}

.gg_odo_mini {
  margin-top: 10px;
}
.gg_odo_mini .gg_odo_n {
  font-size: clamp(16px, 1.8vw, 22px);
}

.car_ph_meter {
  aspect-ratio: auto;
  padding: 24px 0 8px;
}

.ph_type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sub);
  font-size: 12px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.ph_type:empty {
  display: none;
}

.ph_dot {
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(200, 169, 106, 0.5);
}

.ph_cta {
  margin-top: 4px;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold_hi);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.ph_cta:hover {
  background: rgba(200, 169, 106, 0.14);
}

.car_img {
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.75));
}

.lu_visual .car_ph {
  gap: 4px;
}
.lu_visual .car_ph .ph_mark {
  width: 34%;
}
.lu_visual .car_ph .ph_type {
  display: none;
}

.vform_car .car_ph {
  max-height: 220px;
}

.empty_stage .car_ph.is_empty {
  width: min(560px, 100%);
  margin-inline: auto;
}
.empty_stage .car_ph.is_empty .ph_mark {
  width: clamp(150px, 36%, 200px);
}

/* ---------- 書類・装備・車検証の QR ---------- */
.doc_grid,
.eq_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.doc_item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.doc_item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #000;
}
.doc_item:hover {
  border-color: var(--gold);
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.94);
}
.viewer img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}

.viewer_bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.viewer_bar span {
  flex: 1;
  color: var(--ink);
}

.eq_card {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--card);
}
.eq_card p {
  margin: 0;
}

.eq_kind {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.eq_name {
  margin-top: 4px !important;
  font-size: 16px;
}

.eq_spec,
.eq_meta {
  color: var(--sub);
  font-size: 13px;
}

.qr_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 18px;
}
.qr_row .field_help {
  margin: 0;
}

.qr_view {
  position: relative;
  margin: 14px 0 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 4/3;
}
.qr_view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr_frame {
  position: absolute;
  inset: 18% 22%;
  border: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--gold_hi) 0 18%, transparent 18% 82%, var(--gold_hi) 82%) 1;
}
.qr_frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold_hi), transparent);
  box-shadow: 0 0 12px var(--gold);
  animation: qr_scan 1.8s ease-in-out infinite alternate;
}

@keyframes qr_scan {
  from {
    top: 4%;
  }
  to {
    top: 94%;
  }
}
.qr_msg {
  margin: 4px 0;
  color: var(--ink);
}

.qr_count {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
}
.qr_count b {
  color: var(--gold_hi);
  font-family: var(--font_en);
  font-size: 18px;
}

/* ---------- 家族で共有 ---------- */
.share_line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--sub);
  font-size: 13px;
}

.lu_share {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--gold);
  color: var(--gold_hi);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.08em;
  vertical-align: 2px;
  white-space: nowrap;
}

.member_list {
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.member_mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2c2820, #0a0907 70%);
  color: var(--gold_hi);
  font-family: var(--font_mincho);
  font-size: 16px;
}

.member_name {
  flex: 1 1 140px;
  min-width: 0;
}
.member_name small {
  margin-left: 4px;
  color: var(--sub);
  font-size: 12px;
}

.input_small {
  width: auto;
  min-width: 140px;
  padding: 8px 10px;
}

.invite_box {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(200, 169, 106, 0.06), transparent 60%);
}
.invite_box .chips {
  margin: 12px 0;
}
@media (max-width: 640px) {
  .invite_box {
    padding: 18px 14px;
  }
}

.invite_link {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.invite_link .input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
}
.invite_link .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.join {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
}
.join .form_actions {
  justify-content: center;
}

.is_viewer .rec_head .btn,
.is_viewer .quick,
.is_viewer .rec_btns,
.is_viewer .rec_side .btn_text,
.is_viewer .rec_sub,
.is_viewer .eq_card .btn_text,
.is_viewer .eq_btns,
.is_viewer .btn_spotinfo,
.is_viewer .viewer [data-act=docDel] {
  display: none;
}

/* ---------- 有料会員の 3D ---------- */
.m3d_stage {
  position: relative;
  overflow: hidden;
  height: clamp(320px, 56vw, 560px);
  margin-top: 20px;
  border: 1px solid var(--line);
  background: radial-gradient(50% 40% at 50% 80%, rgba(214, 174, 96, 0.16), transparent 70%), conic-gradient(from 180deg at 50% -10%, transparent 160deg, rgba(255, 236, 190, 0.08) 175deg, rgba(255, 236, 190, 0.12) 180deg, rgba(255, 236, 190, 0.08) 185deg, transparent 200deg), #070708;
  touch-action: none;
}
.m3d_stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.m3d_stage:fullscreen, .m3d_stage.is_full {
  height: 100%;
  border: 0;
}
.m3d_stage.is_full {
  position: fixed;
  inset: 0;
  z-index: 60;
  margin: 0;
}

.m3d_ring {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 60%;
  aspect-ratio: 5/1;
  border: 1px solid rgba(200, 169, 106, 0.35);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.m3d_loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  color: var(--sub);
  font-size: 14px;
  text-align: center;
}

.m3d_tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 10px;
}
.m3d_tools .field_help {
  flex: 1 1 200px;
  margin: 0;
}

.m3d_job {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
}
.m3d_job p {
  margin: 0 0 10px;
  font-size: 14px;
}
.m3d_job.is_failed {
  border-color: var(--danger);
  color: var(--danger);
  font-size: 14px;
}

.m3d_bar {
  display: block;
  overflow: hidden;
  height: 4px;
  background: rgba(200, 169, 106, 0.15);
}
.m3d_bar i {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  background: var(--gold_grad);
  transition: width 0.3s;
}

.m3d_promo {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--gold);
  background: radial-gradient(70% 80% at 80% 0%, rgba(240, 216, 150, 0.12), transparent 60%), #0d0c0a;
}
.m3d_promo h3 {
  margin: 6px 0 12px;
  background: var(--gold_grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font_mincho);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
}
.m3d_promo p {
  color: var(--ink);
  font-size: 15px;
}

.m3d_add {
  margin-top: 32px;
}

.m3d_cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.m3d_card {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--card);
}
.m3d_card .btn {
  margin-top: 6px;
}

.m3d_card_t {
  margin: 0 0 8px;
  color: var(--gold_hi);
  font-family: var(--font_mincho);
  font-size: 17px;
  font-weight: 600;
}

.m3d_up {
  margin-top: 16px;
}
.m3d_up p {
  margin: 0 0 8px;
  font-size: 14px;
}

.plan_now {
  margin: 4px 0 12px;
  background: var(--gold_grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font_mincho);
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
}

.plan_thanks {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid var(--gold);
  background: rgba(200, 169, 106, 0.1);
  color: var(--gold_hi);
  font-size: 15px;
}

.plan_badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold_hi);
  font-size: 12px;
  white-space: nowrap;
  vertical-align: middle;
}

.plan_sub {
  margin-top: 16px;
}

.plan_table_wrap {
  overflow-x: auto;
  margin: 8px 0 14px;
}

.plan_table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
.plan_table th,
.plan_table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}
.plan_table thead th {
  color: var(--gold);
  font-family: var(--font_mincho);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.plan_table thead th:first-child {
  color: var(--sub);
  font-family: var(--font_ja);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}
.plan_table tbody th,
.plan_table tfoot th {
  color: var(--ink);
  font-weight: 400;
  text-align: left;
}
.plan_table small {
  display: block;
  margin-top: 2px;
  color: var(--sub);
  font-family: var(--font_ja);
  font-size: 11px;
  font-weight: 400;
}
.plan_table .is_now {
  background: rgba(200, 169, 106, 0.1);
}
.plan_table thead .is_now {
  color: var(--gold_hi);
  box-shadow: inset 0 2px 0 var(--gold);
}

.plan_yes {
  color: var(--gold_hi);
}

.plan_no {
  color: var(--sub);
}

.plan_apply_row {
  margin-bottom: 18px;
}

.plan_apply_t {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: var(--font_mincho);
  font-size: 18px;
  font-weight: 600;
}

.m3d_promo .btn {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .plan_table {
    min-width: 0;
    font-size: 13px;
  }
  .plan_table th,
  .plan_table td {
    padding: 10px 4px;
  }
  .plan_table thead th {
    font-size: 12px;
    letter-spacing: 0;
  }
  .plan_table tbody th,
  .plan_table tfoot th {
    width: 34%;
    padding-left: 0;
  }
}
/* ---------- ガレージの「すぐに記録」（給油・整備・費用。2026-10-07） ---------- */
.qrec {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 8px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--line);
}

.qrec_t {
  flex-shrink: 0;
  margin: 0;
  color: var(--sub);
  font-family: var(--font_en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  white-space: nowrap;
}
.qrec_t span {
  margin-left: 10px;
  font-family: var(--font_ja);
  letter-spacing: 0.08em;
}

.qrec_list {
  display: grid;
  flex: 1;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 8px;
  max-width: 520px;
  overflow-x: auto;
  scrollbar-width: none;
}

.qrec_btn {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(200, 169, 106, 0.1), rgba(200, 169, 106, 0) 80%);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.2s, background-color 0.2s, transform 0.15s;
}
.qrec_btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold_hi);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qrec_btn:hover {
  border-color: var(--gold);
  background-color: rgba(200, 169, 106, 0.08);
}
.qrec_btn:active {
  transform: scale(0.97);
}
.qrec_btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.qs_cars {
  display: flex;
  gap: 8px;
  margin: 4px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.qs_car {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  width: 120px;
  padding: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.qs_car input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qs_car:has(input:checked) {
  border-color: var(--gold);
  background: rgba(200, 169, 106, 0.12);
}
.qs_car:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.qs_car_v {
  margin-bottom: 4px;
}

.qs_car_n {
  overflow: hidden;
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.input.is_calc {
  color: var(--gold_hi);
}

@media (max-width: 640px) {
  .qrec {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .qrec_list {
    max-width: none;
  }
  .qs_fields .grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
  }
}
/* ---------- キャンピングカー：水とタンク・車中泊（2026-10-07） ---------- */
.qrec_list.is_camper {
  grid-auto-flow: row;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-width: 760px;
}

.rec_head_btns {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.rec_head_btns .btn {
  white-space: nowrap;
}

.due_name small {
  margin-left: 8px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 400;
}

.geo_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 12px 0 14px;
}
.geo_row .field_help {
  margin: 0;
}
.geo_row .btn_text {
  min-height: 32px;
  padding: 0 6px;
}

.stay_list .rec_item {
  align-items: flex-start;
}

.stay_thumb {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.stay_list .rec_main {
  flex: 1;
  min-width: 0;
}

.input[type=file] {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.rec_memo {
  display: block;
  margin-top: 4px;
  color: var(--sub);
  font-size: 13px;
  white-space: pre-line;
}

@media (max-width: 640px) {
  .qrec_list.is_camper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stay_thumb {
    width: 72px;
    height: 54px;
  }
}
/* ---------- 出発前・撤収のチェック（2026-10-07） ---------- */
.ck_kinds {
  margin-bottom: 18px;
}
.ck_kinds .chip small {
  margin-left: 8px;
  color: var(--sub);
  font-size: 12px;
}

.ck_progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 16px;
  margin-bottom: 8px;
}
.ck_progress p {
  margin: 0;
}

.ck_count {
  color: var(--sub);
  font-family: var(--font_en);
  font-size: 14px;
}
.ck_count b {
  color: var(--ink);
  font-family: var(--font_mincho);
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 600;
}

.ck_bar {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.ck_bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: var(--gold_grad);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ck_state {
  grid-column: 1/-1;
  color: var(--sub);
  font-size: 13px;
}

.ck_progress.is_all .ck_count b,
.ck_progress.is_all .ck_state {
  color: var(--gold_hi);
}
.ck_progress.is_all .ck_bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 241, 201, 0.8), transparent);
  animation: ck_shine 1.6s ease-out 1;
  transform: translateX(-100%);
}

@keyframes ck_shine {
  to {
    transform: translateX(100%);
  }
}
.ck_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ck_item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  touch-action: manipulation;
}
.ck_item input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.ck_box {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--gold);
  transition: background-color 0.2s;
}
.ck_box::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 7px;
  height: 13px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.4);
  transition: opacity 0.15s, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
input:checked + .ck_box {
  background: var(--gold);
}
input:checked + .ck_box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
input:focus-visible + .ck_box {
  outline: 2px solid var(--gold_hi);
  outline-offset: 2px;
}
input:disabled + .ck_box {
  opacity: 0.5;
}

.ck_label {
  flex: 1;
  min-width: 0;
  transition: color 0.2s;
}
input:checked ~ .ck_label {
  color: var(--sub);
  text-decoration: line-through;
  text-decoration-color: rgba(200, 169, 106, 0.6);
}

.ck_by {
  flex-shrink: 0;
  color: var(--sub);
  font-size: 12px;
}

.ck_edit {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ck_erow {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}
.ck_erow .input {
  flex: 1;
  min-width: 0;
  border-bottom: 0;
}

.ck_mv {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--gold);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}
.ck_mv:disabled {
  opacity: 0.25;
  cursor: default;
}

.ck_add {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.ck_add .input {
  flex: 1;
  min-width: 0;
}

/* ---------- 車中泊の場所：autocamp のスポットの候補（2026-10-07） ---------- */
.spot_pick {
  position: relative;
  margin-bottom: 12px;
}
.spot_pick .field {
  margin-bottom: 0;
}
.spot_pick .spot_note {
  margin-top: 6px;
}

.spot_box {
  position: relative;
}

.spot_list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  max-height: 300px;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--gold);
  background: #151514;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.spot_head {
  padding: 8px 14px;
  color: var(--sub);
  font-size: 12px;
}

.spot_opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.spot_opt b {
  font-weight: 500;
}
.spot_opt small {
  color: var(--sub);
  font-size: 12px;
}
.spot_opt:hover, .spot_opt:focus-visible {
  outline: none;
  background: rgba(200, 169, 106, 0.14);
}

/* ---------- スポットの情報（autocamp に「電源あり」などを送る・2026-10-07） ---------- */
.si_spot {
  margin: 0 0 12px;
  color: var(--sub);
  font-size: 13px;
}

.si_box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--card);
}

.si_sum_head {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
}

.si_sum {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.si_sum li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.si_sum b {
  flex-shrink: 0;
  width: 1em;
  color: var(--sub);
  font-weight: 400;
}
.si_sum b.is_yes {
  color: var(--gold_hi);
}
.si_sum b.is_no {
  color: var(--danger);
}
.si_sum small {
  margin-left: auto;
  color: var(--sub);
  font-size: 11px;
  white-space: nowrap;
}

.si_note {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  white-space: pre-line;
}
.si_note small {
  display: block;
  color: var(--sub);
  font-size: 11px;
}

.si_group {
  border-bottom: 1px solid var(--line);
}
.si_group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-weight: 500;
  cursor: pointer;
}
.si_group summary small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 400;
}

.si_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 6px 0;
}
.si_row + .si_row {
  border-top: 1px solid rgba(200, 169, 106, 0.08);
}

.si_label {
  flex: 1 1 120px;
  font-size: 14px;
  line-height: 1.5;
}

.si_seg {
  display: inline-flex;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.si_opt {
  position: relative;
  cursor: pointer;
}
.si_opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.si_opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--sub);
  font-size: 13px;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}
.si_opt + .si_opt span {
  border-left: 1px solid var(--line);
}
.si_opt input:checked + span {
  background: rgba(200, 169, 106, 0.18);
  color: var(--gold_hi);
}
.si_opt input[value="0"]:checked + span {
  background: rgba(224, 103, 107, 0.16);
  color: var(--state_ng);
}
.si_opt input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.si_consent {
  margin: 4px 0 0;
  color: var(--sub);
  font-size: 12px;
}

.btn_spotinfo {
  white-space: nowrap;
}

/* ---------- 装備の点検の目安・電気とガス（2026-10-07） ---------- */
.eq_grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.eq_card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eq_dues {
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.eq_due {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  padding: 3px 0;
  font-size: 13px;
}
.eq_due span {
  min-width: 5.5em;
  color: var(--sub);
}
.eq_due b {
  font-weight: 500;
}
.eq_due .badge {
  margin-left: auto;
}

.eq_hist {
  margin-top: 6px;
  color: var(--sub);
  font-size: 12px;
}
.eq_hist summary {
  min-height: 32px;
  line-height: 32px;
  cursor: pointer;
}
.eq_hist ul {
  margin: 0;
  padding-left: 1.2em;
}

.eq_btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: 10px;
}

.eq_hint {
  margin-top: -4px;
  margin-bottom: 12px;
}

.kpi_note {
  display: block;
  color: var(--sub);
  font-size: 11px;
}

.spot_more {
  margin-top: 4px;
}

.rec_head {
  flex-wrap: wrap;
}

.sec_title span {
  white-space: nowrap;
}

.spot_info_box {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  background: rgba(200, 169, 106, 0.04);
}
.spot_info_box > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--gold_hi);
  font-weight: 500;
  cursor: pointer;
}
.spot_info_box > summary small {
  color: var(--sub);
  font-size: 12px;
  font-weight: 400;
}
.spot_info_box[open] > summary {
  border-bottom: 1px solid var(--line);
}

.spot_info_body {
  padding: 4px 14px 14px;
}
.spot_info_body .si_box {
  margin-top: 10px;
}

/* ---------- 近くの停められる場所（計画の 5・2026-10-07） ---------- */
.nb .page_title {
  margin-bottom: 18px;
}

.nb_car {
  max-width: 420px;
}

.nb_go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 18px 0 8px;
}
.nb_go .field_help {
  margin: 0;
}

.nb_warn {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--danger);
  background: rgba(224, 103, 107, 0.08);
  font-size: 14px;
}

.nb_note {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
}
.nb_note ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

.nb_note_t {
  margin: 0;
  color: var(--gold_hi);
  font-weight: 500;
}

.nb_list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nb_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.nb_main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.nb_main small {
  color: var(--sub);
  font-size: 12px;
}

.nb_side {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.nb_side a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  color: var(--gold);
}

.nb_km {
  color: var(--sub);
  font-family: var(--font_en);
  white-space: nowrap;
}

.nb_badge {
  align-self: flex-start;
  margin: 2px 0;
  padding: 1px 8px;
  border: 1px solid currentColor;
  font-size: 12px;
  white-space: nowrap;
}
.nb_badge.is_blocked {
  color: var(--state_ng);
}
.nb_badge.is_risky {
  color: #e9b46a;
}
.nb_badge.is_likely {
  color: var(--state_ok);
}
.nb_badge.is_unknown {
  color: var(--sub);
}

.sub_title small {
  margin-left: 8px;
  color: var(--sub);
  font-size: 12px;
  font-weight: 400;
}

.nb_caution {
  margin: 10px 0 14px;
  padding: 12px 16px;
  border: 1px solid #e9b46a;
  background: rgba(233, 180, 106, 0.08);
  font-size: 13px;
}
.nb_caution p {
  margin: 0;
}
.nb_caution p + p {
  margin-top: 6px;
}

.nb_caution_t {
  color: #f0c787;
  font-weight: 500;
}

.nb_caution_sub {
  color: var(--sub);
  font-size: 12px;
}

.nb_tabs {
  margin: 0 0 20px;
}

.fp_card {
  margin: 0 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--card);
}

.fp_head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.fp_title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.fp_pref {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fp_pref .input {
  min-height: 44px;
  width: auto;
}

.fp_pref_l {
  flex-shrink: 0;
  color: var(--sub);
  font-size: 12px;
  white-space: nowrap;
}

.fp_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}
.fp_grid dd {
  margin: 0;
}

.fp_cell {
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.fp_cell dt {
  color: var(--sub);
  font-size: 12px;
}
.fp_cell dt small {
  margin-left: 6px;
  color: var(--gold_hi);
  font-size: 11px;
}
.fp_cell.is_mine {
  border-color: var(--gold);
}

.fp_num {
  font-family: var(--font_en);
  font-variant-numeric: tabular-nums;
}
.fp_num b {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 500;
}
.fp_num small {
  margin-left: 2px;
  color: var(--sub);
  font-size: 12px;
}

.fp_diff {
  color: var(--sub);
  font-size: 12px;
  white-space: nowrap;
}
.fp_diff.is_up {
  color: var(--price_up);
}
.fp_diff.is_down {
  color: var(--price_down);
}
.fp_diff > span {
  display: inline-block;
  white-space: nowrap;
}

.fs_item .nb_main b {
  overflow-wrap: anywhere;
}

.fs_price {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 4px 0 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.fs_price b {
  color: var(--gold_hi);
  font-weight: 500;
}
.fs_price small {
  color: var(--sub);
  font-size: 12px;
}

.fs_price_t {
  flex-basis: 100%;
  color: var(--sub);
  font-size: 12px;
}

.fs_rec {
  align-self: flex-start;
  min-height: 44px;
  margin-top: 8px;
}

.fs_gmap_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 12px;
}
.fs_gmap_row .field_help {
  margin: 0;
}

.fs_gmap {
  flex-shrink: 0;
  min-height: 44px;
  white-space: nowrap;
}

.fs_pick_note .fs_gmap {
  margin-left: 8px;
  vertical-align: middle;
}

.fs_pick_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: -4px 0 12px;
}
.fs_pick_row .btn {
  flex-shrink: 0;
  min-height: 44px;
  white-space: nowrap;
}
.fs_pick_row .field_help {
  margin: 0;
}

.fs_pick {
  margin: 0 0 14px;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}
.fs_pick li + li {
  border-top: 1px solid var(--line);
}
.fs_pick .rec_empty {
  padding: 12px;
}

.fs_pick_item {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fs_pick_item small {
  color: var(--sub);
  font-size: 12px;
}
.fs_pick_item:hover, .fs_pick_item:focus-visible {
  background: rgba(200, 169, 106, 0.08);
}

@media (max-width: 640px) {
  .fp_card {
    padding: 14px;
  }
  .fp_grid {
    gap: 6px;
  }
  .fp_cell {
    padding: 8px;
  }
  .fp_cell dt small {
    display: block;
    margin-left: 0;
  }
  .fp_num {
    white-space: nowrap;
  }
  .fp_num b {
    font-size: clamp(17px, 4.8vw, 22px);
  }
  .fp_num small {
    font-size: 11px;
  }
  .fp_diff {
    white-space: normal;
  }
}
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 4px 0 0;
  color: var(--sub);
  font-size: 14px;
  white-space: nowrap;
}
.backlink span {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.2s;
}
.backlink:hover, .backlink:focus-visible {
  color: var(--ink);
}
.backlink:hover span, .backlink:focus-visible span {
  transform: translateX(-3px);
}

.totop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom) + 12px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  color: var(--gold_hi);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  animation: totop_in 0.25s ease-out;
}
.totop[hidden] {
  display: none;
}
.totop:hover, .totop:focus-visible {
  background: rgba(200, 169, 106, 0.16);
}

@keyframes totop_in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (max-width: 640px) {
  .main {
    padding-bottom: 112px;
  }
}
.apps_nav {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.apps_nav_item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.apps_nav_item:first-child {
  border-top: 0;
}

.apps_nav_icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.apps_nav_letter {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.apps_nav_text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.apps_nav_text b {
  font-size: 15px;
  color: var(--ink);
}

.apps_nav_text small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}

.apps_nav_about {
  align-self: flex-start;
  padding: 4px 0;
  font-size: 12px;
  color: var(--sub);
  text-decoration: underline;
}

.apps_nav_item > .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.apps_nav_note {
  font-size: 13px;
  color: var(--sub);
}

.stamp_offer {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: stamp_offer_in 0.25s ease-out;
}

.stamp_offer_text {
  display: grid;
  gap: 2px;
  margin: 0;
}

.stamp_offer_text b {
  font-size: 15px;
}

.stamp_offer_text small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}

.stamp_offer_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stamp_offer_btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.stamp_offer_close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--sub);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@keyframes stamp_offer_in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stamp_offer {
    animation: none;
  }
}
