/* body */
body {
  justify-content: center; /* 横方向の中央揃え */
  margin: 0;
  background-color: #f9f9f9; /* 背景色 */
}

/* ヘッダー全体 */
header {
  position: fixed;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between; /* 左右に要素を配置 */
  align-items: center; /* 垂直方向で中央揃え */
  padding: 10px 10%;
  background-color: #fff; /* 背景色を白に設定 */
  color: #333;
  border-bottom: 1px solid #ddd; /* ヘッダーの下に薄い線を追加 */
}

/* ロゴ */
.logo img {
  height: 50px; /* ロゴの高さを調整 */
  width: auto; /* 比率を保ったまま調整 */
}

/* ナビゲーションバー */
.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.navbar ul li a {
  color: #333; /* テキストの色をダークグレーに設定 */
  text-decoration: none; /* 下線を削除 */
  margin-left: 30px;
  transition: background-color 0.3s ease, color 0.3s ease; /* スムーズな効果 */
  font-weight: normal; /* 標準の太さに設定 */
  font-size: 0.8rem;
}

.navbar ul li a:hover {
  color: #007bff; /* ホバー時の文字色を青に設定 */
}

/* 全体設定 */
.wrapper {
  max-width: 1024px;
  margin: auto;
  font-size: 0.9rem;
  padding: 0 4%;
}

.section {
  margin: 2% 0;
}

.sec-title {
  font-size: 1.4rem;
  text-align: center;
  font-weight: bold;
}
.sec-sub {
  font-size: 1rem;
  text-align: center;
  font-weight: bold;
}

.bg-white {
  background-color: white;
  color: black;
}

.bg-black {
  background-color: grey;
  color: white;
}
/* main */
#main img {
  width: 100%;
  max-width: 3000px;
  height: 600px;
  object-fit: cover;
  margin-top: 50px;
}

/* about */
#about table {
  margin: 30px 0;
  font-size: 0.8rem;
  width: 100%;
}

.p-about {
  text-align: center;
}

#about table,
th,
td {
  border: none;
  border-bottom: 1px solid black;
}

.hidden {
  display: none;
}

#tableContainer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#tableContainer:not(.hidden) {
  max-height: 550px; /* テーブルの高さに応じて調整 */
}

.button {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  font-weight: bold;
  color: #003b7b;
}

/* contact */
.contact {
  text-align: center;
}

/* privacy policy */
/* プライバシーポリシーのスタイル */
#privacyPolicy {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 5px;
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

#privacyPolicy h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

#privacyPolicy h3 {
  font-size: 1.2em;
  margin-top: 20px;
}

#privacyPolicy p {
  margin-bottom: 15px;
}

#privacyPolicy ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

/* スペーサー */
.spacer {
  height: 40px;
}

footer {
  width: 100%;
  height: 100px;
  background-color: black;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 0.8rem;
}

#menu-btn {
  color: black;
  cursor: pointer !important;
  display: none;
}

#close-menu-btn {
  color: black;
  right: 20px;
  top: 20px;
  cursor: pointer !important;
  display: none;
}

@media screen and (max-width: 900px) {
  header.show-mobile-menu::before {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
  }

  #close-menu-btn,
  #menu-btn {
    display: block;
  }
  .navbar ul {
    position: fixed;
    left: -260px;
    top: 0;
    flex-direction: column;
    width: 260px;
    height: 100vh;
    background: white;
    padding: 70px 40px 0;
    transition: left 0.15s ease;
  }

  header.show-mobile-menu .navbar ul {
    left: 0; /* モバイルメニューを画面内に表示 */
  }

  .navbar ul li a {
    color: #333; /* テキストの色をダークグレーに設定 */
    text-decoration: none; /* 下線を削除 */
  }

  p {
    font-size: 0.8rem;
  }
}
