/* ==========================================================================
   BondDrive －整備アシストAI－  Mobile
   Navy + White + BondDrive Gold accent
   ========================================================================== */

:root {
  --navy-900: #0f1f3a;
  --navy-800: #172b4d;
  --navy-700: #1e3a5f;
  --navy-600: #2c4e6f;
  --navy-500: #3b6491;
  --navy-400: #5a82a8;
  --navy-50:  #eef3f9;
  --navy-bg:  #f5f8fc;

  --gold:       #b89256;
  --gold-deep:  #8f6f3d;
  --gold-soft:  #e8dcc0;
  --gold-bg:    #faf6ec;

  --bg:            var(--navy-bg);
  --surface:       #ffffff;
  --ink:           #0f1f3a;
  --ink-sub:       #506680;
  --ink-mute:      #8a9bb2;
  --line:          #e1e8f0;
  --line-strong:   #c8d3e0;

  --red:     #c0392b;
  --red-bg:  #fdecea;
  --green:   #2f7a4d;
  --green-bg:#e9f5ee;
  --amber:   #b07800;
  --amber-bg:#fdf4d9;
  --blue:    #1e5fc8;
  --blue-bg: #e8f0fc;

  --shadow-sm: 0 1px 2px rgba(15,31,58,0.04), 0 2px 6px rgba(15,31,58,0.05);
  --shadow-md: 0 4px 14px rgba(15,31,58,0.08), 0 2px 4px rgba(15,31,58,0.04);
  --shadow-lg: 0 12px 32px rgba(15,31,58,0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --ff-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
  --ff-serif: "Cormorant Garamond", "Times New Roman", serif;
  --ff-num: "Inter", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh; min-height: 100dvh;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  color: #fff;
  padding: 18px 16px 20px;
  padding-top: calc(18px + env(safe-area-inset-top));
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 12px rgba(15,31,58,0.3);
}
.app-header__menu, .app-header__bell {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; cursor: pointer; flex-shrink: 0;
}
.app-header__menu svg, .app-header__bell svg { width: 20px; height: 20px; }
.app-header__center { flex: 1; min-width: 0; text-align: center; line-height: 1.15; }
.app-header__logoicon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: var(--gold);
  border-radius: 9px; margin-right: 10px; vertical-align: middle;
  box-shadow: 0 2px 8px rgba(184,146,86,0.45);
}
.app-header__logoicon svg { width: 22px; height: 22px; color: #fff; }
.app-header__brand {
  font-family: var(--ff-serif); font-size: 28px; font-weight: 600;
  letter-spacing: 0.04em; color: #fff; line-height: 1.1;
  display: inline-flex; align-items: center;
}
.app-header__brand em { font-style: normal; color: var(--gold); }
.app-header__productname {
  margin-top: 6px; font-size: 14px; font-weight: 700;
  color: #fff; letter-spacing: 0.12em; line-height: 1.25;
}
.app-header__productname span { color: var(--gold); font-size: 15px; }
.app-header__sub {
  margin-top: 4px; font-size: 11px;
  color: rgba(255,255,255,0.85); letter-spacing: 0.08em; font-weight: 500;
  line-height: 1.4;
}

/* Main */
main.page { padding: 16px 16px 24px; }

.section-title {
  font-family: var(--ff-serif); font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-700); font-weight: 600;
  margin: 22px 4px 10px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ""; width: 20px; height: 2px; background: var(--gold); border-radius: 1px;
}
.section-title small {
  font-family: var(--ff-sans); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.04em; font-weight: 500; margin-left: auto; text-transform: none;
}

/* Vehicle card */
.vehicle-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex; gap: 14px; position: relative; overflow: hidden;
}
.vehicle-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy-50) 0%, transparent 45%);
  pointer-events: none;
}
.vehicle-card__img {
  width: 92px; height: 92px; border-radius: 12px;
  background: linear-gradient(135deg, #f0f5fa, #dce7f3);
  display: grid; place-items: center;
  color: var(--navy-500); flex-shrink: 0;
  overflow: hidden; position: relative; z-index: 1;
  border: 1px solid var(--line);
}
.vehicle-card__img img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card__img svg { width: 42px; height: 42px; }

.vehicle-card__body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.vehicle-card__name {
  font-size: 17px; font-weight: 700; letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink);
}
.vehicle-card__meta {
  margin-top: 6px; font-size: 12.5px; color: var(--ink-sub);
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px;
}
.vehicle-card__meta strong { color: var(--ink); font-weight: 600; font-family: var(--ff-num); }

