
/* ===================================
   ヘッダー・フッタースタイル（必須）
   =================================== */

/* 基本リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.7;
  color: #2d3748;
  background-color: #ffffff;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

/* ヘッダースタイル */
.site-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

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

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #ffffff;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  position: relative;
  transition: background 0.3s;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  bottom: -8px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.nav-list {
  margin: 0;
  padding: 0;
  align-items: center;
  display: flex;
  list-style: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background-color 0.3s;
  font-weight: 500;
  white-space: nowrap;
  font-size: 0.9rem;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

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

/* フッタースタイル */
.site-footer {
  background: #2d3748;
  color: #ffffff;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

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

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-section p {
  color: #a0aec0;
  line-height: 1.6;
}

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

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

.footer-section ul a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #4a5568;
  text-align: center;
  color: #a0aec0;
}

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #667eea;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
  margin: 0;
  padding: 0;
  align-items: center;
    flex-direction: column;
    gap: 0;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
  }
}



.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
/* ニュース専用CSS */

/* ニュース一覧ページ */
.news-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.news-list-header {
  text-align: center;
  margin-bottom: 50px;
}

.news-list-header h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
}

.news-list-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5f7fa 0%, #e3e8ef 100%);
}

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

.news-card-date {
  font-size: 0.9rem;
  color: #95a5a6;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-date::before {
  content: "📅";
  font-size: 1rem;
}

.news-card-title {
  font-size: 1.3rem;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.5;
  min-height: 3em;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-title a:hover {
  color: #e91e63;
}

.news-card-excerpt {
  font-size: 0.95rem;
  color: #5a6c7d;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #ecf0f1;
  font-size: 0.85rem;
  color: #95a5a6;
}

.news-card-media {
  font-weight: 600;
  color: #7f8c8d;
}

.news-card-read-more {
  color: #e91e63;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-card-read-more:hover {
  color: #c2185b;
  text-decoration: underline;
}

/* ページネーション */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
  padding: 10px 18px;
  border: 1px solid #dfe6e9;
  border-radius: 6px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s ease;
  font-weight: 500;
}

.news-pagination a:hover {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}

.news-pagination .current-page {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}

/* ニュース詳細ページ - 2カラムレイアウト */
.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 769px) {
  .news-container {
    grid-template-columns: 1fr 320px;
  }
}

/* Featured Image */
.featured-image {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.news-detail-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.news-detail-header {
  margin-bottom: 40px;
}

.news-detail-date {
  font-size: 0.95rem;
  color: #95a5a6;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-detail-date::before {
  content: "📅";
  font-size: 1.1rem;
}

.news-detail-title {
  font-size: 2.2rem;
  color: #2c3e50;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 25px;
}

.news-detail-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-detail-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #34495e;
  margin-bottom: 40px;
}

.news-detail-body p {
  margin-bottom: 20px;
}

.news-detail-meta {
  padding: 20px 25px;
  background: #f8f9fa;
  border-left: 4px solid #e91e63;
  border-radius: 8px;
  margin-bottom: 40px;
}

.news-detail-meta p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #5a6c7d;
}

.news-detail-meta strong {
  color: #2c3e50;
  font-weight: 600;
}

.news-detail-meta a {
  color: #3498db;
  text-decoration: none;
  word-break: break-all;
}

.news-detail-meta a:hover {
  text-decoration: underline;
}

/* SNSシェアボタン */
.news-share-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 50px;
  padding: 25px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-share-buttons span {
  font-weight: 600;
  color: #2c3e50;
  margin-right: 10px;
}

.news-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

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

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: #ecf0f1;
  color: #2c3e50;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.news-back-link:hover {
  background: #bdc3c7;
  transform: translateX(-5px);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .news-detail-title {
    font-size: 1.8rem;
  }

  .news-detail-body {
    font-size: 1rem;
  }

  .news-share-buttons {
    flex-wrap: wrap;
  }

  .news-pagination {
    gap: 8px;
  }

  .news-pagination a,
  .news-pagination span {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* Mobile: sidebar を上に配置 */
  .news-container {
    grid-template-columns: 1fr;
  }

  .news-container .sidebar {
    min-width: 0;
    gap: 2rem;
    flex-direction: column;
    display: flex;
    grid-column: 2;
    order: -1;
  }

  .news-container .main-content {
    width: 100%;
    min-width: 0;
    grid-column: 1;
    order: 2;
  }
}

@media (max-width: 480px) {
  .news-card-title {
    font-size: 1.1rem;
    min-height: auto;
  }

  .news-detail-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .news-list-container {
    padding: 20px 15px;
  }
  
  .news-detail-container {
    padding: 20px 15px;
  }
  
  .news-detail-image {
    max-height: 300px;
    margin-bottom: 25px;
  }
  
  .news-card-content {
    padding: 20px;
  }
  
  .news-card-image {
    height: 180px;
  }
  
  .news-share-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }
  
  .news-share-button {
    width: 100%;
    justify-content: center;
  }
  
  .news-detail-meta {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
  
  .news-detail-body {
    font-size: 0.95rem;
    line-height: 1.8;
  }
  
  .news-detail-body p {
    margin-bottom: 15px;
  }
}
