@charset "UTF-8" ;
/* styles.css */
body {
  background-color: #f0f0f0;
}
/* モーダル全体 */
/* 全体背景 */
#works {
  background-color: #f0f0f0;
  padding: 60px 20px;
}

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

/* グリッド */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin:  auto;
}

.work-item {
  background: #fff;
  border: 1px solid #ddd;
  transition: transform 0.3s;
}

.work-item:hover {
  transform: scale(1.02);
}

.work-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* キャプション */
.caption {
    padding: 16px;
}

.caption .category {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 5px;
}

.caption .title {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}



.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 600px;
  max-height: 80vh; /* 高さ制限（画面の80%） */
  width: 90%;
  overflow-y: auto; /* ← 内容が多い時にスクロール可能にする */
  border-radius: 8px;
  position: relative;
}

.modal-content img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.modal-content .category,
.modal-content .title,
.modal-content .description {
  margin: 0.5rem 0;
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

#closeModal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}


.main-visual h1,
.main-visual p,
.main-visual .btn {
    position: relative;
    z-index: 2; /* 画像より前面に */
    text-align: center;
}

.main-visual h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.main-visual p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.main-visual .btn {
    display: inline-block;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}
































.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;  /* アクティブ時だけ有効にする */
}

}