/* ========================================
   基本設定（見やすさ改善）
======================================== */
body {
  font-family: 'Yomogi', 'M PLUS Rounded 1c', "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px; /* ←少しアップ */
  background-color: #fffafc;
  color: #333; /* ←濃くして読みやすく */
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin: 0;
}

/* ========================================
   ブログタイトル
======================================== */
#blog-title a {
  color: #6b4b9e !important;
  text-decoration: none;
  text-shadow: none !important;
  text-align: center;
  display: block;
}

#blog-description {
  color: #7a5ca8 !important; /* 少し濃く */
  font-size: 15px; /* 少し大きく */
  font-weight: 500; /* 少しだけ強く */
  text-align: center;
  letter-spacing: 0.05em;
  text-shadow: none !important; /* ぼかし完全排除 */
}
/* ========================================
   記事タイトル
======================================== */
.entry-title {
  font-size: 22px; /* 少しだけ強く */
  color: #666;
  background: linear-gradient(90deg,#fff7fa 0%,#fff 100%);
  border-left: 4px solid #d8b6a2;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 6px;
  font-weight: bold;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* ========================================
   記事本文
======================================== */
.entry {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  margin-bottom: 40px;
}

.entry-content {
  background-color: #fff;
  padding: 15px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.9;
  font-weight: 500; /* ←少しだけ太く */
}

/* リード文強調 */
.entry-content p:first-child {
  font-size: 19px;
}

/* 段落余白 */
.entry-content p {
  margin-bottom: 1.8em;
}

.entry-content h2 {
  font-size: 17px;
  color: #555;
  background: #f9f7f6;
  border-left: 3px solid #c8a58b;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 1.8em;
}

.entry-content h3 {
  font-size: 15px;
  color: #666;
  margin-top: 1.2em;
  border-bottom: 1px dashed #d8c5b7;
  padding-bottom: 4px;
}

/* ========================================
   リンク
======================================== */
a {
  color: #a67c52;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #8c6239;
  text-decoration: underline;
}

/* ========================================
   記事下おすすめ記事
======================================== */
.recommend-box-final {
  background: #f3f0f8;
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 2px 6px rgba(107,90,122,0.1);
}

.recommend-box-final h3 {
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 16px;
  color: #6b5a7a;
}

.recommend-grid-final {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.recommend-card-final {
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: #6b5a7a;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  flex: 1 1 200px;
  max-width: 300px;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.recommend-card-final:hover {
  transform: translateY(-3px);
  background: #e5d9f5;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* ========================================
   サイドバー
======================================== */
#container {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
}

#main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

#sidebar {
  width: 300px !important;
  flex-shrink: 0 !important;
  padding: 15px;
  background: #f5f3f8;
  border: 1px solid #e6e0f0;
  border-radius: 6px;
}

/* ========================================
   目次
======================================== */
.table-of-contents {
  background: #f7f4fb;
  border: 1px solid #e2dbf3;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
}

.table-of-contents:before {
  content: "📖 この記事の内容";
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  color: #6b5a7a;
}

/* ========================================
   引用
======================================== */
.entry-content blockquote {
  background: #f7f4fb;
  border-left: 4px solid #cfc3e6;
  padding: 14px 16px;
  margin: 20px 0;
  border-radius: 8px;
  color: #555;
}

/* ========================================
   フッター
======================================== */
.footer {
  font-size: 13px;
  text-align: center;
  color: #555;
  padding: 20px 0;
  background: #f4eef8;
  border-top: 3px solid #8f7cc3;
}

/* ========================================
   スマホ（整理済み）
======================================== */
@media screen and (max-width: 768px){

  body {
    font-size: 17px;
    line-height: 1.9;
  }

  #container {
    flex-direction: column !important;
  }

  #main,
  #sidebar {
    width: 100% !important;
  }

  .entry-content {
    font-size: 18px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .entry-content p {
    margin-bottom: 1.8em;
  }

}/* ========================================
   タイトルまわり強化（CTRアップ）
======================================== */

/* 全体の余白 */
#blog-title {
  padding: 20px 10px 10px;
}

/* タイトル */
#blog-title a {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

/* サブタイトル */
#blog-description {
  margin-top: 6px;
  font-size: 15px;
  color: #7a5ca8 !important;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* スマホ調整 */
@media screen and (max-width: 768px){

  #blog-title {
    padding: 16px 10px 8px;
  }

  #blog-title a {
    font-size: 22px;
  }

  #blog-description {
    font-size: 14px;
  }

}/* ========================================
   最下部フッター おしゃれ化
======================================== */
#footer {
  background: #6b5a7a;
  color: #ffffff;
  text-align: center;
  padding: 24px 10px;
  letter-spacing: 0.08em; /* 余白でおしゃれ感 */
}

/* テキスト */
#footer p {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.9; /* 少し柔らかく */
}

