@charset "UTF-8";
/* ===== Header (local/web 共通で使える想定) ===== */
:root {
  --hdr-bg:#222;
  --hdr-fg:#fff;
  --hdr-link:#8ecbff;
  --hdr-link-hover:#b7dfff;
  --btn-bg:#444;
  --btn-bg-hover:#666;
  --border:#303030;
  --fz-md: 1.0rem;
  --space-md: 50px;
  --box-left-pd: 25px;
}

body {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  background-color: #f2f3f3;
  color: #343a40;
}

/* 長いURLや英数字のはみ出し対策 */
p, li, a, blockquote, td {
  overflow-wrap: break-word;
  word-break: break-word;
}

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

/* ===== ヘッダーの定義 ===== */
.local-header {
  top: 0;
  z-index: 9999;
}

header {
  background: #fff;
  padding: 20px 0 10px;
  box-sizing: border-box;
}

/* ヘッダー全体を縦方向レイアウトに */
.site-header {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
}

/* タイトルを中央 */
.site-title {
  margin: 0px 0px 15px;
  text-align: center;
  letter-spacing: 0.07em;
  font-weight: 800;
  font-size: 2rem;
}

.site-title a {
  color: #222;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.7rem; /* テキストより少し小さくしてバランス調整 */
  color: #ff66aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-1px); /* 微調整して中央揃えを補正 */
  margin-right: 10px;
}

/* ナビも中央配置 */
.site-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
}

/* ベース */
.site-nav a {
  position: relative;
  padding: 8px 10px;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* 下にアンダーラインアニメーション */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #6fb8ff;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.site-nav a:hover {
  color: #111;
  background: #f3f3f3;
}

.site-nav a:hover::after {
  width: 100%;
}

/* ===== 2カラムレイアウト（右サイドバー） ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 360px; /* ← 左: メイン、右: サイドバー */
  gap: 20px;
  width: 1250px;
  border-radius: 2px;
  max-width: 100%; /* paddingと合わせて横幅を抑制 */
  margin: 20px auto;
  padding: 0 25px;
  box-sizing: border-box;
}

/* ===== トップページの定義 ===== */
.content-main p {
  font-size: var(--fz-md);
}

/* ===== カード一覧レイアウト ===== */
.cards {
  margin: 24px 0;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* ★ 追加：両端に gap と同じ余白を入れる */
  box-sizing: border-box;
}

/* ===== 各カード ===== */
.card-post {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease, transform 0.03s ease;
  /* 高さ揃えのため flex に変更 */
  display: flex;
  flex-direction: column;
}

.card-post:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* ===== サムネ ===== */
.card-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f6f6f6;
  overflow: hidden;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== タイトル（4行固定） ===== */
