@charset "UTF-8";

.hero-gallery-wrapper {
  overflow: hidden;
  width: 100vw;
  margin-top: 100px;
}

.hero-gallery {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  gap: 20px;
}

.hero-gallery .img-wrap {
  flex-shrink: 0;
  width: 300px;
  height: 400px;
  margin: 0;
  overflow: hidden;
  display: block;
  border-radius: 16px;
}

/* 上下ばらつき：transformではなくmarginで */
.hero-gallery .img-wrap:nth-child(odd) {
  margin-top: 20px;
}
.hero-gallery .img-wrap:nth-child(even) {
  margin-bottom: 20px;
}

.hero-gallery .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 16px;
}

.hero-gallery .img-wrap:hover img {
  transform: scale(1.05);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


main.content {
  padding: 4rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 1.8rem;
  border-left: 5px solid #333;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

p {
  line-height: 1.8;
  font-size: 1rem;
}


@media (max-width: 768px) {

.hero-gallery .img-wrap {
  height: 200px;
}
}