@charset "UTF-8";

html {
  font-size: 100%;
}
/*
フッターを画面下に配置するために、
「position: relative;」を設定
「min-height」で最小の高さを画面の高さにあわせる
*/
body {
  max-width: 100%;
  font-family: 'Noto Sans', 'Noto Sans JP', sans-serif;
  background: #FFFFFF;
  margin: 0;
}

a {
  color: #000;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

li {
  list-style: none;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 画面全体の高さを確保 */
}

/*-------------------------------
header
-------------------------------*/
.header {
  height: 150px;
}

.header .header-title {
  display: flex; /* 横並びにする */
  align-items: center; /* 縦位置を中央に揃える */
  justify-content: space-between; /* 両端に配置 */
  padding: 0 100px;
  background: linear-gradient(95.09deg, #8CECCC 0%, #5397CB 97.88%);
}
.header .site-title {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}

.header .header-title-image {
  width: auto; /* お好みでサイズ調整 */
  height: 120px;
  margin: 15px 0;
}

.container {
  display: flex;
  /* コンテンツが少ない時でも、ヘッダーとフッターの高さを引いた100vhで表示するようにする */
  flex: 1;
}

/*-------------------------------
サイドバー
-------------------------------*/

.sidebar {
  width: 200px;
  background-color: #eaf5ff;
  padding: 20px;
}

.sidebar-menu {
  background-color: #eaf5ff;
  max-width: 240px;
  font-family: sans-serif;
}

.menu-details {
  margin-bottom: 15px;
}

.menu-details summary {
  font-weight: bold;
  font-size: 16px;
  color: #3b85c3;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-left: 1.2em;
}

.menu-details summary::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #3b85c3;
  transition: transform 0.2s ease;
}

/* 開いたときは矢印を下向きに */
.menu-details details[open] summary::before {
  content: "▼";
}

.menu-details ul {
  margin: 5px 0 0 1.5em;
  padding: 0;
  list-style: none;
}

.menu-details ul li a {
  color: #3b85c3;
  margin: 4px 0;
}


/*-------------------------------
main/グラフ
-------------------------------*/
.main {
  flex: 1;
}

/*-------------------------------
footer
-------------------------------*/
.footer {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #5294c6; /* 画像に近いブルー */
  color: white;
  font-size: 0.9rem;
}

.hamburger-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  height: 100%;
  background-color: #eaf5ff;
  z-index: 2000;
  transition: right 0.3s ease-in-out;
  padding: 1em;
}

.mobile-menu.open {
  right: 0;
}

.close-button {
  font-size: 24px;
  cursor: pointer;
  text-align: right;
  margin-bottom: 1em;
}

/* 表示・非表示用クラス */
.sidebar-hide {
  transform: translateY(-100%);
}
.sidebar-show {
  transform: translateY(0);
}


/* スマホ対応 */

@media screen and (max-width: 768px) {
  .hamburger-icon {
    display: block;
  }

  .header-title-image {
    display: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background-color: #eaf5ff;
    transform: translateX(-100%);
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .container {
    flex-direction: column;
  }

  .main {
    width: 100%;
  }

  .filter-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  .header {
  height: 60px;
  }

  .header .header-title {
  flex-direction: row; /* ← 重要 */
  align-items: center;
  justify-content: space-between;
  padding: 0 1em;
  }

  .site-title {
    font-size: 1.5rem;
    white-space: nowrap; /* ← 改行させない */
  }
}