/* リンク */
#footer a {
  color: #ffffff;
  text-decoration: none; /* ←下線消す */
  border-bottom: 1px solid rgba(255,255,255,0.4); /* うっすらライン */
  padding-bottom: 1px;
  transition: 0.2s;
}
#footer {
  font-family: 'Yomogi', 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
}#footer {
  font-family: 'Yomogi', 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.08em;
  line-height: 2;
}#footer p {
  font-size: 12.5px;
}
#blog-title {
  background: #6b5a7a; /* フッターと同じ色 */
  padding: 20px 10px;
}
#blog-title a {
  color: #ffffff !important;
}

#blog-description {
  color: #e6dcf5 !important; /* 少し柔らかい白 */
}
/* ========================================
   不具合修正（必須）
======================================== */
#footer p {
  font-size: 12.5px;
}

/* ========================================
   フッター（整え）
======================================== */
#footer {
  background: #6b5a7a;
  color: #ffffff;
  text-align: center;
  padding: 24px 10px;
  letter-spacing: 0.08em;
  line-height: 2;
  font-family: 'Yomogi', 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
}

#footer a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
}

#footer a:hover {
  opacity: 0.7;
  border-bottom: 1px solid #ffffff;
}
/* ========================================
   ブログタイトル（統一感＋やさしさ）
======================================== */
#blog-title {
  background: #7a6a8f; /* ←フッター(#6b5a7a)より少し薄い */
  padding: 20px 10px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid #6b5a7a; /* ←フッターと同色ライン */
}

/* タイトル */
#blog-title a {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #ffffff !important;
  text-decoration: none;
}

/* サブタイトル */
#blog-description {
  margin-top: 6px;
  font-size: 15px;
  color: #e6dcf5 !important;
  font-weight: 500;
  letter-spacing: 0.05em;
}
/* ========================================
   スマホ見やすさ調整
======================================== */
@media screen and (max-width: 768px){

  /* 全体 */
  body {
    font-size: 17px;
    line-height: 1.9;
  }

  /* ブログタイトル */
  #blog-title {
    padding: 16px 10px;
  }

  #blog-title a {
    font-size: 22px;
    line-height: 1.3;
  }

  #blog-description {
    font-size: 14px;
  }

  /* 記事本文 */
  .entry-content {
    font-size: 17px;
    padding: 12px;
  }

  .entry-content p {
    margin-bottom: 1.6em;
  }

  /* 見出し */
  .entry-content h2 {
    font-size: 16px;
    padding: 8px 10px;
  }

  /* サイドバー */
  #container {
    flex-direction: column !important;
  }

  #sidebar {
    width: 100% !important;
    margin-top: 20px;
  }

}
/* ========================================
   前後記事ボタン
======================================== */

/* 全体 */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 30px 0;
}

/* 共通 */
.pager a {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  background: #f3f0f8;
  color: #6b5a7a;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

/* ホバー */
.pager a:hover {
  background: #e5d9f5;
  transform: translateY(-2px);
}

/* 前 */
.pager .prev a::before {
  content: "← ";
}

/* 次 */
.pager .next a::after {
  content: " →";
}/* ===== スマホ可読性 完全改善 ===== */
@media screen and (max-width: 768px){

  body{
    letter-spacing: 0.01em;  /* 超重要：ほぼ詰める */
  }

  .entry-content{
    font-size: 17px;
    line-height: 1.7;
    font-weight: 400;  /* にじみ防止 */
  }

  .entry-content p{
    margin-bottom: 1.4em;
  }

  .entry-content h2{
    font-size: 21px;
    line-height: 1.5;
  }

  .entry-content h3{
    font-size: 18px;
  }
}
/* ===== 可読性 改善の核心 ===== */

body {
  letter-spacing: 0.02em; /* 減らす */
}

.entry-content {
  font-size: 18px;
  line-height: 1.85;
  font-weight: 400; /* 標準に戻す ←超重要 */
}

/* 見出しを本文よりしっかり大きく */
.entry-content h2 {
  font-size: 22px;
  font-weight: 700;
}

.entry-content h3 {
  font-size: 19px;
  font-weight: 600;
}

/* タイトルを濃く */
.entry-title {
  color: #333;
}/* ===== スマホ最終リセット（これが最優先になる）===== */
@media screen and (max-width: 768px){

  body{
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.01em;
  }

  .entry-content{
    font-size: 17px !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
    padding: 12px !important;
  }

  .entry-content p{
    margin-bottom: 1.5em !important;
  }

  .entry-content h2{
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
  }

  .entry-content h3{
    font-size: 18px !important;
    font-weight: 600 !important;
  }

  .entry-title{
    font-size: 20px !important;
    color:#333 !important;
  }
}/* ===== スマホ可読性だけ最終補正（デザインは変えない）===== */
@media screen and (max-width: 768px){

  body{
    -webkit-text-size-adjust: 100%;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.01em;
  }

  .entry-content{
    font-size: 17px !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .entry-content p{
    margin-bottom: 1.6em !important;
  }

  .entry-content h2{
    font-size: 21px !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
  }

  .entry-content h3{
    font-size: 18px !important;
    font-weight: 600 !important;
  }

  .entry-title{
    font-size: 20px !important;
    line-height: 1.5 !important;
  }
}