.label-chip {
  display: inline-block; font-size: 10.5px;
  padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-deep);
  background: var(--gold-bg); letter-spacing: 0.06em; font-weight: 600;
}
.label-chip--warn { border-color: var(--red); background: var(--red-bg); color: var(--red); }
.label-chip--new  { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }

.vehicle-select {
  width: 100%; height: 40px; padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23506680'%3e%3cpath d='M8 10L4 6h8z'/%3e%3c/svg%3e") no-repeat right 10px center/14px;
  color: var(--ink); font-family: inherit;
  appearance: none; -webkit-appearance: none; margin-top: 8px;
}

/* Voice */
.voice-panel {
  margin-top: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 16px 18px; box-shadow: var(--shadow-sm); text-align: center;
}
.voice-panel__hint { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.06em; margin-bottom: 12px; }

.mic-btn {
  width: 108px; height: 108px; border-radius: 50%; border: none;
  background: linear-gradient(145deg, #4c7aa8 0%, #1e3a5f 60%, #0f1f3a 100%);
  color: #fff; display: inline-grid; place-items: center; cursor: pointer;
  box-shadow:
    0 10px 28px rgba(15,31,58,0.35),
    inset 0 -4px 10px rgba(0,0,0,0.22),
    inset 0 2px 6px rgba(255,255,255,0.2);
  position: relative; transition: transform .15s ease;
}
.mic-btn::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  border: 1.5px solid rgba(184,146,86,0.4); pointer-events: none;
}
.mic-btn:active { transform: scale(0.96); }
.mic-btn svg { width: 42px; height: 42px; }
.mic-btn.is-recording {
  background: linear-gradient(145deg, #e46b63 0%, #a3241c 60%, #6a120d 100%);
  animation: mic-pulse 1.4s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%,100% { box-shadow: 0 10px 28px rgba(163,36,28,0.35), 0 0 0 0 rgba(230,100,90,0.5); }
  50%     { box-shadow: 0 10px 28px rgba(163,36,28,0.45), 0 0 0 18px rgba(230,100,90,0); }
}

.waveform {
  display: flex; justify-content: center; align-items: end;
  gap: 3px; height: 32px; margin-top: 14px;
}
.waveform span {
  display: block; width: 3px; background: var(--navy-500);
  border-radius: 2px; height: 6px; opacity: 0.25;
  transition: height .15s ease, opacity .15s ease;
}
.waveform.is-active span { opacity: 0.9; animation: wave 1s ease-in-out infinite; }
.waveform.is-active span:nth-child(1){ animation-delay:-0.9s } .waveform.is-active span:nth-child(2){ animation-delay:-0.7s }
.waveform.is-active span:nth-child(3){ animation-delay:-0.5s } .waveform.is-active span:nth-child(4){ animation-delay:-0.3s }
.waveform.is-active span:nth-child(5){ animation-delay:-0.1s } .waveform.is-active span:nth-child(6){ animation-delay:-0.4s }
.waveform.is-active span:nth-child(7){ animation-delay:-0.6s } .waveform.is-active span:nth-child(8){ animation-delay:-0.8s }
.waveform.is-active span:nth-child(9){ animation-delay:-0.2s } .waveform.is-active span:nth-child(10){ animation-delay:-0.5s }
.waveform.is-active span:nth-child(11){ animation-delay:-0.7s } .waveform.is-active span:nth-child(12){ animation-delay:-0.3s }
@keyframes wave { 0%,100% { height:6px } 50% { height:28px } }

.voice-panel__status { margin-top: 10px; font-size: 12px; color: var(--ink-mute); letter-spacing: 0.08em; }
.voice-panel__status.is-active { color: var(--navy-700); font-weight: 600; }

.transcript {
  margin-top: 14px; background: var(--navy-50);
  border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 12px 14px; min-height: 64px;
  text-align: left; font-size: 14px; color: var(--ink);
  line-height: 1.7; white-space: pre-wrap; outline: none;
}
.transcript:empty::before {
  content: "ここに認識されたテキストが表示されます";
  color: var(--ink-mute); font-size: 12.5px;
}
.transcript:focus { background: #fff; border-color: var(--navy-500); border-style: solid; }

.analyze-bar {
  margin-top: 12px; height: 3px; background: var(--line);
  border-radius: 2px; overflow: hidden; display: none;
}
.analyze-bar.is-active { display: block; }
.analyze-bar > span {
  display: block; height: 100%; width: 30%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: scan 1.2s linear infinite;
}
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(380%); } }

