    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      padding: 18px;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
      background: #f5f1e8;
      color: #222;
    }

    .app {
      width: min(1180px, 100%);
      margin: 0 auto;
    }

    h1 {
      margin: 4px 0 8px;
      text-align: center;
      font-size: clamp(24px, 4vw, 42px);
    }

    .note {
      margin: 0 0 14px;
      text-align: center;
      font-size: 13px;
      color: #555;
    }

    .summary {
      position: sticky;
      top: 0;
      z-index: 10;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;
      margin-bottom: 14px;
      padding: 12px;
      border: 1px solid #c8bfae;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(8px);
      box-shadow: 0 3px 10px rgba(0,0,0,.08);
      font-weight: 700;
    }

    #count {
      font-size: 18px;
    }

    #percent {
      color: #a40012;
    }

    #shops {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
    }

    .shop {
      position: relative;
      min-height: 76px;
      padding: 0;
      overflow: hidden;
      border: 1px solid #777;
      border-radius: 3px;
      background: #fff;
      cursor: pointer;
      
      transition: opacity .15s, transform .15s, box-shadow .15s;
      -webkit-tap-highlight-color: transparent;
    }

    .shop:hover {
      opacity: .72;
    }

    .shop.visited {
      opacity: 1;
      transform: translateY(-1px);
      box-shadow: 0 0 0 3px #ffd84d, 0 4px 10px rgba(0,0,0,.22);
    }

    .shop.visited::after {
      content: "✓";
      position: absolute;
      top: 3px;
      right: 5px;
      width: 24px;
      height: 24px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      color: #111;
      background: #ffdf43;
      font-weight: 900;
    }

    .name {
      min-height: 45px;
      display: grid;
      place-items: center;
      padding: 7px 28px 7px 6px;
      color: white;
      font-size: 15px;
      line-height: 1.2;
      text-align: center;
      font-weight: 700;
    }

    .red {
      background: #b31328;
    }

    .blue {
      background: #0b829f;
    }

    .area {
      min-height: 29px;
      display: grid;
      place-items: center;
      padding: 4px 3px;
      background: #f8f8f8;
      color: #222;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.15;
      text-align: center;
    }

    .actions {
      display: flex;
      justify-content: center;
      margin-top: 18px;
    }

    .reset {
      padding: 10px 16px;
      border: 1px solid #999;
      border-radius: 8px;
      background: white;
      cursor: pointer;
    }

    @media (max-width: 900px) {
      #shops {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (max-width: 620px) {
      body {
        padding: 10px;
      }

      #shops {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
      }

      .name {
        font-size: 14px;
      }

      .summary {
        gap: 8px;
        font-size: 14px;
      }
    }

.filters {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.filters button {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid #bbb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

.filters button.active {
  background: #333;
  color: white;
}

#share-x ,
#share-x-top {  
  display: block;
  margin: 10px auto;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

#shop-search {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border: 1px solid #bbb;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}

#area-filter {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border: 1px solid #bbb;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}

#share-facebook-top {
display: block;
margin: 10px auto 18px;
padding: 12px 24px;
border: none;
border-radius: 999px;
background: #1877f2;
color: #fff;
font-weight: bold;
cursor: pointer;
}

#share-threads-top {
  display: block;
  margin: 10px auto 18px;
  padding: 12px 24px;
  border: none;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

.map-button {
  display: block;
  margin: 6px auto 4px;
  padding: 4px 10px;
  border: 1px solid #bbb;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 12px;
  cursor: pointer;
}

.map-button:hover {
  background: #f0f0f0;
}

.shop:not(.visited) .map-button {
  opacity: 1;
  color: #333;
  background: #fff;
}
.shop:not(.visited) .map-button {
  opacity: 1;
  filter: none;
}

.shop:not(.visited) .name,
.shop:not(.visited) .area {
  opacity: 0.48;
}

.hours-notice {
  max-width: 880px;
  margin: 14px auto 18px;
  padding: 12px 16px;
  background: #fffaf0;
  border: 1px solid #d8c9a7;
  border-radius: 10px;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

.hours-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #333;
  font-size: 14px;
}

.hours-notice p {
  margin: 0;
}

@media (max-width: 600px) {
  .hours-notice {
    padding: 9px 12px;
    font-size: 12px;
    line-height: 1.5;
    margin: 10px auto 12px;
  }

  .hours-notice strong {
    font-size: 13px;
    margin-bottom: 2px;
  }
}

@media (max-width: 600px) {
  #filter-open {
    font-size: 12px;
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  #result-count {
    width: 100%;
    text-align: center;
    margin: 8px 0 6px;
    font-size: 13px;
    font-weight: 600;
  }
}
@media (max-width: 600px) {
  .filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .filters button {
    width: 100%;
    margin: 0;
  }
}