/* 全体の背景色と文字色の変更 */
body {
  font-size: .875rem;
  background-color: #f7fbfc; /* 背景 白色 */
  color: #000000; /* 黒のテキスト */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* アイコンの色 */
.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
  color: #00796b; /* 海の緑色 */
} 

/*
 * Sidebar
 */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  background-color: #003366; /* 深い青色 */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #003366; /* サイドバーの深い青色 */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #ffffff; /* 白色でサイドバーのリンクを表示 */
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
  color: #ffffff; /* 見出しは白色 */
}



/*
 * Navbar
 */
.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: #0d014d; /* 一番左上、ほぼ黒の青色 */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
  background-color: #b2dfdb; /* 海の色をイメージした背景色 */
  color: #000000; /* テキストは濃い緑 */
}

.form-control-dark {
  color: #004d40;
  background-color: #b2dfdb;
  border-color: #00796b; /* 緑色のボーダー */
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .25);
}

/*
 * Links and Buttons
 */
.sidebar .nav-link.active {
  color: #0288d1; /* アクティブなリンクに水色 */
}

.sidebar .nav-link:hover {
  background-color: #000000 ; /* ホバー時に海の深い色 */
}

.nav-beta-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #ffe08a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  vertical-align: 0.08rem;
}

/* ボタン、リンクのホバーエフェクト */
button {
  background-color: #0288d1; /* 水の青色 */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #00796b; /* ホバー時に海の緑色 */
}

.mobile-menu-toggle {
  display: none !important;
}

.mobile-sidebar-backdrop {
  display: none;
}

body.mobile-menu-is-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .mobile-menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 1.35rem;
    line-height: 1;
    transition: background-color 140ms ease, transform 140ms ease;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: rgba(255, 255, 255, 0.14);
  }

  .mobile-menu-toggle:active {
    transform: scale(0.94);
  }

  .mobile-menu-toggle:focus-visible {
    outline: 2px solid #b8ebe7;
    outline-offset: -4px;
  }

  .sidebar.mobile-sidebar-open {
    display: block !important;
    width: min(82vw, 300px);
    padding-top: 48px;
    z-index: 1040;
  }

  .mobile-sidebar-backdrop.mobile-sidebar-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(0, 18, 32, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle {
    transition: none;
  }
}
