@charset "UTF-8" ; 
body {
  background-color: #f0f0f0; }

  body {
      font-family: sans-serif;
      line-height: 1.8;
      margin: 0;
      padding: 0;
      background-color: #fdfdfd;
    }

    #about {
      max-width: 800px;
      margin: 0 auto;
      padding: 60px 20px;
    }

    .section-title {
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 40px;
    }

    h3 {
      margin-top: 40px;
      font-size: 1.5rem;
      border-bottom: 2px solid #ccc;
      padding-bottom: 5px;
    }

    ul {
      padding-left: 20px;
    }











































.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{
    color: rgb(0, 0, 0);
}
.header-left h3 {
  margin: 0;
  line-height: 1.4;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* nav */
/* 親要素である nav を右上に配置 */
/* nav {
  position: absolute;
  top: 1rem;
  right: 1rem;
} */

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

  text-decoration: none;
  color: rgb(0, 0, 0);
  font-weight: bold;
}






/* 背景スライドショー */
.slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}
.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  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: rgb(0, 0, 0);
  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 {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
/* ヘッダーを上に重ねる */
.hero header {
  position: relative;
  z-index: 2; /* これで .slideshow より上にいる */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  color: rgb(0, 0, 0);
}

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






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

/* オーバーレイ（非表示がデフォルト） */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 10;
  pointer-events: none;  /* ← クリックを通す */
}

.overlay.active {
  display: block;
  pointer-events: auto;  /* ← 表示時は閉じれるように */
}


/* スマホ時に縦並びにする */
@media (max-width: 768px) {
  .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(255, 255, 255, 0.9); /* 背景を暗くする */
  z-index: 999; /* 他の要素より上に */
}

.nav-menu li a {
  color: rgb(0, 0, 0); /* 白で目立たせる */
}

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

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

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

}