.layout {
  display: flex;
  justify-content: flex-start; /* メイン＋サイドバーの横並びを維持 */
  gap: 20px; /* メインとサイドバーの間隔 */
}

.main-content {
  max-width: 900px;   /* 中心にしたい幅 */
  margin: 0 auto;      /* 自身を左右中央寄せ */
  width: 100%;         /* max-width以下で縮む場合用 */
  box-sizing: border-box;
}
/* ===== 見出し系 ===== */
.site-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #3b2d2d; /* 濃い茶 */
  border-bottom: 4px solid #a67c52;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.content h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 40px 0 15px;
  padding-left: 12px;
  border-left: 6px solid #a67c52;
  color: #4b3b2f;
  position: relative;
}

.content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40%;
  height: 3px;
  background: linear-gradient(to right, #a67c52, transparent);
}

.character-talk { display: flex;
align-items: flex-start;
margin: 20px 0; /* 少し上下マージンを減らす */
}

.char-img {
  width: 90px; /* 少し小さめ */
height: 90px;
border-radius:
50%; border:
2px solid #a67c52;
margin-right: 15px;
}
/* ===== 左側キャラ用 ===== */
.bubble {
  background: #fff;
  border: 2px solid #a67c52;
  border-radius: 12px;
  padding: 12px 16px;
  position: relative;
  max-width: 60%;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.bubble::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  border: 12px solid transparent;
  border-right: 12px solid #a67c52;
}

.english {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.japanese {
  font-size: 0.9rem;
  color: #555;
}

/* ===== 右側キャラ用 ===== */
.bubble2 {
  background: #fff;
  border: 2px solid #a67c52;
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 60%;
  position: relative;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.bubble2::before {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  border: 12px solid transparent;
  border-left: 12px solid #a67c52;
}

.english2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.japanese2 {
  font-size: 0.9rem;
  color: #555;
}

/* キャラクター画像共通 */
.character-talk {
  display: flex;
  align-items: flex-start;
  margin: 20px 0;
}

.character-talk.right {
  justify-content: flex-end;
}

.character-talk.right .char-img {
  margin-left: 15px;
  margin-right: 0;
}

/* ===== おすすめ記事 ===== */
.recommended {
  background: #f1f1f1;
  border-radius: 10px;
  padding: 20px;
  margin-top: 40px;
}

.recommended h2 {
  font-size: 1.4rem;
  color: #3b2d2d;
  margin-bottom: 20px;
  border-bottom: 2px dashed #a67c52;
  display: inline-block;
  padding-bottom: 5px;
}

.recommend-list {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.recommend-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: calc(33% - 10px);
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.recommend-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.recommend-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: 2px solid #a67c52;
}

.recommend-card h3 {
  margin: 12px;
  font-size: 1rem;
  color: #4b3b2f;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .recommend-card {
    width: 100%;
  }
  .bubble {
    max-width: 100%;
  }
}
/* TOC 全体のボックス */
.toc-box {
  background-color: rgba(210, 180, 140, 0.15); /* 薄い茶色、透明度15% */
  border: 2px solid #a67c52;                  /* 枠線で範囲を強調 */
  border-radius: 8px;
  padding: 10px;
  margin: 25px 0;
  font-size: 0.95rem;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

/* TOC ヘッダー */
.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #e9e6e2;
  border-bottom: 1px solid #a67c52;
  font-weight: bold;
  color: #3b2d2d;
}

/* TOC 開閉ボタン */
.toc-toggle {
  background: none;
  border: none;
  font-size: 0.9rem;
  color: #4b3b2f;
  cursor: pointer;
}

/* TOC 内容 */
.toc-content {
  padding: 15px 20px;
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(255, 255, 255, 0.7); /* 段落を際立たせる背景 */
  border-radius: 4px;
  margin-bottom: 30px;
}

/* ULの調整（段落ごとにスペースを追加） */
.toc-content ul {
  list-style: none;
  padding-left: 15px;
  margin: 0 0 10px 0; /* 下にスペース */
}

/* LIの調整 */
.toc-content li {
  margin: 8px 0;
  color: #333;
  line-height: 1.5; /* 行間を広げて読みやすく */
  padding: 4px 0;    /* 段落感をさらに強調 */
}

/* OLの調整 */
.toc-content ol {
  margin-top: 5px;
  padding-left: 20px;
  color: #555;
}

/* 閉じた状態 */
.toc-box.closed .toc-content {
  max-height: 0;
  padding: 0 20px;
  overflow: hidden;
}

/* ===== 共通スタイル ===== */
.character-talk {
  display: flex;
  align-items: flex-start;
  margin: 20px 0;
}

.char-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #a67c52;
  margin-right: 15px;
}

