/* ===== 記事ページ専用（離職防止） ===== */

/* 全体余白 */
.article-page {
  padding: 24px 20px 80px;
}

/* ===== ヒーロー画像 ===== */
.article-hero-wrap {
  max-width: 1200px;
  margin: 0 auto 28px;
}

.article-hero {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

/* ===== メタ情報 ===== */
.article-meta {
  max-width: 860px;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #6e7894;
  font-size: 13px;
  font-weight: 700;
}

.article-category {
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1efe9;
  color: #8a7f6b;
  font-size: 12px;
}

.article-meta-divider {
  color: #aaa;
}

/* ===== 本文エリア ===== */
.article-container {
  max-width: 860px;
  margin: 0 auto;
}

/* ===== タイトル ===== */
.article-header {
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.4;
  margin-bottom: 16px;
  color: #1f2736;
}

.article-lead {
  font-size: 18px;
  line-height: 1.9;
  color: #444;
}

/* ===== セクション ===== */
.article-section {
  margin-top: 36px;
}

.article-section h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin-bottom: 14px;
  color: #1f2736;
}

.article-section h3 {
  font-size: 18px;
  margin: 20px 0 8px;
  color: #1f2736;
}

.article-section p {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 16px;
}

/* ===== CTA（あれば） ===== */
.article-cta {
  max-width: 860px;
  margin: 50px auto 0;
}

/* ===== ページトップボタン ===== */
#scrollTopBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #aeb4c2;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  z-index: 9999;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background: #8f97a8;
  transform: translateY(-3px);
}

/* 矢印 */
#scrollTopBtn::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(-45deg);
  margin-top: 6px;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .article-page {
    padding: 16px 16px 60px;
  }

  .article-hero {
    height: 220px;
    border-radius: 16px;
  }

  .article-header h1 {
    font-size: 26px;
  }

  .article-lead {
    font-size: 16px;
  }

  .article-section h2 {
    font-size: 22px;
  }

  .article-section h3 {
    font-size: 16px;
  }

  .article-section p {
    font-size: 15px;
  }

  #scrollTopBtn {
    width: 44px;
    height: 44px;
  }
}