/* =============================================
   統一ニューススタイル - Sports Business版
   スポーツビジネス業界分析サイト専用
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a365d;
  --secondary-color: #2c5282;
  --accent-color: #2b6cb0;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --highlight-bg: #fef3c7;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  background-color: var(--bg-light);
  padding-top: 0;
}

/* =============================================
   ヘッダー
   ============================================= */

header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--highlight-bg);
}

.nav-link.active {
  color: var(--highlight-bg);
  font-weight: 700;
}

/* =============================================
   2カラムレイアウト
   ============================================= */

.news-container {
  max-width: 1400px;
  margin: 100px auto 40px;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

/* メインコンテンツ */
.main-content {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  min-width: 0;
}

/* サイドバー */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  min-width: 0;
}

/* =============================================
   記事ヘッダー
   ============================================= */

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--accent-color);
}

.article-title {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

/* =============================================
   画像スタイル
   ============================================= */

.featured-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: block;
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  aspect-ratio: 16 / 9;
}

/* =============================================
   記事コンテンツ
   ============================================= */

.article-content {
  color: var(--text-secondary);
  line-height: 1.9;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  color: var(--secondary-color);
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
  font-weight: 600;
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05em;
  line-height: 1.9;
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
  line-height: 1.8;
}

.article-content li {
  margin-bottom: 0.8rem;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.article-content a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 500;
  transition: var(--transition);
}

.article-content a:hover {
  color: var(--accent-color);
}

/* =============================================
   ニュース元情報セクション
   ============================================= */

.news-source-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

.news-source-list {
  margin: 0;
}

.news-source-list dt {
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.5rem;
}

.news-source-list dt:first-child {
  margin-top: 0;
}

.news-source-list dd {
  margin-left: 0;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.news-source-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.news-source-list a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* =============================================
   シェアボタン
   ============================================= */

.share-buttons {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: var(--bg-light);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-button {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.share-button.twitter {
  background: #1da1f2;
}

.share-button.twitter:hover {
  background: #0d8bd9;
  transform: translateY(-2px);
}

.share-button.facebook {
  background: #1877f2;
}

.share-button.facebook:hover {
  background: #0e66d4;
  transform: translateY(-2px);
}

/* =============================================
   サイドバー要素
   ============================================= */

.sidebar-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--secondary-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.sidebar-section.ad-space {
  text-align: center;
}

.sidebar-section.ad-space img {
  max-width: 100%;
  height: auto;
}

.ad-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* =============================================
   ニュース一覧ページ
   ============================================= */

.news-index-header {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  border-radius: 8px;
  margin: 100px auto 3rem;
  max-width: 1400px;
}

.news-index-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.news-index-header p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.news-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-bottom: 0.5rem;
}

.news-card-title:hover {
  color: var(--accent-color);
}

.news-card-date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  display: block;
}

.news-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 10px 24px;
  background-color: var(--accent-color);
  border-radius: 6px;
  transition: var(--transition);
  align-self: flex-start;
}

.read-more:hover {
  background-color: var(--secondary-color);
  transform: translateX(4px);
}

/* =============================================
   Amazon 広告バナー
   ============================================= */

.amazon-banner {
  margin: 2rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #ff9900 0%, #ff7700 100%);
  border-radius: 8px;
  text-align: center;
}

.amazon-banner a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.amazon-banner a:hover {
  opacity: 0.9;
}

/* =============================================
   フッター
   ============================================= */

.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   レスポンシブデザイン
   ============================================= */

@media (max-width: 1024px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 100px;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .main-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .news-container {
    margin-top: 100px;
    padding: 0 1rem;
  }

  .main-content {
    padding: 1.5rem;
  }

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

  .article-content h2 {
    font-size: 1.4rem;
  }

  .article-content h3 {
    font-size: 1.2rem;
  }

  .featured-image {
    max-height: 250px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

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

  .news-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .share-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .share-button {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 1rem;
  }

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

  .news-index-header {
    padding: 2rem 1rem;
    margin-top: 80px;
  }

  .sidebar-section {
    padding: 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
