/* =========================================================
   Job Hoppers Lab — Shared Components
   ========================================================= */

/* ---------- Buttons / CTA ---------- */
.jh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  font-family: var(--jh-font-sans);
  font-weight: var(--jh-fw-bold);
  font-size: var(--jh-fs-md);
  line-height: 1;
  border-radius: var(--jh-r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--jh-dur) var(--jh-ease);
  text-decoration: none !important;
}
.jh-btn-primary {
  background: var(--jh-accent-600);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.jh-btn-primary:hover {
  background: var(--jh-accent-700);
  color: #fff;
  transform: translateY(-1px);
}
.jh-btn-secondary {
  background: transparent;
  color: var(--jh-navy-800);
  border-color: var(--jh-navy-400);
}
.jh-btn-secondary:hover {
  background: var(--jh-navy-050);
  color: var(--jh-navy-900);
}
.jh-btn-text {
  padding: 0;
  background: transparent;
  color: var(--jh-navy-700);
  border: 0;
  font-weight: var(--jh-fw-medium);
}
.jh-btn-text:hover { color: var(--jh-navy-900); text-decoration: underline; text-underline-offset: 3px; }

.jh-btn-arrow::after {
  content: "→";
  font-weight: 400;
  transition: transform var(--jh-dur) var(--jh-ease);
}
.jh-btn:hover .jh-btn-arrow::after,
.jh-btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Tags / Chips ---------- */
.jh-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  font-size: var(--jh-fs-xs);
  font-weight: var(--jh-fw-medium);
  background: var(--jh-navy-050);
  color: var(--jh-navy-700);
  border-radius: var(--jh-r-pill);
  letter-spacing: .04em;
}
.jh-tag-accent { background: var(--jh-accent-050); color: var(--jh-accent-700); }
.jh-tag-outline { background: transparent; border: 1px solid var(--jh-line-strong); color: var(--jh-text-muted); }

/* ---------- Header ---------- */
.jh-header {
  background: var(--jh-bg-elevated);
  border-bottom: 1px solid var(--jh-line);
  position: sticky; top: 0; z-index: 50;
}
.jh-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.jh-logo {
  display: inline-flex; align-items: baseline; gap: 8px;
  color: var(--jh-navy-900) !important;
  font-weight: var(--jh-fw-bold);
  letter-spacing: .02em;
  text-decoration: none;
}
.jh-logo-mark {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--jh-navy-800); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--jh-font-mono); font-size: 14px;
  align-self: center;
}
.jh-logo-name { font-size: 17px; }
.jh-logo-sub { font-size: 11px; color: var(--jh-text-muted); font-weight: 400; letter-spacing: .1em; }

.jh-nav {
  display: flex; align-items: center; gap: 28px;
}
.jh-nav a {
  color: var(--jh-text-body);
  font-size: var(--jh-fs-sm);
  font-weight: var(--jh-fw-medium);
  padding: 6px 0;
  position: relative;
}
.jh-nav a:hover { color: var(--jh-navy-900); text-decoration: none; }
.jh-nav a.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 2px; background: var(--jh-accent-500);
}

.jh-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--jh-line);
  border-radius: var(--jh-r-md);
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer;
}
.jh-burger span { display: block; width: 18px; height: 1.5px; background: var(--jh-navy-900); }

@media (max-width: 860px) {
  .jh-nav { display: none; }
  .jh-burger { display: flex; }
}

