:root {
  --template-bg-light: #dce8f5;
}
body {
  background-color: #dce8f5;
}

/* ロゴ画像の上に会社名を重ねる */
.navbar-brand {
  position: relative;
}
.navbar-brand .site-description {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.5em 1em;
  background: rgba(0, 27, 76, 0.65);
  color: #fff;
}

/* フォントサイズを全体的に少し小さく（1-2pt相当） */
html {
  font-size: 15px;
}

/* 本文をもう少し小さく */
body, p, li {
  font-size: 0.92rem;
}

/* 見出しを大胆に縮小・行間を狭く */
h1 {
  font-size: 1.5rem;
  line-height: 1.15;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.15;
}

/* サイドバーのモジュール一覧（最新更新記事・閲覧ランキング等）の行間を狭く */
.sidebar-left .mod-list li,
.sidebar-right .mod-list li {
  margin-bottom: 0.1rem;
  line-height: 1.3;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

/* サイト説明文（in silico biology, inc.）を中央揃えに */
.navbar-brand .site-description {
  text-align: center;
}

/* 言語スイッチャーを右端に */
.container-topbar {
  display: flex;
  justify-content: flex-end;
}

/* サイト説明文の前にロゴ画像を配置 */
.navbar-brand .site-description::before {
  content: url('/templates/cassiopeia/images/ISB_LOGO_Cosmic_09L.png');
  display: inline-block;
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.6em;
}

/* ロゴ画像の表示方法を修正（背景画像方式でサイズ確実に指定） */
.navbar-brand .site-description::before {
  content: "";
  display: inline-block;
  background-image: url('/templates/cassiopeia/images/ISB_LOGO_Cosmic_09L.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 45px;
  height: 32px;
  vertical-align: middle;
  margin-right: 0.6em;
}

/* サイドバーのカード背景を暖色系の薄い色に（本文の青系背景と色相をずらして視認性確保） */
.sidebar-left .card,
.sidebar-right .card {
  background-color: #faf3e6;
  border-color: #e5dcc8;
}
.sidebar-left .card-header,
.sidebar-right .card-header {
  background-color: #f0e6d2;
  border-color: #e5dcc8;
}

/* カード本体（card-body）にも背景色を適用 */
.sidebar-left .card-body,
.sidebar-right .card-body {
  background-color: #fdfaf3;
}

/* card-body をもう少し濃く調整 */
.sidebar-left .card-body,
.sidebar-right .card-body {
  background-color: #f5ecdc;
}

/* card-body の濃さを再調整（少し薄く） */
.sidebar-left .card-body,
.sidebar-right .card-body {
  background-color: #f9f2e4;
}
