/* ================================================
   Reset & Base Styles
   ================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================================================
   Header
   ================================================ */
.header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
}

.header-logo {
  display: block;
}

.header-logo img {
  height: 24px;
  width: auto;
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #f3f4f6;
}

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

/* ================================================
   Loading & Error States
   ================================================ */
.loading-container,
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 32px 16px;
}

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

.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid #71abf1;
  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: 12px;
}

.retry-button {
  padding: 8px 16px;
  background-color: #71abf1;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.retry-button:hover {
  background-color: #5590d0;
}

/* ================================================
   Catalog Section
   ================================================ */
.section-catalog {
  padding: 32px 0;
  background-color: #FFFFFF;
}

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

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

.section-desc {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 24px;
}

/* ================================================
   Filter Bar
   ================================================ */
.filter-bar {
  margin-bottom: 16px;
}

.filter-scroll {
  display: flex;
  justify-content: flex-start;
  gap: 6px;
}

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

.filter-btn:not(.active) {
  background-color: #FFFFFF;
  color: #9CA3AF;
  border-color: #E5E7EB;
}

.filter-btn:not(.active):hover {
  border-color: #71abf1;
}

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

/* ================================================
   Product Grid & Cards
   ================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
  cursor: pointer;
  height: 100%;
}

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

.product-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

/* ================================================
   Footer
   ================================================ */
.footer {
  background-color: #FFFFFF;
  border-top: 1px solid #E5E7EB;
  padding: 24px 16px;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  font-size: 12px;
  color: #6B7280;
}

/* ================================================
   Responsive Adjustments
   ================================================ */