/* ---------- Article Card ---------- */
.jh-card {
  display: flex; flex-direction: column;
  background: var(--jh-bg-elevated);
  border: 1px solid var(--jh-line);
  border-radius: var(--jh-r-lg);
  overflow: hidden;
  transition: transform var(--jh-dur) var(--jh-ease), box-shadow var(--jh-dur) var(--jh-ease);
}
.jh-card:hover { transform: translateY(-2px); box-shadow: var(--jh-shadow-2); }
.jh-card-media {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.jh-card-media .jh-ph { width:100%; height:100%; border: 0; border-radius: 0; }
.jh-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.jh-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.jh-card-title {
  font-size: var(--jh-fs-lg);
  line-height: var(--jh-lh-snug);
  color: var(--jh-text);
  margin: 0;
  font-weight: var(--jh-fw-bold);
}
.jh-card-excerpt {
  font-size: var(--jh-fs-sm);
  color: var(--jh-text-muted);
  line-height: var(--jh-lh-normal);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jh-card-meta {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px;
  font-size: var(--jh-fs-xs);
  color: var(--jh-text-light);
  border-top: 1px solid var(--jh-line);
}

/* ---------- CTA Boxes ---------- */
/* 共通 */
.jh-cta {
  margin: 40px 0;
  border-radius: var(--jh-r-lg);
  padding: 28px;
  position: relative;
}

/* A: Soft band（中間トーン：面にベタ） */
.jh-cta-soft {
  background: var(--jh-navy-800);
  color: #fff;
}
.jh-cta-soft .jh-cta-label { color: var(--jh-accent-300); }
.jh-cta-soft .jh-cta-title { color: #fff; }
.jh-cta-soft .jh-cta-note { color: rgba(255,255,255,.7); }
.jh-cta-soft .jh-btn-primary { background: var(--jh-accent-500); }
.jh-cta-soft .jh-btn-primary:hover { background: var(--jh-accent-600); }

/* B: Quiet card（保守的：薄い面＋アクセント左線） */
.jh-cta-quiet {
  background: var(--jh-bg-elevated);
  border: 1px solid var(--jh-line);
  border-left: 3px solid var(--jh-accent-500);
}

/* C: Underline（エッジ：罫線ベースの控えめ装丁） */
.jh-cta-underline {
  background: var(--jh-accent-050);
  border-top: 1px solid var(--jh-accent-500);
  border-bottom: 1px solid var(--jh-accent-500);
  border-radius: 0;
  padding: 32px 28px;
}

.jh-cta-label {
  font-size: var(--jh-fs-xs);
  font-weight: var(--jh-fw-bold);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jh-accent-700);
  margin-bottom: 8px;
  display: block;
}
.jh-cta-title {
  font-size: var(--jh-fs-xl);
  line-height: var(--jh-lh-snug);
  margin: 0 0 8px;
  color: var(--jh-text);
  font-weight: var(--jh-fw-bold);
}
.jh-cta-desc {
  font-size: var(--jh-fs-sm);
  line-height: var(--jh-lh-normal);
  margin: 0 0 18px;
  color: var(--jh-text-body);
}
.jh-cta-soft .jh-cta-desc { color: rgba(255,255,255,.85); }
.jh-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.jh-cta-note {
  font-size: var(--jh-fs-xs);
  color: var(--jh-text-light);
  margin-top: 12px;
}

/* Inline CTA（本文中の細め） */
.jh-cta-inline {
  margin: 28px 0;
  padding: 16px 18px;
  background: var(--jh-navy-050);
  border-radius: var(--jh-r-md);
  display: flex; gap: 14px; align-items: center; justify-content: space-between;
  font-size: var(--jh-fs-sm);
}
.jh-cta-inline-text { color: var(--jh-text-body); line-height: 1.6; }
.jh-cta-inline strong { color: var(--jh-navy-900); }
.jh-cta-inline .jh-btn {
  padding: 10px 18px;
  font-size: var(--jh-fs-sm);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .jh-cta-inline { flex-direction: column; align-items: flex-start; }
  .jh-cta-inline .jh-btn { width: 100%; }
}

/* ---------- Footer ---------- */
.jh-footer {
  background: var(--jh-navy-900);
  color: rgba(255,255,255,.8);
  padding: 64px 0 32px;
  margin-top: 96px;
}
.jh-footer a { color: rgba(255,255,255,.85); }
.jh-footer a:hover { color: #fff; }
.jh-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}
.jh-footer h4 {
  font-size: var(--jh-fs-xs);
  color: rgba(255,255,255,.6);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: var(--jh-fw-medium);
}
.jh-footer ul { list-style: none; padding: 0; margin: 0; }
.jh-footer ul li { margin-bottom: 10px; font-size: var(--jh-fs-sm); }
.jh-footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--jh-fs-xs);
  color: rgba(255,255,255,.55);
}
.jh-footer-logo { color: #fff; font-weight: var(--jh-fw-bold); font-size: var(--jh-fs-md); margin-bottom: 8px; }
.jh-footer-desc { font-size: var(--jh-fs-sm); line-height: 1.8; color: rgba(255,255,255,.7); }

@media (max-width: 860px) {
  .jh-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .jh-footer-grid { grid-template-columns: 1fr; }
  .jh-footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ---------- Author block ---------- */
.jh-author {
  display: flex; gap: 16px; align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--jh-line);
  border-bottom: 1px solid var(--jh-line);
  font-size: var(--jh-fs-sm);
}
.jh-author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--jh-navy-100);
  color: var(--jh-navy-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--jh-fw-bold);
  flex-shrink: 0;
}
.jh-author-name { font-weight: var(--jh-fw-bold); color: var(--jh-text); margin: 0; }
.jh-author-bio { font-size: var(--jh-fs-xs); color: var(--jh-text-muted); margin: 2px 0 0; }

/* ---------- Section heading ---------- */
.jh-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--jh-line);
}
.jh-section-title {
  font-size: var(--jh-fs-2xl);
  margin: 0;
  font-weight: var(--jh-fw-bold);
  letter-spacing: .01em;
}
.jh-section-link { font-size: var(--jh-fs-sm); color: var(--jh-navy-700); white-space: nowrap; }

/* ---------- Tweaks panel (floating) ---------- */
.jh-tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: #fff;
  border: 1px solid var(--jh-line-strong);
  border-radius: var(--jh-r-lg);
  box-shadow: var(--jh-shadow-2);
  padding: 16px;
  width: 260px;
  font-size: var(--jh-fs-sm);
  display: none;
}
.jh-tweaks.is-open { display: block; }
.jh-tweaks h5 { margin: 0 0 10px; font-size: var(--jh-fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--jh-text-muted); }
.jh-tweaks-group { margin-bottom: 14px; }
.jh-tweaks-row { display: flex; gap: 6px; flex-wrap: wrap; }
.jh-tweaks-btn {
  padding: 6px 10px; border-radius: 6px; border: 1px solid var(--jh-line);
  background: #fff; color: var(--jh-text-body);
  font-size: 12px; cursor: pointer;
}
.jh-tweaks-btn.is-active { background: var(--jh-navy-800); color: #fff; border-color: var(--jh-navy-800); }
