/* 全体 */
body {
  margin: 0;
  font-family: "Helvetica Neue", "Arial", sans-serif;
  background: #f5f5f5;
  color: #333;
  scroll-behavior: smooth;
}

/* ヒーロー */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url('assets/bg.jpg') center/cover no-repeat;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-title {
  font-size: 4em;
  margin: 0;
  text-shadow: 0 0 10px #000;
  animation: float 4s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.5em;
  margin-top: 10px;
  text-shadow: 0 0 5px #000;
}

/* カード */
main {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  margin-top: 0;
  color: #222;
}

/* ギャラリー専用 */
.images-gallery {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.images-gallery img {
  width: 20px !important;
  height: 20px !important;
  object-fit: cover;
  display: inline-block;
  border-radius: 4px;
  margin: 2px;
}

/* ギャラリー画像のホバーは小さく変化 */
.images-gallery img:hover {
  transform: scale(1.2);
  transition: transform 0.2s;
}

/* 他の画像（ヒーローなど） */
.images img {
  width: 80%;
  max-width: 250px;
  border-radius: 8px;
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: transform 0.3s;
}

.images img:hover {
  transform: scale(1.05);
}

/* SNSリンク */
.buttons a {
  background: #222;
  color: #fff;
  border-radius: 4px;
  padding: 8px 16px;
  text-decoration: none;
  margin: 5px;
  display: inline-block;
  transition: transform 0.2s, background 0.2s;
}

.buttons a:hover {
  background: #555;
  transform: scale(1.05);
}

/* フッター */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8em;
  color: #aaa;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 3em;
  }
  .hero-subtitle {
    font-size: 1.2em;
  }
  .card {
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2.2em;
  }
  .hero-subtitle {
    font-size: 1em;
  }
}

/* アニメーション */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* パララックス用ギャラリー */
.parallax-gallery {
  position: relative;
  overflow: hidden;
  height: 300px;
  margin-top: 20px;
}

.layer {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  height: 100%;
}

.layer img {
  height: 100%;
  margin-right: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}