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

/* 基本リセット */
* {
  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;
  }
}


/* ===========================
   基本設定とグローバルスタイル
   =========================== */

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45b7d1;
    --warm-orange: #ffa726;
    --soft-green: #66bb6a;
    --background-color: #fef7f0;
    --surface-color: #ffffff;
    --text-color: #2d3748;
    --text-color-light: #ffffff;
    --border-color: #e2e8f0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    --font-family-base: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --font-family-heading: 'Georgia', 'Times New Roman', 'Hiragino Mincho ProN', serif;

    --header-height: 70px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family-base);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--secondary-color);
    line-height: 1.3;
    margin-bottom: 1rem;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   ヘッダースタイル
   =========================== */

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-speed);
}

.header.scrolled {
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.logo a {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    justify-content: center;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.nav-item {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.nav-item a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.nav-item a:hover, .nav-item a.active {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* ===========================
   フッタースタイル
   =========================== */

.footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--text-color-light);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.footer-nav a {
    color: var(--text-color-light);
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
}

.footer p {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.copyright {
    font-size: 0.9rem;
}

/* ===========================
   ニュース記事用スタイル
   =========================== */

/* Article Header */
.article-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.article-header h1,
.article-title {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.article-meta {
    font-size: 0.95rem;
    color: #95a5a6;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-meta time {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-color);
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--primary-color);
    padding-left: 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

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

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

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

/* News Source Section */
.news-source-section {
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.news-source-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem 1.5rem;
    align-items: baseline;
}

.news-source-list dt {
    font-weight: 600;
    color: var(--text-color);
}

.news-source-list dd {
    color: #5a6c7d;
}

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

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

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

/* ニュース詳細ページ */
.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);
}

/* News Container - 2 Column Layout for News Article Pages */
.news-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    width: 100%;
    min-width: 0;
    grid-column: 1;
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

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

/* Sidebar Styles */
.sidebar {
    min-width: 0;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e91e63;
    padding-bottom: 0.5rem;
}

.ad-banner {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.amazon-ad {
    margin-bottom: 1.5rem;
}

.related-articles {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.related-articles h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e91e63;
    padding-bottom: 0.5rem;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 0.75rem;
}

.related-articles li a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-left: 3px solid transparent;
}

.related-articles li a:hover {
    color: #e91e63;
    border-left-color: #e91e63;
    padding-left: 0.75rem;
}

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

@media (max-width: 991px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        box-shadow: 0 4px 10px var(--shadow-color);
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 3px;
        position: relative;
        transition: transform 0.3s;
    }

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .hamburger-inner::before {
        top: -8px;
    }

    .hamburger-inner::after {
        top: 8px;
    }
}

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

    .news-container .sidebar {
        order: -1;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .news-detail-title,
    .article-header h1,
    .article-title {
        font-size: 1.8rem;
    }

    .news-detail-body,
    .article-content {
        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;
    }

    .header-content {
        flex-direction: row;
        gap: 16px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        writing-mode: horizontal-tb;
    }
}

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

    .news-detail-title,
    .article-header h1,
    .article-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .news-list-container {
        padding: 20px 15px;
    }

    .news-detail-container {
        padding: 20px 15px;
    }

    .news-detail-image,
    .featured-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,
    .article-content {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .news-detail-body p,
    .article-content p {
        margin-bottom: 15px;
    }

    .logo a {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        writing-mode: horizontal-tb;
    }

    nav a {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }

    .nav-item {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }

    .footer p {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
    }
}
