/* 共通リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background: #fff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ヘッダー */
header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 70px;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff6600;
}

/* 動画セクション */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-section video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 非表示状態 */
.video-section.hidden {
  display: none;
}

/* テキストオーバーレイ */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 10;
  opacity: 0;
  animation: fadeInUp 2s ease forwards;
}

.overlay-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.overlay-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* 共通セクション */
.section {
  padding: 5rem 2rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* ギャラリー */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
}

.gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 1rem;
  transition: transform 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* フッター */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  background: #222;
  color: #fff;
}

.section {
  text-align: center;
}

.section .text-block {
  max-width: 720px;
  margin: 0 auto;
}

.section .text-block p {
  text-align: justify;
  text-indent: 0;           /* 字下げなしで左端を揃える */
  margin-bottom: 1.5em;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    transform: translate(-50%, -40%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .video-section {
    position: relative !important;
    width: 100%;
    height: auto !important;
    max-height: 80vh;
    overflow: hidden;
  }

  .video-section video {
    display: block;
    position: relative !important;  /* ← これが正解！absoluteじゃない */
    width: 100% !important;
    height: auto !important;
    max-height: 80vh;
    object-fit: cover !important;
  }

  .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 600px;
    padding: 0 1rem;
    opacity: 1 !important;
    animation: none !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  }

  .overlay-text h1 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
  }

  .overlay-text p {
    font-size: 1rem;
    line-height: 1.4;
  }

  header img {
    height: 50px;
  }

  .section .text-block p {
    text-align: left;
  }

}
