/* ============================================
   YANAGASE TECH INC. - News Styles
   News Index & Article
   ============================================ */

/* --- News Index --- */
.news-index {
  padding: 80px 0;
}

.news-index .page-title {
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 48px;
  color: var(--color-heading);
}

.news-index-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-index-item a {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: opacity 0.3s;
}

.news-index-item a:hover {
  opacity: 0.7;
}

.news-index-item-thumb {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  background: #ddd;
  overflow: hidden;
}

.news-index-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-index-item-body {
  flex: 1;
}

.news-index-item-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.news-index-item-caption {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-index-item-date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--color-text-light);
  letter-spacing: 0;
}

/* --- News Article --- */
.news-article {
  padding: 80px 0;
}

.news-article .container {
  max-width: 800px;
}

.article-header {
  margin-bottom: 40px;
}

.article-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--color-heading);
}

.article-date {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-text-light);
  letter-spacing: 0;
}

/* Article Body - Rich text styling */
.article-body {
  font-size: 15px;
  line-height: 2;
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-heading);
}

.article-body h3 {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--color-heading);
}

.article-body h4 {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 1.8em;
  margin-bottom: 0.5em;
  color: var(--color-heading);
}

.article-body h5 {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--color-heading);
}

.article-body h6 {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--color-text-light);
}

.article-body img {
  width: 100%;
  margin: 1.5em 0;
}

.article-body blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  border-left: 3px solid var(--color-border);
  background: var(--color-bg-light);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-light);
}

.article-body ul,
.article-body ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 0.4em;
  line-height: 1.8;
}

.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
}

.article-body a:hover {
  opacity: 0.7;
}

.article-body strong {
  font-weight: 900;
}

/* ============================================
   Responsive - News
   ============================================ */
@media (max-width: 768px) {
  .news-index {
    padding: 56px 0;
  }

  .news-index .page-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .news-index-item a {
    flex-direction: column;
    gap: 12px;
  }

  .news-index-item-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-index-item-title {
    font-size: 16px;
  }

  .news-article {
    padding: 56px 0;
  }

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

  .article-body {
    font-size: 14px;
  }

  .article-body h2 {
    font-size: 19px;
  }

  .article-body h3 {
    font-size: 17px;
  }

  .article-body h4 {
    font-size: 15px;
  }
}
