/*
Theme Name: Ojin Theme
Theme URI: https://bcgkouryaku.net
Description: シンプルでレスポンシブなブログテーマ
Version: 1.0.0
Author: Ojin
Author URI: https://bcgkouryaku.net
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bcgkouryaku.net
Domain Path: /languages
*/

/* ========================================
   リセット・基本スタイル
   ======================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    font-size: 16px;
  }
  
  /* ========================================
     ヘッダー
     ======================================== */
  .site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333333;
  }
  
  .site-logo img {
    height: 50px;
    width: auto;
    margin-right: 15px;
  }
  
  .site-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c54;
    margin: 0;
  }
  
  .site-description {
    font-size: 12px;
    color: #999999;
    margin-top: 5px;
  }
  
  /* ナビゲーション */
  .main-nav {
    display: flex;
    gap: 30px;
  }
  
  .main-nav a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .main-nav a:hover {
    color: #2c2c54;
  }
  
  /* ========================================
     メインコンテンツ
     ======================================== */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
  }
  
  /* トップページ */
  .page-header {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .page-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c2c54;
    margin-bottom: 10px;
  }
  
  .page-subtitle {
    font-size: 18px;
    color: #666666;
  }
  
  /* メインレイアウト */
  .main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
  
  /* ========================================
     トップページ：新着記事一覧
     ======================================== */
  .posts-section {
    margin-bottom: 60px;
  }
  
  .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c54;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #2c2c54;
  }
  
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
  }
  
  .post-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
  }
  
  .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }
  
  .post-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2c2c54 0%, #1a1a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
  }

  .post-thumbnail img {
    width: 100%;
    height: 210px;
    object-fit: contain;
  }
  
  .post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .post-category {
    display: inline-block;
    background-color: #2c2c54;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    width: fit-content;
  }
  
  .post-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c54;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  .post-excerpt {
    font-size: 14px;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1;
  }
  
  .post-meta {
    font-size: 12px;
    color: #999999;
    display: flex;
    justify-content: space-between;
  }
  
  /* ========================================
     トップページ：ピックアップカテゴリ
     ======================================== */
  .categories-section {
    margin-bottom: 60px;
  }
  
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .category-card {
    background: linear-gradient(135deg, #2c2c54 0%, #1a1a3a 100%);
    color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(44, 44, 84, 0.3);
  }
  
  .category-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .category-count {
    font-size: 14px;
    opacity: 0.9;
  }
  
  /* ========================================
     記事詳細ページ
     ======================================== */
  .single-post {
    background-color: #ffffff;
  }
  
  .post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .post-single-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c2c54;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: left;
  }
  
  .post-single-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #666666;
  }
  
  .post-single-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .post-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 40px;
  }
  
  .post-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 30px 0 15px 0;
    background-color: #2c2c54;
    padding: 1rem 2rem;
    letter-spacing: .1em;
  }
  
  .post-body h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2c2c54;
    margin: 25px 0 25px 0;
    border-bottom: 1px solid #2c2c54;
    padding-bottom: 1rem;
    letter-spacing: .1em;
  }
  
  .post-body p {
    margin-bottom: 15px;
  }
  
  .post-body ul,
  .post-body ol {
    margin-left: 20px;
    margin-bottom: 15px;
  }
  
  .post-body li {
    margin-bottom: 8px;
  }
  
  .post-body blockquote {
    border-left: 4px solid #2c2c54;
    padding-left: 20px;
    margin: 20px 0;
    color: #666666;
    font-style: italic;
  }
  
  .post-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
  }
  
  /* ========================================
     サイドバー
     ======================================== */
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .widget {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
  }
  
  .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c54;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2c2c54;
  }
  
  .widget ul {
    list-style: none;
  }
  
  .widget li {
    margin-bottom: 10px;
  }
  
  .widget a {
    color: #2c2c54;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .widget a:hover {
    color: #1a1a3a;
  }
  
  /* ========================================
     フッター
     ======================================== */
  .site-footer {
    background-color: #2c2c54;
    color: #ffffff;
    padding: 40px 20px;
    margin-top: 60px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section li {
    margin-bottom: 10px;
  }
  
  .footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .footer-section a:hover {
    color: #ffffff;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: #b0b0b0;
  }
  
  /* ========================================
     レスポンシブデザイン
     ======================================== */
  @media (max-width: 768px) {
    .site-header {
      padding: 10px 0;
    }
    .header-container {
      flex-direction: column;
      gap: 15px;
    }
  
    .main-nav {
      gap: 15px;
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .main-nav a {
      font-size: 14px;
    }
  
    .page-title {
      font-size: 32px;
    }
  
    .section-title {
      font-size: 22px;
    }
  
    .posts-grid {
      grid-template-columns: 1fr;
    }
  
    .categories-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  
    .main-layout {
      grid-template-columns: 1fr;
    }
  
    .post-single-title {
      font-size: 28px;
    }
  
    .post-single-meta {
      flex-direction: column;
      gap: 10px;
    }
  
    .footer-container {
      grid-template-columns: 1fr;
      gap: 20px;
    }

    .post-thumbnail img {
      object-fit: cover;
    }

    .post-body h2 {
      font-size: 24px;
      padding: 1rem;
    }
    
    .post-body h3 {
      font-size: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 20px 15px;
    }
  
    .site-title {
      font-size: 18px;
    }
  
    .page-title {
      font-size: 24px;
    }
  
    .section-title {
      font-size: 18px;
    }
  
    .post-title {
      font-size: 16px;
    }
  
    .post-single-title {
      font-size: 22px;
    }
  
    .post-body h2 {
      font-size: 22px;
    }
  
    .post-body h3 {
      font-size: 18px;
    }
  }
  