/* ============ 写真撮影 ============ */
.photo-panel {
  margin-top: 4px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px 14px 12px; box-shadow: var(--shadow-sm);
}
.photo-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.photo-panel__title { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.photo-panel__title svg { width: 16px; height: 16px; color: var(--gold); }
.photo-panel__count { font-size: 11px; color: var(--ink-mute); font-family: var(--ff-num); font-weight: 600; }

.photo-category-switch {
  display: flex; gap: 4px; margin-bottom: 10px;
  background: var(--navy-50); padding: 3px; border-radius: 8px;
}
.photo-category-switch button {
  flex: 1; border: 0; background: transparent;
  font-size: 11.5px; font-weight: 600; padding: 7px;
  border-radius: 6px; cursor: pointer; color: var(--ink-sub);
  letter-spacing: 0.04em; font-family: inherit;
}
.photo-category-switch button.is-active {
  background: #fff; color: var(--navy-700); box-shadow: var(--shadow-sm);
}

.photo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.photo-thumb {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px;
  overflow: hidden; background: var(--navy-50);
  border: 1px solid var(--line);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.photo-thumb__tag {
  position: absolute; top: 4px; left: 4px;
  background: rgba(15,31,58,0.8); color: #fff;
  font-size: 9px; padding: 2px 6px; border-radius: 4px;
  font-weight: 600; letter-spacing: 0.04em;
}
.photo-thumb__tag.before { background: rgba(30,95,200,0.92); }
.photo-thumb__tag.during { background: rgba(176,120,0,0.92); }
.photo-thumb__tag.after  { background: rgba(47,122,77,0.92); }
.photo-thumb__del {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(192,57,43,0.92); color: #fff;
  border: 0; display: grid; place-items: center;
  cursor: pointer; font-size: 14px; line-height: 1; padding: 0;
}
.photo-add {
  aspect-ratio: 1 / 1; border-radius: 10px;
  border: 1.5px dashed var(--line-strong); background: var(--navy-50);
  color: var(--navy-500); display: grid; place-items: center;
  cursor: pointer; transition: all .15s ease;
  text-align: center; font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
}
.photo-add:hover, .photo-add:active { border-color: var(--gold); background: var(--gold-bg); color: var(--gold-deep); }
.photo-add__icon { display: block; margin: 0 auto 4px; }
.photo-add__icon svg { width: 22px; height: 22px; }

/* Photo lightbox */
.photo-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center;
  z-index: 400; padding: 20px;
}
.photo-lightbox.is-open { display: flex; }
.photo-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.photo-lightbox__close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: 0; color: #fff;
  font-size: 22px; cursor: pointer;
}

/* AIカード */
.ai-cards { display: grid; gap: 12px; }
.ai-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); position: relative;
}
.ai-card__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--navy-50));
}
.ai-card__num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-700); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; font-family: var(--ff-num); flex-shrink: 0;
}
.ai-card__icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy-700); flex-shrink: 0;
}
.ai-card__title {
  font-size: 14.5px; font-weight: 700; letter-spacing: 0.02em;
  flex: 1; color: var(--ink);
}
.ai-card__title small {
  display: block; font-size: 10.5px; color: var(--ink-mute);
  font-weight: 500; margin-top: 1px; letter-spacing: 0.06em;
}
.ai-card__status {
  font-size: 10.5px; padding: 3px 9px; border-radius: 999px;
  background: var(--line); color: var(--ink-sub);
  font-weight: 600; letter-spacing: 0.06em; white-space: nowrap;
}
.ai-card__status.is-ok   { background: var(--green-bg); color: var(--green); }
.ai-card__status.is-wait { background: var(--amber-bg); color: var(--amber); }

