:root {
  --background: hsl(40, 35%, 97%);
  --foreground: hsl(30, 15%, 22%);
  --card: hsl(40, 30%, 99%);
  --card-foreground: hsl(30, 15%, 22%);
  --primary: hsl(152, 32%, 36%);
  --primary-foreground: hsl(40, 30%, 98%);
  --secondary: hsl(12, 55%, 65%);
  --secondary-foreground: hsl(30, 15%, 18%);
  --muted: hsl(35, 15%, 93%);
  --muted-foreground: hsl(30, 10%, 45%);
  --accent: hsl(35, 25%, 91%);
  --accent-foreground: hsl(30, 15%, 22%);
  --border: hsl(35, 20%, 88%);
  --destructive: hsl(355, 65%, 55%);
  --font-sans: 'Noto Sans JP', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --radius: 0.5rem;
  --nav-height: 4rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark {
  --background: hsl(30, 12%, 8%);
  --foreground: hsl(35, 15%, 92%);
  --card: hsl(30, 10%, 12%);
  --card-foreground: hsl(35, 15%, 92%);
  --primary: hsl(152, 35%, 45%);
  --primary-foreground: hsl(40, 30%, 98%);
  --secondary: hsl(12, 50%, 60%);
  --secondary-foreground: hsl(30, 15%, 12%);
  --muted: hsl(30, 10%, 18%);
  --muted-foreground: hsl(35, 10%, 60%);
  --accent: hsl(30, 10%, 20%);
  --accent-foreground: hsl(35, 15%, 92%);
  --border: hsl(30, 10%, 18%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.rounded-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.nav-logo-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-links {
  display: none;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  background-color: var(--accent);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: var(--radius);
  color: var(--foreground);
  background-color: transparent;
  border: 1px solid var(--border);
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-icon:hover {
  background-color: var(--accent);
  border-color: var(--primary);
}

#langToggle {
  width: auto;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

#langLabel {
  margin-left: 0.25rem;
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

.dark .sun-icon {
  display: none;
}

.dark .moon-icon {
  display: block;
}

.mobile-menu-btn {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.close-icon {
  display: none;
}

.mobile-menu-btn.active .menu-icon {
  display: none;
}

.mobile-menu-btn.active .close-icon {
  display: block;
}

.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 70vh;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  animation: fadeIn 1s ease-out;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.375rem;
  }
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .hero-features {
    gap: 1rem;
    font-size: 1rem;
  }
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-divider {
  color: rgba(255, 255, 255, 0.4);
}

.hero-cta {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(152, 32%, 30%);
}

.dark .btn-primary:hover {
  background-color: hsl(152, 35%, 40%);
}

.section {
  padding: 3rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }
}

.section-alt {
  background-color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .section-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.section-grid.reverse .section-content {
  order: 2;
}

.section-grid.reverse .section-image {
  order: 1;
}

@media (min-width: 1024px) {
  .section-grid.reverse .section-content {
    order: 1;
  }
  .section-grid.reverse .section-image {
    order: 2;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-title.centered {
  text-align: center;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

.section-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.section-text.highlight {
  color: var(--primary);
  font-weight: 500;
}

.section-image {
  position: relative;
}

.section-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background-color: hsl(12, 55%, 65%, 0.15);
  color: hsl(12, 45%, 45%);
  border-radius: 9999px;
  margin-bottom: 1.25rem;
  border-left: 3px solid hsl(12, 55%, 65%);
}

.dark .badge {
  background-color: hsl(12, 55%, 65%, 0.2);
  color: hsl(12, 50%, 70%);
}

.network-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.network-year {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
}

.network-year svg,
.network-year .icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.network-divider {
  width: 1px;
  height: 1rem;
  background-color: var(--border);
}

.network-name {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.trust-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: white;
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 10;
}

.dark .trust-badge {
  background-color: var(--card);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
}

.trust-badge-icon {
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(152, 32%, 36%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--primary);
}

.trust-badge-text {
  display: flex;
  flex-direction: column;
}

.trust-badge-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(30, 15%, 22%);
  line-height: 1.2;
}

.dark .trust-badge-title {
  color: var(--foreground);
}

.trust-badge-subtitle {
  font-size: 0.75rem;
  color: hsl(30, 10%, 45%);
}

.dark .trust-badge-subtitle {
  color: var(--muted-foreground);
}

.shipping-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-sans);
  background-color: var(--card);
  color: var(--muted-foreground);
  border: 2px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.filter-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.products-grid.hidden {
  display: none;
}

.catalog-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.catalog-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.05);
}

.btn-icon-right {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}

.catalog-btn:hover .btn-icon-right {
  transform: translateX(4px);
}

.products-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--muted) 0%, var(--accent) 100%);
}

.product-image img[src]:not([src=""]) {
  opacity: 1;
}

.product-image img:not([src]), .product-image img[src=""] {
  opacity: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
}

.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.product-footer {
  margin-top: auto;
}

.product-price-block {
  text-align: center;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
}

.product-delivery {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.product-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  filter: brightness(1.05);
}

.product-btn svg {
  width: 1.125rem;
  height: 1.125rem;
}

.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.footer-logo-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-network {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
