/*
Theme Name: TechAgent Lab
Theme URI: https://techagent-lab.com
Author: TechAgent Lab
Description: ITエンジニア転職エージェント比較メディア用WordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: techagent
*/

:root {
  --bg: #ffffff;
  --bg2: #f7f8fa;
  --bg3: #f0f2f5;
  --surface: #ffffff;
  --border: #e4e6eb;
  --border2: #d0d3da;
  --accent: #1a7f5a;
  --accent-light: #e8f5f0;
  --accent-hover: #155f44;
  --gold: #d4a017;
  --gold-bg: #fff8e6;
  --silver: #7a8694;
  --silver-bg: #f4f5f7;
  --bronze: #9c6b30;
  --bronze-bg: #fdf3e7;
  --text: #1a1a2e;
  --text2: #4a4a6a;
  --text3: #8a8aaa;
  --red: #e53e3e;
  --body: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* HEADER */
#site-header {
  padding: 0 40px;
  height: 56px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); }

/* FOOTER */
footer {
  background: var(--text);
  color: #fff;
  padding: 40px;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* MAIN CONTENT */
.site-main { min-height: 60vh; }

/* ARTICLE / PAGE CONTENT */
.entry-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 40px;
}
.entry-content h1 { font-size: clamp(24px,3vw,36px); font-weight: 900; margin-bottom: 24px; line-height: 1.3; }
.entry-content h2 { font-size: clamp(20px,2.5vw,28px); font-weight: 900; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.entry-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.entry-content p { font-size: 15px; line-height: 1.9; color: var(--text2); margin-bottom: 20px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.entry-content li { font-size: 15px; line-height: 1.8; color: var(--text2); margin-bottom: 6px; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.entry-content table th { background: var(--bg2); padding: 12px; text-align: left; font-weight: 700; border: 1px solid var(--border); }
.entry-content table td { padding: 12px; border: 1px solid var(--border); }

/* ARTICLE FIX */
.site-main article { display: block !important; }
.site-main article header { display: block !important; float: none !important; }
.site-main article h1 { display: block !important; float: none !important; clear: both; }
.post-thumbnail { display: block; clear: both; }

/* Gutenbergリセット */
.entry-content > * { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-post-featured-image { display: none !important; }
.wp-block-post-title { display: none !important; }
figure.wp-block-post-featured-image { display: none !important; }
.wp-site-blocks { padding: 0 !important; }
.wp-block-template-part { display: none !important; }
.entry-thumbnail { display: none !important; }
.post-thumbnail-container { display: none !important; }
img.wp-post-image:not(.alignnone) { display: none !important; }

/* BREADCRUMB */
.breadcrumb {
  padding: 12px 40px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text3);
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* SECTION COMMON */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before { content: ''; width: 20px; height: 2px; background: var(--accent); }
.section-title {
  font-size: clamp(20px,2.5vw,28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--text);
}

/* RANKING CARDS (for LP/ranking pages) */
.ranking-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  margin-bottom: 28px;
  overflow: hidden;
}
.ranking-card.rank1 { border-color: var(--gold); }
.ranking-card.rank2 { border-color: var(--silver); }
.ranking-card.rank3 { border-color: var(--bronze); }

/* CTA BUTTON */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,127,90,0.3);
}

/* COLUMN LIST */
.column-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 40px;
}
.column-list-title {
  font-size: clamp(24px,3vw,36px);
  font-weight: 900;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}
.column-cards { display: flex; flex-direction: column; gap: 16px; }
.column-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.column-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(26,127,90,0.1);
  transform: translateY(-1px);
}
.column-card-thumb {
  width: 120px;
  height: 80px;
  background: var(--bg2);
  border-radius: 6px;
  flex-shrink: 0;
  overflow: hidden;
}
.column-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.column-card-info { flex: 1; }
.column-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
}
.column-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}
.column-card-desc { font-size: 13px; color: var(--text3); }

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text2);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #site-header { padding: 0 16px; }
  .site-nav { display: none; }
  .entry-content { padding: 32px 16px; }
  .breadcrumb { padding: 10px 16px; }
  .column-list { padding: 32px 16px; }
  .column-card { flex-direction: column; }
  .column-card-thumb { width: 100%; height: 160px; }
  footer { padding: 32px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
