/* Reused from genspark-dev-blog b92b9d0: homepage styles. */
    :root {
      --primary-color: #2563eb;
      --primary-dark: #1e40af;
      --text-color: #1f2937;
      --text-light: #6b7280;
      --border-color: #e5e7eb;
      --bg-color: #ffffff;
      --bg-secondary: #f9fafb;
      --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
      --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
      line-height: 1.6;
      color: var(--text-color);
      background: var(--bg-secondary);
      overflow-x: hidden;
      max-width: 100vw;
    }
    
    header {
      position: relative;
      overflow: hidden;
      color: #1a3a2a;
      padding: 3rem 1rem;
      text-align: center;
      box-shadow: var(--shadow-md);
    }

    .hero-bg-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
      pointer-events: none;
    }

    header > * {
      position: relative;
      z-index: 1;
    }

    header h1 {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
      font-size: 2.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .site-title {
      color: #1a3a2a;
      text-decoration: none;
      transition: opacity 0.2s;
    }

    .site-title:hover {
      opacity: 0.9;
    }
    
    header p {
      font-size: 1.1rem;
      opacity: 0.95;
      margin-bottom: 1rem;
    }

    .hero-description {
      max-width: 780px;
      margin: 0 auto 1.25rem;
      font-weight: 500;
      line-height: 1.8;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.65rem;
      margin: 0 auto 1.25rem;
    }

    .hero-actions a {
      padding: 0.65rem 1rem;
      border: 1px solid rgba(26, 58, 42, 0.35);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.82);
      color: #1a3a2a;
      font-size: 0.9rem;
      font-weight: 700;
      text-decoration: none;
    }

    .hero-actions a:first-child {
      border-color: var(--primary-color);
      background: var(--primary-color);
      color: white;
    }

    .site-search {
      display: flex;
      width: min(520px, calc(100% - 2rem));
      margin: 1rem auto 0;
      overflow: hidden;
      border: 1px solid rgba(26, 58, 42, 0.3);
      border-radius: 9px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: var(--shadow);
    }

    .site-search label {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }

    .site-search input {
      min-width: 0;
      flex: 1;
      padding: 0.75rem 0.9rem;
      border: 0;
      background: transparent;
      color: var(--text-color);
      font-size: 1rem;
      outline: none;
    }

    .site-search button {
      padding: 0.75rem 1rem;
      border: 0;
      background: var(--primary-color);
      color: white;
      font-weight: 700;
      cursor: pointer;
    }
    
    nav {
      margin-top: 1.5rem;
    }
    
    nav a {
      color: #1a3a2a;
      text-decoration: none;
      margin: 0 1rem;
      font-weight: 500;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      transition: background 0.2s;
    }
    
    nav a:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    
    .container {
      max-width: 1200px;
      margin: 2rem auto;
      padding: 0 1rem;
      overflow-x: hidden;
    }
    
    .main-content {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 2rem;
    }
    
    .posts {
      background: var(--bg-color);
      padding: 2rem;
      border-radius: 12px;
      box-shadow: var(--shadow-lg);
      overflow-wrap: break-word;
      word-break: break-word;
      max-width: 100%;
    }
    
    .post-card {
      display: grid;
      grid-template-columns: 180px minmax(0, 1fr);
      gap: 1.25rem;
      padding: 1.75rem 0;
      border-bottom: 1px solid var(--border-color);
    }

    .post-card:not(.has-thumb) {
      grid-template-columns: 1fr;
    }

    .post-card-thumb {
      display: block;
      align-self: start;
      overflow: hidden;
      border-radius: 8px;
      background: var(--bg-secondary);
      aspect-ratio: 1200 / 630;
    }

    .post-card-thumb img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .post-card:last-child {
      border-bottom: none;
    }

    .search-summary {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 1rem;
    }

    .search-summary h2 {
      margin: 0;
      color: var(--text-color);
      font-size: 1.3rem;
    }

    .search-summary a {
      color: var(--primary-color);
      font-weight: 600;
    }
    
    .post-card h2 {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
      margin: 0 0 1rem 0;
      font-size: 1.5rem;
      font-weight: 600;
    }
    
    .post-card h2 a {
      color: var(--text-color);
      text-decoration: none;
      transition: color 0.2s;
    }
    
    .post-card h2 a:hover {
      color: var(--primary-color);
    }
    
    .post-card p {
      margin: 0 0 1rem 0;
      color: var(--text-light);
      line-height: 1.8;
    }
    
    .post-meta {
      font-size: 0.9rem;
      color: var(--text-light);
      word-break: break-word;
      overflow-wrap: break-word;
    }
    
    .post-meta span {
      margin-right: 1rem;
      word-break: break-word;
      overflow-wrap: break-word;
    }
    
    .sidebar {
      background: var(--bg-color);
      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: var(--shadow-lg);
      align-self: start;
    }
    
    .sidebar h3 {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
      margin: 0 0 1rem 0;
      padding-bottom: 0.75rem;
      border-bottom: 2px solid var(--primary-color);
      color: var(--text-color);
      font-weight: 600;
    }
    
    .sidebar ul {
      list-style: none;
    }
    
    .sidebar li {
      margin: 0.75rem 0;
    }
    
    .sidebar li.active a {
      font-weight: 600;
      color: var(--primary-color);
    }
    
    .sidebar a {
      color: var(--text-color);
      text-decoration: none;
      transition: color 0.2s;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .sidebar a:hover {
      color: var(--primary-color);
    }
    
    .sidebar .count {
      color: var(--text-light);
      font-size: 0.85rem;
    }

    .sidebar .popular-posts-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-top: 0.5rem;
    }

    .sidebar .popular-post-item {
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 1rem;
    }

    .sidebar .popular-post-item:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .sidebar .popular-post-link {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      text-decoration: none;
      color: inherit;
    }

    .sidebar .popular-post-link:hover .popular-post-title {
      color: var(--primary-color);
    }

    .sidebar .popular-post-thumb {
      width: 100%;
      border-radius: 6px;
      overflow: hidden;
    }

    .sidebar .popular-post-thumb img {
      width: 100%;
      height: auto;
      display: block;
    }

    .sidebar .popular-post-thumb--empty {
      background: var(--bg-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
    }

    .sidebar .popular-post-info {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .sidebar .popular-post-rank-img {
      display: flex;
      align-items: center;
    }

    .sidebar .popular-post-rank-img img {
      width: 40px;
      height: 40px;
      object-fit: contain;
    }

    .sidebar .popular-post-rank {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--primary-color);
    }

    .sidebar .popular-post-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--text-color);
      line-height: 1.5;
      transition: color 0.2s;
    }

    .sidebar .popular-post-views {
      font-size: 0.75rem;
      color: var(--text-light);
    }

    .pagination {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;
      align-items: center;
      margin: 2rem 0 0 0;
      padding: 2rem 0 0 0;
      border-top: 1px solid var(--border-color);
      max-width: 100%;
      box-sizing: border-box;
    }
    
    .pagination a, .pagination span {
      padding: 0.6rem 1rem;
      border-radius: 6px;
      text-decoration: none;
      transition: all 0.2s;
    }
    
    .pagination-number {
      color: var(--text-color);
      border: 1px solid var(--border-color);
    }
    
    .pagination-number:hover {
      background: var(--bg-secondary);
      border-color: var(--primary-color);
    }
    
    .pagination-current {
      background: var(--primary-color);
      color: white;
      font-weight: 600;
      border: 1px solid var(--primary-color);
    }
    
    .pagination-arrow {
      color: var(--primary-color);
      font-weight: 500;
      border: 1px solid var(--primary-color);
    }
    
    .pagination-arrow:hover {
      background: var(--primary-color);
      color: white;
    }
    
    footer {
      text-align: center;
      padding: 3rem 1rem;
      margin-top: 4rem;
      background: #1f2937;
      color: #9ca3af;
    }
    
    footer p {
      margin: 0.5rem 0;
    }
    
    @media (max-width: 768px) {
      .container {
        padding: 0 0.75rem;
      }
      
      header h1 {
        font-size: 1.75rem;
      }
      
      .sp-only {
        display: inline;
      }
      
      header p {
        font-size: 1rem;
      }
      
      .main-content {
        grid-template-columns: 1fr;
      }
      
      .sidebar {
        position: static;
      }
      
      .posts {
        padding: 1rem;
      }
      
      .post-card h2 {
        font-size: 1.25rem;
        word-break: break-word;
        overflow-wrap: break-word;
      }

      .post-card {
        grid-template-columns: 1fr;
      }

      .post-card-thumb {
        max-height: 220px;
      }

      .hero-actions {
        gap: 0.5rem;
      }

      .hero-actions a {
        font-size: 0.82rem;
      }
      
      .post-card p {
        word-break: break-word;
        overflow-wrap: break-word;
      }
      
      .post-meta {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.85rem;
      }
      
      .post-meta span {
        display: inline-block;
        margin-right: 0.5rem;
        margin-bottom: 0.25rem;
      }
    }
  
