/* ============================================================
   転職手帖 — style.css
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---------- Variables ---------- */
:root {
  --navy:      #1B3A5C;
  --navy-dark: #122840;
  --accent:    #E8A33D;
  --accent-bg: #FDF3E0;
  --white:     #FFFFFF;
  --text:      #333333;
  --text-sub:  #666666;
  --border:    #DDDDDD;
  --bg-light:  #F7F8FA;
  --font:      'Noto Sans JP', sans-serif;
  --max-w:     1080px;
  --radius:    6px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

/* ---------- Layout ---------- */
.wrapper {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.site-header .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-logo {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: .9; }
.site-logo .logo-icon { font-size: 1.3rem; }

/* hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* nav drawer (mobile) */
.site-nav {
  display: none;
  background: var(--navy-dark);
}
body.nav-open .site-nav { display: block; }
.site-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-nav ul li a {
  display: block;
  color: var(--white);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .95rem;
}
.site-nav ul li a:hover { background: rgba(255,255,255,.07); text-decoration: none; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--bg-light);
  padding: 8px 0;
  font-size: .8rem;
  color: var(--text-sub);
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumb ol li + li::before { content: '›'; margin-right: 4px; }
.breadcrumb ol li a { color: var(--navy); }

/* ---------- Main / Sidebar ---------- */
.page-body {
  padding: 32px 0 48px;
}
.layout-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

/* ---------- Hero (top page) ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2a5280 100%);
  color: var(--white);
  padding: 48px 16px;
  text-align: center;
}
.hero h1 { font-size: 1.6rem; line-height: 1.4; margin-bottom: 12px; }
.hero p { font-size: .95rem; opacity: .9; }

/* ---------- Category nav (top page) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}
.cat-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow .2s;
}
.cat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); text-decoration: none; }
.cat-card .cat-title { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.cat-card .cat-desc { font-size: .82rem; color: var(--text-sub); }

/* ---------- Article list (category page) ---------- */
.article-list { list-style: none; padding: 0; }
.article-list li {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.article-list li:first-child { border-top: 1px solid var(--border); }
.article-list .art-title { font-size: 1rem; font-weight: 700; color: var(--navy); }
.article-list .art-title:hover { text-decoration: underline; }
.article-list .art-meta { font-size: .78rem; color: var(--text-sub); margin-top: 4px; }
.article-list .art-excerpt { font-size: .88rem; margin-top: 6px; }

/* ---------- Page title ---------- */
.page-title-area {
  background: var(--bg-light);
  border-left: 4px solid var(--accent);
  padding: 20px 16px;
  margin-bottom: 24px;
}
.page-title-area h1 { font-size: 1.3rem; line-height: 1.45; }
.page-title-area .page-date { font-size: .78rem; color: var(--text-sub); margin-top: 6px; }

/* ---------- PR表記 ---------- */
.pr-notice {
  font-size: .78rem;
  color: var(--text-sub);
  background: #F0F0F0;
  border-radius: var(--radius);
  padding: 6px 12px;
  margin-bottom: 24px;
}

/* ---------- TOC ---------- */
.toc-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 28px 0;
}
.toc-box .toc-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.toc-box ol { font-size: .88rem; }
.toc-box ol li { margin-bottom: 6px; }
.toc-box ol li a { color: var(--navy); }
.toc-box .toc-h3 { margin-left: 1.2em; font-size: .83rem; }

/* ---------- Article body ---------- */
.article-body h2 {
  font-size: 1.2rem;
  color: var(--white);
  background: var(--navy);
  padding: 10px 16px;
  border-radius: var(--radius);
  margin: 40px 0 16px;
}
.article-body h3 {
  font-size: 1rem;
  color: var(--navy);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 28px 0 12px;
}
.article-body p { margin-bottom: 1em; }
.article-body ul, .article-body ol { margin-bottom: 1em; }
.article-body li { margin-bottom: .4em; }

/* ---------- CTA Box ---------- */
.cta-box {
  background: var(--accent-bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin: 32px 0;
  text-align: center;
}
.cta-box .cta-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.cta-box .cta-desc { font-size: .88rem; margin-bottom: 16px; color: var(--text); }
.cta-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 32px;
  border-radius: 30px;
  transition: background .2s;
  text-decoration: none;
}
.cta-btn:hover { background: var(--navy-dark); text-decoration: none; }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; }
.table-scroll table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: .88rem;
}
.table-scroll th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}
.table-scroll td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.table-scroll tr:nth-child(even) td { background: var(--bg-light); }
.badge-good { color: #1a7a1a; font-weight: 700; }
.badge-bad  { color: #a00; font-weight: 700; }

/* ---------- Section heading (category / static pages) ---------- */
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 40px 0 24px;
  font-size: .82rem;
}
.footer-nav { margin-bottom: 24px; }
.footer-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-nav ul li a { color: rgba(255,255,255,.8); }
.footer-nav ul li a:hover { color: var(--white); }
.footer-disclosures {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.6;
}
.footer-disclosures p { font-size: .78rem; color: rgba(255,255,255,.7); }
.footer-copy {
  margin-top: 20px;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
}

/* ============================================================
   Responsive — 768px+
   ============================================================ */
@media (min-width: 768px) {
  /* header: show nav inline, hide hamburger */
  .nav-toggle { display: none; }
  .site-nav { display: block !important; background: none; }
  .site-header .wrapper { height: 64px; }
  .site-nav ul { display: flex; gap: 0; }
  .site-nav ul li a {
    padding: 8px 14px;
    border-bottom: none;
    font-size: .88rem;
    border-radius: var(--radius);
  }
  .site-nav ul li a:hover { background: rgba(255,255,255,.12); }

  /* hero */
  .hero { padding: 72px 16px; }
  .hero h1 { font-size: 2rem; }

  /* cat grid */
  .cat-grid { grid-template-columns: repeat(4, 1fr); }

  /* layout columns (article + sidebar) */
  .layout-cols { grid-template-columns: 1fr 280px; }

  /* page title */
  .page-title-area h1 { font-size: 1.5rem; }

  .article-body h2 { font-size: 1.3rem; }
}
