/* ニュース記事専用CSS - 睡眠業界 */

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

:root {
  --primary-color: #4a90e2;
  --secondary-color: #5ba3d9;
  --accent-color: #7fb3e8;
  --text-dark: #2c3e50;
  --text-light: #5a6c7d;
  --bg-light: #f0f7ff;
  --bg-white: #ffffff;
  --border-color: #d0e4f5;
  --transition: all 0.3s ease;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--bg-light);
  font-size: 16px;
}

/* ヘッダー */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.logo span {
  color: var(--accent-color);
}

.logo:hover {
  transform: scale(1.05);
}

/* ナビゲーション */
nav {
  background-color: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-item a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  border-radius: 4px;
  font-size: 0.95rem;
}

.nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* メインコンテンツ */
main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* サイドバー */
.sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-section {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.sidebar-section ul {
  list-style: none;
}

.sidebar-section li {
  margin-bottom: 0.8rem;
}

.sidebar-section a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  padding: 0.3rem 0;
}

.sidebar-section a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.ad-space {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(91, 163, 217, 0.1));
  border: 2px dashed var(--border-color);
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 0.6rem;
}

.toc-list a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: block;
  padding: 0.3rem 0;
}

.toc-list a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

/* ニュース記事 */
.news-article {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  flex-wrap: wrap;
}

.news-date,
.news-source,
.news-author {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.news-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.news-article-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-bottom: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.news-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

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

.news-content h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.news-content h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
}

/* ニュース引用元セクション */
.news-source-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-color);
}

.news-source-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

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

.news-source-list dd {
  margin-left: 0;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.news-source-list a {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
}

.news-source-list a:hover {
  text-decoration: underline;
}

.news-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
}

.news-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* ニュース一覧 */
.news-list {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.news-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

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

.news-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.news-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.news-card-excerpt {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.news-card-link {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  align-self: flex-start;
}

.news-card-link:hover {
  transform: translateX(5px);
}

/* フッター */
footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--text-light) 100%);
  color: white;
  padding: 3rem 2rem 1.5rem;
  margin-top: 5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-copyright {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .header-top {
    padding: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-item a {
    padding: 0.6rem 1rem;
  }

  main {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .news-article {
    padding: 1.5rem;
  }

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

  .news-card {
    flex-direction: column;
  }

  .news-card-image {
    height: 200px;
  }
}
