.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #222;
    line-height: 2;
    letter-spacing: 0.01em;
    font-size: 1.1rem;
    word-wrap: break-word;
}

.blog-detail h1, 
.blog-detail h2, 
.blog-detail h3 {
    margin-bottom: 1rem;
    font-weight: bold;
}

.blog-detail p {
    margin-bottom: 1.2rem;
}

.blog-detail img {
    max-width: 100%;
    border-radius: 4px;
    margin: 1rem 0;
}

.blog-detail ul, 
.blog-detail ol {
    margin-bottom: 1.2rem;
}

.blog-detail a {
    color: #0070f3;
    text-decoration: underline;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-list-detail {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.75rem;
    border-radius: 10px;
    background-color: #eef2ff;
    color: #1e3a8a;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #dbeafe;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-detail h1 {
    font-size: 2.2rem;
}

.blog-detail h2 {
    font-size: 1.7rem;
}

.blog-detail h3 {
    font-size: 1.3rem;
}

.blog-detail p,
.blog-detail li {
    font-size: 1.1rem;
}

.blog-detail ul {
    list-style-type: disc;
}

/* テーブルスタイル */
.blog-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #fff;
}

.blog-detail th,
.blog-detail td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.blog-detail th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-detail td {
    color: #4b5563;
    font-size: 1rem;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .blog-detail {
        max-width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    .blog-detail h1 {
        font-size: 1.8rem;
    }
    .blog-detail h2 {
        font-size: 1.5rem;
    }
    .blog-detail h3 {
        font-size: 1.2rem;
    }
    
    /* スマホでのテーブル対応 */
    .blog-detail table {
        font-size: 0.9rem;
        margin: 1rem 0;
    }
    
    .blog-detail th,
    .blog-detail td {
        padding: 8px 12px;
    }
    
    .blog-detail th {
        font-size: 0.85rem;
    }
}

.post-header {
    margin-bottom: 2rem;
}

.post-date {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.post-title {
    font-size: 2.25rem;
    margin: 0.25rem 0 0.75rem;
    font-weight: 700;
    color: #111827;
}

@media (prefers-color-scheme: dark) {
  .post-date {
    color: #a1a1aa;
  }
  .post-title {
    color: #f3f4f6;
  }
}


ul, ol {
    margin-left: 1.2rem;
}

/* OSがダークモードの時に適用されるスタイル */
@media (prefers-color-scheme: dark) {
  body,
  .blog-detail {
    color: #eee; /* 明るい色の文字 */
    background-color: #121212; /* 暗い色の背景 */
  }
  .tag-pill {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5edff;
  }
  .tag-pill:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
  }
  
  /* 他の要素も必要に応じて調整します */
  a {
    color: #90caf9; /* リンク色も明るく */
  }
}