.card-title {
  margin: 12px 14px 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a66c2;
  line-height: 1.5;
  /* 高さ固定（2行） */
  min-height: 3em;
  max-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 日付 ===== */
.card-meta {
  margin: 0 14px 4px;
  font-size: 12px;
  color: #777;
}

#main .card-excerpt {
  margin: 6px 14px 14px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
  min-height: 4.8em;
  max-height: 4.8em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== トップページや固定ページの見出し ===== */
.hyoudai-p {
  font-size: 2.1rem;
  text-align: center;
  font-weight: 800;
  margin-top: 0px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

.hyoudai-p::after {
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 30px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #ffa726;
  width: fit-content;
}

.head-p {
  font-size: 1.6rem;
  border-left: 6px solid #ffb400;
  padding-left: 12px;
  margin-bottom: 24px;
  color: #333;
  line-height: 1.6;
}

/* ===== カテゴリページ タイトル ===== */
.head-c {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 20px;
  padding: 4px 0;
}

/* アイコン部分 */
.head-c .cat-icon {
  font-size: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #444;
}

/* ===== 記事一覧ページ ===== */
.pagination {
  margin: 30px 0;
  text-align: center;
}

.pagination ul {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination li {
  margin: 0;
  padding: 0;
}

/* a / span 共通の見た目を完全統一 */
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 1;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  text-decoration: none;
  box-sizing: border-box;
}

/* 現在ページ */
.pagination li.active span {
  background: #333;
  color: #fff;
  border-color: #333;
  font-weight: bold;
}

/* hover */
.pagination a:hover {
  background: #f2f2f2;
}

/* 次へ・前へを少し広く */
.pagination .prev a,
.pagination .next a {
  min-width: 64px;
}

/* 置き換え：post-thumb の見切れ防止 */
.post-thumb-wrap {
  width: 100%;
  margin-bottom: 20px;
}

.post-thumb {
  display: block;
  max-width: 100%;
  height: auto; /* ← これで縦は自動伸縮、トリミングしない */
  border-radius: 3px;
}

.post-pager.with-thumbs {
  margin-top: 28px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.pager-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0; /* 仕切り線で区切るのでギャップは0 */
  align-items: stretch;
}

/* 仕切り線（中央） */
.pager-left {
  border-right: 1px solid #eee;
  padding-right: 10px;
}

.pager-right {
  padding-left: 10px;
}

.pager-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  transition: background 0.12s ease, transform 0.12s ease;
  min-height: 64px;
}

.pager-link:hover {
  background: #fafafa;
  transform: translateY(-1px);
}

.pager-link.is-left {
  justify-content: flex-start; /* サムネ → テキスト → 右寄り矢印 */
}

.pager-link.is-right {
  justify-content: flex-end; /* 左寄り矢印 ← テキスト ← サムネ */
}

/* サムネ */
.pager-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* タイトル・ラベル */
.pager-text {
  min-width: 0; /* 省略時のはみ出し防止 */
}

.pager-text small {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

.pager-text strong {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* 2行で省略 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.45;
  color: #333;
}

/* 両端の矢印 */
.arrow {
  width: 16px;
  height: 16px;
  position: relative;
  opacity: 0.5;
  flex-shrink: 0;
}

.arrow-left::before,
.arrow-right::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #999;
  border-left: 2px solid #999;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.arrow-right::before {
  transform: translate(-50%, -50%) rotate(135deg);
}

/* 関連記事の定義 */
.related-posts {
  margin-top: 40px;
  font-size: 1.5rem;
}

.related-posts h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.rel-card {
  display: flex;
  gap: 16px;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  padding: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
}

.rel-card:hover {
  background: #f5f8ff;
}

.rel-thumb-wrap {
  position: relative;
  width: 180px;
  flex-shrink: 0;
}

.rel-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

.rel-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: gray;
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

.rel-body {
  flex: 1;
}

.rel-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.rel-excerpt {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.post .breadcrumb {
  font-size: 14px;
  margin-bottom: 8px;
}

.post .breadcrumb a {
  font-size: 14px;
  text-decoration: none;
}

/* ===== ハンバーガーメニューの定義（パソコンでは非表示） ===== */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg, #444);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hamburger:hover {
  background: var(--btn-bg-hover, #666);
}

.hamburger:focus-visible {
  outline: 2px solid #9ad0ff;
  outline-offset: 2px;
}

.content-main {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 3px;
  padding: 25px 35px;
  max-width: 100%;
}

/* ===== サイドバーの定義 ===== */
.sidebar {
  top: 12px;
  align-self: start;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 2px;
  padding: 19px;
  max-width: 100%;
  box-sizing: border-box;
}

.sidebar-section + .sidebar-section {
  margin-top: 16px;
}

.sidebar-title {
  color: #555;
  margin: 0 0 8px;
  padding-bottom: 6px;
  font-size: 18px;
  font-weight: bold;
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-list li {
  margin: 6px 0;
}

.sidebar-list a {
  text-decoration: none;
  color: #0a66c2;
}

.sidebar-list a:hover {
  text-decoration: underline;
}

.sidebar-meta {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.sidebar-empty {
  font-size: 13px;
  color: #777;
}

.tag-cloud {
  display: block;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: block;
  align-items: center;
  gap: 6px;
  padding: 15px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 1px;
  text-decoration: none;
  font-size: 14px;
  color: #333;
  background: #fff;
}

.tag-chip:hover {
  background: #f6f7fb;
}

.tag-chip .cnt {
  font-size: 14px;
  opacity: 0.65;
}

.cnt {
  margin-left: 5px;
}

/* === Sidebar Profile === */
.profile-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.profile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-icon {
  width: 90px;
  height: 90px;
  border-radius: 4px;
  object-fit: cover;
  border: 2px solid #eee;
  margin-bottom: 0px;
}

.profile-name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  margin: 0;
}

.profile-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  text-align: left;
  margin: 0;
}

.profile-links {
  margin-top: 8px;
}

.profile-link {
  display: inline-block;
  font-size: 13px;
  color: #4865b2;
  text-decoration: none;
}

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

/* サイドバー検索ボックス */
.sidebar-search {
  position: relative;
  margin: 0 0 16px;
  margin-bottom: 20px;
}

.sidebar-search input[type=text] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 38px 10px 12px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 15px;
  color: #333;
  background-color: #fff;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.sidebar-search input[type=text]:focus {
  border-color: #aaa;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.sidebar-search button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.sidebar-search button svg {
  width: 18px;
  height: 18px;
  fill: #bbb;
  transition: fill 0.2s;
}

.sidebar-search button:hover svg {
  fill: #666;
}

/* 検索結果ページ用 */
.search-result {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.search-result h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.search-result .meta {
  color: #888;
  font-size: 12px;
  margin-bottom: 4px;
}

.search-result p {
  margin: 0;
  color: #333;
  line-height: 1.7;
}

.search-highlight {
  background: #fff59d;
}

/* ===== サイドバー：最近の記事（サムネ＋タイトル横並び）の定義 ===== */
.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.media-item + .media-item {
  margin-top: 10px;
}

.media-link {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.media-thumb-wrap {
  width: 84px;
  height: 76px;
  border-radius: 2px;
  overflow: hidden;
  background: #f2f2f2;
}

.media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.media-title {
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-date {
  font-size: 12px;
  color: #777;
}

/* =========================================
　ローカルサイドバーの定義
========================================= */
.sidebar-local {
  position: sticky;
  top: 20px;
}

/* ===== フッターの定義 ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 24px 16px;
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-top: 0px;
  box-sizing: border-box;
}

.site-footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-logo {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}

.footer-nav {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #333;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #0078d7;
}

.footer-copy {
  font-size: 13px;
  color: #777;
  margin: 0;
}

/* サイドバー内リンク色を完全統一（ローカル管理） */
.sidebar-list a,
.sidebar-link {
  color: #551A8B;
  line-height: 1.6;
}

.sidebar-list a:hover,
.sidebar-link:hover {
  text-decoration: underline;
}

/* visited でも色を変えない */
.sidebar-list a:visited,
.sidebar-link:visited {
  color: #551A8B;
}

/* ==============================
   カテゴリ全体
================================ */
.category-section {
  margin: 48px 0;
}

.category-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ==============================
   カード
================================ */
.category-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: visible; /* ← 吹き出し用 */
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* ==============================
   画像
================================ */
.category-image {
  position: relative;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* カテゴリバッジ */
.category-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ==============================
   テキスト
================================ */
.category-content {
  padding: 22px;
}

.category-name {
  font-size: 1.2rem;
  margin: 0;
}

/* ==============================
   新着記事：カテゴリラベル
================================ */
.card-thumb-wrap {
  position: relative;
}

.card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}

/* ==============================
   スマホ対応
================================ */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px; /* ← スマホは少し詰めると上品 */
  }
  .category-image img {
    height: 140px; /* ← 縦を抑えて崩れ防止（任意） */
  }
  .category-name {
    font-size: 1rem; /* ← 2列時に読みやすく */
  }
}
/* ===== メインコンテンツ ===== */
.post p, post li {
  line-height: 1.8;
}

.post-thumb {
  margin-bottom: 40px;
}

.post h1 {
  text-align: center;
  font-size: 1.9rem;
  margin: 0 0 20px;
}

.post h2 {
  --stripe-color: #eee; /*ストライプの色 */
  font-size: 1.6rem;
  color: #333; /* 文字色 */
  background: #f5f6f7;
  background-size: 4px 4px;
  padding: 20px 20px 20px;
  margin-bottom: 40px;
}

.post h3 {
  border-left: 7px solid #888;
  border-right: 1px solid #ddd;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 1.4rem;
  padding: 11px 20px;
  margin-bottom: 40px;
}

.post h4 {
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  margin-bottom: 1.62em;
  font-size: 1.2rem;
  padding: 9px 10px;
}

.post p {
  font-size: var(--fz-md);
  margin-bottom: var(--space-md);
}

.post a {
  font-size: var(--fz-md);
}

.post li {
  font-size: var(--fz-md);
}

.post img {
  max-width: 100%;
}

.post ul {
  margin: 0px 0px 50px;
  padding: 0px 0px 0px 20px;
}

.post ul li ul {
  margin-bottom: 5px;
}

.post div ul {
  margin: 0;
}

.post blockquote ul {
  margin: 10px 0px 0px;
}

.post.box-green ul {
  margin-bottom: 10px;
}

.red {
  color: red;
}

.gray {
  color: gray;
}

.pre {
  background-color: rgba(250, 250, 250, 0.48);
  outline: 1px solid rgba(228, 228, 228, 0.8705882353);
  color: #444;
  overflow: auto;
  display: block;
  list-style-type: disc;
  list-style-position: outside;
  padding: 10px 20px 25px;
  margin-bottom: 50px;
  line-height: 1.7;
}

.pre p {
  margin-bottom: 0;
}

/* ===== シンプル青チェック見出し ===== */
.check {
  position: relative;
  padding-left: 32px;
  margin: 32px 0 16px;
  font-weight: 600;
  font-size: 1.2rem;
}

/* チェックマーク */
.check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 40%;
  width: 14px;
  height: 8px;
  border-left: 3px solid #4b6cb7;
  border-bottom: 3px solid #4b6cb7;
  transform: translateY(-55%) rotate(-45deg);
}

/* 画像だけを含む p の余白をリセット */
.post p:has(> picture),
.post p:has(> img) {
  margin-bottom: 20px;
}

.img-figure {
  margin: 10px 0;
  text-align: center;
}

.img-caption {
  font-size: 13px;
  color: #777; /* ← グレー文字 */
}

.img-caption a {
  font-size: 13px;
  color: #777; /* ← グレー文字 */
}

/* 横並び画像（2枚画像の行） */
figure.img-row {
  width: 100%;
  margin: 20px 0;
}

.img-row-inner {
  display: flex;
  gap: 16px;
  width: 100%;
}

.img-row-inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px; /* 任意 */
}

