/* 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;
  gap: 60px;
}

/* Main Content */

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

.article-heading {
  font-size: 28px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 50px 0 30px;
  padding: 10px 30px;
  background: linear-gradient(135deg, #0088FF 0%, #2449A4 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 136, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.article-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: #5EDFCD;
  opacity: 0.8;
}

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

.article-paragraph {
  font-size: 18px;
  line-height: 2.1;
  margin-bottom: 35px;
  color: #2C3E50;
  padding: 0px 25px;
  border-radius: 8px;
}

.article-paragraph:hover {
  background: #FFFFFF;
}

.article-paragraph strong {
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  padding: 3px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

.article-paragraph strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #FFFFFF;
  transition: width 0.3s ease;
}

.article-paragraph strong:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.article-paragraph strong:hover::after {
  width: 80%;
}

/* ベース */
.article-body table{
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(30,60,120,0.06);
  margin-bottom: 50px;
}

/* ヘッダー */
.article-body table thead th{
  text-align: left;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(90deg, rgba(43,123,232,0.06), rgba(43,123,232,0.02));
  color: var(--blue-500);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  backdrop-filter: blur(4px);
}

:root{
  --blue-50: #f3f8ff;
  --blue-100: #e2efff;
  --blue-300: #78aef6;
  --blue-500: #2b7be8; /* アクセント */
  --muted: #6b7280;
  --border: rgba(43,123,232,0.12);
  --radius: 10px;
  --font-sans: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

/* ボディ行 */
.article-body table tbody td{
  padding: 14px 18px;
  font-size: 14px;
  color: #111827;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15,23,42,0.04);
}

/* 交互の背景 */
.article-body table tbody tr:nth-child(even){
  background: var(--blue-50);
}

.twoblock {
  display: flex;
  gap: 20px;                 /* カラム間の余白 */
  justify-content: center;   /* 全体のセンタリング */
  align-items: center;       /* 上下位置も中央揃え */
  margin: 20px 0;
}

.twoblock-colum {
  flex: 1;
  display: flex;             /* 画像を中央に配置 */
  justify-content: center;
}

.twoblock img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 📱 スマホ：縦並び＋中央寄せ継続 */
@media (max-width: 768px) {
  .twoblock {
    flex-direction: column;
    align-items: center;
  }
}



/* 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;
  }

  .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;
  }
}