/* ============================================
   お知らせ詳細ページ スタイル
   ============================================ */

/* --- Layout --- */
.article-section {
  background-color: var(--color-white);
}

.article-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.article-main {
  flex: 1;
  min-width: 0;
}

.article-sidebar {
  flex: 0 0 300px;
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

/* --- Article Header --- */
.article-header {
  margin-bottom: 32px;
}

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

.article-date {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}

.article-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 14px;
  border-radius: 4px;
  color: var(--color-white);
  background-color: var(--color-primary);
}

.article-tag.tag-event {
  background-color: #3b6fb4;
}

.article-tag.tag-info {
  background-color: #4a9b6e;
}

.article-tag.tag-report {
  background-color: var(--color-primary);
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* --- Eyecatch --- */
.article-eyecatch {
  margin-bottom: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

/* --- Article Body --- */
.article-body {
  font-size: 0.9375rem;
  line-height: 2.2;
  color: var(--color-text);
}

.article-body p {
  margin-bottom: 24px;
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 4px solid var(--color-primary);
  line-height: 1.5;
}

.article-body strong {
  font-weight: 700;
  color: var(--color-accent);
}

.article-body ul,
.article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body ul {
  list-style: none;
  padding-left: 0;
}

.article-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.5;
}

.article-body ol {
  list-style: decimal;
  padding-left: 28px;
}

.article-body ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}

/* --- Table --- */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-size: 0.875rem;
}

.article-table th,
.article-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.8;
}

.article-table th {
  width: 120px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-bg-light);
  white-space: nowrap;
  vertical-align: top;
}

.article-table td {
  color: var(--color-text);
}

/* --- Figure --- */
.article-figure {
  margin: 40px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.article-figure figcaption {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  background: var(--color-bg-light);
  text-align: center;
}

/* --- Share --- */
.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.article-share-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
}

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

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-facebook { background: #1877F2; }
.share-x { background: #000000; }
.share-line { background: #06C755; }

/* --- Article Nav (前後の記事) --- */
.article-nav {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.article-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.article-nav-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.article-nav-next {
  text-align: right;
}

.article-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.article-nav-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav-item:hover .article-nav-title {
  color: var(--color-primary);
}

/* --- Sidebar --- */
.sidebar-section {
  margin-bottom: 36px;
}

.sidebar-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary);
}

/* 最新記事リスト */
.sidebar-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-news-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.2s;
}

.sidebar-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-news-item:hover {
  transform: translateX(4px);
}

.sidebar-news-thumb {
  flex: 0 0 72px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
}

.sidebar-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-news-body {
  flex: 1;
  min-width: 0;
}

.sidebar-news-date {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.sidebar-news-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.sidebar-news-item:hover .sidebar-news-title {
  color: var(--color-primary);
}

/* カテゴリリスト */
.sidebar-category-list {
  list-style: none;
}

.sidebar-category-list li {
  border-bottom: 1px solid var(--color-border);
}

.sidebar-category-list li:last-child {
  border-bottom: none;
}

.sidebar-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-category-list a:hover {
  color: var(--color-primary);
  padding-left: 8px;
}

.sidebar-category-count {
  font-size: 0.75rem;
  color: var(--color-text-light);
  background: var(--color-bg-light);
  padding: 2px 10px;
  border-radius: 100px;
}

/* 一覧へ戻るボタン */
.sidebar-back-btn {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-back-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(180, 59, 59, 0.3);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .article-sidebar {
    flex: 0 0 260px;
  }
}

@media (max-width: 768px) {
  .article-layout {
    flex-direction: column;
    gap: 48px;
  }

  .article-sidebar {
    flex: none;
    width: 100%;
    position: static;
  }

  .article-title {
    font-size: 1.375rem;
  }

  .article-body h3 {
    font-size: 1.125rem;
    margin-top: 36px;
  }

  .article-eyecatch {
    margin-bottom: 28px;
    border-radius: 8px;
  }

  .article-table th {
    width: 90px;
    padding: 10px 12px;
  }

  .article-table td {
    padding: 10px 12px;
  }

  .article-nav {
    flex-direction: column;
    gap: 16px;
  }

  .article-nav-next {
    text-align: left;
  }

  .article-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
