/* Global Styles */
body {
    margin: 0;
    font-family: 'M PLUS Rounded 1c','Helvetica Neue', sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Sidebar Styles */
.sidebar {
  border-right: 1px solid #dee2e6;
  background-color: #f8f9fa;
  height: calc(100vh - 80px);
  position: sticky;
  top: 80px;
  left: 0;
}

.sidebar .nav-pills {
  padding: 1rem 0;
}

.sidebar .nav-link {
  color: #495057;
  border-radius: 0.25rem;
  margin: 0.25rem 1rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
  background-color: #e9ecef;
}

.sidebar .nav-link.active {
  background-color: #0d6efd;
  color: white;
}

/* Main Content */
.main-content {
  border-left: 1px solid #dee2e6;
  margin-left: -1px; /* Prevents double border */
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #004080;
}

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.global-nav a {
    text-decoration: none;
    color: #004080;
    font-weight: 500;
    transition: color 0.3s;
}

.global-nav a:hover {
    color: #0077cc;
}

/* Main Content */
.site-main {
    padding: 32px 0;
    background-color: #ffffff;
}

/* Footer */
footer {
    background-color: #f0f0f0;
    color: #333;
    text-align: center;
    padding: 16px 0;
    font-size: 0.875rem;
    color: #666;
}

.tag {
  margin-right: 13px;
}

.tag-item {
    position: relative;
    display: inline-block; /* 左詰にするためにインラインブロックに */
    padding: 5px 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 5px; /* 各アイテムの間にスペースを追加 */
    background-color: #f8f9fa; /* 薄い色 */
}

.remove-tag {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.author-group {
  margin-bottom: 1rem; /* 各著者のグループの下にマージン */
}

.add-author {
  margin-top: 0.5rem; /* ボタンと入力欄の間にマージン */
}

hr.day-separator {
  border-top: 2px solid #8c8b8b;
	border-bottom: 2px solid #fff;
}

.editor-toolbar .table {
  width: unset;
}

/* マークダウン内の画像を中央揃えで50%幅に */
.editor-preview img {
  display: block;
  max-width: 50%;
  height: auto;
  margin: 1rem auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .editor-preview img {
      max-width: 80%;
  }
}