/* サカイタイムズ 防犯マップ */
.stim { margin: 0 0 32px; font-size: 15px; line-height: 1.6; color: #222; }
.stim *, .stim *::before, .stim *::after { box-sizing: border-box; }
.stim button { font: inherit; cursor: pointer; }

.stim-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.stim-period { display: inline-flex; border: 1px solid #d6d6d6; border-radius: 999px; overflow: hidden; background: #fff; }
.stim-period button { border: 0; background: transparent; padding: 7px 14px; font-size: 14px; color: #444; line-height: 1.2; }
.stim-period button + button { border-left: 1px solid #e3e3e3; }
.stim-period button[aria-pressed="true"] { background: #222; color: #fff; font-weight: 700; }
.stim-ward { border: 1px solid #d6d6d6; border-radius: 8px; padding: 7px 30px 7px 10px; font-size: 14px; background-color: #fff; min-height: 36px; }

.stim-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.stim-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d6d6d6; background: #fff; color: #333; border-radius: 999px; padding: 5px 12px 5px 9px; font-size: 13px; line-height: 1.2; }
.stim-chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--c); }
.stim-chip b { font-weight: 700; color: #111; }
.stim-chip[aria-pressed="false"] { opacity: .45; background: #f3f3f3; text-decoration: line-through; }
.stim-chip[aria-pressed="false"] i { background: transparent; }

.stim-mapwrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid #ddd; box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.stim-map { height: min(68vh, 600px); min-height: 360px; background: #eef1f3; z-index: 0; }
.stim-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 700; font-size: 16px; text-align: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 800; }
.stim-hint.is-on { opacity: 1; }

.stim-pin-wrap { background: none; border: 0; }
.stim-pin { display: block; width: 18px; height: 18px; margin: 3px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.stim-pin.is-new { width: 22px; height: 22px; margin: 1px; }
.stim-pin.is-new::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--c); animation: stim-pulse 1.8s ease-out infinite; }
.stim-pin { position: relative; }
@keyframes stim-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stim-pin.is-new::after { animation: none; opacity: .5; } }

.stim .leaflet-popup-content-wrapper { border-radius: 10px; }
.stim .leaflet-popup-content { margin: 12px 14px; }
.stim-pop p { margin: 0 0 4px; }
.stim-pop__meta { font-size: 12px; color: #555; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.stim-pop__place { font-size: 12px; color: #555; }
.stim-pop__title { font-size: 14px; font-weight: 700; line-height: 1.45; }
.stim .stim-pop__title a { color: #111; text-decoration: none; }
.stim-pop__more { margin-top: 6px !important; }
.stim .stim-pop__more a { display: inline-block; background: #f7bb5d; color: #222; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 6px; text-decoration: none; }

.stim-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--c, #888); border-radius: 4px; padding: 1px 6px; line-height: 1.6; }

.stim-status { margin: 8px 0 0; font-size: 13px; color: #444; font-weight: 700; }
.stim-note { margin: 2px 0 12px; font-size: 12px; color: #777; }

.stim-list { border: 1px solid #ddd; border-radius: 10px; background: #fff; }
.stim-list > summary { padding: 12px 14px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 4px; }
.stim-list > summary::-webkit-details-marker { display: none; }
.stim-list > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid #444; border-bottom: 2px solid #444; transform: rotate(-45deg); margin-right: 6px; transition: transform .15s; }
.stim-list[open] > summary::before { transform: rotate(45deg); }
.stim-list ol { list-style: none; margin: 0; padding: 0 14px 6px; max-height: 520px; overflow: auto; }
.stim-list li { border-top: 1px solid #eee; padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.stim-list li p { margin: 0; }
.stim-li__meta { font-size: 12px; color: #555; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; grid-column: 1; }
.stim-li__title { grid-column: 1; font-size: 14px; font-weight: 700; line-height: 1.45; }
.stim .stim-li__title a { color: #111; text-decoration: none; }
.stim-li__go { grid-column: 2; grid-row: 1 / span 2; border: 1px solid #ccc; background: #fafafa; border-radius: 6px; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.stim-empty { color: #777; display: block !important; }

@media (max-width: 640px) {
  .stim-map { height: 62vh; min-height: 320px; }
  .stim-period { width: 100%; }
  .stim-period button { flex: 1; padding: 8px 4px; }
  .stim-ward { width: 100%; }
  .stim-chip { font-size: 12px; padding: 5px 10px 5px 8px; }
  .stim-mapwrap { border-radius: 10px; }
}
