/* ===== メインコンテンツ ===== */

.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, .48);
    outline: 1px solid rgba(228, 228, 228, .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, .48);
    outline: 1px solid rgba(228, 228, 228, .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;
}
 
// ===================================================
//  footer.scss  —  フッターのスタイル
// ===================================================

.site-footer {
  background: #1a1a1a;
  color: #aaa;
  margin-top: 60px;
  padding: 48px 24px 28px;
  box-sizing: border-box;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

// ===== ロゴ =====

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .05em;
}

// ===== ナビゲーション =====

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;

  a {
    font-size: .8rem;
    color: #888;
    text-decoration: none;
    padding: 4px 2px;
    transition: color .15s;

    &:hover {
      color: #fff;
    }
  }
}

// ===== コピーライト =====

.footer-copy {
  font-size: .75rem;
  color: #555;
  margin: 8px 0 0;
  letter-spacing: .03em;
}

// ===================================================
//  レスポンシブ（600px以下）
// ===================================================

@media (max-width: 600px) {
  .site-footer {
    padding: 36px 16px 24px;
    margin-top: 40px;
  }

  .footer-nav {
    gap: 4px 14px;
  }
}
 
// header.scss
/* ===== ヘッダーの定義 ===== */

.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:2.0rem;
}

.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: 1.0rem;
  color: #222;
  text-decoration: none;
  transition: color .25s ease;
}

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

.site-nav a:hover {
  color: #111;
  background: #f3f3f3;
}
.site-nav a:hover::after {
  width: 100%;
}

 

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;
}



/* ===== 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;
  align-items: start; /* sticky が効くために必要 */
}

.layout > .sidebar {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

/* ===== トップページの定義 ===== */

.content-main p{
  font-size: var(--fz-md);
}

/* ===== カード一覧レイアウト（1カラム） ===== */
.cards {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* ===== 各カード ===== */
.card-post {
  border-bottom: 1px solid #eee;
  transition: background .15s ease;
}

.card-post:hover {
  background: #f8f9fa;
}

/* ===== カードリンク：横並びグリッド ===== */
.card-link {
  display: grid;
  grid-template-columns: 130px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  padding: 18px 4px;
  color: inherit;
  text-decoration: none;
  align-items: start;
}

/* ===== サムネ（左列・全行スパン） ===== */
.card-thumb-wrap {
  grid-row: 1 / 4;
  width: 130px;
  height: 98px;
  flex-shrink: 0;
  background: #f6f6f6;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
}

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

/* ===== タイトル ===== */
.card-title {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

#main .card-excerpt {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  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 .12s ease, transform .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: .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%;
}

 
/* ===== レスポンスデザイン（スマホ）の定義 ===== */

/* 600px以下：サムネを小さく */
@media (max-width: 600px) {
  .card-link {
    grid-template-columns: 100px 1fr;
    column-gap: 12px;
    padding: 14px 4px;
  }
  .card-thumb-wrap {
    width: 100px;
    height: 75px;
  }
}

@media (max-width: 900px) {

.local-header{
  padding:0 0 20px 0;
}


.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;
  }

  .hamburger{  }

  /* 既存ナビはデフォルト隠す */
  .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,.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,.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: calc(1.5em * 2);
  max-height: calc(1.5em * 2);
}

/* 目次第3階層（ol の中の ol）を非表示 */
.toc-list ol ol {
  display: none;
}

}
 
/* ===== 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;
}
 
/* ===== サイドバーの定義 ===== */

.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:.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: 1.0rem;
  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;
} 