/* 横並び画像（figure.img-row）のキャプション中央寄せ */
figure.img-row {
  text-align: center;
}

figure.img-row .img-caption {
  text-align: center;
  margin-top: 6px;
  font-size: 14px;
  color: #666;
}

/* FAQ用 */
.faq-section {
  margin: 2rem 0;
}

.faq-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* 全体のリスト */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 個々のボックス */
.faq-box {
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 0;
}

/* 質問部分 */
.faq-box summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  font-weight: 600;
  font-size: var(--fz-md);
}

/* デフォルトの三角アイコンを消す */
.faq-box summary::-webkit-details-marker {
  display: none;
}

/* 開閉アイコン（右側の＋／−） */
.faq-box summary::after {
  content: "＋";
  float: right;
  font-weight: 700;
  color: #999;
  transition: transform 0.2s ease;
}

.faq-box[open] summary::after {
  content: "−";
}

/* 答え部分 */
.faq-body {
  border-top: 1px solid #eee; /* 画像のような横線 */
  padding: 12px 16px 14px;
  font-size: 1rem;
  line-height: 1.8;
}

/* 答え部分 */
.faq-body p {
  margin-bottom: 0;
}

#tmbfigure {
  font-size: 13px;
  text-align: center;
  color: #777;
  margin: 0;
}

