/* ===== Hero title row ===== */
.hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-menu-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f5f6fa;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.hero-menu-btn:active {
  transform: translateY(1px);
}

.hero-menu-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* 選択中都道府県 */
.selected-pref-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.selected-pref-label {
  color: #6b7280;
}

.selected-pref-name {
  color: #111827;
  font-weight: 700;
}

/* ===== Overlay ===== */
.pref-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 999;
}

.pref-menu-overlay.is-show {
  opacity: 1;
}

/* ===== Drawer ===== */
.pref-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(88vw, 380px);
  height: 100dvh;
  background: #f1f2f6;
  border-right: 1px solid #e5e7eb;
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.12);
}

.pref-drawer.is-open {
  transform: translateX(0);
}

.pref-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: #f1f2f6;
  z-index: 1;
}

.pref-drawer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.pref-drawer-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: #FFF;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.pref-drawer-body {
  overflow: auto;
  padding: 10px 12px 16px;
  -webkit-overflow-scrolling: touch;
}

/* ===== Group ===== */
.pref-group + .pref-group {
  margin-top: 14px;
}

.pref-group-title {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pref-list {
  display: grid;
  gap: 6px;
}

.pref-item {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.pref-item:hover {
  background: #f8fafc;
}

.pref-item.is-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.pref-item-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 12px;
}

.pref-item-name {
  font-size: 16px;
  font-weight: bold;
  color: #111827;
}

/* ドロワー表示中は背面スクロールを止める */
body.drawer-open {
  overflow: hidden;
}