:root {
  --ssm-milk: #fffdfb;
  --ssm-sky: #edf7fb;
  --ssm-sky-deep: #dceff6;
  --ssm-pink: #d98383;
  --ssm-pink-soft: #faecec;
  --ssm-ink: #3f4b50;
  --ssm-muted: #738087;
  --ssm-line: #e2edf0;
}

.ssm-wrap {
  color: var(--ssm-ink);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.ssm-heading {
  padding: 28px 2px 25px;
  margin-bottom: 24px;
  border: 0;
  border-bottom: 1px solid #e3ecef;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ssm-heading::after {
  content: none;
}

.ssm-heading > p:first-child {
  margin: 0;
  color: var(--ssm-pink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.ssm-heading h1 {
  max-width: none;
  margin: 9px 0 11px;
  color: #3e4b50;
  font-family: inherit;
  font-size: clamp(29px, 3.8vw, 43px);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.4;
}

.ssm-heading > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--ssm-muted);
  font-size: 14px;
  line-height: 1.9;
}

.ssm-filters {
  gap: 10px;
  margin-bottom: 18px;
}

.ssm-filters button {
  border: 1px solid #dcebef;
  background: #fff;
  color: #66777e;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(70, 110, 125, .05);
}

.ssm-filters button.is-active {
  border-color: var(--ssm-pink);
  background: var(--ssm-pink);
  color: #fff;
}

#ssm-map {
  height: 390px;
  min-height: 0;
  border: 1px solid #dce7ea;
  border-radius: 18px;
  background: #eef3f3;
  box-shadow: 0 9px 26px rgba(69, 105, 118, .09);
  overflow: hidden;
}

.ssm-map-pin-wrap {
  background: transparent;
  border: 0;
}

.ssm-map-pin {
  display: block;
  position: relative;
  width: 25px;
  height: 25px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #d98282;
  box-shadow: 0 4px 9px rgba(69, 74, 78, .28);
  transform: rotate(-45deg);
}

.ssm-map-pin::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: 9px;
  left: 9px;
  border-radius: 50%;
  background: #fff;
}

#ssm-map .leaflet-tile-pane {
  filter: saturate(.62) contrast(.91) brightness(1.06);
}

#ssm-map .leaflet-control-zoom a {
  border-color: #dce6e8;
  color: #53666d;
}

.ssm-count span,
.ssm-card-area,
.ssm-card-flavor {
  color: var(--ssm-pink);
}

.ssm-card-area {
  margin: 0 0 5px;
  font-size: 12px;
  font-weight: 700;
}

.ssm-card-flavor {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.ssm-count {
  margin: 18px 0 11px;
  color: #7a878c;
  font-size: 13px;
}

.ssm-count span {
  margin-right: 2px;
  font-size: 18px;
}

.ssm-card {
  border-color: var(--ssm-line);
  border-radius: 20px;
  box-shadow: 0 8px 26px rgba(70, 104, 115, .08);
}

.ssm-card h2 {
  font-family: inherit;
  font-weight: 700;
}

.ssm-noimage {
  background: var(--ssm-sky);
}

.ssm-single {
  background: #f6fafb;
}

.ssm-taste {
  background: linear-gradient(135deg, #fff8f4, #faeeee);
}

.ssm-taste h2 {
  color: #bd6f6f;
}

.ssm-article {
  background: var(--ssm-pink);
}

.ssm-collection {
  border: 1px solid #e5baba;
  background: #fff;
  color: #b96f6f;
}

.ssm-card-collection {
  display: inline-flex;
  margin-top: 12px;
  color: #bd7373;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
}

.ssm-card-collection:hover {
  color: #9f5d5d;
  text-decoration: underline;
}

.ssm-price {
  white-space: pre-line;
}

@media (max-width: 800px) {
  .ssm-heading {
    padding: 22px 0 20px;
  }

  .ssm-heading h1 {
    max-width: none;
    font-size: clamp(28px, 9vw, 38px);
  }

  .ssm-heading > p:last-child {
    max-width: none;
    font-size: 13px;
  }

  #ssm-map {
    height: 400px;
    min-height: 0;
  }

  .ssm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .ssm-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    border: 1px solid #e4eaec;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
  }

  .ssm-card > div {
    display: flex;
    min-height: 84px;
    flex-direction: column;
    padding: 8px 6px 9px;
  }

  .ssm-card-area {
    margin: 0 0 4px;
    font-size: 10px;
    line-height: 1.3;
  }

  .ssm-card-flavor,
  .ssm-card h2 + p,
  .ssm-card .ssm-price,
  .ssm-card-collection {
    display: none;
  }

  .ssm-card h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--ssm-ink);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .ssm-card h2 a {
    color: inherit;
  }

  .ssm-card-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  .ssm-card img,
  .ssm-noimage {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    object-fit: cover;
  }
}
