/* ARTICLE PAGE STYLES */

body {
  overflow-x: hidden;
  max-width: 100vw;
}

#article_wrapper {
	background-image: url(img/header_background-image.png);
 	background-repeat: repeat-x;
 	background-size: 20%;
		
  min-height: 100vh;
  width: 100%;
  padding: 6vh 0;
}

#article_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ========================================
   メインコンテンツ
======================================== */
#article_main {
  background: white;
  border-radius: 12px;
  padding: 50px 60px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

/* 記事ヘッダー */
.article_header {
  margin-bottom: 40px;
}

.article_meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.article_date {
  color: #999;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.article_category {
  background: linear-gradient(135deg, #FF7733 0%, #FFA566 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: bold;
}

.article_title {
  font-size: 2.5rem;
  color: #333;
  line-height: 1.4;
  margin-bottom: 30px;
  font-weight: bold;
}

.article_thumbnail {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.article_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 記事本文 */
.article_content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333;
}

.article_content h2 {
  font-size: 1.8rem;
  color: #333;
  margin: 50px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #FF7733;
  font-weight: bold;
}

.article_content h3 {
  font-size: 1.4rem;
  color: #444;
  margin: 35px 0 15px;
  font-weight: bold;
}

.article_content p {
  margin-bottom: 25px;
}

.article_content ul,
.article_content ol {
  margin: 20px 0 25px 30px;
}

.article_content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.article_content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
}

/* 広告エリア */
.ad_space {
  margin: 50px 0;
  text-align: center;
}

.ad_label {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 10px;
}

.ad_placeholder {
  background: #f0f0f0;
  border: 2px dashed #ddd;
  padding: 50px 20px;
  color: #999;
  font-size: 0.9rem;
  border-radius: 8px;
}

.ad_bottom .ad_placeholder {
  padding: 40px 20px;
}

/* 関連記事 */
.related_articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #f0f0f0;
}

.related_articles h3 {
  font-size: 1.6rem;
  margin-bottom: 25px;
  color: #333;
}

.related_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related_card {
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.related_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(255, 119, 51, 0.2);
}

.related_card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related_card p {
  padding: 15px;
  font-size: 0.95rem;
  font-weight: bold;
  line-height: 1.4;
}

/* ========================================
   サイドバー
======================================== */
#article_sidebar {
  position: sticky;
  top: 100px;
}

.sidebar_widget {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.widget_title {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF7733;
  font-weight: bold;
}

/* 広告ウィジェット */
.ad_widget .ad_placeholder {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 最新記事 */
.recent_posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent_posts li {
  margin-bottom: 20px;
}

.recent_posts li:last-child {
  margin-bottom: 0;
}

.recent_posts a {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.recent_posts a:hover {
  opacity: 0.7;
}

.recent_posts img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.recent_title {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 5px;
  font-weight: bold;
}

.recent_date {
  font-size: 0.8rem;
  color: #999;
}

/* カテゴリリスト */
.category_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category_list li {
  margin-bottom: 12px;
}

.category_list a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  color: #555;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.category_list a:hover {
  background: #fff5f0;
  color: #FF7733;
}

.category_list span {
  color: #999;
  font-size: 0.85rem;
}

/* プロフィールウィジェット */
.profile_widget {
  text-align: center;
}

.profile_image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #FF7733;
}

.profile_name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.profile_bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #666;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 1024px) {
  #article_container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  #article_sidebar {
    position: static;
  }

  .related_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #article_main {
    padding: 35px 30px;
  }

  .article_title {
    font-size: 2rem;
  }

  .article_thumbnail {
    height: 250px;
  }

  .article_content {
    font-size: 1rem;
  }

  .article_content h2 {
    font-size: 1.5rem;
    margin: 40px 0 15px;
  }

  .article_content h3 {
    font-size: 1.2rem;
  }

  .related_grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #article_main {
    padding: 25px 20px;
  }

  .article_title {
    font-size: 1.6rem;
  }

  .article_thumbnail {
    height: 200px;
  }

  .article_content {
    font-size: 0.95rem;
  }

  .article_content h2 {
    font-size: 1.3rem;
  }

  .sidebar_widget {
    padding: 20px;
  }
}
