﻿/*
Theme Name: 転職Lab
Theme URI: https://turn-your-job.com
Description: 30代エンジニア・ビジネスパーソン向け転職ブログテーマ。白・黒・青ベースのクリーンデザイン。
Author: 転職Lab
Version: 1.0.6
Text Domain: tenshoku-labh
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.8;
}

a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.site-header {
  background: #111827;
  border-bottom: 3px solid #4f8ef7;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  position: relative;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.site-logo::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(#4a9eff 0deg 90deg, #44d4a0 90deg 180deg, #ff7a5c 180deg 270deg, #c06ef5 270deg 360deg);
  vertical-align: middle;
  margin-right: 6px;
}
.site-logo span { color: #ffffff; }

.site-nav-wrapper {
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  color: #ffffff;
  border-bottom-color: #ffffff;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== HERO ===== */
.hero {
  background: none;
  padding: 0;
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.hero::after {
  content: '';
  display: block;
  width: 100%;
  padding-bottom: 26.04%;
  background-image: url('https://turn-your-job.com/wp-content/uploads/2026/05/ChatGPT-Image-2026年5月26日-21_24_24.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.hero h1, .hero p { display: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ===== ARTICLE CARDS ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0066cc;
  border-left: 4px solid #0066cc;
  padding-left: 10px;
  margin-bottom: 24px;
}

.article-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  color: inherit;
}
.article-card:hover { box-shadow: 0 4px 20px rgba(0,102,204,0.12); text-decoration: none; }

.article-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card-thumb {
  background: #e8f0fb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  width: 100%;
}
.card-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.card-body { padding: 20px; }

.card-category {
  display: inline-block;
  background: #e8f0fb;
  color: #0066cc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.5;
}

.card-excerpt { font-size: 0.88rem; color: #555; margin-bottom: 12px; }
.card-meta { font-size: 0.8rem; color: #999; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #333;
}
.pagination a:hover { background: #e8f0fb; color: #0066cc; text-decoration: none; }
.pagination .current { background: #0066cc; color: #fff; border-color: #0066cc; }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget {
  background: #f8f9fb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.widget-title {
  background: #0066cc;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 16px;
  margin: 0;
}

.widget-body { padding: 16px; }

/* アフィリエイトバナー */
.aff-banner {
  display: block;
  border: 2px solid #0066cc;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: #fff;
  transition: background 0.2s;
  color: inherit;
  margin-bottom: 12px;
}
.aff-banner:last-child { margin-bottom: 0; }
.aff-banner:hover { background: #e8f0fb; text-decoration: none; }

.aff-banner .aff-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 4px;
}
.aff-banner .aff-desc { font-size: 0.8rem; color: #555; margin-bottom: 10px; }

.aff-btn {
  display: inline-block;
  background: #0066cc;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s;
}
.aff-banner:hover .aff-btn { background: #004a99; }

/* WordPress ウィジェット */
.widget ul { list-style: none; padding: 0; }
.widget ul li {
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  font-size: 0.88rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #1a1a1a; }
.widget ul li a:hover { color: #0066cc; }

.ad-label { font-size: 0.7rem; color: #999; text-align: right; display: block; margin-top: -8px; margin-bottom: 8px; }

/* ===== 記事ページ ===== */
.breadcrumb {
  font-size: 0.82rem;
  color: #999;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.breadcrumb a { color: #0066cc; }
.breadcrumb span { margin: 0 6px; }

.article-header { margin-bottom: 32px; }

.article-category {
  display: inline-block;
  background: #e8f0fb;
  color: #0066cc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-meta { font-size: 0.85rem; color: #999; }

.article-lead {
  background: #e8f0fb;
  border-left: 4px solid #0066cc;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* 記事本文 */
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: #0066cc;
  padding: 10px 16px;
  border-radius: 4px;
  margin: 36px 0 16px;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0066cc;
  border-bottom: 2px solid #e8f0fb;
  padding-bottom: 6px;
  margin: 24px 0 12px;
}

.article-body p { margin-bottom: 16px; }

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: #0066cc; font-weight: 700; }

.article-body img {
  border-radius: 6px;
  margin: 16px auto;
}

/* インライン アフィリエイトCTA */
.aff-cta {
  background: linear-gradient(135deg, #e8f0fb 0%, #d0e4f8 100%);
  border: 2px solid #0066cc;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.aff-cta .cta-label {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.aff-cta .cta-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.aff-cta .cta-desc {
  font-size: 0.88rem;
  color: #444;
  margin-bottom: 16px;
}

.cta-btn-large {
  display: inline-block;
  background: #0066cc;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none !important;
}
.cta-btn-large:hover { background: #004a99; transform: translateY(-1px); }
.aff-cta .cta-note { font-size: 0.75rem; color: #888; margin-top: 8px; }

/* ポイントボックス */
.point-box {
  background: #f0f6ff;
  border: 1px solid #b3d0f5;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 20px 0;
}
.point-box .box-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 10px;
}

/* 著者プロフィール */
.author-box {
  display: flex;
  gap: 16px;
  background: #f8f9fb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 40px;
}
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0066cc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info { flex: 1; }
.author-name { font-weight: 700; margin-bottom: 4px; }
.author-bio { font-size: 0.88rem; color: #555; }

/* 関連記事 */
.related-posts { margin-top: 40px; }
.related-posts .section-title { margin-bottom: 16px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.related-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.88rem;
}
.related-card a { color: #1a1a1a; display: block; padding: 12px; }
.related-card a:hover { color: #0066cc; text-decoration: none; background: #f0f6ff; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 40px 20px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }

.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 0.85rem; color: #aaa; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero::after {
    padding-bottom: 125%;
    background-image: url('https://turn-your-job.com/wp-content/uploads/2026/05/ChatGPT-Image-2026年5月26日-21_04_38.png');
    background-size: cover;
    background-position: center top;
  }
  .layout { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
  .article-title { font-size: 1.4rem; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav-wrapper {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 16px;
    right: 16px;
    margin-left: 0;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
    padding: 12px 16px;
  }
  .site-nav-wrapper.is-open { display: block; }
  .site-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid rgba(255,255,255,0.08); }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 0; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .related-grid { grid-template-columns: 1fr; }
}



/* ===== HEADER REFRESH 2026-05-26 ===== */
.site-header {
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 72%);
  border-bottom: 1px solid #d9e6f5;
  box-shadow: 0 10px 26px rgba(16, 52, 92, 0.10);
}

.site-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #2f7ddf 0%, #79aef8 42%, #ff8d63 100%);
}

.header-inner {
  min-height: 78px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #173b6b;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo::before {
  content: none;
}

.site-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(47, 125, 223, 0.18);
  flex-shrink: 0;
}

.site-logo-text {
  color: #173b6b;
  line-height: 1.1;
}

.site-nav {
  gap: 12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #27466e;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 0;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  color: #173b6b;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 223, 0.12);
  text-decoration: none;
  transform: translateY(-1px);
}

.menu-toggle {
  border: 1px solid rgba(47, 125, 223, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(23, 59, 107, 0.08);
}

.menu-toggle span {
  background: #173b6b;
}

@media (max-width: 768px) {
  .site-header::after {
    height: 2px;
  }

  .header-inner {
    min-height: 72px;
  }

  .site-logo {
    gap: 10px;
    font-size: 1.2rem;
    max-width: calc(100% - 64px);
  }

  .site-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .site-logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav-wrapper {
    top: calc(100% - 10px);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(47, 125, 223, 0.12);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(23, 59, 107, 0.14);
    padding: 12px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav li + li {
    border-top: 0;
  }

  .site-nav a {
    display: flex;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
