.af-btn-wrap br, .af-btn3-wrap br{
display: none;
}

/* メインのセクション見出し用：左ライン＋淡色背景で視認性アップ */
.blog-detail h2 {
  position: relative;
  font-size: 1.6rem;
  font-weight: bold;
  color: #444;
  background: #eff6ff; /* ごく淡い青背景 */
  padding: 14px 20px;
  margin: 50px 0 25px;
  border-left: 8px solid #ff9800;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}
.blog-detail h3 {
  position: relative;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 30px 0 15px;
  padding-bottom: 6px;
  color: #444;
  border-bottom: 3px solid #ff9800;
}
.blog-detail h4 {
  position: relative;
  font-size: 1.4rem;
  font-weight: bold;
  color: #444;
  text-align: left;
  margin: 40px 0 20px;
  padding: 10px 0;
  border-top: 3px double #ff9800;  /* 上2重線 */
  border-bottom: 3px double #ff9800; /* 下2重線 */
}
.blog-detail h4::before {
  content: "◆";
  color: #444;
  margin-right: 6px;
  font-size: 0.9em;
}


/* ===== マーカー風アンダーライン（文字の下半分だけ色を付ける） ===== */
.marker {
  background: linear-gradient(transparent 60%, var(--color) 60%);
  display: inline;
}

/* ===== 太字 ===== */
.bold { font-weight: bold; }
/* ===== 文字色 ===== */
.chara-black { color: #000; }
.chara-blue { color: #4169e1; }
.chara-blue2 { color: #112752; }
.chara-red { color: #dc143c; }
.chara-pink { color: #ff69b4; }
.chara-green { color: #3cb371; }
.chara-orange { color: #ff8c00; }

.marker-blue { --color: #bfdbfe; }   /* 優しい青 */
.marker-red { --color: #fecaca; }/* 赤 */
.marker-pink { --color: #fbcfe8; }   /* ピンク */
.marker-yellow { --color: #fef08a; } /* 黄色 */
.marker-green { --color: #bbf7d0; }  /* 緑 */
.marker-orange { --color: #fed7aa; } /* オレンジ */

/* ===== アンダーライン ===== */
.underline-blue { border-bottom: 4px solid #007bff; display: inline-block; }
.underline-red { border-bottom: 4px solid #dc3545; display: inline-block; }
.underline-pink { border-bottom: 4px solid #e83e8c; display: inline-block; }
.underline-yellow { border-bottom: 4px solid #ffc107; display: inline-block; }
.underline-green { border-bottom: 4px solid #28a745; display: inline-block; }
.underline-orange { border-bottom: 4px solid #fd7e14; display: inline-block; }

/* ===== 中抜きボックス（枠線のみ） ===== */
.box-outline {
  border: 2px solid;
  padding: 15px;
  margin: 20px 0;
  border-radius: 6px;
  background: #fff;
}
.box-blue { border-color: #007bff; }
.box-red { border-color: #dc3545; }
.box-pink { border-color: #e83e8c; }
.box-yellow { border-color: #ffc107; }
.box-green { border-color: #28a745; }
.box-orange { border-color: #fd7e14; }
.box-gray { border-color: #6c757d; }

.box-doubleline {
  border: 4px double #000;
  padding: 16px;
  margin: 20px 0;
  border-radius: 6px;
  background: #fff; /* 中抜き感を保つための白背景 */
}
/* カラー別（既存デザインと統一） */
.box-doubleline.box-blue   { border-color: #007bff; }
.box-doubleline.box-red    { border-color: #dc3545; }
.box-doubleline.box-pink   { border-color: #e83e8c; }
.box-doubleline.box-yellow { border-color: #ffc107; }
.box-doubleline.box-green  { border-color: #28a745; }
.box-doubleline.box-orange { border-color: #fd7e14; }
.box-doubleline.box-gray   { border-color: #6c757d; }

/* ===== 背景色ありボックス ===== */
.box-fill {
  padding: 15px;
  margin: 20px 0;
  border-radius: 6px;
  color: #fff;
}
.fill-blue { background: #dbeafe; color: #1e40af; }   /* 優しい水色 */
.fill-red { background: #fee2e2; color: #991b1b; }/* やわらかい赤 */
.fill-pink { background: #fce7f3; color: #9d174d; }   /* ピンク */
.fill-yellow { background: #fef9c3; color: #854d0e; } /* やさしい黄色 */
.fill-green { background: #dcfce7; color: #166534; }  /* グリーン */
.fill-orange { background: #ffedd5; color: #9a3412; } /* オレンジ */
.fill-gray { background: #f3f4f6; color: #374151; }   /* グレー */


/* --- テーブル --- */
.table-wrap {
  width: 100%;
  overflow-x: auto;         /* ← 横スクロール対応 */
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}
.design-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;         /* ← 横長時の見やすさ確保 */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #fff;
  font-size: 1rem;
}

.design-table th {
  font-weight: bold;
  text-align: left;  /* ← デフォルトのcenterを上書き */
  vertical-align: middle;
}
/* 各カラーバリエーションにも共通適用 */
.design-table-gray th,
.design-table-green th,
.design-table-pink th,
.design-table-yellow th,
.design-table-orange th {
  font-weight: bold;
  text-align: left;
  vertical-align: middle;
}


.design-table-gray {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  font-size: 1rem;
}
.design-table-gray thead {
  background: #e5e7eb;
  color: #333;
}
.design-table-gray th,
.design-table-gray td {
  padding: 14px 18px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}
.design-table-gray tbody tr:nth-child(even) {
  background: #fefefe;
}

.design-table-pink {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  font-size: 1rem;
  border: 1px solid #f3d1da;
}
.design-table-pink thead {
  background: #f9e1e9;
  color: #b8326e;
}
.design-table-pink th,
.design-table-pink td {
  padding: 14px 18px;
  border-bottom: 1px solid #f4dce3;
  text-align: left;
}
.design-table-pink tbody tr:nth-child(even) {
  background: #fff7fa;
}

.design-table-yellow {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf3;
  font-size: 1rem;
  border: 1px solid #f8e08e;
}
.design-table-yellow thead {
  background: #fff2b2;
  color: #7a5d00;
}
.design-table-yellow th,
.design-table-yellow td {
  padding: 14px 18px;
  border-bottom: 1px solid #f7e7a8;
  text-align: left;
}
.design-table-yellow tbody tr:nth-child(even) {
  background: #fffbe0;
}

.design-table-orange {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf6;
  font-size: 1rem;
  border: 1px solid #f6b37f;
}
.design-table-orange thead {
  background: #ffcc99;
  color: #7a3a00;
}
.design-table-orange th,
.design-table-orange td {
  padding: 14px 18px;
  border-bottom: 1px solid #f4c38f;
  text-align: left;
}
.design-table-orange tbody tr:nth-child(even) {
  background: #fff3e6;
}

.design-table-outline {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 1rem;
  border: 2px solid #2563eb;
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}
.design-table-outline th {
  background: #2563eb;
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid #2563eb;
}
.design-table-outline td {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}
.design-table-outline tbody tr:last-child td {
  border-bottom: none;
}
.design-table-outline tbody tr:nth-child(even) {
  background: #f8fafc;
}


/* --- 見出し行 --- */
.design-table thead {
  background: #2563eb;  /* 京都HP屋さんの青系カラー */
  color: #fff;
  text-align: left;
}

.design-table th {
  padding: 14px 18px;
  font-weight: bold;
  white-space: nowrap;
}

/* --- データ行 --- */
.design-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* --- 偶数行の背景色を変えて読みやすく --- */
.design-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
.design-table {
    font-size: 0.95rem;
    min-width: 500px; /* ← 小さめ画面でも見切れない */
}

.design-table th,
.design-table td {
    padding: 12px 14px;
}

  /* 横スクロール時の視認性UP */
.table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
}

/* ===== アフィリエイトボタン ===== */
/* 共通デザイン */
.af-btn {
  display: inline-block;
  text-align: center;
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: 0.3s;
  margin: 10px 0;
  padding: 15px 0;
}

.af-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* 色別 */
.red { background: linear-gradient(135deg, #f87171, #dc2626); }
.blue { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.green { background: linear-gradient(135deg, #34d399, #059669); }

/* サイズ別 横幅 */
.large { width: 80%; font-size: 20px; }
.medium { width: 50%; font-size: 20px; }
.small { width: 30%; font-size: 20px; }

/* 中央揃え */
.center { display: block; margin-left: auto; margin-right: auto; }



.af-btn-wrap {
  text-align: center;
  margin: 20px 0;
}

.af-btn-catch {
  display: inline-block;
  width: 100%;
  max-width: 300px; /* サイズ調整 */
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: 0.3s;
  margin: 10px auto;
  text-align: center;
  padding: 10px 0;
  color: #fff;
}

.af-btn-catch:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* キャッチコピー部分 */
.af-btn-catch-text {
  font-size: 0.85rem;
  margin-bottom: 4px;
  display: block;
  color: #fff;
  opacity: 0.9;
}

/* ボタンテキスト */
.af-btn-btn-text {
  font-size: 1.1rem;
  font-weight: bold;
}

/* サイズ別 */
.large2 { padding: 18px 0; font-size: 18px; max-width: 400px; }
.medium2 { padding: 14px 0; font-size: 16px; max-width: 300px; }
.small2 { padding: 10px 0; font-size: 14px; max-width: 220px; }



.af-btn3-wrap {
text-align: center;
margin: 20px 0;
}

.catch-above {
font-size: 1.2rem;
margin-bottom: 2px;
display: block;
color: #ff0000;
font-weight: bold;
}

.af-btn3 {
display: inline-block;
text-align: center;
text-decoration: none;
color: #fff;
font-weight: bold;
border-radius: 30px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
transition: 0.3s;
margin: 10px auto;
}

.af-btn3:hover {
opacity: 0.9;
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* サイズ別 */
.large3 { width: 80%; padding: 18px 40px; font-size: 20px; }
.medium3 { width: 50%; padding: 14px 28px; font-size: 20px; }
.small3 { width: 30%; padding: 10px 20px; font-size: 20px; }


/* ===== FAQ アコーディオン ===== */
/* ===== FAQ全体 ===== */
.faq-section {
  max-width: 800px;
  margin: 40px auto;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: #333;
}

/* ===== 各項目 ===== */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

/* ===== 質問部分 ===== */
.faq-question {
  cursor: pointer;
  position: relative;
  padding: 18px 24px 18px 50px; /* 左側にQアイコン用スペース */
  font-size: 1.05rem;
  font-weight: 600;
  background: #f8fafc;
  list-style: none;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #eef2f7;
}

/* デフォルトの矢印を非表示 */
.faq-question::-webkit-details-marker {
  display: none;
}

/* Qアイコン */
.faq-question::before {
  content: 'Q';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: #fff;
  background-color: #2563eb;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  font-size: 1rem;
}

/* 開閉アイコン */
.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #2563eb;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* ===== 回答部分 ===== */
.faq-answer {
  display: none; /* 閉じたとき非表示 */
  padding: 20px 24px 20px 50px; /* 左側にAアイコン用スペース */
  line-height: 1.8;
  font-size: 1rem;
  color: #444;
  position: relative;
}

/* Aアイコン */
.faq-answer::before {
  content: 'A';
  position: absolute;
  left: 18px;
  top: 20px;
  font-weight: bold;
  color: #fff;
  background-color: #10b981;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  font-size: 1rem;
}

/* ===== 開いた状態 ===== */
.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-item[open] .faq-answer {
  display: block;
  border-top: 1px solid #e5e7eb;
}

/* ===== スマホ対応 ===== */
@media (max-width: 600px) {
  .faq-question {
    padding: 16px 18px 16px 50px;
    font-size: 1rem;
  }
  .faq-answer {
    padding: 16px 18px 16px 50px;
    font-size: 0.95rem;
  }
}


/* --- 基本 --- */
ul.list-basic,
ol.list-number,
ul.list-check,
ul.list-arrow {
  margin: 1em 0;
  padding-left: 0;
  list-style: none;
  line-height: 1.8;
  font-size: 1.1rem; /* ← コンテンツを少し大きく */
  background: none;
  border: none;
}

/* --- 共通liスタイル --- */
ul.list-basic li,
ol.list-number li,
ul.list-check li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.3em; /* ← 間隔を少し詰めた */
  background: none;
}

/* --- 通常UL --- */
ul.list-basic li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.1em;
}
/* --- 通常UL（赤・青・オレンジ） --- */
ul.list-basic.red li::before { color: #ef4444; }    /* 赤 */
ul.list-basic.blue li::before { color: #3b82f6; }   /* 青 */
ul.list-basic.orange li::before { color: #f97316; } /* オレンジ */
ul.list-basic.green li::before { color: #22c55e; } /* 緑 */

/* --- OL（番号付き） --- */
ol.list-number {
  counter-reset: list-counter;
}
ol.list-number li {
  counter-increment: list-counter;
  padding-left: 1.8em;
}
ol.list-number li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 1.1em;
}
/* --- 番号付き（赤・青・オレンジ） --- */
ol.list-number.red li::before { color: #ef4444; }    /* 赤 */
ol.list-number.blue li::before { color: #3b82f6; }   /* 青 */
ol.list-number.orange li::before { color: #f97316; } /* オレンジ */
ol.list-number.green li::before { color: #22c55e; } /* 緑 */

/* --- チェックマーク付き --- */
ul.list-check li::before {
  content: "✔";
  font-size: 1.1em;
  position: absolute;
  left: 0;
  top: 0;
}
/* --- チェック（赤・青・オレンジ） --- */
ul.list-check.red li::before { color: #ef4444; }    /* 赤 */
ul.list-check.blue li::before { color: #3b82f6; }   /* 青 */
ul.list-check.orange li::before { color: #f97316; } /* オレンジ */
ul.list-check.green li::before { color: #22c55e; } /* 緑 */


/* ===== Table of Contents Plus（TOC+） ===== */
#toc_container {
  display: inline-block;       /* 横幅を内容に合わせる */
  background: #fff;
  border: 2px solid #dbeafe;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 30px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-family: 'Yu Gothic', 'Hiragino Kaku Gothic Pro', sans-serif;
  font-size: 0.95rem;
  color: #333;
  vertical-align: top;         /* inline-block時のズレ防止 */
  transition: all 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;             /* 画面幅より広がらないように */
}

/* タイトル部分 */
#toc_container .toc_title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;         /* 改行防止（幅が変わらないように） */
}

/* 折りたたみボタン */
#toc_container .toc_toggle {
  font-size: 0.9rem;
  color: #3b82f6;
  cursor: pointer;
  margin-left: 8px;
  transition: opacity 0.2s;
}
#toc_container .toc_toggle:hover {
  opacity: 0.8;
}

/* リスト */
#toc_container ul {
  padding-left: 1.2em;
  margin: 0;
}
#toc_container li {
  margin: 6px 0;
  line-height: 1.6;
  border-left: 2px solid transparent;
  transition: border-color 0.2s;
}
#toc_container a {
  color: #333;
  text-decoration: none;
  display: inline-block;
  padding-left: 4px;
  transition: color 0.2s;
}
#toc_container a:hover {
  color: #1e40af;
}
#toc_container li:hover {
  border-left: 2px solid #3b82f6;
}

/* サブ階層 */
#toc_container ul ul {
  margin-left: 14px;
  border-left: 1px dashed #d0d7e2;
  padding-left: 10px;
}

/* 折りたたみリスト */
#toc_container .toc_list {
  overflow: hidden;
  transition: height 0.2s ease;
}
#toc_container .toc_list.collapse {
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* スマホ対応 */
@media (max-width: 600px) {
#toc_container {
    display: block;        /* スマホでは全幅に */
    width: 95%;
    padding: 14px 16px;
}
#toc_container .toc_title {
    font-size: 1rem;
}
}
