/* 加工事例 (Processing Case) 完全版CSS */

/* ==============================
   基本設定
============================== */
:root {
    --primary-color: #0a3277;
    --secondary-color: #1e5bb0;
    --accent-color: #ff6a00;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f7fa;
    --border-color: #eeeeee;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 15px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 10px;
  }
  
  /* ==============================
     レイアウト
  ============================== */
  .content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .case-archive,
  .case-single {
    padding: 60px 0;
  }
  
  /* ==============================
     アーカイブページ
  ============================== */
  
  /* ヘッダーセクション */
  .archive-header {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .archive-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
  }
  
  .archive-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
  }
  
  /* カテゴリーフィルター */
  .case-categories {
    margin-bottom: 40px;
  }
  
  .category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
  }
  
  .category-item {
    margin: 0;
    padding: 0;
  }
  
  .category-item a {
    display: block;
    padding: 8px 20px;
    background-color: #f5f5f5;
    border-radius: 50px;
    color: #666;
    font-size: 14px;
    transition: var(--transition);
  }
  
  .category-item a:hover,
  .category-item.current-cat a {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  /* 加工事例グリッド */
  .case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
  }
  
  .case-item {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
  }
  
  .case-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
  
  .case-link {
    display: block;
    color: inherit;
    height: 100%;
    text-decoration: none;
  }
  
  .case-thumb {
    height: 200px;
    overflow: hidden;
    position: relative;
  }
  
  .case-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: var(--transition);
  }
  
  .case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  
  .case-item:hover .case-thumb img {
    transform: scale(1.1);
  }
  
  .case-item:hover .case-thumb::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.2) 100%);
  }
  
  .no-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #aaa;
    font-size: 3rem;
    height: 100%;
  }
  
  .case-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
  }
  
  .case-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: var(--transition);
  }
  
  .case-item:hover .case-title {
    color: var(--secondary-color);
  }
  
  .case-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
  }
  
  .case-more {
    display: inline-flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: auto;
    transition: var(--transition);
  }
  
  .case-more i {
    margin-left: 5px;
    transition: transform 0.3s;
  }
  
  .case-item:hover .case-more {
    color: var(--accent-color);
  }
  
  .case-item:hover .case-more i {
    transform: translateX(5px);
  }
  
  /* ページネーション */
  .pagination {
    text-align: center;
    margin-top: 50px;
  }
  
  .pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
  }
  
  .pagination .page-numbers.current,
  .pagination .page-numbers:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .pagination .dots {
    background: none;
  }
  
  .pagination .prev,
  .pagination .next {
    padding: 10px 20px;
  }
  
  /* エラーメッセージ */
  .no-results {
    text-align: center;
    padding: 50px 0;
    background-color: #f9f9f9;
    border-radius: var(--radius-md);
    color: var(--text-light);
  }
  
  /* ==============================
     シングルページ
  ============================== */
  
  /* ヘッダーセクション */
  .case-header {
    margin-bottom: 40px;
  }
  
  .case-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 20px;
  }
  
  .case-date, 
  .case-category {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-light);
  }
  
  .case-date i, 
  .case-category i {
    margin-right: 6px;
    color: var(--primary-color);
  }
  
  .case-category {
    padding: 4px 12px;
    background-color: #f0f5ff;
    border-radius: 4px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
  }
  
  .case-category:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .case-single .case-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-color);
    margin-bottom: 0;
    padding-bottom: 15px;
    position: relative;
  }
  
  .case-single .case-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
  }
  
  /* サムネイル画像 */
  .case-thumbnail {
    margin: 30px 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .case-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .case-thumbnail:hover img {
    transform: scale(1.02);
  }
  
  /* コンテンツスタイル */
  .case-single .case-content {
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-color);
  }
  
  .case-single .case-content p {
    margin-bottom: 1.5em;
  }
  
  .case-single .case-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--border-color);
  }
  
  .case-single .case-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5em 0 1em;
  }
  
  .case-single .case-content ul, 
  .case-single .case-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
  }
  
  .case-single .case-content li {
    margin-bottom: 0.5em;
  }
  
  .case-single .case-content a {
    color: var(--secondary-color);
    text-decoration: underline;
    transition: color 0.2s;
  }
  
  .case-single .case-content a:hover {
    color: var(--accent-color);
  }
  
  .case-single .case-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1.5em 0;
  }
  
  .case-single .case-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--primary-color);
    background-color: #f9f9f9;
    font-style: italic;
    color: #555;
  }
  
  .case-single .case-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
  }
  
  .case-single .case-content table th,
  .case-single .case-content table td {
    padding: 10px;
    border: 1px solid #ddd;
  }
  
  .case-single .case-content table th {
    background-color: #f5f5f5;
    font-weight: 700;
  }
  
  .case-single .case-content table tr:nth-child(even) {
    background-color: #f9f9f9;
  }
  
  /* 前後のナビゲーション */
  .post-navigation {
    margin-bottom: 50px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
  }
  
  .post-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .post-nav-prev,
  .post-nav-next {
    padding: 20px;
    transition: var(--transition);
  }
  
  .post-nav-prev:hover,
  .post-nav-next:hover {
    background-color: #f9f9f9;
  }
  
  .post-nav-prev {
    border-right: 1px solid var(--border-color);
  }
  
  .post-nav-prev a,
  .post-nav-next a {
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    text-decoration: none;
  }
  
  .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-color);
    transition: color 0.2s;
  }
  
  .post-nav-prev a:hover .nav-title,
  .post-nav-next a:hover .nav-title {
    color: var(--accent-color);
  }
  
  /* 関連加工事例 */
  .case-related {
    margin-bottom: 50px;
  }
  
  .related-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
  }
  
  .related-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
  }
  
  .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .related-item {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }
  
  .related-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
  
  .related-link {
    display: block;
    color: inherit;
    text-decoration: none;
  }
  
  .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);
  }
  
  .related-content {
    padding: 15px 20px;
  }
  
  .related-item .related-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
    line-height: 1.4;
    border: none;
    padding: 0;
    transition: var(--transition);
  }
  
  .related-item:hover .related-title {
    color: var(--secondary-color);
  }
  
  .related-item .related-title:after {
    display: none;
  }
  
  .no-related {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--text-light);
  }
  
  /* 戻るボタン */
  .case-back {
    text-align: center;
  }
  
  .btn-back {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
  }
  
  .btn-back i {
    margin-right: 8px;
  }
  
  .btn-back:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: white;
  }
  
  /* フロントページの加工事例セクション */
  .examples-more-link {
    text-align: center;
    margin-top: 40px;
  }
  
  .examples-more-link .btn-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
  }
  
  .examples-more-link .btn-more:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: white;
  }
  
  /* ==============================
     レスポンシブ対応
  ============================== */
  @media screen and (max-width: 992px) {
    .related-grid,
    .case-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media screen and (max-width: 768px) {
    .case-single {
      padding: 40px 0;
    }
    
    .case-single .case-title {
      font-size: 1.8rem;
    }
    
    .related-grid,
    .case-grid {
      grid-template-columns: 1fr;
    }
    
    .post-nav-links {
      grid-template-columns: 1fr;
    }
    
    .post-nav-prev {
      border-right: none;
      border-bottom: 1px solid var(--border-color);
    }
  }
  
  @media screen and (max-width: 576px) {
    .archive-title,
    .case-single .case-title {
      font-size: 1.6rem;
    }
    
    .case-meta {
      flex-direction: column;
      gap: 10px;
    }
    
    .case-single .case-content h2 {
      font-size: 1.4rem;
    }
    
    .case-single .case-content h3 {
      font-size: 1.2rem;
    }
    
    .category-list {
      flex-direction: column;
      gap: 5px;
    }
    
    .category-item a {
      text-align: center;
    }
    
    .related-thumb,
    .case-thumb {
      height: 150px;
    }
    
    .pagination .page-numbers {
      padding: 8px 12px;
      margin: 0 2px;
      font-size: 0.9rem;
    }
  }
  
  /* ==============================
     アニメーション
  ============================== */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .case-item {
    animation: fadeIn 0.6s ease-out forwards;
  }
  
  .case-item:nth-child(2) {
    animation-delay: 0.1s;
  }
  
  .case-item:nth-child(3) {
    animation-delay: 0.2s;
  }
  
  .case-item:nth-child(4) {
    animation-delay: 0.3s;
  }
  
  .case-item:nth-child(5) {
    animation-delay: 0.4s;
  }
  
  .case-item:nth-child(6) {
    animation-delay: 0.5s;
  }
  
  /* ==============================
     印刷スタイル
  ============================== */
  @media print {
    .case-single .case-title:after,
    .related-title:after {
      display: none;
    }
    
    .case-thumbnail img {
      max-height: 300px;
      object-fit: contain;
    }
    
    .post-navigation,
    .case-related,
    .case-back {
      display: none;
    }
    
    .case-header {
      margin-bottom: 20px;
    }
    
    .case-single .case-content {
      font-size: 12pt;
      line-height: 1.5;
    }
    
    @page {
      margin: 2cm;
    }
  }

  /* カテゴリータグのスタイル */
.case-category-tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    border-radius: 4px;
    margin: 5px 0 10px;
  }
  
  /* カテゴリーリストをより目立たせる */
  .case-categories {
    margin: 30px 0;
    text-align: center;
  }
  
  .category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .category-item a {
    display: block;
    padding: 8px 20px;
    background-color: #f0f0f0;
    color: var(--text-color);
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
  }
  
  .category-item.current-cat a,
  .category-item a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  /* タクソノミーページの追加スタイル */
