/* --- 基本設定 --- */
body {
  font-family: sans-serif;
  background-color: #f0f0f0;
  margin: 10px;
  padding: 80px 20px 60px;
  text-align: center;
  padding-top: 130px; /* 例：80px(ヘッダー) + 50px(広告) */
}

#ad-container {
  width: 100%;
  background-color: black; /* ヘッダー背景と統一する */
  min-height: 20px;        /* 広告の想定高さ */
  box-sizing: border-box;
  min-height: 20px; /* 広告想定高さ */
  z-index: 1001;    /* ヘッダーより上にしたい場合は1000以上 */
  position: fixed;
  top: 0;
  left: 0;
}


/* --- ヘッダー設定 --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 50px;
  left: 0;
  width: 100%;
  background-color: black;
  color: white;
  padding: 10px 0px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}



.mini-logo {
  display: flex;
  align-items: center;
  height: 80px;
  overflow: hidden; /* or visible */
}

.mini-logo img {
  height: 120px;
  max-width: none;
  object-fit: contain;
}

/* ヘッダーメニュー */
nav {
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 600px;
  margin-right: 40px;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  margin: 0 15px;          /* ← 左右に余白を追加してリンクの間隔を広くする */
  letter-spacing: 0.1em;  /* ← 文字間も少しゆったりに（任意） */
}

nav a:hover {
  text-decoration: underline;
  color: #ccc;
}



/* ハンバーガーボタン */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- メインコンテンツ --- */
h1 {
  color: #000;
}

main img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* テキストレイアウト調整（共通） */
main, footer {
  padding: 0 16px;
  box-sizing: border-box;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-bottom: 80px;  /* フッターの高さ + 余裕を加える */
}

/* 各ページの見出し文字設定 */
main h1 {
  margin: 10px 0;
  font-size: 30px;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 5px;
  line-height:3.0;
}

/*各ページの本文文字設定*/
main p {
  margin: 10px 0;
  font-size: 1.3rem;     /* ← p用に少し小さめ */
  line-height: 1.6;
  text-align: center;
  letter-spacing: 2px;
}

/* URLが折り返せるように */
a {
  overflow-wrap: anywhere;
}

/* --- フッター設定 --- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: white;
  text-align: center;
  padding: 10px 0;
  z-index: 500;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
  font-size: 0.875rem;
}

footer p {
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 5px 0;
}

/* --- ギャラリー --- */
section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.gallery img:hover,
.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail {
  cursor: pointer;
  transition: transform 0.2s;
}

/* --- Lightbox --- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 40px 20px;
  text-align: center;
  justify-content: center;  /* ← ここをcenterに変更 */
  align-items: center;
}

#lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 10px #fff;
  transition: transform 0.3s ease;
}

#lightbox-caption {
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 16px;
  max-width: 80%;
  margin-top: 20px;
  text-align: center;
}

/* --- タブ切り替え --- */
.tab-buttons {
  margin-top: 40px;
  text-align: center;
}

.tab-buttons button {
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #161d22;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.tab-buttons button:hover {
  background-color: #51526f;
}

.tab-content {
  display: none;
  margin-top: 30px;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.tab-content.active {
  display: block;
}

/* --- レスポンシブ（スマホ・タブレット） --- */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
  }

  .mini-logo {
    margin-right: auto;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 20px;
    padding: 5px 10px;
    z-index: 1100;
  }

  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: black;
    flex-direction: column;
    text-align: center;
    padding: 20px 10px;
    z-index: 1000;
  }

  nav.active {
    display: flex;
  }

  nav a {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
  }

  main {
    text-align: left;
    padding: 0 16px;
  }

  footer {
    text-align: left;
    padding-left: 16px;
    padding-right: 16px;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .tab-buttons button {
    width: 90%;
    margin: 8px 0;
  }
}

/* スマホ向けに文字サイズ調整 */
@media (max-width: 480px) {
  footer p,
  main p {
    font-size: 0.9rem;
  }

  main h1 {
    font-size: 1.2rem;
  }
}

/* PC表示のときハンバーガーを非表示 */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}