.ai-card__body {
  padding: 12px 14px 14px; font-size: 14px; color: var(--ink);
  line-height: 1.8; white-space: pre-wrap; min-height: 40px; outline: none;
}
.ai-card__body[contenteditable="true"]:focus { background: #fbfcfe; }
.ai-card__body:empty::before {
  content: "音声入力するとAIがここに生成します";
  color: var(--ink-mute); font-size: 12.5px;
}
.ai-card__meta-row {
  display: flex; gap: 6px; padding: 0 14px 12px;
  flex-wrap: wrap; align-items: center;
}
.tone-switch {
  display: inline-flex; background: var(--navy-50);
  border-radius: 8px; padding: 3px; gap: 2px;
}
.tone-switch button {
  border: 0; background: transparent;
  font-size: 11.5px; padding: 5px 10px; border-radius: 6px;
  color: var(--ink-sub); cursor: pointer;
  font-weight: 600; letter-spacing: 0.04em; font-family: inherit;
}
.tone-switch button.is-active {
  background: #fff; color: var(--navy-700); box-shadow: var(--shadow-sm);
}

.risk-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px; letter-spacing: 0.08em;
}
.risk-chip.high   { background: var(--red-bg);   color: var(--red); }
.risk-chip.medium { background: var(--amber-bg); color: var(--amber); }
.risk-chip.low    { background: var(--green-bg); color: var(--green); }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 42px; padding: 0 16px;
  border-radius: 10px; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.04em; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); cursor: pointer;
  transition: all .12s ease; white-space: nowrap; font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-sub); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn--primary {
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  color: #fff; border-color: var(--navy-800);
  box-shadow: 0 2px 8px rgba(15,31,58,0.2);
}
.btn--gold {
  background: linear-gradient(180deg, #c79d5f, #8f6f3d);
  color: #fff; border: 1px solid #8f6f3d;
  box-shadow: 0 2px 8px rgba(140, 100, 40, 0.28);
}
.btn--full { width: 100%; }

.action-bar {
  margin-top: 18px;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
}
.action-bar .btn { width: 100%; height: 48px; font-size: 14px; }

/* Tabbar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  min-height: 64px;
}
.tabbar a {
  text-decoration: none; color: var(--ink-mute);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; padding: 10px 4px 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.is-active { color: var(--navy-700); }

.tabbar__mic a { padding-top: 0; }
.tabbar__mic-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(145deg, #3b6491, #1e3a5f);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(15,31,58,0.35);
  margin-top: -18px; margin-bottom: 3px; position: relative;
}
.tabbar__mic-btn::after {
  content: ""; position: absolute; inset: 2px;
  border-radius: 50%; border: 1.5px solid rgba(184,146,86,0.5);
}
.tabbar__mic-btn svg { width: 22px; height: 22px; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(15,31,58,0.55);
  z-index: 200; display: none;
  align-items: flex-end; justify-content: center;
  animation: fade .15s ease;
}
.modal.is-open { display: flex; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  background: #fff; border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  width: 100%; max-width: 560px;
  box-shadow: 0 -10px 40px rgba(15,31,58,0.3);
  animation: slide .2s ease;
}
@keyframes slide { from { transform: translateY(20px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }

.sheet__handle { width: 40px; height: 4px; border-radius: 3px; background: var(--line-strong); margin: -4px auto 14px; }
.sheet__title {
  font-family: var(--ff-serif); font-size: 19px; font-weight: 600;
  letter-spacing: 0.03em; margin-bottom: 6px; color: var(--ink);
}
.sheet__desc { font-size: 12.5px; color: var(--ink-sub); margin-bottom: 16px; }

.send-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 8px;
  cursor: pointer; transition: all .12s ease; background: #fff;
}
.send-option:hover { border-color: var(--navy-500); background: var(--navy-50); }
.send-option__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-50); color: var(--navy-700);
  display: grid; place-items: center; flex-shrink: 0;
}
.send-option__body { flex: 1; }
.send-option__title { font-size: 14px; font-weight: 700; color: var(--ink); }
.send-option__desc  { font-size: 11.5px; color: var(--ink-sub); margin-top: 2px; }
.send-option__arrow { color: var(--ink-mute); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900); color: #fff;
  padding: 12px 18px; border-radius: 10px;
  font-size: 13px; letter-spacing: 0.04em;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: all .2s ease;
  z-index: 300; max-width: 80vw; text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* List card */
.list-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow-sm);
  display: block; text-decoration: none; color: inherit;
}
.list-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list-card__name { font-weight: 700; font-size: 15px; color: var(--ink); }
.list-card__date { font-size: 11px; color: var(--ink-mute); font-family: var(--ff-num); }
.list-card__meta { font-size: 12px; color: var(--ink-sub); margin-top: 4px; }
.list-card__body {
  font-size: 13px; color: var(--ink); margin-top: 8px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.list-card__status-row { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.status-pill {
  font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  background: var(--line); color: var(--ink-sub);
  font-weight: 600; letter-spacing: 0.04em;
}
.status-pill.is-done { background: var(--green-bg); color: var(--green); }
.status-pill.is-wait { background: var(--amber-bg); color: var(--amber); }

/* Setting */
.setting-group {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px;
}
.setting-group h3 {
  margin: 0 0 10px; font-size: 13px;
  letter-spacing: 0.06em; color: var(--navy-700); font-weight: 700;
}
.setting-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.setting-row:first-of-type { border-top: 0; }
.setting-row span:last-child { color: var(--ink-sub); font-size: 13px; }

@media (max-width: 360px) {
  .vehicle-card__img { width: 76px; height: 76px; }
  .vehicle-card__name { font-size: 15.5px; }
  .action-bar { grid-template-columns: 1fr 1fr; }
  .action-bar > :nth-child(3) { grid-column: 1 / -1; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .app-header__brand { font-size: 24px; }
  .app-header__productname { font-size: 12.5px; }
  .app-header__sub { font-size: 10.5px; }
}

input, textarea, select, button { font-size: 16px; }

/* ============ サイドドロワーメニュー ============ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15,31,58,0.55);
  z-index: 190;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 84%; max-width: 320px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #fff;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform .25s ease;
  padding: calc(20px + env(safe-area-inset-top)) 0 calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  box-shadow: 8px 0 32px rgba(0,0,0,0.4);
}
.drawer.is-open { transform: translateX(0); }

.drawer__head {
  padding: 10px 20px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.drawer__logoicon {
  width: 42px; height: 42px; background: var(--gold);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(184,146,86,0.45);
}
.drawer__logoicon svg { width: 24px; height: 24px; color: #fff; }
.drawer__brandtext { min-width: 0; }
.drawer__brand {
  font-family: var(--ff-serif);
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.04em; color: #fff; line-height: 1;
}
.drawer__brand em { font-style: normal; color: var(--gold); }
.drawer__product {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em;
  margin-top: 4px;
  color: rgba(255,255,255,0.85);
}
.drawer__product span { color: var(--gold); }

.drawer__close {
  position: absolute; top: 14px; right: 14px;
  padding-top: env(safe-area-inset-top);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 0; color: #fff;
  font-size: 24px; cursor: pointer;
  display: grid; place-items: center;
}

.drawer__nav {
  padding: 16px 12px;
  flex: 1; overflow-y: auto;
}
.drawer__navtitle {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.4);
  padding: 8px 14px 6px;
  font-weight: 700;
}
.drawer__nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .12s ease;
}
.drawer__nav a:active { background: rgba(255,255,255,0.08); }
.drawer__nav a.is-active {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 2px 8px rgba(184,146,86,0.4);
}
.drawer__nav a svg { width: 20px; height: 20px; flex-shrink: 0; }
.drawer__nav .sep {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 14px 6px;
}
.drawer__foot {
  padding: 12px 22px;
  font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============ 入庫時写真（intake） ============ */
.intake-panel {
  margin-top: 14px;
  background: linear-gradient(135deg, #fff 60%, #fff5ed 100%);
  border: 1.5px solid #e8b894;
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.intake-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #d95a2a, #b84515);
}
.intake-panel__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.intake-panel__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, #d95a2a, #b84515);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(217,90,42,0.35);
}
.intake-panel__icon svg { width: 18px; height: 18px; }
.intake-panel__title {
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--ink);
  flex: 1;
}
.intake-panel__title small {
  display: block;
  font-size: 10.5px; font-weight: 600;
  color: #b84515;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.intake-panel__count {
  font-size: 11px; color: var(--ink-mute);
  font-family: var(--ff-num); font-weight: 600;
}
.intake-panel__hint {
  font-size: 12px;
  color: var(--ink-sub);
  padding: 8px 10px;
  background: #fff5ed;
  border-radius: 8px;
  border: 1px dashed #e8b894;
  margin: 8px 0 10px;
  line-height: 1.6;
}
.intake-panel__hint strong { color: #b84515; }

.intake-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(180deg, #d95a2a, #b84515);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217,90,42,0.35);
  font-family: inherit;
  transition: all .12s ease;
}
.intake-btn:active { transform: translateY(1px); box-shadow: 0 2px 6px rgba(217,90,42,0.35); }
.intake-btn svg { width: 22px; height: 22px; }

.photo-thumb__tag.intake {
  background: rgba(184,69,21,0.92);
}
