@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

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

:root {
  --color-primary: #f5f5f0;
  --color-secondary: #9e9e9e;
  --color-accent: #d4c5b9;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-mist-blue: #a8b8c8;
  --color-mist-pink: #d4b5b5;
  --color-khaki: #c8b896;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-primary);
  color: var(--color-text);
  line-height: 1.8;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(245, 245, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(158, 158, 158, 0.1);
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 1.5rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

nav li {
  margin: 0 2.5rem;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

main {
  margin-top: 80px;
  min-height: calc(100vh - 160px);
  padding: 3rem 1rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-section {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 4rem;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  text-align: center;
  margin: 4rem 0 3rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.card {
  background: white;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-content {
  padding: 2rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.card-description {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.text-block {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  text-align: center;
}

.text-block p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.category-section {
  margin: 5rem 0;
}

.category-title {
  font-size: 2rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: white;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem 1.5rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-primary);
  border-top: 1px solid rgba(158, 158, 158, 0.1);
  color: var(--color-text-light);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

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

@media (max-width: 768px) {
  nav ul {
    padding: 1rem 0;
  }

  nav li {
    margin: 0 1rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card-image {
    height: 300px;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .text-block {
    padding: 1rem;
  }

  .text-block p {
    font-size: 1rem;
  }

  main {
    padding: 2rem 0.5rem;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  nav li {
    margin: 0.5rem 0.75rem;
  }

  .hero-section {
    height: 50vh;
    min-height: 350px;
  }
}