@charset "UTF-8";

/*
================================================
基本設定（全ページ共通）
================================================
*/
html {
  font-size: 100%;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: #3d1200;
  background-color: #f7f7f7;
  margin: 0;
  /* ▼▼▼ 変更: 全ページでヘッダーの高さ分の余白を確保 ▼▼▼ */
  padding-top: 106px; /* ヘッダーの高さ(66px) + 上下padding(20px*2) */
}

/* トップページのみ、この余白を打ち消す */
body.home {
  padding-top: 0;
}

/* メニュー展開時に背景をスクロールさせない */
body.no-scroll {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4%;
}

.button {
  font-size: 1.375rem;
  background: #0bd;
  color: #fff;
  border-radius: 5px;
  padding: 18px 32px;
  display: inline-block;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.button:hover {
  background: #0090aa;
}


/*
================================================
HEADER (全ページ共通)
================================================
*/
.page-header {
  /* ▼▼▼ 変更: absolute から fixed に変更してヘッダーを固定 ▼▼▼ */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 4%;
  box-sizing: border-box;
  z-index: 1001;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header .logo-container {
  margin: 0;
  line-height: 0;
}

.logo {
  width: 420px;
  filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.7));
}

.main-nav-container {
  /* space-betweenにより自動で右端に配置 */
}

.main-nav {
  display: flex;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-left: 40px;
}

.main-nav a {
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #0bd;
}


/*
================================================
FOOTER (全ページ共通)
================================================
*/
footer,
.page-footer {
  background: #221813;
  color: #fff;
  text-align: center;
  padding: 40px 0;
}

.logo-footer img {
  width: 200px;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0 0 15px 0;
  padding: 0;
}

.footer-nav li {
  margin: 0 20px;
}

.footer-nav a {
  color: #fff;
  font-size: 1rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #0bd;
}

.footer-info {
  margin: 20px 0;
  font-style: normal; /* addressタグの斜体をリセット */
}

.footer-info a {
  color: #fff;
  transition: color 0.3s;
}

.footer-info a:hover {
  color: #0bd;
}

footer p,
.page-footer p,
.footer-info {
    font-size: 0.875rem;
    line-height: 1.8;
}


/*
================================================
モバイル版 (900px以下)
================================================
*/
@media (max-width: 900px) {
  html {
    font-size: 120%;
  }
  
  /* ▼▼▼ 追加: モバイルでのヘッダー余白を調整 ▼▼▼ */
  body {
    padding-top: 76px; /* モバイル用ヘッダーの高さ */
  }
  body.home {
    padding-top: 0;
  }

  .logo {
    width: 260px;
    z-index: 1002;
  }

  /* ▼▼▼ ハンバーガーメニュー ▼▼▼ */
  .hamburger-menu {
    display: block;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1002;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff; /* デフォルトは白 */
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
  }
  .hamburger-menu span:nth-child(1) { top: 0; }
  .hamburger-menu span:nth-child(2) { top: 9px; }
  .hamburger-menu span:nth-child(3) { bottom: 0; }

  /* 下層ページ用のハンバーガーメニュー色 */
  body:not(.home) .hamburger-menu span {
    background-color: #3d1200;
  }

  .hamburger-menu.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
  }

  /* メニューが開いた時のナビゲーション */
  .main-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: #3d1200;
    transform: translateX(-100%);
    transition: transform 0.3s;
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
  }
  .main-nav-container.active {
    transform: translateX(0);
  }

  .main-nav {
    flex-direction: column;
    align-items: center;
  }
  .main-nav li {
    margin: 0 0 20px 0;
    width: 100%;
    text-align: center;
  }
  .main-nav a {
    display: block;
    padding: 15px;
    font-size: 1.25rem;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  /* ▲▲▲ ハンバーガーメニューここまで ▲▲▲ */
}