/* 記事ページのスタイル改善 */
.article-content {
  /* 基本スタイル */
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-top: 30px;
}

/* 見出しのスタイル */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 600;
  line-height: 1.4;
}

.article-content h1 {
  font-size: 2em;
}

.article-content h2 {
  font-size: 1.75em;
  border-bottom: 1px solid #eaecef;
  padding-bottom: 0.3em;
}

.article-content h3 {
  font-size: 1.5em;
}

.article-content h4 {
  font-size: 1.25em;
}

/* 段落のスタイル */
.article-content p {
  margin-bottom: 1.5em;
}

/* リストのスタイル */
.article-content ul,
.article-content ol {
  margin-bottom: 1.5em;
  padding-left: 2em;
}

.article-content li {
  margin-bottom: 0.5em;
}

/* 引用のスタイル */
.article-content blockquote {
  border-left: 4px solid #ddd;
  padding-left: 1em;
  color: #666;
  margin: 1.5em 0;
}

/* リンクのスタイル */
.article-content a {
  color: #1a73e8;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

/* 画像のスタイル */
.article-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 4px;
}

/* テーブルのスタイル */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.article-content th,
.article-content td {
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.article-content th {
  background-color: #f8f9fa;
}

/* コードブロックのスタイル */
.article-content pre,
.article-content code {
  background-color: #f6f8fa;
  border-radius: 3px;
  font-family: monospace;
}

.article-content pre {
  padding: 16px;
  overflow: auto;
  margin: 1.5em 0;
}

.article-content code {
  padding: 2px 4px;
}

/* 記事ヘッダーのスタイル */
.article-header {
  margin-bottom: 2em;
}

.article-header .title {
  margin-bottom: 0.5em;
}

.article-header .meta {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 1em;
}

/* モバイル向けの最適化 */
@media (max-width: 767px) {
  .article-content {
    font-size: 16px;
    line-height: 1.6;
    padding: 0 10px;
  }
  
  .article-content h1 {
    font-size: 1.8em;
  }
  
  .article-content h2 {
    font-size: 1.5em;
  }
  
  .article-content h3 {
    font-size: 1.3em;
  }
  
  .article-content h4 {
    font-size: 1.1em;
  }
  
  .article-content ul,
  .article-content ol {
    padding-left: 1.5em;
  }
  
  /* モバイルでの余白調整 */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* モバイルでの記事コンテナの幅調整 */
  .article-container {
    width: 100%;
    padding: 0;
  }
}

/* はてなブックマークとThreadsのアイコンスタイル */
.fab.fa-hatena {
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-style: normal;
    font-size: 0.9rem;
}

.fab.fa-threads:before {
    content: "\e618"; /* アイコンがない場合は代替として類似アイコン */
    font-family: "Font Awesome 5 Brands";
}

/* シェアボタンのサイズ調整 */
.social-share .btn-icon {
    width: 36px;
    height: 36px;
    padding: 8px 0;
    margin: 0 3px;
}

.social-share .btn-icon i {
    font-size: 14px;
    line-height: 1.42857;
}

/* 記事挿入ブロックのスタイル */
.article-insert-block {
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-insert-block:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.article-insert-block img {
    border-radius: 6px;
    object-fit: cover;
}

/* AOS アニメーション用のスタイル */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* h2, h3 見出しのスタイル強化 */
.article-content h2 {
    position: relative;
    padding-left: 1rem;
    margin-top: 3rem;
}

.article-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #3490dc, #6574cd);
    border-radius: 2px;
}

.article-content h3 {
    position: relative;
    padding-left: 0.75rem;
    margin-top: 2rem;
}

.article-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #6574cd, #9561e2);
    border-radius: 2px;
}
