/* Article Detail Page Styles */

/* Container */
.article-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Article Hero */
.article-hero {
  background: linear-gradient(135deg, #F0F6FF 0%, #FFFFFF 100%);
  padding: 60px 0 40px;
}

.article-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.article-badge {
  background: #0088FF;
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.article-date {
  font-size: 14px;
  color: #666;
}

.article-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.4;
  color: #1C2226;
  margin-bottom: 20px;
}

.article-subtitle {
  font-size: 18px;
  line-height: 1.8;
  color: #666;
}

/* Article Image */
.article-image-section {
  padding: 40px 0;
}

.article-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Content */
.article-content-section {
  padding: 60px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
}

/* Main Content */
.article-main {
  max-width: 720px;
}

.article-body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.9;
  color: #333;
}

.article-heading {
  font-size: 28px;
  font-weight: 700;
  color: #1C2226;
  margin: 50px 0 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid #0088FF;
}

.article-heading:first-child {
  margin-top: 0;
}

.article-paragraph {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 30px;
  color: #333;
}

.article-paragraph strong {
  font-weight: 700;
  color: #2449A4;
}

/* Article Footer */
.article-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #E5E5E5;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.article-tag {
  background: #F0F6FF;
  color: #2449A4;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background: #2449A4;
  color: #FFFFFF;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 20px;
}

.article-share-label {
  font-weight: 700;
  color: #666;
}

.article-share-buttons {
  display: flex;
  gap: 10px;
}

.article-share-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #FFFFFF;
  transition: all 0.3s ease;
}

.article-share-twitter {
  background: #1DA1F2;
}

.article-share-twitter:hover {
  background: #0d8bd9;
  transform: translateY(-2px);
}

.article-share-facebook {
  background: #1877F2;
}

.article-share-facebook:hover {
  background: #0d65d9;
  transform: translateY(-2px);
}

.article-share-linkedin {
  background: #0A66C2;
}

.article-share-linkedin:hover {
  background: #004c99;
  transform: translateY(-2px);
}

/* Article Navigation */
.article-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
}

.article-nav-item {
  padding: 30px;
  background: #F8F9FA;
  border-radius: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-nav-item:hover {
  background: #E9ECEF;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-nav-label {
  font-size: 12px;
  color: #999;
  font-weight: 700;
  text-transform: uppercase;
}

.article-nav-title {
  font-size: 16px;
  color: #2449A4;
  font-weight: 700;
  line-height: 1.5;
}

.article-nav-prev .article-nav-label::before {
  content: "← ";
}

.article-nav-next .article-nav-label::after {
  content: " →";
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.article-sidebar-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
}

.article-sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: #1C2226;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #E5E5E5;
}

/* Table of Contents */
.article-toc {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-toc-item {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  padding: 5px 15px;
  border-left: 3px solid #E5E5E5;
  transition: all 0.3s ease;
}

.article-toc-item:hover {
  color: #2449A4;
  border-left-color: #0088FF;
  background: #F8F9FA;
}

/* Related Articles in Sidebar */
.article-related-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-related-item {
  display: flex;
  gap: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-related-item:hover {
  transform: translateX(5px);
}

.article-related-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.article-related-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-related-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
}

.article-related-date {
  font-size: 12px;
  color: #999;
}

/* CTA Card */
.article-sidebar-cta {
  background: linear-gradient(135deg, #2449A4 0%, #0088FF 100%);
  border: none;
  text-align: center;
}

.article-sidebar-cta-title {
  color: #FFFFFF;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.article-sidebar-cta-description {
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-sidebar-cta-button {
  display: inline-block;
  background: #FFFFFF;
  color: #2449A4;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-sidebar-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Related Articles Section */
.related-articles-section {
  background: #F8F9FA;
  padding: 80px 0;
}

.related-articles-title {
  font-size: 32px;
  font-weight: 700;
  color: #1C2226;
  text-align: center;
  margin-bottom: 50px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.related-article-card {
  background: #FFFFFF;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.related-article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-article-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.related-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-article-card:hover .related-article-image img {
  transform: scale(1.05);
}

.related-article-content {
  padding: 25px;
}

.related-article-content .article-badge {
  margin-bottom: 15px;
  display: inline-block;
}

.related-article-title {
  font-size: 18px;
  font-weight: 700;
  color: #1C2226;
  line-height: 1.5;
  margin-bottom: 12px;
}

.related-article-description {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 15px;
}

.related-article-date {
  font-size: 13px;
  color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    margin-top: 60px;
  }

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

@media (max-width: 768px) {
  .breadcrumb-section {
    margin-top: 80px;
    padding: 10px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-subtitle {
    font-size: 16px;
  }

  .article-heading {
    font-size: 22px;
  }

  .article-paragraph {
    font-size: 16px;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

  .related-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .article-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .breadcrumb-section .article-container {
    display: none;
  }
}

