/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  padding-top: 88px;
}

/* 上部固定バナー */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  /* バナーの背景色を白に設定 */
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* バナー背景画像（imgタグ用） */
.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* バナー内のタイトル（刻印風） */
.banner-title {
  position: relative;
  z-index: 2;
  color: rgba(58, 40, 0, 0.85);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-shadow:
    0px -1px 1px rgba(0, 0, 0, 0.75),
    0px 1px 1px rgba(255, 245, 175, 0.9),
    0px 2px 3px rgba(255, 225, 120, 0.5);
  padding: 0 60px;
  text-align: center;
}

/* 右上のハンバーガーメニューボタン（三本線） */
.menu-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1002;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* メニュー開閉時の三本線アニメーション */
.menu-btn.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}
.menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.menu-btn.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* スライドメニュー本体 */
.nav-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background-color: #222222;
  padding-top: 88px;
  transition: right 0.3s ease;
  z-index: 1001;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

.nav-menu.active {
  right: 0;
}

.nav-menu ul {
  list-style: none;
}

.nav-menu li {
  border-bottom: 1px solid #3a3a3a;
}

.nav-menu a {
  display: block;
  padding: 18px 25px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.nav-menu a:hover {
  background-color: #3a3a3a;
}

/* メニュー展開時の背景暗転オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* メインコンテンツ領域 */
main {
  min-height: calc(100vh - 88px);
  background-color: #ffffff;
}

/* モバイル向けの微調整 */
@media (max-width: 600px) {
  body {
    padding-top: 68px;
  }
  .top-banner {
    height: 68px;
  }
  .banner-title {
    font-size: 1.25rem;
    padding: 0 50px;
  }
  .menu-btn {
    right: 15px;
    width: 28px;
    height: 20px;
  }
  .menu-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .menu-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
  .nav-menu {
    padding-top: 68px;
  }
}