/* articles_style.css - 記事一覧・詳細ページ用 */

/* メインコンテナ */
.articles-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* ページタイトル */
.articles-title {
  text-align: center;
  color: #b7282e;
  margin-top: 60px;
  margin-bottom: 60px;
  font-weight: 700;
  font-size: clamp(22.4px, calc(18.04px + 0.7273vw), 32px);
}

/* 記事一覧とサイドバーのラッパー */
.articles-wrapper {
  display: flex;
  flex-direction: row;
  gap: 2%;
  margin-top: 30px;
}

/* 記事一覧エリア */
.articles-list {
  width: 75%;
  float: left;
}

/* サイドバー */
.articles-sidebar {
  width: 23%;
  float: right;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.articles-sidebar h3 {
  color: #b7282e;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.articles-sidebar ul {
  list-style: none;
  padding: 0;
}

.articles-sidebar li {
  margin-bottom: 10px;
}

.articles-sidebar a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

.articles-sidebar a:hover {
  color: #a50021;
  text-decoration: underline;
}

/* 記事アイテム */
.article-item {
  background-color: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.article-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #b7282e;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(183, 40, 46, 0.15);
  border-left-color: #b7282e;
}

.article-item:hover::before {
  opacity: 1;
}

.article-item h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-item h2 a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-item h2 a:hover {
  color: #b7282e;
}

.article-item h4 {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-item h4::before {
  content: "📅";
  font-size: 0.9rem;
}

.article-item p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.article-item .read-more {
  font-size: 0.875rem;
  color: #b7282e;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  transition: all 0.3s ease;
  padding: 6px 14px;
  border-radius: 6px;
  background-color: rgba(183, 40, 46, 0.05);
}

.article-item .read-more::after {
  content: "→";
  transition: transform 0.3s ease;
}

.article-item .read-more:hover {
  background-color: rgba(183, 40, 46, 0.1);
  transform: translateX(4px);
}

.article-item .read-more:hover::after {
  transform: translateX(4px);
}

/* 記事詳細ページ */
.article-detail {
  width: 80%;
  margin: 40px auto;
  padding: 40px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-top: 4px solid #a50021;
  border-radius: 5px;
}

.article-detail header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.article-detail h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-detail .article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  font-size: 0.875rem;
  color: #666;
}

.article-detail .article-category {
  background-color: #fee;
  color: #a50021;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
}

.article-detail .article-content {
  line-height: 1.8;
  color: #333;
  margin-bottom: 40px;
}

.article-detail .article-content p {
  margin-bottom: 15px;
}

/* 箇条書きのスタイル - 黒丸を枠内に収める */
.article-detail .article-content ul {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 15px;
}

.article-detail .article-content ol {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 15px;
}

.article-detail .article-content li {
  margin-bottom: 8px;
  padding-left: 0;
}

.article-detail .back-link {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.article-detail .back-link a {
  color: #a50021;
  font-weight: bold;
  text-decoration: none;
}

.article-detail .back-link a:hover {
  text-decoration: underline;
}

/* クリアフィックス */
.articles-wrapper:after {
  content: "";
  display: table;
  clear: both;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .articles-container,
  .article-detail {
    width: 95%;
    padding: 15px;
  }

  .articles-wrapper {
    flex-direction: column;
  }

  .articles-list,
  .articles-sidebar {
    width: 100%;
    float: none;
    margin-bottom: 20px;
  }

  .article-detail h1 {
    font-size: 1.8rem;
  }

  .article-detail .article-meta {
    flex-direction: column;
    gap: 10px;
  }
}
