
/* ================================================== */
/* main */
/* ================================================== */
body {
  background-color: #f8f9fa;
  color: #222;
}

/* 見出し */
h1, h2, h3, h4, h5, h6 {
  color: #222;
  font-weight: 600;
}

/* ============================
   ブランドカラー
   ============================ */
:root {
  --brand-red: #ce2c5a;
  --brand-red-light: #fbe6ec; /* h2 背景 */
  --brand-red-lighter: #fdf0f4; /* h3 背景 */
}

/* ============================
   h2（最上位見出し）
   ============================ */
h2 {
  font-size: 1.9rem;
  font-weight: 700;
  padding: 14px 18px;
  margin-top: 2.8rem;
  margin-bottom: 1.4rem;

  background: var(--brand-red-light);
  border-left: 6px solid var(--brand-red);
  border-bottom: 3px solid var(--brand-red);

  border-radius: 6px;
}

/* ============================
   h3（第二階層）
   ============================ */
h3 {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 12px 16px;
  margin-top: 2.2rem;
  margin-bottom: 1.2rem;

  background: var(--brand-red-lighter);
  border-left: 4px solid var(--brand-red);
  border-bottom: 2px solid var(--brand-red);

  border-radius: 6px;
}

/* ============================
   h4（第三階層）
   ============================ */
h4 {
  font-size: 1.3rem;
  font-weight: 600;
  padding-left: 12px;
  margin-top: 1.8rem;
  margin-bottom: 1rem;

  border-left: 4px solid var(--brand-red);
  border-bottom: 1px solid var(--brand-red);
}

/* ============================
   h5（第四階層）
   ============================ */
h5 {
  font-size: 1.15rem;
  font-weight: 600;
  padding-left: 10px;
  margin-top: 1.4rem;
  margin-bottom: 0.8rem;

  border-left: 3px solid var(--brand-red);
}

/* ============================
   h6（第五階層）
   ============================ */
h6 {
  font-size: 1rem;
  font-weight: 600;
  padding-left: 8px;
  margin-top: 1.2rem;
  margin-bottom: 0.6rem;

  border-left: 2px solid var(--brand-red);
  color: var(--brand-red);
}

/* 記事本文 */
.content p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* コードブロック */
pre, code {
  background-color: #eef1f5 !important;
  border-radius: 6px;
  padding: 4px 6px;
}

/* カード */
.card {
  border-radius: 10px;
}

/* コードブロックを綺麗にする */
pre code {
  display: block;
  padding: 1rem;
  background: #1e1e1e;
  /* color: #fff; */
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.9rem;
}

/* pre 自体にもスクロールを付ける */
pre {
  overflow-x: auto;
}

/* Markdown 表のスタイル */
/* Markdown本文用コンテナに合わせて調整している前提 */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;

  margin-top: 1.25rem;
  margin-bottom: 1.75rem
}

.content th,
.content td {
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}

/* ヘッダー行 */
.content th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-align: left;
}
/* 偶数行に薄い背景 */
.content tbody tr:nth-child(even) {
  background-color: #fcfcfc;
}

/* ホバー時にうっすら強調 */
.content tbody tr:hover {
  background-color: #f1f3f5;
}

.content th:nth-child(2),
.content td:nth-child(2),
.content th:nth-child(3),
.content td:nth-child(3),
.content th:nth-child(4),
.content td:nth-child(4),
.content th:nth-child(5),
.content td:nth-child(5) {
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
}




/* ================================================== */
/* header */
/* ================================================== */
/* 背景画像つきのヘッダー */
.hero-header {
  background-image: url("/images/header-bg.png"); /* ←背景画像 */
  background-size: cover;
  background-position: center;
  padding: 20px 0;
}

/* アイコン画像 */
.hero-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* タイトル */
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
}

/* サブタイトル */
.hero-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  color: #222;
}


/* ================================================== */
/* navbar */
/* ================================================== */

/* ナビバーの背景色を濃いネイビーに */
.navbar {
  /* background-color: #0a1a2f !important; */
  background-color: #ce2c5a !important; /* 赤 */
}

/* ナビバーのリンク色 */
.navbar .nav-link {
  color: #ffffff !important;
  opacity: 0.9;
}
.navbar .nav-link:hover {
  opacity: 1;
}

/* 言語切り替えボタン */
.navbar .btn-outline-light {
  border-color: #ffffff !important;
  color: #ffffff !important;
}
.navbar .btn-outline-light:hover {
  background-color: #ffffff !important;
  color: #0a1a2f !important;
}



/* ================================================== */
/* footer */
/* ================================================== */
footer, .footer {
  /* background-color: #0a1a2f !important; 濃いネイビー */
  background-color: #ce2c5a !important; /* 赤 */
  color: #ffffff !important;
}

footer a {
  color: #ffffff !important;
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
}


/* ============================
   backlink.html
   ============================ */
.backlink-btn {
  display: inline-block;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 6px;

  color: #ce2c5a;
  border: 2px solid #ce2c5a;
  background: #fff;

  transition: 0.2s;
  text-decoration: none;
}

.backlink-btn:hover {
  background: #ce2c5a;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================
   記事の作成日・更新日（post-meta）
   ============================ */
.post-meta {
  text-align: right;          /* 右寄せ */
  font-size: 0.85rem;         /* 少し小さめ */
  color: #6c757d !important;  /* Bootstrap の muted と同系色 */
  margin-top: -10px;          /* タイトルとの距離を詰める */
  margin-bottom: 20px;
  opacity: 0.8;               /* 控えめに */
}

/* ホバー時に少し濃く（アクセシビリティ向上） */
.post-meta:hover {
  opacity: 1;
}

/* ============================
   記事メタ情報（作成日・更新日・カテゴリ・タグ）
   ============================ */
/* ============================
   カテゴリ・タグのバッジ
   ============================ */
.meta-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 4px;
  margin-right: 2px;

  background: #e9ecef;      /* muted グレー */
  color: #495057;           /* 文字も控えめ */
  border-radius: 4px;
  font-size: 0.75rem;
  text-decoration: none;
  font-weight: 500;

  transition: 0.2s;
}

.meta-badge:hover {
  background: #ce2c5a;      /* hover 時だけブランドカラー */
  color: #fff;
}

/* 区切り線（｜）も控えめに */
.post-meta .post-cat,
.post-meta .post-tag {
  color: #6c757d;
}


/* ============================
   コメント
   ============================ */
.comment {
  padding: 1rem 1.25rem;
  border-left: 3px solid #e0e0e0;
  margin-bottom: 1.25rem;
}

.comment--reply {
  margin-left: 2rem;
  border-left-color: #e0e0e0;
}

.comment__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.comment__author {
  font-weight: bold;
}

.comment__date {
  color: #888;
}

.comment__reply-link {
  color: #4a90e2;
  text-decoration: none;
  font-size: 0.8rem;
}

.comment__reply-link:hover {
  text-decoration: underline;
}

.comment__body {
  font-size: 0.95rem;
  line-height: 1.7;
}

.comment__body p {
  margin: 0 0 0.5rem;
}
