.header-container {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  /* ページの上部に固定 */
  top: 0;
  /* ページ上部に配置 */
  left: 0;
  /* ページ左端に配置 */
  height: 130px;
  /* ヘッダーの高さを固定 */
  width: 100%;
  /* ヘッダーの幅をページ全体に */
  background-color: white;
  /* ヘッダーの背景色 */
  z-index: 100;
  /* コンテンツの上に表示するためにz-indexを設定 */
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  /* Medium */
}

.first-header-container {
  display: flex;
  justify-content: space-between;
  /* メニューを右端に配置 */
  align-items: center;
  height: 60px;
  /* ヘッダーの高さを固定 */
  width: 100%;
  /* ヘッダーの幅をページ全体に */
  background-color: white;
  /* ヘッダーの背景色 */
}

.second-header-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 60px;
  /* ヘッダーの高さを固定 */
  width: 90%;
  /* ヘッダーの幅をページ全体に */
  background-color: white;
  /* ヘッダーの背景色 */
  margin: 0 auto;
  /* 中央寄せ */
}

.logo-link {
  position: absolute;
  /* ロゴを絶対位置で中央に配置 */
  left: 50%;
  transform: translateX(-50%);
  /* 正確に中央に位置させる */
  text-align: center;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: auto;
}

.logo-image {
  height: 40px;
  /* 必要に応じてサイズを調整 */
  margin-right: 8px;
}

.user-menu {
  display: flex;
  align-items: center;
  margin-left: auto;
  /* メニューを右端に配置 */
  height: 100%;
}

.icon-link {
  position: relative;
  text-decoration: none;
  /* リンクの下線を消す */
  color: inherit;
  /* リンクの色を親要素に合わせる */
  margin-right: 20px;
  /* アイコンとアイコンの間にスペースを追加 */
}

.icon-horizontal-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  /* アイコンとテキストの間にスペースを追加 */
}

.icon-horizontal-wrapper span {
  font-size: 12px;
  color: red;
  /* テキストの色 */
}

.icon-wrappers {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  /* アイコンとアイコンの間にスペースを追加 */
  right: 83px;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60px;
  width: auto;
}

.icon-container {
  position: relative;
  text-align: center;
  /* 全体を中央揃え */
  cursor: pointer;
  /* マウスカーソルをポインターに変更 */
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
}

.count {
  position: absolute;
  bottom: -5px;
  right: -18px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 5px;
  font-size: 12px;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  font-weight: bold;
}

.icon-title {
  font-size: 14px;
  color: #333;
  /* タイトルの色 */
  display: block;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  /* ボタン同士の隙間を設定 */
}

.auth-button {
  display: inline-block;
  padding: 10px 10px;
  text-decoration: none;
  text-align: center;
  border: 2px solid black;
  font-weight: bold;
  font-size: 12px;
  width: auto;
  /* ボタンの幅を固定 */
}

.auth-button.login {
  background-color: white;
  color: black;
}

.auth-button.signup {
  background-color: black;
  color: white;
}

.dropdown-wrapper {
  position: relative;
  top: 5px;
}

.dropdown-menu {
  display: none;
  /* 初期状態では非表示 */
  position: absolute;
  top: 50px;
  /* ヘッダーの下に配置 */
  right: -5px;
  /* 右端に揃える */
  left: auto;
  /* 左側の位置を無効にする */
  background-color: #a69595;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
  /* ボックスシャドウのみ */
  z-index: 1000;
  width: 220px;
  border-radius: 4px;
  /* 角を少し丸める */
  padding: 10px 0;
  color: white;
}

.dropdown-menu.active {
  display: block;
  /* JSで付け外し */
}

/* PC/タブレットだけホバー許可 */
@media (min-width: 768px) {

  .dropdown-wrapper:hover .dropdown-menu,
  .icon-wrapper:hover~.dropdown-menu,
  .dropdown-wrapper:hover .arrow-area::before,
  .icon-wrapper:hover~.arrow-area::before {
    display: block;
  }
}

