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

:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-secondary: #78716c;
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;
  --color-border: #e7e5e4;
  --color-overlay: rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity var(--transition);
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  transition: color var(--transition);
}

.header-link:hover {
  color: var(--color-accent-hover);
}

.link-arrow {
  width: 16px;
  height: 16px;
}

/* ===== Hero ===== */
.hero {
  padding: 56px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--color-bg) 100%);
}

.hero-title {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 10px;
}

.hero-desc {
  font-size: clamp(14px, 2vw, 16px);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Product Grid ===== */
.products {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== Product Card ===== */
.product-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

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

.card-image-wrapper {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f4;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-overlay);
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay-text {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.card-info {
  padding: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
}

.card-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  background: #fff7ed;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-secondary);
}

.site-footer a {
  color: var(--color-accent);
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-company {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .header-inner {
    padding: 10px 16px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 15px;
  }

  .hero {
    padding: 40px 20px 28px;
  }

  .products {
    padding: 0 16px 48px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-info {
    padding: 12px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-desc {
    font-size: 12px;
  }
}
