
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #e8e8e8;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: #E8F4FA;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.container {
  padding: 0 16px;
}

.header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 0;
}

.header-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo img {
  height: 24px;
  display: block;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #F3F4F6;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.sticky-nav {
  position: sticky;
  top: 0;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  z-index: 90;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px;
}

.nav-btn {
  flex: 1;
  padding: 8px 12px;
  background-color: white;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}

.nav-btn:hover {
  border-color: #3D7FE0;
}

.nav-btn.active {
  background-color: #3D7FE0;
  border-color: #3D7FE0;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-btn[data-section="pickup"]:hover  { border-color: #FF5A6B; }
.nav-btn[data-section="catalog"]:hover { border-color: #FFA53D; }
.nav-btn[data-section="new"]:hover     { border-color: #FFDE4A; }

.nav-btn[data-section="pickup"].active {
  background-color: #FF5A6B;
  border-color: #FF5A6B;
}
.nav-btn[data-section="catalog"].active {
  background-color: #FFA53D;
  border-color: #FFA53D;
}
.nav-btn[data-section="new"].active {
  background-color: #FFDE4A;
  border-color: #FFDE4A;
  color: #333;
}

.section-pickup {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding-bottom: 40px;

  background: linear-gradient(180deg,
    #2498ec 0%,
    #2498ec 18%,
    #A8E6F0 55%,
    #A8E6F0 100%
  );
}

.must-go-text {
  position: absolute;
  top: -25px;
  left: -5px;
  font-size: min(27vw, 130px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.12em;
  white-space: nowrap;
  font-family: system-ui, -apple-system, sans-serif;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  color: #FFFFFF;
}

.pickup-header {
  position: relative;
  z-index: 10;
  margin-bottom: 12px;
  padding: 32px 16px 0 16px;
}

.pickup-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.pickup-subtitle {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: #FFFFFF;
  opacity: 0.9;
}

.pickup-header.no-subtitle .pickup-title { margin-bottom: 0; }

.carousel-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  scroll-padding-right: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-scroll::-webkit-scrollbar {
  display: none;
}

.carousel-container {
  display: flex;
  gap: 12px;
  padding-bottom: 8px;
  padding-left: 20px;
  padding-right: 20px;
}

.pickup-card {
  flex-shrink: 0;
  width: 100%;
  background: white;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s;
}

.pickup-card:active {
  transform: scale(0.98);
}

.pickup-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #FFFFFF;
}

.pickup-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.pickup-card-content {
  padding: 4px 12px 12px 12px;
}

.section-catalog {
  padding: 32px 0;
  background-color: transparent;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #333;
}

.section-desc {
  font-size: 14px;
  color: #4B5563;
  margin-bottom: 16px;
  line-height: 1.5;
}

.section-catalog .section-title { font-size: 20px; margin-bottom: 8px; }
.section-catalog .section-desc { font-size: 12px; }

.filter-bar {
  margin-bottom: 16px;
  position: relative;
}

body.nav-jump .filter-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: #E8F4FA;
  margin: 0 -16px 12px;
  padding: 10px 16px 0;
}

.area-heading {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 20px 0 12px;
  padding-left: 8px;
  border-left: 4px solid #2498ec;
}
.area-section:first-of-type .area-heading {
  margin-top: 4px;
}

.filter-bar::before,
.filter-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 8px;
  width: 20px;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.2s;
}

.filter-bar::before {
  left: 0;
  background: linear-gradient(to right, #E8F4FA, transparent);
}

.filter-bar::after {
  right: 0;
  background: linear-gradient(to left, #E8F4FA, transparent);
}

.filter-bar.at-start::before {
  opacity: 0;
}

.filter-bar.at-end::after {
  opacity: 0;
}

.filter-scroll {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

/* エリアナビ強弱（2段）：主力エリアと少数エリアが両方ある時だけ #filterBar に .nav-2row が付く。
   上段＝主力(大ピル)を1行、下段＝それ以外の地方(小ピル)を1行で、各行が独立して横スクロール。 */
#filterBar.nav-2row {
  flex-direction: column;
  overflow-x: visible;
  gap: 7px;
}
#filterBar.nav-2row .filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#filterBar.nav-2row .filter-row::-webkit-scrollbar {
  display: none;
}
/* 下段の小ピル（少数エリア） */
/* 下段の小ピル。.filter-btn より後勝ちで負けないよう詳細度を上げる（.filter-btn.filter-btn-sm） */
.filter-btn.filter-btn-sm {
  padding: 2px 9px;
  font-size: 10px;
}
/* 下段は中身が無くても小ピル1個分の高さを確保＝2段の有無でナビ高さ・下のレイアウトがずれない */
#filterBar.nav-2row .filter-row-minor {
  min-height: 21px;
}

.filter-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  background-color: white;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: #2498ec;
}

