/* キッチンカー営業中マップ - 共通スタイル（スマホ対応・シンプル） */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: #faf7f2;
  color: #333;
  line-height: 1.6;
}
.site-header {
  background: #e8590c;
  color: #fff;
  padding: 16px;
  text-align: center;
}
.site-header h1 { margin: 0; font-size: 1.4rem; }
.site-header .tagline { margin: 4px 0 0; font-size: .9rem; opacity: .9; }

.container { max-width: 960px; margin: 0 auto; padding: 16px; }
.container.narrow { max-width: 640px; }

.controls {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 12px;
}
.controls input[type="search"] { flex: 1 1 200px; }
.controls input, .controls select,
form input, form select, form textarea {
  padding: 10px; border: 1px solid #ccc; border-radius: 8px;
  font-size: 1rem; background: #fff; width: 100%;
}
.controls input, .controls select { width: auto; }
.fav-count { font-size: .9rem; }

#map {
  height: 420px; border-radius: 12px; overflow: hidden;
  border: 1px solid #ddd; background: #e8e8e8;
}
@media (max-width: 600px) { #map { height: 320px; } }
.updated { font-size: .8rem; color: #888; text-align: right; }

.shop-list {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: #fff; border: 1px solid #e5ddd2; border-radius: 12px;
  padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.card h3 { margin: 0; font-size: 1.1rem; }
.heart {
  border: none; background: none; font-size: 1.5rem; cursor: pointer;
  color: #bbb; line-height: 1; padding: 0 0 0 8px;
}
.heart.active { color: #e03131; }
.meta { color: #777; font-size: .9rem; margin: 4px 0; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: bold;
}
.badge.open { background: #d3f9d8; color: #2b8a3e; }
.badge.closed { background: #e9ecef; color: #868e96; }
.comment { margin: 8px 0 0; }
.until { margin: 4px 0 0; font-size: .9rem; color: #555; }
.desc { margin: 8px 0 0; font-size: .9rem; color: #555; }
.muted { color: #888; font-size: .9rem; }

form label { display: block; margin: 12px 0; font-weight: bold; font-size: .95rem; }
form label input, form label textarea { margin-top: 4px; font-weight: normal; }
.btn {
  display: inline-block; padding: 10px 20px; border: 1px solid #ccc;
  border-radius: 8px; background: #fff; color: #333; font-size: 1rem; cursor: pointer;
}
.btn.primary { background: #e8590c; border-color: #e8590c; color: #fff; font-weight: bold; }
.btn.danger { background: #e03131; border-color: #e03131; color: #fff; }
.btn.big { width: 100%; padding: 14px; font-size: 1.1rem; }
.logout-form { margin: 16px 0; }
form.inline { display: inline; }

.notice {
  background: #d3f9d8; border: 1px solid #8ce99a; color: #2b8a3e;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 12px;
}
.errors {
  background: #ffe3e3; border: 1px solid #ffa8a8; color: #c92a2a;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 12px;
}
.errors ul { margin: 0; padding-left: 20px; }

.status-box { padding: 14px; border-radius: 12px; margin: 12px 0; }
.status-box.open { background: #d3f9d8; }
.status-box.closed { background: #e9ecef; }
.status-box p { margin: 4px 0; }

table.history { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
table.history th, table.history td {
  border: 1px solid #e5ddd2; padding: 8px; text-align: left; vertical-align: top;
}
table.history th { background: #fff4e6; }
td.actions { white-space: nowrap; }

.site-footer { margin-top: 32px; text-align: center; color: #777; font-size: .9rem; }
a { color: #e8590c; }

/* 現在地ボタン */
.locate-btn { padding: 8px 14px; font-size: .95rem; }

/* お店アイコンの地図ピン（divIcon） */
.shop-pin { background: none; border: none; }
.shop-pin-img {
  width: 44px; height: 44px; display: block;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.45);
  background: #fff;
}
.shop-pin-img.default {
  border-radius: 12px; object-fit: contain; padding: 2px;
  border: 2px solid #e8590c;
}
.shop-pin-tail {
  width: 0; height: 0; margin: -3px auto 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 11px solid #e8590c;
}

/* 一覧カードのお店アイコン */
.card-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card-icon {
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 50%; object-fit: cover;
  border: 1px solid #e5ddd2; background: #fff;
}
.card-icon.default { border-radius: 10px; object-fit: contain; padding: 2px; }

/* 場所検索 */
.place-controls input[type="search"] { flex: 1 1 200px; }

/* Live配信バッジ */
.live-badge {
  display: inline-block; background: #e03131; color: #fff;
  padding: 2px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: bold; text-decoration: none;
  vertical-align: middle; margin-left: 6px;
}
a.live-badge { color: #fff; }

/* お店側: ピン調整マップ */
.pin-map {
  height: 300px; border-radius: 12px; overflow: hidden;
  border: 1px solid #ddd; background: #e8e8e8; margin: 8px 0;
  z-index: 0;
}
.live-check { font-weight: bold; }
.live-check input { width: auto; }

/* ダッシュボードの現在アイコン */
.dash-icon {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover;
  border: 1px solid #e5ddd2; background: #fff;
}

/* 出店カレンダー */
.cal { width: 100%; border-collapse: collapse; background: #fff; margin: 8px 0 16px; table-layout: fixed; }
.cal th, .cal td { border: 1px solid #e5ddd2; padding: 4px; vertical-align: top; font-size: .8rem; }
.cal th { background: #fff4e6; text-align: center; }
.cal th.sun { color: #e03131; }
.cal th.sat { color: #1971c2; }
.cal td { height: 64px; }
.cal td.today { outline: 2px solid #e8590c; outline-offset: -2px; }
.cal td.has-stall { background: #fff4e6; }
.cal-day { display: block; font-weight: bold; }
.cal-place { display: block; font-size: .68rem; color: #b3540a; word-break: break-all; }
.next-sched { color: #2b6a2b; font-weight: bold; margin: 6px 0; }
.btn.small { padding: 4px 12px; font-size: .85rem; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; z-index: 1000; overflow-y: auto; }
.modal-box { background: #fff; border-radius: 12px; padding: 16px; width: 100%; max-width: 560px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
.cal-list { margin: 4px 0 8px; padding-left: 20px; }
.img-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 8px 0 16px; }
.img-controls label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