.post iframe {
  max-width: 100%;
}

/* 引用ブロック（グレー背景・両端に引用マーク） */
.quote-block {
  position: relative;
  background: #f2f2f2;
  padding: 30px 45px;
  border-radius: 2px;
  margin: 20px 0;
}

.quote-block p {
  margin: 0;
}

/* 左上の引用マーク */
.quote-block::before {
  content: "❝";
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 26px;
  color: #ccc;
}

/* 右下の引用マーク */
.quote-block::after {
  content: "❞";
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 26px;
  color: #ccc;
}

/* 引用文 */
.quote-block p, .quote-block li {
  margin: 0 0 12px;
  font-size: var(--fz-md);
  color: #444;
}

/* 引用元 */
.quote-block cite {
  font-style: normal;
  font-size: 14px;
  color: #666;
}

.quote-block cite a {
  font-size: 14px;
  color: #0a2a6c;
}

/* ==== グレーボックス ==== */
.box-gray {
  font-size: var(--fz-md);
  background-color: rgba(250, 250, 250, 0.48);
  outline: 1px solid rgba(228, 228, 228, 0.8705882353);
  color: #444;
  overflow: auto;
  display: block;
  list-style-type: disc;
  list-style-position: outside;
  padding: 20px 20px 20px var(--box-left-pd);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* ==== 白枠ボックス（落ち着いた広告っぽいデザイン） ==== */
.box-white {
  border: 1px solid #d0d0d0; /* やや薄いグレーの枠線 */
  padding: 20px 20px 20px var(--box-left-pd);
  background: #fff; /* 完全ホワイト */
  border-radius: 4px; /* 角を少し丸める */
  margin: 0 0 var(--space-md);
}

.box-gray p, .box-yellow p, .box-green p, .box-white p {
  margin: 0;
}

/* 緑ボックス */
.box-green {
  border-left: 6px solid #34c759;
  padding: 30px 25px 30px 12px;
  background: #e8fff0;
  margin: 0px 0px 40px 0px;
}

.box-green li {
  margin-bottom: 7px;
}

/* リストデザイン（青いドット） */
.box-white ul {
  margin: 0;
  padding-left: 1.2em;
}

.box-white li {
  margin: 10px 0;
  line-height: 1.7;
  font-size: var(--fz-md);
}

/* 青の丸いドットに見せる */
.box-white li::marker {
  color: #4682b4; /* 落ち着いたスチールブルー */
  font-size: 1.2em;
}

/* ===========================
   イントロボックス（記事の内容）デザイン
   =========================== */
.intro-box {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 16px 28px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin: 24px 0;
}

/* 記事のポイント タイトル */
.intro-box-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  padding-left: 10px;
  padding-right: 20px; /* ← ここを増やす */
  font-size: 1.05em;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #cfcfcf;
}