.character-talk.right {
  justify-content: flex-end;
}

.character-talk.right .char-img {
  margin-left: 15px;
  margin-right: 0;
}

/* 左側吹き出し */
.bubble {
  background: #fff;
  border: 2px solid #a67c52;
  border-radius: 12px;
  padding: 12px 16px;
  position: relative;
  max-width: 60%;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.bubble::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  border: 12px solid transparent;
  border-right: 12px solid #a67c52;
}

.english {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.japanese {
  font-size: 0.9rem;
  color: #555;
}

/* 右側吹き出し */
.bubble2 {
  background: #fff;
  border: 2px solid #a67c52;
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 60%;
  position: relative;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.bubble2::before {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  border: 12px solid transparent;
  border-left: 12px solid #a67c52;
}

.english2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.japanese2 {
  font-size: 0.9rem;
  color: #555;
}

/* ===== モバイル向け調整 ===== */
@media screen and (max-width: 480px) {
  .char-img {
    width: 50px;
    height: 50px;
  }

  .bubble,
  .bubble2 {
    max-width: 80%; /* スマホ画面でも収まるように */
    padding: 10px 14px;
  }

  .english,
  .english2 {
    font-size: 1rem;
  }

  .japanese,
  .japanese2 {
    font-size: 0.8rem;
  }
}
.todays-goal {
  border: 3px solid #8b5e3c;      /* 茶色の枠 */
  background-color: rgba(255,255,255,0); /* 背景透過 */
  color: #5a3a1b;                  /* 文字濃い茶色 */
  padding: 30px 25px;
  border-radius: 12px;
  max-width: 500px;                /* 最大幅 */
  width: 100%;                     /* 幅100%で最大幅まで拡張 */
  text-align: center;              /* 文字中央 */
  margin: 0 auto;                  /* 横中央寄せ */
  box-sizing: border-box;
  margin-bottom: 20px;
}

.todays-goal h2 {
  margin: 0 0 12px 0;
  font-size: 1.8rem;
}

.todays-goal hr {
  border: none;
  border-top: 2px solid #8b5e3c;
  margin: 12px 0;
}

.todays-goal p {
  font-size: 1.2rem;
  margin: 0;
}
.void{
  margin-top: 50px;
}
.expression-box {
      background-color: rgba(210, 180, 140, 0.3); /* 薄い茶色（tan系）、透明度15% */
      border-left: 6px solid #8b5e3c;
      border-radius: 12px;
      padding: 20px 25px;
      margin-bottom: 25px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      transition: transform 0.2s ease;
    }

    .expression-box:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    }

    .expression-title {
      font-weight: bold;
      font-size: 40px;
      color: #8b5e3c;
      margin-bottom: 12px;
      letter-spacing: 0.5px;
    }

    .expression-desc {
      margin-bottom: 12px;
      font-size: 16px;
      color: #5a3f2b;
    }

    .expression-example {
      font-size: 20px;
      background-color: #fff8f3;
      border: 1px solid #8b5e3c;
      border-radius: 8px;
      padding: 12px 15px;
      color: #4b3a2b;
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    }

      .divider {
        border: 2px dotted #d6b8a1; /* 薄い茶色の点線 */
    width: 100%;               /* 横いっぱいに広げる */
    height: 2px;               /* 棒の太さ */
    background-color: #d6b8a1; /* 薄い茶色 */
    margin: 20px 0;            /* 上下の余白 */
    border-radius: 1px;        /* 少し丸めると柔らかい印象 */
  }
  .sidebar {
    font-weight: normal;
  }
  .thumb {
    text-align: center;
    max-width: 100%;
    margin-bottom: 40px;
  }