.filter-btn.active {
  background-color: #2498ec;
  border-color: #2498ec;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: stretch;
}

.pc-name { font-size: 12px; font-weight: 600; line-height: 1.3; color: #111827; margin-bottom: 4px; }
.pc-desc {
  font-size: 11px; line-height: 1.4; font-weight: 500; color: #333; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-price { text-align: right; margin-top: auto; }
.pc-price .orig { font-size: 10px; color: #9ca3af; text-decoration: line-through; margin-right: 4px; }
.pc-price .now { font-size: 15px; font-weight: 800; color: #F44336; }

.loc-chip {
  position: absolute;
  left: 4px; bottom: 4px;
  display: flex; align-items: center; gap: 2px;
  background: rgba(17,24,39,.68);
  color: #fff;
  font-size: 9px; font-weight: 900; letter-spacing: 0.06em;
  padding: 1px 8px 2px;
  border-radius: 999px;
  z-index: 2;
}
.loc-chip svg { width: 10px; height: 10px; flex-shrink: 0; position: relative; top: 0.5px; }

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.product-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card--large {
  grid-column: 1 / -1;
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #FFFFFF;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.product-card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: #6B7280;
  font-size: 13px;
}

.section-new {
  padding: 32px 0;
  background-color: transparent;
}

.new-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.new-item {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.new-item:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.new-item-image {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #FFFFFF;
}

.new-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.new-item-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.section-campaigns {
  padding: 32px 0;
  background-color: transparent;
}

.campaign-banners {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-banner {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
  aspect-ratio: 3 / 1;
  display: block;
}

.campaign-banner:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.campaign-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-terms {
  padding: 24px 0 8px;
  background-color: transparent;
}

.terms-box {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px 16px;
}

.terms-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.terms-summary::-webkit-details-marker { display: none; }

.terms-title {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.4;
}

.terms-toggle-icon {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid #6B7280;
  border-bottom: 2px solid #6B7280;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.terms-box[open] .terms-toggle-icon {
  transform: rotate(-135deg);
}

.terms-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

.terms-item {
  margin-bottom: 16px;
}

.terms-item:last-child {
  margin-bottom: 0;
}

.terms-item h3 {
  font-size: 13px;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 4px;
}

.terms-item p {
  font-size: 12px;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 4px;
}

.terms-item p:last-child {
  margin-bottom: 0;
}

.terms-item ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}

.terms-item ul li {
  position: relative;
  font-size: 12px;
  color: #4B5563;
  line-height: 1.7;
  padding-left: 14px;
  margin-bottom: 4px;
}

.terms-item ul li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #9CA3AF;
}

.terms-item ul li:last-child {
  margin-bottom: 0;
}

.terms-item a {
  color: #2563EB;
  text-decoration: underline;
}

.footer {
  background-color: transparent;
  border-top: 1px solid #E5E7EB;
  padding: 32px 0;
  text-align: center;
}

.footer-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-content p {
  font-size: 13px;
  color: #4B5563;
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.loading-container,
.error-container {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.loading-content,
.error-content {
  text-align: center;
}

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid #F44336;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 14px;
  color: #6B7280;
}

.error-text {
  font-size: 14px;
  color: #DC2626;
  margin-bottom: 16px;
}

.retry-button {
  padding: 8px 16px;
  background-color: #00A5BB;
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}

.retry-button:hover {
  background-color: #008FA3;
}

[data-display-status="preview-only"],
[data-display-status="upcoming"],
[data-display-status="ended"] {
  position: relative;
}

[data-display-status="preview-only"]::after,
[data-display-status="upcoming"]::after,
[data-display-status="ended"]::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 2px #E53935;
  border-radius: 8px;
  pointer-events: none;
  z-index: 4;
}

.preview-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background-color: #E53935;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  z-index: 5;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pr-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.85);
  border: none;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3px;
  z-index: 5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-bottom: 2px;
}
.tag-pill {
  font-size: 9px;
  font-weight: 600;
  color: #269fcf;
  white-space: nowrap;
}