/* 左のアイコン */
.intro-box-title::before {
  content: "≡";
  font-size: 1.2em;
  color: #777;
}

/* リスト（番号付きだが番号はCSSで装飾） */
.intro-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 各項目 */
.intro-box ul li {
  position: relative;
  padding: 8px 0 8px 48px; /* 左に余白 → 番号スペース */
  font-size: 16px;
  color: #333;
  border-bottom: 1px dotted #ccc;
}

.intro-box ul li:last-child {
  border-bottom: none;
}

/* 疑似要素で番号の金色ボックスを作成 */
.intro-box ul li::before {
  content: counter(tocNum);
  counter-increment: tocNum;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d5bb7a; /* 落ち着いた金色 */
  color: white;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
}

/* カウンター初期化 */
.intro-box ul {
  counter-reset: tocNum;
}

.youtube-box {
  /* 親要素の幅いっぱいに広げる */
  width: 100%;
  /* 高さを0にして、padding-topで比率を計算させるための箱 */
  height: 0;
  /* 16:9の比率を保つためのパディング（9 ÷ 16 × 100 = 56.25%） */
  padding-top: 56.25%;
  /* 子要素（iframe）を絶対配置するための基準 */
  position: relative;
}

.youtube-box iframe {
  /* 親要素の左上から配置 */
  position: absolute;
  top: 0;
  left: 0;
  /* 親要素の幅・高さいっぱいに広げる */
  width: 100%;
  height: 100%;
}

/* ==============================
   カラーパレット（ここだけ触ればOK）
============================== */
:root {
  --toc-text: #1f5fbf;
  --toc-dot: #1f5fbf;
}