.taxonomy-archive .archive-header {
    margin-bottom: 50px;
  }
  
  .taxonomy-description {
    max-width: 800px;
    margin: 20px auto 30px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .case-meta {
    margin: 5px 0 10px;
    font-size: 0.9rem;
    color: #777;
  }
  
  .case-date {
    display: inline-flex;
    align-items: center;
  }
  
  .case-date i {
    margin-right: 5px;
    color: var(--primary-color);
  }
  
  /* カテゴリー紹介セクション */
  .taxonomy-info {
    margin: 60px 0;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }
  
  .taxonomy-info-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    position: relative;
    border-bottom: 1px solid #ddd;
  }
  
  .taxonomy-info-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
  }
  
  .taxonomy-info-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
  }
  
  .taxonomy-info-content p {
    margin-bottom: 1.2em;
  }
  
  .taxonomy-info-content ul {
    margin: 1.2em 0;
    padding-left: 1.5em;
  }
  
  .taxonomy-info-content li {
    margin-bottom: 0.5em;
  }
  
  .taxonomy-feature-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    align-items: center;
  }
  
  .taxonomy-feature-image {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }
  
  .taxonomy-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
  }
  
  .taxonomy-feature-image:hover img {
    transform: scale(1.05);
  }
  
  /* CTA */
  .taxonomy-cta {
    margin: 60px 0 20px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  
  .taxonomy-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
  }
  
  .taxonomy-cta-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .taxonomy-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .btn-primary {
    background-color: white;
    color: var(--primary-color);
  }
  
  .btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
  }
  
  .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary i,
  .btn-secondary i {
    margin-right: 8px;
  }
  
  .no-results {
    text-align: center;
    padding: 50px 30px;
    background-color: #f9f9f9;
    border-radius: var(--radius-md);
  }
  
  .no-results p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
  }
  
  .no-results .btn-back {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .no-results .btn-back:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
  }
  
  .no-results .btn-back i {
    margin-right: 8px;
  }
  
  /* レスポンシブ対応 */
  @media screen and (max-width: 992px) {
    .taxonomy-feature-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .taxonomy-info {
      padding: 30px;
    }
    
    .taxonomy-cta {
      padding: 30px;
    }
  }
  
  @media screen and (max-width: 768px) {
    .taxonomy-description {
      font-size: 1rem;
    }
    
    .taxonomy-info-title,
    .taxonomy-cta-title {
      font-size: 1.5rem;
    }
    
    .taxonomy-cta-buttons {
      flex-direction: column;
      gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
      width: 100%;
    }
    
    .taxonomy-info {
      margin: 40px 0;
    }
  }
  
  @media screen and (max-width: 576px) {
    .taxonomy-info-content {
      font-size: 1rem;
    }
    
    .taxonomy-info,
    .taxonomy-cta {
      padding: 25px 20px;
    }
  }