*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #eaeaea;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: #666666;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover { color: #1a1a1a; }
nav a.active {
  color: #1a1a1a;
  font-weight: 700;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-copy p {
  font-size: 1.05rem;
  color: #444444;
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  background: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-actions a:hover {
  transform: translateY(-1px);
  background: #111111;
}

.hero-visual {
  width: 100%;
  min-width: 0;
}

.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  /*background: #111111;*/
}

.hero-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  user-select: none;
}

.hero-carousel::-webkit-scrollbar {
  display: none;
}

.hero-carousel {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-carousel .hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  min-width: 100%;
}

.hero-carousel .hero-slide.is-active {
  cursor: pointer;
}

.hero-carousel .hero-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-carousel .hero-slide span {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  border-radius: 10px;
  pointer-events: none;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 4.75rem;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  z-index: 2;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.hero-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  display: inline-block;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 10px;
  height: 10px;
  background: #ffffff;
  transform: scale(1.05);
}

@media (max-width: 780px) {
  .hero-carousel .hero-slide img {
    height: 280px;
  }

  .hero-carousel-dots {
    bottom: 3.75rem;
  }
}

h1, h2, h3, h4 {
  line-height: 1.3;
  color: #111111;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: #333333; }
a { color: #0066cc; text-decoration: none; }

.slider {
  margin-top: 1.5rem;
}

.slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  user-select: none;
}

.slider-link {
  flex: 0 0 280px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

.slider-item {
  border-radius: 18px;
  overflow: hidden;
  background: #f8f8f8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.slider-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.slider-item span {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: #111111;
}

.detail-image {
  max-width: 900px;
  margin: 1.5rem 0;
}

.detail-image img {
  max-height: 400px;
  border-radius: 12px;
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  border-color: #1a1a1a;
  text-decoration: none;
}

.product-card h3 { margin-top: 0; }
.product-card .tagline {
  color: #666666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.product-card .meta {
  font-size: 0.85rem;
  color: #888888;
  border-top: 1px solid #f0f0f0;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.notes-list { margin-top: 2rem; }
.note-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eaeaea;
}
.note-item .date {
  color: #888888;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #666666;
}

.type-selector {
  margin: 1.5rem 0 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}

.type-tab {
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666666;
  background: #fafafa;
  border: none;
  border-right: 1px solid #eaeaea;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.type-tab:last-child { border-right: none; }
.type-tab:hover {
  background: #f0f0f0;
  color: #333333;
}
.type-tab.active {
  background: #1a1a1a;
  color: #ffffff;
}

.type-panel {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-meta {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.detail-meta th, .detail-meta td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eaeaea;
}

.detail-meta th {
  width: 30%;
  font-weight: 600;
  color: #666666;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #eaeaea;
  color: #888888;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 0;
  }
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