/* ==============================
   目次ボックス全体
============================== */
.toc-box {
  background: #ffffff;
  border: 1px solid #e4e7eb;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 32px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.toc-box:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

/* タイトル */
.toc-box::before {
  content: "目次";
  display: block;
  font-size: var(--fz-md);
  font-weight: 600;
  color: #222;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

/* ==============================
   リスト共通（左寄せ）
============================== */
.toc-list,
.toc-list ol {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

/* ==============================
   第1階層
============================== */
.toc-list > li {
  position: relative;
  padding-left: 1.2em;
  margin: 6px 0;
}

.toc-list > li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--toc-dot);
}

.toc-list > li > a {
  color: var(--toc-text);
  text-decoration: none;
}

/* ==============================
   第2階層
============================== */
.toc-list > li > ol {
  margin-top: 4px;
  padding-left: 0.8em;
}

.toc-list > li > ol > li {
  position: relative;
  padding-left: 1.4em;
  margin: 4px 0;
}

.toc-list > li > ol > li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--toc-dot);
}

.toc-list > li > ol > li > a {
  color: var(--toc-text);
  text-decoration: none;
}

/* ==============================
   第3階層
============================== */
.toc-list ol ol {
  margin-top: 4px;
  padding-left: 0.8em;
}

.toc-list ol ol > li {
  position: relative;
  padding-left: 1.4em;
  margin: 4px 0;
}

.toc-list ol ol > li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--toc-dot);
}

.toc-list ol ol > li > a {
  color: var(--toc-text);
  text-decoration: none;
}

/* ==============================
   ホバー（下線なし）
============================== */
.toc-list a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* ====== シンプルテーブルデザイン（汎用・落ち着いた印象） ====== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-md);
  background-color: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
  box-sizing: border-box;
  font-size: var(--fz-md);
}

/* 見出しセル */
table th {
  background-color: #f5f5f5;
  color: #333;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  border: 1px solid #ddd;
}

/* 通常セル */
table td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  line-height: 1.6;
  color: #444;
}

/* 偶数行の背景色を少し変えて見やすく */
table tr:nth-child(even) td {
  background-color: #fafafa;
}

/* 角丸が効くように最初と最後の行を丸める */
table tr:first-child th:first-child {
  border-top-left-radius: 6px;
}

table tr:first-child th:last-child {
  border-top-right-radius: 6px;
}

table tr:last-child td:first-child {
  border-bottom-left-radius: 6px;
}

table tr:last-child td:last-child {
  border-bottom-right-radius: 6px;
}

/* 黄ボックス */
.box-yellow {
  border-left: 6px solid #f5c542;
  padding: 20px 20px 20px var(--box-left-pd);
  background: #fff8d8;
  margin: 16px 0;
}

.label-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4pxbox;
  overflow: hidden;
  max-width: 800px;
  margin-bottom: 40px;
}

.label-box__label {
  background-color: #f8f8f8;
  padding: 8px 16px;
  font-weight: 600;
  font-size: --fz-md;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
}

.label-box__content {
  padding: 16px 20px;
}

.label-box__content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.label-box__content li {
  margin-bottom: 12px;
  padding-left: 1em;
  position: relative;
}

.label-box__content li:last-child {
  margin-bottom: 0;
}

.label-box__content li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #333;
}

.label-box__content a {
  color: #1a73e8;
  text-decoration: none;
  line-height: 1.6;
}

.label-box__content a:hover {
  text-decoration: underline;
}

/* 通常 ul */
.content-main ul {
  margin-bottom: var(--space-md);
}

/* 入れ子 ul は除外 */
.content-main ul ul {
  margin-bottom: 0;
}

/* ボックス内 ul も除外 */
.box-white ul,
.box-gray ul,
.box-yellow ul,
.box-green ul,
.label-box ul,
.intro-box ul {
  margin-bottom: 0;
}

.page h2 {
  font-size: 1.6rem;
  border-left: 6px solid #ffb400;
  padding-left: 12px;
  margin-bottom: 24px;
  color: #333;
  line-height: 1.6;
}