.arrow-area {
  position: relative;
  height: 10px;
  width: 100%;
}

.arrow-area::before {
  display: none;
  /* 初期状態では非表示 */
  content: '';
  position: absolute;
  top: -17px;
  left: 45%;
  transform: translateX(-50%);
  /* 水平方向に中央揃え */
  border-width: 0 8px 8px 8px;
  /* 三角形のサイズ */
  border-style: solid;
  border-color: transparent transparent #a69595 transparent;
  /* 上向きの白い三角形 */
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li {
  padding: 10px;
  transition: background-color 0.3s ease;
  /* 背景色が滑らかに変わる */
  color: white;
}

.dropdown-menu li:hover {
  background-color: #5c5757;
  /* ホバー時の背景色を指定 */
}

.dropdown-menu li.sign-out {
  border-top: 1px solid #ccc;
  /* サインアウト部分は別のボーダー */
}

.dropdown-menu li:last-child {
  border-bottom: none;
  /* 最後のアイテムの下にボーダーを表示しない */
}

.dropdown-menu li a {
  text-decoration: none;
  color: #ffffff;
  display: block;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #a69595;
  color: #fff;
  padding: 10px;
  width: 40px;
  /* 幅を固定 */
  height: 40px;
  /* 高さを固定 */
  border-radius: 50%;
  /* 円形 */
  text-align: center;
  /* 中央寄せ */
  font-size: 20px;
  /* アイコンのサイズ調整 */
  line-height: 20px;
  /* 高さを中央に揃える */
  cursor: pointer;
  display: none;
  /* 初期は非表示 */
  z-index: 1000;
}

.scroll-to-top.show {
  display: block;
  /* スクロール時に表示 */
}

.main-menu {
  display: flex;
  justify-content: space-around;
  /* 項目間のスペースを均等に配置 */
  align-items: center;
  list-style: none;
  height: 40px;
  width: 100%;
  /* メニューの幅を調整して中央寄せ */
  border-top: 1px solid #555;
  /* 上のボーダー */
  border-bottom: 1px solid #555;
  /* 下のボーダー */
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 154px;
}

.main-menu ul li a {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
}

.main-menu ul li a:hover {
  border-bottom: 2px solid #333;
}

.main-menu .menu-item {
  position: relative;
}

.main-menu .menu-item .popup-menu {
  display: none;
  /* 初期状態では非表示 */
  position: fixed;
  /* メニューの下に配置 */
  top: 113px;
  /* メニューの下に配置 */
  left: 5%;
  /* メニューの中央に配置 */
  width: 90vw;
  /* 全体の80%の幅に設定 */
  height: auto;
  background-color: #f8f8f8;
  /* お好みの背景色 */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  /* 影の効果 */
  padding: 20px;
  z-index: 1000;
  /* 他の要素より前面に表示 */
}

/* ホバーでポップアップメニューを表示 */
.main-menu .menu-item:hover .popup-menu {
  display: block;
}

.main-menu .menu-item a {
  text-decoration: none;
  /* 元々の下線を削除 */
}
/*
.main-menu .menu-item:hover a::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
}
*/

.container {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  height: auto;
}

.column {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.column-compact {
  display: flex;
  flex-direction: column;
}

/* Grid container for each column's items */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Creates two columns */
  grid-template-rows: repeat(auto-fill, minmax(30px, auto));
}

.label {
  padding: 8px;
  background-color: #f0f2f5;
  /* Background color for labels */
  color: #333;
  font-weight: bold;
  text-align: left;
}

.all-label {
  display: block;
  width: 100%;
  padding-left: 20px;
  font-weight: bold;
}

.link {
  font-weight: 400;
  text-decoration: underline;
  /* 必要に応じて追加 */
  text-decoration-thickness: 1px;
  /* 下線の太さを調整 */
  text-underline-offset: 2px;
  /* 下線と文字の間隔を調整 */
  line-height: 1;
  /* 行の高さを調整（必要に応じて調整） */
}

.hidden {
  display: none;
}