/* Citron サイト用スタイルシート */
body {
  font-family: "Helvetica", Arial, sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 0;
  color: #333;
  text-align: center;
    box-sizing: border-box; /* これを追加 */
}

.logo img {
  max-width: 100%;
  height: auto;
}


.container {
  width: 100%; /* 90% から 100% に変更 */
  max-width: 1200px;
  margin: 0 auto;
    overflow: hidden; /* これを追加 */
}
/* 共通レイアウト */
.container {
  position: relative;
}

/* ハンバーガーメニューボタン */
.menu-btn {
  display: none; /* PCでは非表示 */
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
}

/* ハンバーガーメニューの3本線 */
.menu-btn span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: 0.3s;
}

/* メニューの初期状態（画面外に隠す） */
/* ヘッダー全体のレイヤー調整 */
header {
  position: relative;
  z-index: 500; /* ロゴより下げる */
}

/* メニューの位置と z-index を調整 */
.nav {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 1001; /* ロゴより上に表示 */
}

/* ロゴ画像の z-index を調整 */
.logo img {
  position: relative;
  z-index: 999; /* メニューより下に */
}


.nav-list {
  list-style: none;
  padding: 50px 20px;
}

.nav-list li {
  padding: 10px 0;
  text-align: center;
}

.nav-list li a {
  text-decoration: none;
  color: #333;
  display: block;
  font-size: 18px;
}

/* チェックボックス */
.menu-toggle {
  display: none;
}

/* メニューが開いた時のスタイル */
.menu-toggle:checked ~ .nav {
  transform: translateX(-250px);  /* スライドイン */
}

/* スマホ用のメニューボタン表示 */
@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
  }
}

/* PC用のメニュー */
.nav {
  display: flex;
  position: static;  /* ここが原因 */
  background: none;
  box-shadow: none;
  z-index: auto;
}


/* スマホ用のメニュー */
@media screen and (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -250px; /* 最初は画面外に隠す */
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    display: block;
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .nav.open {
    transform: translateX(-250px); /* ボタンを押すと表示 */
  }
}



@media screen and (max-width: 768px) {
  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nav-list li {
    margin: 10px 0;
  }
}

/* ヒーローセクション */
.hero {
  position: relative;
  background-color: #000;
  color: #fff;
  overflow: hidden;
}
.hero img {
  width: 100%;
  height: auto;
  opacity: 0.7;
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-text h2 {
  font-size: 3em;
  margin: 0 0 20px;
}
.hero-text p {
  font-size: 1.5em;
  margin-bottom: 30px;
}
@media screen and (max-width: 768px) {
  .hero-text h2 {
    font-size: 2em;
  }
  .hero-text p {
    font-size: 1.2em;
  }
}

.btn {
  background-color: #ff6600;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1em;
  border-radius: 5px;
}

/* 各ページのセクション */
.about-summary, .services, .access, .about-page, .menu-page, .contact-page {
  padding: 50px 0;
  text-align: center;
}
.menu-list {
  list-style: none;
  padding: 0;
}
.menu-list li {
  margin: 20px 0;
  font-size: 1.2em;
}
.page-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-bottom: 20px;
}

/* フォーム */
.form-group {
  margin: 15px 0;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
}
.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  box-sizing: border-box;
}

/* フッター */
footer {
  background-color: #f2f2f2;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}


img {
  max-width: 100%;
  height: auto;
}




/* 共通のナビゲーションスタイル */
.nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* PC（デフォルト）では横並び & 中央寄せ */
.nav-list {
  display: flex; /* 横並び */
  justify-content: center; /* 中央揃え */
  align-items: center; /* 縦の位置も中央 */
  gap: 20px; /* メニュー間の余白 */
}

/* スマホ（768px以下）では縦並びに */
@media screen and (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .nav-list {
    display: block; /* スマホでは縦並び */
    text-align: center;
    padding-top: 50px;
  }

  .nav.open {
    transform: translateX(-250px); /* スライドして表示 */
  }
}