/*
Theme Name: Hataraki Catalog
Theme URI:
Description: 求人・キャリアメディア向けテーマ。白×青基調のクリーンで信頼感のあるデザイン。有効化するとカテゴリー・サンプル記事・ヘッダーメニューを自動で用意します。
Author: AffiliOS
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hataraki-catalog
Tags: blog, news, custom-menu, featured-images, translation-ready
*/

:root {
  --hc-blue: #2563eb;
  --hc-blue-dark: #1d4ed8;
  --hc-navy: #0f2547;
  --hc-text: #1f2937;
  --hc-muted: #64748b;
  --hc-border: #e5e7eb;
  --hc-bg: #f8fafc;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--hc-text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--hc-blue); }

.hc-header { background: #fff; border-bottom: 1px solid var(--hc-border); position: sticky; top: 0; z-index: 100; }
.hc-header-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 14px 24px; }
.hc-logo { font-weight: 800; font-size: 20px; color: var(--hc-navy); text-decoration: none; white-space: nowrap; }
.hc-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.hc-nav a { color: #334155; font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.hc-nav a:hover { color: var(--hc-blue); }
.hc-nav .current-menu-item > a, .hc-nav .current_page_item > a, .hc-nav .current-post-parent > a, .hc-nav .current-category-parent > a { color: var(--hc-blue); border-bottom-color: var(--hc-blue); }
.hc-cta { margin-left: auto; background: var(--hc-blue); color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hc-cta:hover { background: var(--hc-blue-dark); color: #fff; }

.hc-hero { background: linear-gradient(180deg, #e8f1ff 0%, #f5faff 65%, #ffffff 100%); padding: 64px 24px 56px; text-align: center; }
.hc-hero-title { margin: 0; font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--hc-navy); letter-spacing: 0.02em; }
.hc-hero-sub { margin: 14px 0 0; color: var(--hc-muted); font-size: 15px; font-weight: 500; }
.hc-search { margin: 28px auto 0; display: flex; gap: 10px; max-width: 520px; }
.hc-search input[type="search"] { flex: 1; border: 1px solid #cbd5e1; border-radius: 6px; padding: 12px 16px; font-size: 14px; background: #fff; }
.hc-search input[type="search"]:focus { outline: 2px solid var(--hc-blue); border-color: var(--hc-blue); }
.hc-search button { background: var(--hc-blue); color: #fff; border: none; border-radius: 6px; padding: 12px 24px; font-size: 14px; font-weight: 700; cursor: pointer; }
.hc-search button:hover { background: var(--hc-blue-dark); }

.hc-grid { max-width: 1120px; margin: 44px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hc-card { background: #fff; border: 1px solid var(--hc-border); border-radius: 10px; overflow: hidden; transition: box-shadow .2s ease; display: block; }
.hc-card:hover { box-shadow: 0 6px 18px rgba(15, 37, 71, .08); }
.hc-card > a { text-decoration: none; display: block; color: inherit; padding-bottom: 16px; }
.hc-card-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.hc-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-badge { display: inline-block; background: var(--hc-blue); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; margin: 14px 16px 8px; }
.hc-card-title { margin: 0 16px 8px; font-size: 15px; font-weight: 700; color: #111827; line-height: 1.5; }
.hc-card-date { display: block; margin: 0 16px; font-size: 12px; color: #94a3b8; }

.hc-pagination { max-width: 1120px; margin: 36px auto 56px; padding: 0 24px; text-align: center; }
.hc-pagination .nav-links { display: inline-flex; gap: 8px; }
.hc-pagination .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--hc-border); border-radius: 6px; color: #334155; text-decoration: none; font-size: 14px; }
.hc-pagination .page-numbers.current { background: var(--hc-blue); border-color: var(--hc-blue); color: #fff; }
.hc-pagination .page-numbers:hover { border-color: var(--hc-blue); color: var(--hc-blue); }

.hc-article { max-width: 800px; margin: 40px auto 64px; padding: 0 24px; }
.hc-article-head .hc-badge { margin-left: 0; }
.hc-article h1 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; color: var(--hc-navy); line-height: 1.4; margin: 12px 0 8px; }
.hc-article-meta { color: #94a3b8; font-size: 13px; margin-bottom: 24px; }
.hc-article-thumb img { border-radius: 10px; }
.hc-content h2 { font-size: 22px; font-weight: 800; color: var(--hc-navy); border-left: 4px solid var(--hc-blue); padding-left: 12px; line-height: 1.5; margin: 40px 0 16px; }
.hc-content h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; }
.hc-content a { color: var(--hc-blue); }
.hc-content img { border-radius: 8px; }
.hc-content blockquote { margin: 24px 0; padding: 16px 20px; background: #f1f5f9; border-radius: 8px; color: #475569; }
.hc-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.hc-content th, .hc-content td { border: 1px solid var(--hc-border); padding: 10px 12px; font-size: 14px; }

.hc-footer { background: var(--hc-navy); color: #cbd5e1; padding: 32px 24px; text-align: center; font-size: 13px; margin-top: 24px; }

@media (max-width: 900px) {
  .hc-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-header-inner { flex-wrap: wrap; gap: 12px; }
  .hc-cta { margin-left: 0; }
}
@media (max-width: 600px) {
  .hc-grid { grid-template-columns: 1fr; }
  .hc-search { flex-direction: column; }
  .hc-hero { padding: 44px 20px 40px; }
}
