/* ニュース個別ページ専用スタイル */

/* =========================================
   記事コンテナ
   ========================================= */
.news-single-container {
  width: min(1100px, 100%);
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

main#main-content.news-single-container {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

.news-single {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 0 auto;
}

/* =========================================
   記事ヘッダー
   ========================================= */
.news-header {
  padding: 2rem;
  border-bottom: 3px solid #F39800;
  background: linear-gradient(to bottom, #f7fafc 0%, white 100%);
}

.news-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-date {
  color: #F39800;
  font-weight: bold;
  font-size: 1rem;
}

.news-category {
  background: #F39800;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.news-header h1 {
  color: #F39800;
  font-size: 2rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
}

/* =========================================
   記事コンテンツ
   ========================================= */
.news-content {
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #333333;
}

.news-content h2 {
  color: #F39800;
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #F39800;
}

.news-content h3 {
  color: #333333;
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-content p {
  margin-bottom: 1rem;
}

.news-content ul, .news-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.news-content li {
  margin-bottom: 0.5rem;
}

/* インラインスタイル付きdivのリセット */
.news-content div[style*="display: grid"],
.news-content div[style*="display: flex"] {
  max-width: 100%;
}

.news-content div[style*="display: grid"] {
  grid-template-columns: 1fr;
}

.news-content a {
  color: #0071BC;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.news-content a:hover {
  color: #005B99;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* =========================================
   記事フッター
   ========================================= */
.news-footer {
  padding: 2rem;
  border-top: 1px solid #e2e8f0;
  background: #f7fafc;
}

.back-to-list {
  display: inline-block;
  color: #F39800;
  text-decoration: none;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #F39800;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-to-list:hover {
  background: #F39800;
  color: white;
  transform: translateX(-4px);
}

/* =========================================
   レスポンシブ対応
   ========================================= */

/* タブレット */
@media (max-width: 1024px) {
  .news-header h1 {
    font-size: 1.75rem;
  }

  .news-content h2 {
    font-size: 1.5rem;
  }

  .news-content h3 {
    font-size: 1.25rem;
  }
}

/* モバイル */
@media (max-width: 768px) {
  .news-single-container {
    margin: 1rem auto;
  }

  .news-header {
    padding: 1.5rem;
  }

  .news-header h1 {
    font-size: 1.5rem;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-content h2 {
    font-size: 1.3rem;
  }

  .news-content h3 {
    font-size: 1.1rem;
  }

  .news-footer {
    padding: 1.5rem;
  }

  .back-to-list {
    display: block;
    text-align: center;
  }
}

/* 小型モバイル */
@media (max-width: 480px) {
  .news-header h1 {
    font-size: 1.25rem;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* =========================================
   プリント用スタイル
   ========================================= */
@media print {
  .news-footer,
  .back-to-list {
    display: none;
  }

  .news-single {
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }

  .news-content {
    color: #000;
  }

  .news-content a {
    color: #000;
    text-decoration: underline;
  }
}

/* =========================================
   アクセシビリティ
   ========================================= */
.skip-link:focus {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #003087;
  color: white;
  padding: 0.5rem 1rem;
  z-index: 10000;
  border-radius: 4px;
}

/* キーボードフォーカス */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #F39800;
  outline-offset: 2px;
}
