@charset "UTF-8" ;

header {
  background: black;
  color: white;
  position: relative;
  z-index: 10;
}
/* index */
.home-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
}

.home-left,
.home-right {
  flex: 1 1 45%;
  min-width: 280px;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: relative;
}

.header-left h3 {
  margin: 0;
  line-height: 1.4;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* メニューのスタイル調整 */
.nav-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li a {

  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* 背景スライドショー */
.slideshow {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
  z-index: 1;
}

.slideshow .slide {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.slideshow .slide.active {
  opacity: 1;
  z-index: 2;
}
.slideshow-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 3;
  padding: 1rem;
}
.slideshow-text h1 {
  font-size: 3rem;
  margin: 0;
  /* text-shadow: 0 0 10px rgba(0,0,0,0.6); */
}
.slideshow-text p {
  font-size: 1.2rem;
  margin-top: 1rem;
  /* text-shadow: 0 0 8px rgba(0,0,0,0.6); */
}
.hero {
  overflow: visible; /* または削除 */
} */
.hero header {
  position: relative;
  z-index: 2; /* これで .slideshow より上にいる */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  color: white;
}

.hero h3 {
  margin: 0;
  font-size: 1.8rem;
  text-shadow: 0 0 5px rgba(0,0,0,0.2);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: auto;
  overflow-y: auto;
}

.grid-gallery {
  min-height: 100vh;
  padding: 2rem;
  background-image: url("./image/gray.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
}


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  color: white;
  z-index: 2;
}

.gallery-box {
  position: relative;
  display: grid;
  padding: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  /* opacity 削除 */
}

.gallery-box.show {
  display: flex;
  /* opacity 削除 */
}
.gallery-box img {
  width: 800px;
  height: 500px;
  object-fit: cover;
  border-radius: 6px;
  /* ホバー拡大なし */
}

.category-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.category-icon {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}


.gallery-box {
  position: relative; /* ← これが大事！ */
  display: none;
  padding: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;

}
.gallery-box.show {
  display: flex;
  opacity: 1;
}

.gallery-box img {
  width: 800px;
  height: 500px;
  object-fit: cover;
  border-radius: 6px;
  transform: none !important;
  transition: none !important;
}

.category-list{
    display: block;

}



.grid-item {
  display: grid ;
  font-size: 1rem;
  line-height: 1.6;
}

/* 画像にだけスタイルを当てる */
.grid-gallery img.grid-item {
  width: 40%;
  height: 20%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 100;
  display: none;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#scrollToTopBtn:hover {
  opacity: 1;
}

#equipmentBtn {
  position: fixed;
  bottom: 100px;
  left: 100px;
  background-color: #ffffff;
  color: #000000;
  padding: 16px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  z-index: 100;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
}

#equipmentBtn:hover {
  opacity: 1;
  transform: scale(1.05);
}


/* ハンバーガー非表示（PC） */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 999; /* ←ここが大事！背景スライドより上に表示する */

}

/* オーバーレイ（非表示がデフォルト） */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.0); /* 半透明の黒 */
  z-index: 10;
}






























/* スマホ時に縦並びにする */
@media (max-width: 768px) {
  grid-gallery {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 999;
}

  .home-section {
    flex-direction: column;
  }

  nav {
    position: static;
    text-align: center;
    margin-top: 1rem;
  }

  /* 修正ここ！白背景とbox-shadowを削除する */
  .nav-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  position: absolute;
  top: 60px;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.9); /* 背景を暗くする */
  z-index: 999; /* 他の要素より上に */
}

.nav-menu li a {
  color: white; /* 白で目立たせる */
}

  .nav-menu.active {
    display: flex;
  }

  .overlay {
  /* その他のプロパティはそのまま */
  pointer-events: none;  /* デフォルトはクリック無効 */
}

.overlay.active {
  pointer-events: auto;  /* アクティブ時だけ有効にする */
}

}