/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  color: #1a1a1a;
  background: #f5f5f5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #ff8800; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---- Layout ---- */
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* ---- Header ---- */
.site-header {
  background: #ff8800;
  color: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: .04em;
}
.logo:hover { text-decoration: none; opacity: .9; }
.tagline {
  font-size: .75rem;
  opacity: .9;
}
.header-count {
  margin-left: auto;
  font-size: .7rem;
  opacity: .85;
  white-space: nowrap;
}

/* ---- Footer ---- */
.site-footer {
  background: #333;
  color: #ccc;
  padding: 32px 0 24px;
  margin-top: 48px;
  font-size: .85rem;
}
.footer-inner { max-width: 960px; margin: 0 auto; padding: 0 16px; text-align: center; }
.copyright { opacity: .6; }

/* ---- Loading ---- */
.loading {
  text-align: center;
  padding: 64px 0;
  color: #888;
  font-size: .95rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: .8rem;
  padding: 12px 0;
  color: #888;
}
.breadcrumb a { color: #ff8800; }
.sep { margin: 0 6px; }

/* ---- Hero (Top) ---- */
.hero {
  background: linear-gradient(135deg, #ff8800, #ff6600);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  margin: 20px 0 28px;
}
.hero h1 { font-size: 1.6rem; font-weight: 800; }
.hero-sub { margin-top: 8px; font-size: .95rem; opacity: .9; }

/* ---- Section Title ---- */
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #ff8800;
}

/* ---- Region Grid ---- */
.region-grid-section { margin-bottom: 32px; }
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.region-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  transition: box-shadow .15s, transform .15s;
  color: #1a1a1a;
}
.region-card:hover {
  box-shadow: 0 4px 14px rgba(255,136,0,.18);
  transform: translateY(-2px);
  text-decoration: none;
}
.region-emoji { font-size: 1.6rem; margin-bottom: 4px; }
.region-name { font-weight: 700; font-size: .95rem; }
.region-count { font-size: .75rem; color: #ff8800; margin-top: 2px; }

/* ---- Page Title ---- */
.page-title { font-size: 1.4rem; font-weight: 800; margin: 8px 0 4px; }
.page-subtitle { font-size: .85rem; color: #888; margin-bottom: 20px; }

/* ---- Area List ---- */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.area-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  color: #1a1a1a;
  transition: box-shadow .15s;
}
.area-card:hover {
  box-shadow: 0 3px 10px rgba(255,136,0,.15);
  text-decoration: none;
}
.area-name { font-weight: 600; }
.area-count { font-size: .8rem; color: #ff8800; }

/* ---- Shop Cards (Paid) ---- */
.paid-shops { margin-bottom: 28px; }
.shop-card.paid {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  margin-bottom: 16px;
  color: #1a1a1a;
  transition: box-shadow .15s;
}
.shop-card.paid:hover {
  box-shadow: 0 4px 16px rgba(255,136,0,.18);
  text-decoration: none;
}
.shop-card-img {
  width: 140px;
  min-height: 120px;
  background: #eee center/cover no-repeat;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.no-img { color: #bbb; font-size: .75rem; }
.shop-card-body { padding: 14px 16px; flex: 1; }
.shop-card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.shop-card-catch { font-size: .85rem; color: #555; margin-bottom: 4px; }
.shop-card-info { font-size: .8rem; color: #888; }

/* ---- Free Shops ---- */
.free-shops { margin-bottom: 28px; }
.free-shops-title {
  font-size: 1rem;
  font-weight: 600;
  color: #888;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.free-shop-list { list-style: none; }
.free-shop-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.free-shop-name { font-weight: 600; }
.free-shop-address { color: #666; }
.free-shop-phone { color: #888; }

/* ---- Accordion ---- */
.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #fff;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  margin-bottom: 0;
}
.accordion-toggle:hover { background: #fff8f0; }
.accordion-arrow { font-size: .75rem; color: #ff8800; transition: transform .2s; }
.accordion-toggle.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  display: none;
  padding: 16px 0 0;
}
.accordion-body.open { display: block; }

/* ---- City Filter ---- */
.cities-section { margin-bottom: 12px; }
.city-list { display: flex; flex-wrap: wrap; gap: 8px; }
.city-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #ffe0b2;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .8rem;
  color: #1a1a1a;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.city-tag:hover { background: #fff8f0; border-color: #ff8800; }
.city-tag.active { background: #ff8800; color: #fff; border-color: #ff8800; }

/* ---- Lines / Stations ---- */
.lines-section { margin-bottom: 28px; }
.line-group { margin-bottom: 16px; }
.line-name {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.line-company { font-size: .75rem; color: #888; font-weight: 400; }
.line-count { font-size: .75rem; color: #ff8800; font-weight: 600; }
.station-list { display: flex; flex-wrap: wrap; gap: 8px; }
.station-tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #ffe0b2;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .8rem;
  color: #1a1a1a;
  transition: background .15s, border-color .15s;
}
.station-tag:hover {
  background: #fff8f0;
  border-color: #ff8800;
  text-decoration: none;
}
.station-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.station-line-badge {
  display: inline-block;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .8rem;
  color: #ff8800;
  font-weight: 600;
}

/* ---- Shop Detail ---- */
.shop-detail { margin-top: 8px; }
.shop-hero {
  width: 100%;
  height: 240px;
  background: #eee center/cover no-repeat;
  border-radius: 12px;
  margin-bottom: 16px;
}
.shop-detail-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.shop-detail-catch { font-size: 1rem; color: #555; margin-bottom: 8px; }
.shop-detail-desc { font-size: .9rem; color: #444; margin-bottom: 16px; line-height: 1.8; }
.shop-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff8f0;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .85rem;
}
.info-icon { font-size: 1.1rem; }
.shop-link { margin-top: 8px; }
.shop-link a {
  display: inline-block;
  background: #ff8800;
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: .9rem;
}
.shop-link a:hover { opacity: .9; text-decoration: none; }

/* ---- Highlight ---- */
@keyframes flash-orange {
  0% { background-color: #fff3e0; }
  100% { background-color: transparent; }
}
.highlight { animation: flash-orange 1.2s ease-out; }

/* ---- Error ---- */
.error { text-align: center; padding: 40px 0; color: #c00; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.25rem; }
  .region-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .region-card { padding: 12px 6px; }
  .region-emoji { font-size: 1.3rem; }
  .area-list { grid-template-columns: 1fr; }
  .shop-card.paid { flex-direction: column; }
  .shop-card-img { width: 100%; height: 160px; }
  .shop-hero { height: 180px; }
  .free-shop-item { flex-direction: column; gap: 2px; }
}
