/* ========================================
   News Section Styles
   ======================================== */

/* ========================================
   News List Page Styles (news/index.html専用)
   ======================================== */
.news-list-page {
  max-width: 100%;
  margin: 0 auto;
}

/* ニュース一覧ページ専用: ニュースアイテム */
.news-item-large {
  background: var(--color-gray-300);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.75s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.news-item-large:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background-color: var(--color-white);
}

.news-item-large:hover .news-title,
.news-item-large:hover .news-excerpt {
  color: var(--color-black);
  transition: color 0.75s ease;
}

.news-page .news-list-page .news-item-large:hover .news-title {
  color: var(--color-black);
}

.news-item-large:hover .btn-outline {
  background-color: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
  transform: scale(1.05);
  transition: all 0.75s ease;
}

/* ニュース一覧ページ専用: コンテンツエリア */
.news-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ニュース一覧ページ専用: ヘッダーラッパー */
.news-item-large .news-item-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  margin-top: 0;
}

/* ニュース一覧ページ専用: 日付バッジ */
.news-item-large .news-date {
  color: var(--color-black);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  background: var(--color-white);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: color 0.75s ease, background-color 0.75s ease;
}

.news-item-large:hover .news-date {
  color: var(--color-white);
  background: var(--color-black);
}

/* ニュース一覧ページ専用: セパレーター */
.news-item-large .news-separator {
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
}

/* ニュース一覧ページ専用: 項目内の文字は白に統一 */
.news-page .news-list-page .news-item-large .news-title,
.news-item-large .news-excerpt,
.news-item-large .news-separator {
  color: var(--color-white);
}

/* ニュース一覧ページ専用: ボタン文字も白（ホバー時は黒） */
.news-item-large .btn,
.news-item-large .btn-outline {
  color: var(--color-white);
  border-color: var(--color-white);
}

.news-item-large:hover .btn-outline {
  color: var(--color-black);
}

/* ニュース一覧ページ専用: タイトル（トップ .news-title と同トークンで統一） */
.news-page .news-title {
  color: var(--color-white);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  margin: 0;
  line-height: var(--line-height-relaxed);
  text-align: left !important;
}

/* ニュース一覧ページ専用: 抜粋テキスト */
.news-excerpt {
  color: var(--color-white);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  margin: 0;
  text-align: left !important;
}

/* ニュース一覧ページ専用: アクションボタンエリア */
.news-item-action {
  flex-shrink: 0;
}

/* ニュース一覧ページ専用: レスポンシブ（トップ pages.css の .news-* と同系） */
@media (max-width: 768px) {
  .news-item-large {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .news-page .news-item-large .news-item-wrapper {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: var(--spacing-xs);
  }

  .news-page .news-item-large .news-date {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    min-width: 0;
    line-height: 1.25;
  }

  .news-page .news-item-large .news-separator {
    display: none;
  }

  .news-page .news-title {
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    line-height: 1.3;
    font-weight: var(--font-weight-normal);
  }

  .news-page .news-excerpt {
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    line-height: 1.35;
    margin-top: var(--spacing-xs);
  }

  .news-item-action {
    width: 100%;
  }

  .news-item-action .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .news-page .news-title {
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    line-height: 1.25;
  }

  .news-page .news-item-large .news-date {
    font-size: clamp(0.6875rem, 2.2vw, 0.75rem);
    line-height: 1.2;
  }

  .news-page .news-excerpt {
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    line-height: 1.3;
  }
}

/* News Detail Page Styles */
.news-article {
  max-width: 800px;
  margin: 40px auto 0;
  background-color: var(--color-white);
  border-radius: var(--spacing-lg);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-md);
}

.article-meta {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--color-gray-200);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.article-date {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-title {
  font-size: var(--font-size-4xl);
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-2xl);
  line-height: var(--line-height-tight);
  text-align: left !important;
}

.article-content {
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
  font-size: var(--font-size-lg);
  text-align: left !important;
}

.article-content p {
  margin-bottom: var(--spacing-lg);
  text-align: left !important;
}

.article-content h2 {
  font-size: var(--font-size-2xl);
  color: var(--color-gray-900);
  margin-top: var(--spacing-3xl);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--color-black);
  text-align: left !important;
}

.article-content ul,
.article-content ol {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-2xl);
  list-style: disc;
  text-align: left !important;
  color: var(--color-gray-700);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

.article-content li {
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-tight);
  color: var(--color-black);
  font-weight: var(--font-weight-bold);
  text-align: left !important;
}

