@charset "UTF-8";
/* reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* 全体 */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f4f4f4;
}
/*
ティール #3DDC97	クリームイエロー #FFFACD
スカイブルー #87CEFA	ライトミントグリーン #B2F9FC
明るいコーラルピンク #FF6F61	ラベンダー #E6E6FA
カラフルグラデーション	サーモンピンク #FA8072*/

header {
/*  background-color: #4CAF50;*/
/*  background-color: var(--header-bg-color, #2c3e50);*/
  background-color: var(--header-bg-color, #3DDC97);  
  color: white;
  padding: 15px;
  text-align: center;
  position: fixed; /* 固定に変更 */
  top: 0;
  left: 0;
  width: 100%; /* 画面全体の幅に拡張 */
  box-sizing: border-box; /* パディングを含むボックスサイズ */
  z-index: 1000; /* ヘッダーを最前面に表示 */
}

header h1 {
  color: white;
  margin: 0;
  font-size: 1.5em;
}

header .h-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.hamburger-menu {
  display: none; /* スマホ版で表示 */
  position: absolute;
  top: 15px;
  left: 15px;
  cursor: pointer;
  z-index: 1000; /* メニューよりも前面に表示 */
}


.hamburger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-left: 60px; /* ハンバーガーメニュー分のスペースを確保 */  
}

/*
.logo-image {
  width: 50px;
  height: auto;
  margin-right: 10px;
}*/
header .logo-image {
  height: 40px; /* ロゴのサイズを調整 */
  margin-right: 10px;
}

/*
.logo-text {
  font-size: 1.2em;
  margin: 0;
}*/
.logo-text {
  font-size: 1.2em;
  margin: 0;
  overflow: hidden; /* オーバーフローした部分を隠す */
  text-overflow: ellipsis; /* オーバーフローした部分を...で表示 */
  white-space: nowrap; /* テキストを1行にする */
/*  max-width: 300px;*/
}

@media (max-width: 768px) {
  .logo-text {
    max-width: 180px; /* スマホ版ではさらに幅を狭める */
  }
}



.menu {
  display: block; /* PC版では表示 */
  position: fixed;
  top: 60px; /* ヘッダーの下に表示 */
  bottom: 0;                 /* これが重要！画面下まで広げる */
  left: 0;
  width: 100%;
  max-width: 250px;
  background-color: #fff;
/*  background-color: #B2F9FC;*/
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;          /* メニュー全体をスクロール対象に */  
  padding: 0;
  transition: transform 0.3s ease-in-out;
  z-index: 999; /* メニューを最前面に表示 */
}

.menu ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  max-height: 100%; /* 親要素の高さを使用 */
/*  overflow-y: auto; /* 縦方向のスクロールを許可 */  
}

.menu ul li {
  border-bottom: 1px solid #eee;
}

.menu ul li a {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
}

.menu ul li a:hover {
  background-color: #f4f4f4;
}

.menu ul li a i {
  margin-right: 10px;
}

.menu .section-title {
  padding: 10px 20px;
  font-weight: bold;
  background-color: #f4f4f4;
}

.menu .community-info {
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

.menu .community-info img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

#menu-sidebar {
  max-height: 100vh; /* ビューポートの高さに応じた最大高さを設定 */
  overflow-y: auto; /* 縦方向のスクロールを許可 */
}



.user-menu {
  position: absolute;
  right: 15px;
  top: 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-menu img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

.user-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%; /* ヘッダーの下に表示 */
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
}

.user-menu .dropdown a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.user-menu .dropdown a:hover {
  background-color: #f4f4f4;
}

  /* フッターのスタイル */
  .footer {
    background-color: #f2f2f2; /* グレーっぽい背景 */
    padding: 0px; /* 上下左右に20pxの余白 */
    text-align: center; /* テキストを中央揃え */
    position: fixed; /* 画面下部に固定 */
    width: 100%; /* 横幅100% */
    bottom: 0; /* 画面下部に配置 */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* 影を追加 */

    z-index: 100; /* フッターを他の要素の上に配置 */

  }

  .badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    background-color: #dc3545; /* バッジの背景色 (赤) */
  }

#loading-indicator {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050; /* モーダルのz-indexよりも高く設定 */
}

.spinner {
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .menu {
      display: none; /* スマホ版では非表示 */
  }

  .hamburger-menu {
      display: block; /* スマホ版で表示 */
  }

  .logo-container {
    margin-left: 50px; /* ハンバーガーメニューの幅に合わせて調整 */
  }

  .menu.active {
      display: block;
  }

  .container-index {
      margin-left: 0;
      margin-top: 100px;
  }

  .card {
      min-width: 100%;
  }
}