.page .breadcrumb {
  font-size: 14px;
  margin-bottom: 8px;
}

.page .breadcrumb a {
  font-size: 14px;
  text-decoration: none;
}

.page ul, .page ol {
  padding-left: 20px;
  margin-bottom: var(--space-md);
}

.page ul li, .page ol li {
  margin-bottom: 10px;
}

.page p {
  margin-bottom: var(--space-md);
}

/* 固定ページ：執筆者リンク（右寄せ） */
.page-author-link {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  text-align: right;
}

.page-author-link a {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  position: relative;
}

/* ★ ペンアイコン */
.page-author-link a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #2563eb; /* リンクは青 */
  text-decoration: none;
}

.page-author-link a::before {
  content: "執筆者:";
  color: #333; /* ★ ここで色を固定 */
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

.page .box-white ul {
  margin-bottom: 0px;
}

/* ===== レスポンスデザイン（スマホ）の定義 ===== */
/* 1100px以下は2列に固定（できるだけ2列を維持） */
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .local-header {
    padding: 0 0 20px 0;
  }
  .card-title {
    min-height: 4.5em;
    max-height: 4.5em;
  }
  .quote-block {
    padding: 28px 20px 20px 35px;
  }
  .quote-block ul {
    padding: 20px 5px 20px 20px;
  }
  .content-main {
    padding: 18px;
    border: none;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 12px;
    margin: 0;
  }
  .sidebar {
    position: static;
  }
  .layout {
    margin: 0px auto;
    padding: 0;
  }
  .hamburger {
    display: inline-flex;
    position: relative;
    top: 35px; /* ← 好きな値に調整（8〜14px が自然） */
    left: 10px;
    margin-top: 0; /* ← margin によるレイアウト崩れを防止 */
    margin-left: 8px;
  }
  /* 既存ナビはデフォルト隠す */
  .site-nav {
    display: none;
  }
  /* 開いたときのドロワー */
  .site-header.is-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    top: 0;
    left: 0;
    width: 78vw;
    max-width: 320px;
    height: 100dvh;
    padding: 16px;
    background: #222;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 1100;
    overflow: hidden; /* ← 背景のはみ出し防止 */
    align-items: flex-start; /* ← これを追加するだけ！ */
    justify-content: flex-start; /* ← 念のため（上揃えを保証） */
  }
  .site-header.is-open .site-nav a {
    display: block; /* 行全体をクリック範囲に */
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    border-bottom: solid #fff 1px;
    border-radius: 0; /* 端まで色を塗るので角丸はOFF */
    color: #fff; /* ダーク背景なら白字推奨 */
  }
  .site-header.is-open .site-nav a:hover {
    background: #444;
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
  }
  /* 全体のカード感 */
  .media-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }
  /* 横並びの基本レイアウト */
  .media-link {
    display: grid;
    grid-template-columns: 95px 1fr; /* サムネサイズ調整 */
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
  }
  /* サムネイル：高さを統一（重要） */
  .media-thumb-wrap {
    width: 95px;
    height: 70px; /* ← 高さを固定して綺麗に揃える */
    border-radius: 2px;
    overflow: hidden;
    background: #f2f2f2;
  }
  .media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* タイトル：読みやすく行数制限 */
  .media-title {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 2行で省略 */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* 日付 */
  .media-date {
    font-size: 12px;
    color: #777;
    margin-top: 3px;
  }
}
/* ===== 900pxまでの設定の終了 ===== */
/* ===== Small screens ===== */
@media (max-width: 640px) {
  .site-header {
    padding: 8px 12px;
  }
  .site-title {
    font-size: 19px;
  }
  .site-nav {
    gap: 10px;
  }
  .iconbtn {
    min-width: 32px;
    height: 30px;
  }
  .lb-prev {
    left: 6px;
  }
  .lb-next {
    right: 6px;
  }
  .lb-close {
    right: 6px;
    top: 6px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .card-title {
    min-height: 3em;
    max-height: 3em;
  }
  /* 目次第3階層（ol の中の ol）を非表示 */
  .toc-list ol ol {
    display: none;
  }
}
