:root {
  color-scheme: light;
  --background: #f7f8fa;
  --surface: #fff;
  --text: #171717;
  --muted: #454545;
  --accent: #124a78;
  --accent-hover: #163e5c;
  --border: #e4e9ef;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif; font-size: 16px; line-height: 1.9; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 3px solid #78add2; outline-offset: 3px; }
.site-shell { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.site-header { padding: 48px 4px 28px; border-bottom: 1px solid var(--border); }
.site-title { color: #22364a; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 750; letter-spacing: .02em; text-decoration: none; }
.site-description { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.site-main { padding: 30px 0 50px; min-height: 50vh; }
.site-main > h1 { font-size: 1.55rem; margin: 0 0 22px; }
article { margin: 0 0 18px; padding: 30px 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 3px 15px rgba(30, 50, 70, .025); overflow-wrap: anywhere; }
article h1, article h2 { line-height: 1.45; letter-spacing: .01em; }
article h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
article h2 { font-size: 1.4rem; margin: 0 0 8px; }
article h2 a { color: #182b3d; text-decoration: none; }
article h2 a:hover { color: var(--accent); text-decoration: underline; }
article time, .meta { display: block; color: var(--muted); font-size: .88rem; }
article time + p { margin-top: 16px; }
article p { margin: 1.1em 0; }
article img, article video, article iframe { max-width: 100%; }
article img { height: auto; border-radius: 5px; }
article figure { margin: 1.5rem 0; }
article blockquote { margin: 1.5rem 0; padding: .25rem 1.2rem; border-left: 4px solid #bfd1df; background: #f8fafc; }
article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
article th, article td { padding: .45rem .75rem; border: 1px solid var(--border); }
pre { padding: 16px; overflow-x: auto; background: #f0f3f6; border-radius: 7px; font-size: .88rem; line-height: 1.6; }
code { overflow-wrap: anywhere; }
.comment { margin: 18px 0; padding: 14px 20px; border-left: 3px solid #a8bfd0; background: var(--surface); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0; list-style: none; }
.pagination li { list-style: none; }
.pagination a, .pagination .page-link { display: inline-block; padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); text-decoration: none; }
.pagination .active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-footer { padding: 18px 4px 36px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 640px) {
  body { font-size: 15px; line-height: 1.85; }
  .site-shell { padding: 0 12px; }
  .site-header { padding: 26px 6px 20px; }
  .site-main { padding-top: 18px; }
  article { padding: 22px 18px; border-radius: 9px; }
  article h2 { font-size: 1.2rem; }
}

/* 文字色を黒に統一 */
:root {
  --text: #000000;
  --muted: #000000;
}

body, h1, h2, h3, h4, h5, h6,
p, li, time, .meta, .comment, .comment-body {
  color: #000000;
}

/* CSS読み込み確認用 */
body {
  background: #ffff00 !important;
  color: #000000 !important;
}

/* 文字色の最終調整 */
html body {
  background: #f5f6f8 !important;
  color: #000 !important;
}

body :is(
  h1, h2, h3, h4, h5, h6,
  p, li, time, .meta,
  .comment, .comment-body
) {
  color: #000 !important;
}

/* 本文の視認性改善 */
body {
  color: #000 !important;
  font-weight: 500;
  -webkit-font-smoothing: auto;
}

article,
article p,
article li,
article time,
article .meta,
.comment,
.comment-body {
  color: #000 !important;
  font-weight: 500;
}

/* 記事タイトル */
article h1,
article h2,
article h3 {
  color: #000 !important;
  font-weight: 700;
}

/* リンクは濃い青 */
a {
  color: #003b70;
}

.twitter-share {
    display: inline-block;
    margin: 16px 0;
    padding: 8px 16px;
    background: #1da1f2;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.twitter-share:hover {
    background: #0d8bd9;
    color: white;
}
