/* =============================================
   統一ブログスタイル - 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;
}

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

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

header nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

header nav ul li a:hover {
  color: var(--highlight-bg);
}

/* =============================================
   2カラムレイアウト (重要！)
   ============================================= */

.blog-layout {
  max-width: 1400px;
  margin: 120px 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;
}

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

.blog-hero-image {
  width: 100%;
  margin-bottom: 2rem;
  display: block;
}

.blog-hero-image img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
}

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

/* =============================================
   テキストスタイル
   ============================================= */

.blog-header h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 0;
  color: var(--text-primary);
  font-weight: 700;
}

.main-content h2,
.blog-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;
}

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

.main-content p,
.blog-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.05em;
}

.main-content ul,
.main-content ol,
.blog-content ul,
.blog-content ol {
  margin: 1.5rem 0 1.5rem 2rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.main-content li,
.blog-content li {
  margin-bottom: 0.8rem;
}

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

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

.main-content a:hover,
.blog-content a:hover {
  color: var(--accent-color);
}

.highlight {
  background-color: var(--highlight-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* =============================================
   記事メタ情報
   ============================================= */

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-light);
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-wrap: wrap;
}

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

.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;
}

/* 目次 */
.table-of-contents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.table-of-contents li {
  margin-bottom: 0.6rem;
}

.table-of-contents a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: var(--transition);
  text-decoration: none;
}

.table-of-contents a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  padding-left: 1rem;
}

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

.social-share {
  margin-top: 3rem;
  padding: 25px;
  background-color: var(--bg-light);
  border-radius: 8px;
  text-align: center;
}

.social-share p {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.share-buttons {
  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);
}

/* =============================================
   ブログ一覧ページ
   ============================================= */

.blog-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;
}

.blog-index-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
  border: none;
  padding: 0;
}

.blog-index-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  color: white;
}

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

.blog-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;
}

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

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

.blog-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;
}

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

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

.blog-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);
}

/* =============================================
   戻るリンク
   ============================================= */

.blog-back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--bg-light);
}

.blog-back-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.blog-back-link a:hover {
  color: var(--accent-color);
  padding-left: 0.5rem;
}

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

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

footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

@media (max-width: 1024px) {
  .blog-layout {
    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) {
  .blog-layout {
    margin-top: 100px;
    padding: 0 1rem;
  }

  .main-content {
    padding: 1.5rem;
  }

  .blog-header h1 {
    font-size: 1.75rem;
  }

  .main-content h2,
  .blog-content h2 {
    font-size: 1.4rem;
  }

  .main-content h3,
  .blog-content h3 {
    font-size: 1.2rem;
  }

  .blog-hero-image img {
    max-height: 250px;
  }

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

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

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

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

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

  header nav ul {
    gap: 1rem;
  }
}

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

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

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

  .sidebar-section {
    padding: 1rem;
  }

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

  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
