.hero {
  background: url('./images/BG_AppsAutopBI.png') center/cover no-repeat;
}

/* ===== 全体共通スタイル ===== */
/*カテゴリ*/
.post-category {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
}

/* カテゴリ別の色 */
.post-category.powerapps {
  color: #5C005C;
  /* ピンクっぽい */
}

.post-category.powerautomate {
  color: #0078d4;
  /* 青っぽい */
}

.post-category.powerbi {
  color: #FFB900;
  /* 黄色っぽい */
}

.post-category.pad {
  color: #0066FF;
  /* 青っぽい */
}

.post-category.other {
  color: #333333;
  /* 濃いグレー */
}


/* ===== コードブロック ===== */
/*コード部分とコピーボタン*/
.code-block {
  position: relative;
  background: #2d2d2d;
  /* color: #f8f8f2; */
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: Consolas, "Courier New", monospace;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #3498db;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #2980b9;
}

.copy-btn.copied {
  background: #27ae60;
}

/*ポイント！*/
.point-card {
    position: relative; /* バッチを絶対配置するため */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px 16px 16px 16px; /* バッチが重ならないように十分なパディング */
    margin: 12px 0;
    background-color: #fafafa;
    font-size: 0.95em;
    line-height: 1.5;

    text-align: center;
}

.point-badge {
    position: absolute;
    top: -15px;       /* カード上端より少し上 */
    left: -8px;      /* 左上に配置 */
    background-color: #ff9800;
    color: #fff;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
    transform: rotate(-18deg); /* 左上なので少し逆方向に斜め */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 0.85em;
}



/* テーブル全体 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
  line-height: 1.6;
  table-layout: fixed;
  /* ← 幅を固定レイアウトにして飛び出しを防止 */
  word-wrap: break-word;
  /* 長いテキストを折り返す */
}

/* 見出し部分 */
thead th {
  background-color: #f0f6ff;
  color: #003366;
  font-weight: bold;
  padding: 0.75em;
  border: 1px solid #ccc;
  text-align: left;
}

/* 本文セル */
tbody td {
  padding: 0.75em;
  border: 1px solid #ddd;
  vertical-align: top;
}

/* 奇数行と偶数行で色を変えて見やすく */
tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

tbody tr:nth-child(even) {
  background-color: #ffffff;
}

/* コードセル専用: 横スクロールを許可 */
td pre {
  background: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  padding: 0.5em;
  margin: 0;
  overflow-x: auto;
  /* 横スクロール */
  white-space: pre;
  /* 改行保持 */
}

/* インラインコード */
td code {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.9rem;
  background: #f3f7ff;
  padding: 2px 4px;
  border-radius: 3px;
  color: #2a4a8a;
}

.tips-badge {
  display: inline-block;
  background-color: #0078d7;
  /* 青系（PowerAppsに合わせるなら紫も可） */
  color: white;
  font-weight: bold;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
}

/*最後の誘導コメント*/
.lecture-icon {
  font-size: 1.4em;
  margin-right: 6px;
}

.cta-card {
  margin: 28px 0;
  padding: 20px;
  background: #f8fbff;
  /* ごく薄い青背景 */
  border: 1px solid #d0e5ff;
  /* 優しい青枠 */
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 0.95em;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  text-align: center;
}

/* マウスホバーでちょっと浮く */
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/*目次*/
.blog-post {
  font-family: "Segoe UI", "Hiragino Sans", sans-serif;
  line-height: 1.8;
  color: #333;
}

/* タイトル */
.post-title {
  font-size: 1.9em;
  font-weight: bold;
  margin-bottom: 6px;
  color: #004080;
  /* 濃いめの青 */
}

/* メタ情報 */
.post-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 24px;
}

.post-category {
  color: #0073e6;
  font-weight: bold;
}

/* 目次エリア */
.post-toc {
  margin: 20px 0;
  padding: 0;
}

.post-toc h2 {
  font-size: 1.1em;
  font-weight: bold;
  color: #333;
  /* 黒っぽく */
  margin-bottom: 10px;
}

.post-toc ul {
  list-style: disc inside;
  padding-left: 0;
  margin: 0;
}

.post-toc ul li {
  margin-bottom: 6px;
  position: relative;
}

.post-toc ul li a {
  text-decoration: none;
  color: #555;
  /* 控えめグレー */
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  /* テキストとアイコンの間隔 */
}

.post-toc ul li a::after {
  content: "🔗";
  /* 右側にリンクマーク */
  font-size: 0.9em;
}

.post-toc ul li a:hover {
  color: #000;
  /* ホバーで黒に変化 */
}