/* シングルページのスタイル拡張 */

/* 基本レイアウト */
.content-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .news-single {
    padding: 60px 0;
  }
  
  /* 記事ヘッダー */
  .news-header {
    margin-bottom: 30px;
  }
  
  .news-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 20px;
  }
  
  .news-date, 
  .news-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    color: #666;
  }
  
  .news-date i, 
  .news-category i {
    margin-right: 6px;
    color: var(--primary);
  }
  
  .news-category {
    padding: 4px 12px;
    background-color: #f0f5ff;
    border-radius: 4px;
    color: var(--primary);
    font-weight: 500;
  }
  
  .news-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    margin-bottom: 0;
    padding-bottom: 15px;
    position: relative;
  }
  
  .news-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
  }
  
  /* アイキャッチ画像 */
  .news-thumbnail {
    margin: 30px 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .news-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .news-thumbnail:hover img {
    transform: scale(1.02);
  }
  
  /* 記事コンテンツ */
  .news-content {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
  }
  
  .news-content p {
    margin-bottom: 1.5em;
  }
  
  .news-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 2em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #eee;
  }
  
  .news-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5em 0 1em;
  }
  
  .news-content ul, 
  .news-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
  }
  
  .news-content li {
    margin-bottom: 0.5em;
  }
  
  .news-content a {
    color: var(--secondary);
    text-decoration: underline;
    transition: color 0.2s;
  }
  
  .news-content a:hover {
    color: var(--accent);
  }
  
  .news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5em 0;
  }
  
  .news-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--primary);
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
  }
  
  /* 記事フッター */
  .news-footer {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  
  /* タグ */
  .news-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }
  
  .tags-label {
    font-weight: 500;
    color: #555;
  }
  
  .news-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    transition: all 0.2s;
  }
  
  .news-tag:hover {
    background-color: var(--primary);
    color: white;
  }
  
  /* シェアボタン */
  .news-share {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .share-title {
    font-weight: 500;
    color: #555;
  }
  
  .share-buttons {
    display: flex;
    gap: 10px;
  }
  
  .share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .share-facebook {
    background-color: #3b5998;
  }
  
  .share-linkedin {
    background-color: #0077b5;
  }
  
  .share-email {
    background-color: #777;
  }
  
  .share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  /* Xアイコンのカスタム実装 */
  .share-x {
    background-color: #000;
    position: relative;
  }
  
  .share-x i {
    display: none; /* Font Awesomeアイコンを非表示 */
  }
  
  .share-x:before {
    content: "X";
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-style: normal;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
  }
  
  /* 前後のナビゲーション */
  .post-navigation {
    margin-bottom: 50px;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
  }
  
  .post-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .post-nav-prev,
  .post-nav-next {
    padding: 20px;
  }
  
  .post-nav-prev {
    border-right: 1px solid #eee;
  }
  
  .post-nav-prev a,
  .post-nav-next a {
    display: flex;
    flex-direction: column;
    color: #333;
  }
  
  .nav-direction {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
  }
  
  .post-nav-prev .nav-direction i {
    margin-right: 8px;
  }
  
  .post-nav-next {
    text-align: right;
  }
  
  .post-nav-next .nav-direction {
    justify-content: flex-end;
  }
  
  .post-nav-next .nav-direction i {
    margin-left: 8px;
  }
  
  .nav-title {
    font-weight: 500;
    color: var(--primary);
    transition: color 0.2s;
  }
  
  .post-nav-prev a:hover .nav-title,
  .post-nav-next a:hover .nav-title {
    color: var(--accent);
  }
  
  /* 関連記事 */
  .news-related {
    margin-bottom: 50px;
  }
  
  .related-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
  }
  
  .related-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent);
  }
  
  .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .related-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  
  .related-link {
    display: block;
    color: inherit;
  }
  
  .related-thumb {
    height: 180px;
    overflow: hidden;
  }
  
  .related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  
  .related-item:hover .related-thumb img {
    transform: scale(1.1);
  }
  
  .no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #aaa;
    font-size: 3rem;
  }
  
  .related-content {
    padding: 15px 20px;
  }
  
  .related-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 8px;
  }
  
  .related-item .related-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    line-height: 1.4;
    border: none;
    padding: 0;
  }
  
  .related-item .related-title:after {
    display: none;
  }
  
  .no-related {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    color: #666;
  }
  
  /* 戻るボタン */
  .news-back {
    text-align: center;
  }
  
  .btn-back {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
  }
  
  .btn-back i {
    margin-right: 8px;
  }
  
  .btn-back:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  /* ニュースアーカイブの2カラムレイアウト */
  .news-archive-container {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 40px;
    margin: 60px 0;
  }
  
  /* メインコンテンツ（左カラム） */
  .news-archive-main {
    width: 100%;
  }
  
  /* アーカイブヘッダースタイル */
  .archive-header {
    margin-bottom: 30px;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .archive-meta {
    margin-bottom: 15px;
  }
  
  .archive-type {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background-color: var(--primary);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  /* 不要な四角アイコンをカレンダーアイコンに変更 */
  .archive-type:before {
    content: ""; /* カレンダーアイコン */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
  }
  
  .archive-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
  }
  
  .archive-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
  }
  
  .archive-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* 日付アーカイブヘッダー */
  .date-archive-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .date-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-right: 15px;
    font-size: 14px;
    line-height: 1.2;
  }
  
  .date-icon .year {
    font-size: 12px;
    font-weight: normal;
  }
  
  .date-icon .month {
    font-size: 18px;
    font-weight: bold;
  }
  
  /* ニュースグリッドレイアウト */
  .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列グリッド */
    gap: 25px;
    margin-bottom: 30px;
  }
  
  .news-item,
  .news-grid-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .news-item:hover,
  .news-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }
  
  .news-item-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .news-item-thumb {
    height: 200px;
    overflow: hidden;
    flex: none;
  }
  
  .news-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  
  .news-item:hover .news-item-thumb img,
  .news-grid-item:hover .news-item-thumb img {
    transform: scale(1.1);
  }
  
  .news-item-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .news-item-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .news-item-date {
    color: #777;
    font-size: 14px;
  }
  
  .news-item-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background-color: #f0f5ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .news-item-category:hover {
    background-color: var(--primary);
    color: white;
  }
  
  .news-item-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .news-item-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .news-item-title a:hover {
    color: var(--accent);
  }
  
  .news-item-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
  }
  
  .news-item-link {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
    margin-top: auto;
  }
  
  .news-item-link i {
    margin-left: 5px;
    transition: transform 0.3s;
  }
  
  .news-item-link:hover {
    color: var(--accent);
  }
  
  .news-item-link:hover i {
    transform: translateX(3px);
  }
  
  /* サイドバー（右カラム） */
  .news-archive-sidebar {
    width: 100%;
  }
  
  .sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  }
  
  .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    position: relative;
  }
  
  .widget-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
  }
  
  /* サイドバーカテゴリーリスト */
  .sidebar-category-list,
  .sidebar-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .sidebar-category-item,
  .sidebar-archive-list li {
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    padding: 0;
  }
  
  .sidebar-category-item:last-child,
  .sidebar-archive-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .sidebar-category-item a,
  .sidebar-archive-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
    position: relative;
  }
  
  .sidebar-category-item:hover,
  .sidebar-archive-list li:hover {
    background-color: #f9f9f9;
  }
  
  .sidebar-category-item a:hover,
  .sidebar-archive-list li a:hover {
    color: var(--accent);
    padding-left: 5px;
  }
  
  .sidebar-category-item a:after,
  .sidebar-archive-list li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
  }
  
  .sidebar-category-item a:hover:after,
  .sidebar-archive-list li a:hover:after {
    width: 100%;
  }
  
  .category-count,
  .archive-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #777;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    padding: 0 8px;
    transition: all 0.3s;
  }
  
  .sidebar-category-item a:hover .category-count,
  .sidebar-archive-list li a:hover .archive-count {
    background-color: var(--primary);
    color: white;
  }
  
  /* 現在のカテゴリー/アーカイブの強調表示 */
  .sidebar-category-item.current-cat a {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    padding-left: 15px;
  }
  
  .sidebar-category-item.current-cat a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent);
  }
  
  .sidebar-archive-list li a.current-archive {
    color: var(--primary);
    font-weight: 700;
    position: relative;
    padding-left: 15px !important;
  }
  
  .sidebar-archive-list li a.current-archive:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent);
  }
  
  .sidebar-category-item.current-cat a:hover,
  .sidebar-archive-list li a.current-archive:hover {
    padding-left: 15px;
  }
  
  .sidebar-category-item.current-cat a .category-count,
  .sidebar-archive-list li a.current-archive .archive-count {
    background-color: var(--accent);
    color: white;
  }
  
  /* 検索結果なしのスタイル */
  .no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .no-results p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #666;
  }
  
  .no-results .back-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
  }
  
  .no-results .back-button i {
    margin-right: 8px;
  }
  
  .no-results .back-button:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  /* ページネーション */
  .pagination {
    margin: 40px 0;
    text-align: center;
  }
  
  .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    margin: 0 3px;
    background-color: white;
    color: #666;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-weight: 500;
  }
  
  .pagination .current {
    background-color: var(--primary);
    color: white;
  }
  
  .pagination .page-numbers:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .pagination .prev,
  .pagination .next {
    padding: 0 15px;
  }
  
  /* レスポンシブ対応 */
  @media screen and (min-width: 1200px) {
    .news-grid {
      grid-template-columns: repeat(3, 1fr); /* PCの場合は3列 */
    }
  }
  
  @media screen and (max-width: 992px) {
    .news-archive-container {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    
    .archive-title {
      font-size: 24px;
    }
    
    .archive-description {
      font-size: 15px;
    }
  }
  
  @media screen and (max-width: 768px) {
    .news-title {
      font-size: 1.8rem;
    }
    
    .news-grid {
      grid-template-columns: 1fr; /* タブレット以下では1列 */
    }
    
    .archive-title {
      font-size: 22px;
    }
    
    .post-nav-links {
      grid-template-columns: 1fr;
    }
    
    .post-nav-prev {
      border-right: none;
      border-bottom: 1px solid #eee;
    }
    
    .related-grid {
      grid-template-columns: 1fr;
    }
    
    .news-footer {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .pagination .page-numbers {
      min-width: 32px;
      height: 32px;
      font-size: 14px;
    }
  }
  
  @media screen and (max-width: 576px) {
    .news-single {
      padding: 40px 0;
    }
    
    .news-meta {
      flex-direction: column;
      gap: 10px;
    }
    
    .news-title {
      font-size: 1.6rem;
    }
    
    .news-archive-container {
      margin: 40px 0;
    }
    
    .archive-header {
      margin-bottom: 30px;
      padding-bottom: 15px;
    }
    
    .archive-title {
      font-size: 20px;
    }
    
    .news-grid-item .news-item-thumb,
    .related-thumb {
      height: 150px;
    }
    
    .no-results {
      padding: 40px 20px;
    }
    
    .pagination .page-numbers {
      min-width: 28px;
      height: 28px;
      font-size: 13px;
      margin: 0 2px;
    }
  }