/* ===== 全体デザイン改善 ===== */
body {
  background: #f3f5f7;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", sans-serif;
}

/* ===== 記事カード化 ===== */
.entry-content {
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 28px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  line-height: 1.85;
}

/* 見出しの調整 */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  line-height: 1.4;
}

.entry-content h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  padding-left: 10px;
  border-left: 4px solid #1a73e8;
}

.entry-content h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}

/* ===== レス番号 ===== */
.entry-content .meta {
  color: #2e7d32;
  font-size: 14px;
  margin: 20px 0 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.entry-content .meta::before {
  content: "▶ ";
  color: #9e9e9e;
}

/* ===== コメントカード ===== */
.entry-content .comment {
  background: #f9fafb;
  padding: 14px 16px;
  border-left: 4px solid #d0d7de;
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* 偶数でほんのり変化 */
.entry-content .comment:nth-of-type(even) {
  background: #ffffff;
}

/* ホバーで浮く（PCのみ） */
@media (hover: hover) {
  .entry-content .comment:hover {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transform: translateY(-1px);
  }
}

/* 強調とリンク */
.entry-content .comment strong {
  color: #d32f2f;
  font-weight: bold;
}
.entry-content .comment a {
  color: #1a73e8;
  text-decoration: none;
  border-bottom: 1px solid rgba(26,115,232,0.4);
}
.entry-content .comment a:hover {
  opacity: 0.8;
}

/* 重要コメント＆まとめボックス */
.comment.important {
  background: #fff8e1;
  border-left: 4px solid #ffb300;
}
.summary-box {
  background: #f1f8ff;
  border: 1px solid #cfe3ff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}

/* ===== レイアウト設定（サイドバー横並び） ===== */
/* 全体を中央寄せ */
#container {
  max-width: 1100px;
  margin: 0 auto;
}

/* 記事とサイドバーを横並びにする（ここが最重要） */
#content-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* メインカラムの幅 */
#wrapper {
  width: 68%;
}

/* サイドバーの幅 */
#box2 {
  width: 30%;
}

/* サイドバー内の文字サイズ調整 */
.hatena-module {
  font-size: 0.95em;
}

/* ===== スマホ最適化（768px以下） ===== */
@media screen and (max-width: 768px) {
  /* スマホでは縦並びに戻す */
  #content-inner {
    display: block;
  }
  #wrapper,
  #box2 {
    width: 100%;
  }
  
  /* スマホ用の余白・サイズ調整 */
  .entry-content {
    padding: 18px;
    margin: 10px auto;
    border-radius: 10px;
  }
  .entry-content .meta {
    font-size: 12px;
  }
  .entry-content .comment {
    font-size: 14px;
    padding: 12px;
  }
}