.article-footer {
  text-align: center;
  margin-top: var(--spacing-3xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid var(--color-gray-200);
}

/* News 下層（詳細）: 他ページと同じ暗いグレー＋白文字 */
.news-page .news-article {
  background-color: var(--color-gray-300);
  color: var(--color-white);
  box-shadow: none;
}

.news-page .news-article .article-meta {
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.news-page .news-article .article-date {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}

.news-page .news-article .article-title {
  color: var(--color-white);
}

.news-page .news-article .article-content,
.news-page .news-article .article-content p,
.news-page .news-article .article-content ul,
.news-page .news-article .article-content ol,
.news-page .news-article .article-content li {
  color: var(--color-white);
}

.news-page .news-article .article-content h2,
.news-page .news-article .article-content h3 {
  color: var(--color-white);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.news-page .news-article .article-content h2::before {
  color: var(--color-white);
}

.news-page .news-article .article-content a {
  color: var(--color-white);
  text-decoration: underline;
}

.news-page .news-article .article-content a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.news-page .news-article .article-footer {
  border-top-color: rgba(255, 255, 255, 0.35);
}

.news-page .news-article .article-footer .btn,
.news-page .news-article .article-footer .btn-outline {
  color: var(--color-white);
  background-color: transparent;
  border-color: var(--color-white);
}

.news-page .news-article .article-footer .btn:hover,
.news-page .news-article .article-footer .btn-outline:hover {
  color: var(--color-gray-300);
  background-color: var(--color-white);
  border-color: var(--color-white);
}

/* News Page Layout */
.main-content {
  position: relative;
}

.main-content > section:last-child {
  margin-bottom: var(--spacing-lg);
}

/* Page Header - 動画・文字色のみ（高さは pages.css） */
.page-header .page-title,
.page-header .page-subtitle {
  color: var(--color-white);
}

.news-page .page-header.page-header--company-kv {
  /* 背景画像は pages.css の .page-header--company-kv で共通指定 */
}

.news-page.unified-background .page-header.page-header--company-kv .page-title,
.news-page.unified-background .page-header.page-header--company-kv .page-subtitle {
  color: var(--color-black);
}

/* Background Images - Removed earth image backgrounds */

/* Section Spacing — pages.css の .page-header + .section / margin-top で統一 */

.main-content > section {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .news-page .page-header.page-header--company-kv .page-title {
    line-height: 0.95;
  }

  .main-content > section:last-child {
    margin-bottom: var(--spacing-xs);
  }

  .news-article {
    max-width: 100%;
    margin: var(--spacing-lg) 0 0;
    padding: var(--spacing-md);
  }
  
  .article-title {
    font-size: var(--font-size-3xl);
  }
  
  .article-content {
    font-size: var(--font-size-base);
  }
}

.news-section {
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/top/top_back-resized.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: rotate(180deg);
  z-index: 0;
}

.news-section .container {
  width: 100%;
  position: relative;
  z-index: 1;
}

.news-page .news-section-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
  text-align: center;
  position: relative;
  z-index: 10;
  display: block;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--spacing-sm);
}

.news-page .news-section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--spacing-sm);
  z-index: -1;
}

/* ========================================
   Top Page News Section Styles (index.html専用)
   ======================================== */
.news-list {
  margin-bottom: var(--spacing-2xl);
}

.news-item {
  border-bottom: 1px solid var(--color-gray-300);
  padding: var(--spacing-md) 0;
  transition: all var(--transition-base);
}

.news-item:hover {
  background-color: var(--color-gray-100);
}

/* トップページ専用: ニュースリンク */
.news-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-item-link:hover {
  text-decoration: none;
}

.news-item:first-child {
  padding-top: var(--spacing-md);
}

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

.news-item-wrapper {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.news-date {
  flex-shrink: 0;
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  min-width: 120px;
}

.news-separator {
  flex-shrink: 0;
  color: var(--color-gray-400);
  font-size: var(--font-size-base);
}

.news-title {
  flex: 1;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  margin: 0;
  text-align: left !important;
}

.news-link {
  color: var(--color-gray-800);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.news-link:hover {
  color: var(--color-black);
}

.news-footer {
  text-align: center;
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
}

.news-page .news-footer .btn {
  width: 50%;
  padding: calc(var(--spacing-md) * 1.2) var(--spacing-xl);
  background: linear-gradient(to bottom, #ffffff, #808080);
  color: #000;
  border: none;
  border-radius: var(--spacing-sm);
  min-width: unset;
  max-width: unset;
}

.news-page .news-footer .btn:hover {
  color: #555;
}

/* Responsive */
@media (max-width: 991px) {
  .news-section .container {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .news-section .container {
    width: 100%;
    padding: 0 var(--spacing-md);
  }
  
  .news-footer {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
  }
  
  .news-section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
  }
  
  .news-list {
    margin-bottom: var(--spacing-lg);
  }
  
  .news-item-wrapper {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .news-date {
    min-width: auto;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
  }
  
  .news-separator {
    display: none;
  }
  
  .news-title {
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    line-height: 1.5;
  }
  
  .news-item {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    cursor: pointer;
  }
  
  .news-item-action {
    display: none;
  }
  
  .news-footer .btn {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: clamp(0.875rem, 2.2vw, 1rem);
  }
}

@media (max-width: 480px) {
  .news-section .container {
    padding: 0 var(--spacing-sm);
  }
  
  .news-section-title {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  .news-list {
    margin-bottom: var(--spacing-md);
  }
  
  .news-date {
    font-size: clamp(0.6875rem, 2.2vw, 0.75rem);
  }
  
  .news-title {
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    line-height: 1.4;
  }
  
  .news-item {
    padding: var(--spacing-xs) 0;
  }
  
  .news-footer .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  }
}
