/* ============================================================
 * sf-archive.css — NEWS/BLOG/RECRUIT アーカイブ独自ヘッダー
 *
 * SWELL の top_title_area（#content 手前＝全幅）に出す .event-page-header。
 * 静的 HTML/news.html 等と同デザイン。
 * split-slide アニメは sf-company.js（html.anim-ready）で駆動。
 *
 * 詳細: docs/wp-migration/SIDEBAR_ARCHIVE_PLAN.md ①-b-5
 * ※ .event-page-header の共通定義は sf-components.css に集約済み（Step 10-9 パス1b）。
 *   本ファイルには archive 固有の拡張（single メタ / 記事タイトル縮小）のみ残す。
 * ============================================================ */

/* トークン（--c-orange / --c-navy 等）は sf-base.css に集約（Step 10-9 パス1a）。
 * sf-base は全ページ enqueue のため CPT 文脈でも供給される。 */

/* ── ヘッダーをフローから外す（HTML版 .site-header:fixed と同じオーバーレイ化） ──
 * SWELL .l-header は position:relative で高さ分フローを占有し、その下に出る
 * .event-page-header(padding-top:184px) が押し下げられて見出し上の余白が広がる。
 * ヘッダーを absolute 化して HTML版同様コンテンツへ重ね、padding-top:184px を
 * HTMLと同じ意味で効かせる。固定ページ側は sf-swell-override.css に同方針の
 * 規則あり（CPTはそのCSSを読み込まないため本ファイルに置く）。
 * #fix_header(追従ヘッダー) は別要素のため挙動は維持。 */
.sf-archive-page #header.l-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

@media (max-width: 959px) {
  .sf-archive-page #header.l-header[data-spfix="1"] {
    position: fixed;
  }
}

/* ── Event Page Header / split-slide-line ──
 * 共通定義（箱・eyebrow・title・bg-en・split アニメ・reduced-motion）は
 * sf-components.css に集約（Step 10-9 パス1b）。archive は markup が
 * `container event-page-header__inner` のため、h1 inner 幅 1200px / padding は
 * sf-components の `.event-page-header .event-page-header__inner.container` で供給される。
 * 以下は archive 固有の拡張（single メタ / 記事タイトル縮小）のみを残す。 */

/* ============================================================
 * ①-b-5b 詳細(single) ヘッダーのメタ（カテゴリーチップ / 日付 / 著者）
 * SWELL パーツ（c-taxList / c-postTimes / c-postAuthor）を再利用。
 * ============================================================ */
.sf-archive-page .event-page-header__meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 26px;
  max-width: 820px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}
html.anim-ready .sf-archive-page .event-page-header__meta {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .5s;
}
.sf-archive-page .event-page-header__meta .c-postTimes,
.sf-archive-page .event-page-header__meta .c-postAuthor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #46505f;
  text-decoration: none;
}
.sf-archive-page .event-page-header__meta .c-postAuthor__figure {
  width: 26px;
  height: 26px;
  margin: 0;
  flex-shrink: 0;
}
.sf-archive-page .event-page-header__meta .c-postAuthor__figure img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================================
 * ①-b-3 サイドバー（NEWS/BLOG アーカイブ）
 * マークアップ: inc/sf-archive-sidebar.php（.sf-sidebar > .sf-side-nav）
 * ============================================================ */
.sf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.sf-side-nav__title {
  position: relative;
  margin: 0 0 14px;
  padding: 10px 14px 12px;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--c-navy);
  border-bottom: 2px solid var(--c-orange);
}
.sf-side-nav__title::after {
  content: none;
}
.sf-side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sf-side-nav__item {
  border-bottom: 1px solid #eceff2;
}
.sf-side-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 4px 11px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #46505f;
  text-decoration: none;
  transition: color .2s ease;
}
.sf-side-nav__link::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--c-orange);
  border-right: 1.5px solid var(--c-orange);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.5;
  transition: opacity .2s ease, left .2s ease;
}
.sf-side-nav__link:hover {
  color: var(--c-orange);
}
.sf-side-nav__link:hover::before {
  opacity: 1;
  left: 5px;
}
.sf-side-nav__name {
  flex: 1;
}
.sf-side-nav__count {
  flex-shrink: 0;
  min-width: 24px;
  padding: 1px 7px;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  color: #8a93a0;
  background: #f1f3f5;
  border-radius: 10px;
}
.sf-side-nav__item.is-current .sf-side-nav__link {
  color: var(--c-orange);
  font-weight: 700;
}
.sf-side-nav__item.is-current .sf-side-nav__link::before {
  opacity: 1;
  left: 5px;
}
.sf-side-nav__item.is-current .sf-side-nav__count {
  color: #fff;
  background: var(--c-orange);
}
.sf-side-nav__form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
}
.sf-side-nav__select {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  color: #46505f;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-orange) 50%),
    linear-gradient(135deg, var(--c-orange) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  border: 1px solid #d8dde5;
  border-radius: 6px;
  -webkit-appearance: none;
  appearance: none;
}
.sf-side-nav__select:focus {
  border-color: var(--c-orange);
  outline: 2px solid rgba(242, 103, 34, 0.18);
  outline-offset: 2px;
}
.sf-side-nav__submit {
  flex-shrink: 0;
  min-width: 64px;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--c-orange);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: filter .2s ease;
}
.sf-side-nav__submit:hover {
  filter: brightness(0.95);
}
.sf-side-nav__submit:focus-visible {
  outline: 2px solid rgba(242, 103, 34, 0.28);
  outline-offset: 2px;
}
.sf-side-banner {
  position: relative;
  display: block;
  padding: 18px 18px 20px;
  color: var(--c-navy);
  text-decoration: none;
  background: #fff;
  border: 1px solid #dfe4eb;
  border-left: 4px solid var(--c-orange);
  box-shadow: 0 10px 26px rgba(10, 35, 66, 0.08);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sf-side-banner::after {
  content: none;
}
.sf-side-banner__eyebrow,
.sf-side-banner__title,
.sf-side-banner__cta {
  display: block;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.08em;
}
.sf-side-banner__eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-orange);
  text-transform: uppercase;
}
.sf-side-banner__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}
.sf-side-banner__text {
  display: block;
  margin-top: 10px;
  padding-right: 20px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: #46505f;
}
.sf-side-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 16px;
  padding: 5px 5px 5px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--c-yellow, #f5b937);
  border-radius: 999px;
  transition: transform .35s ease, filter .35s ease;
}
.sf-side-banner__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  color: var(--c-yellow, #f5b937);
  background: #fff;
  border-radius: 50%;
  transition: transform .35s ease;
}
.sf-side-banner:hover,
.sf-side-banner:focus-visible {
  border-color: rgba(242, 103, 34, 0.55);
  box-shadow: 0 14px 32px rgba(10, 35, 66, 0.12);
  transform: translateY(-2px);
}
.sf-side-banner:hover .sf-side-banner__cta,
.sf-side-banner:focus-visible .sf-side-banner__cta {
  transform: translateX(4px);
  filter: brightness(1.04);
}
.sf-side-banner:hover .sf-side-banner__cta-icon,
.sf-side-banner:focus-visible .sf-side-banner__cta-icon {
  transform: translateX(2px);
}
.sf-side-banner:focus-visible {
  outline: 2px solid rgba(242, 103, 34, 0.28);
  outline-offset: 3px;
}

/* ============================================================
 * ①-b-4 カテゴリーチップのブランド色化
 *  - single 詳細: .c-taxList__link--<slug>（ヘッダーメタ内）
 *  - 一覧カード:   .p-postList__cat--<slug>
 * NEWS = アウトライン / BLOG = 塗り。slug 'other' 衝突は body .sf-cpt-{pt} で出し分け。
 * 色値は §4 パレット（top-orange-navy.css と統一）。
 * ============================================================ */
.sf-archive-page .c-taxList {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.sf-archive-page .c-taxList__link,
.sf-archive-page .p-postList__cat {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
}
/* SWELL の folder アイコンは出さない（静的デザインに合わせる） */
.sf-archive-page .p-postList__cat.icon-folder::before {
  content: none;
}

/* ── NEWS = アウトライン ── */
.sf-cpt-news .c-taxList__link,
.sf-cpt-news .p-postList__cat {
  color: var(--c-orange);
  border: 1px solid var(--c-orange);
  background: rgba(224, 85, 49, 0.08);
}
.sf-cpt-news .c-taxList__link--event-info,
.sf-cpt-news .p-postList__cat--event-info {
  color: #f59e0b; border-color: #f59e0b; background: rgba(245, 158, 11, 0.10);
}
.sf-cpt-news .c-taxList__link--news,
.sf-cpt-news .p-postList__cat--news {
  color: #7b57d1; border-color: #7b57d1; background: rgba(123, 87, 209, 0.10);
}
.sf-cpt-news .c-taxList__link--pickup,
.sf-cpt-news .p-postList__cat--pickup {
  color: #db2777; border-color: #db2777; background: rgba(219, 39, 119, 0.10);
}
.sf-cpt-news .c-taxList__link--aichi-museum,
.sf-cpt-news .p-postList__cat--aichi-museum {
  color: #0ea5e9; border-color: #0ea5e9; background: rgba(56, 189, 248, 0.12);
}
.sf-cpt-news .c-taxList__link--mm-museum,
.sf-cpt-news .p-postList__cat--mm-museum {
  color: #16a34a; border-color: #16a34a; background: rgba(22, 163, 74, 0.10);
}
.sf-cpt-news .c-taxList__link--restaurant,
.sf-cpt-news .p-postList__cat--restaurant {
  color: #1e40af; border-color: #1e40af; background: rgba(30, 64, 175, 0.10);
}
.sf-cpt-news .c-taxList__link--other,
.sf-cpt-news .p-postList__cat--other {
  color: #ca8a04; border-color: #ca8a04; background: rgba(234, 179, 8, 0.12);
}

/* ── BLOG = 塗り ── */
.sf-cpt-blog .c-taxList__link,
.sf-cpt-blog .p-postList__cat {
  color: #fff;
  border: 1px solid transparent;
  background: var(--c-orange);
}
.sf-cpt-blog .c-taxList__link--work,
.sf-cpt-blog .p-postList__cat--work { background: #1f5fd6; }
.sf-cpt-blog .c-taxList__link--work-side-story,
.sf-cpt-blog .p-postList__cat--work-side-story { background: #7b57d1; }
.sf-cpt-blog .c-taxList__link--daily,
.sf-cpt-blog .p-postList__cat--daily { background: #16a34a; }
.sf-cpt-blog .c-taxList__link--gourmet,
.sf-cpt-blog .p-postList__cat--gourmet { background: #db2777; }
.sf-cpt-blog .c-taxList__link--interview,
.sf-cpt-blog .p-postList__cat--interview { background: #14b8a6; }
.sf-cpt-blog .c-taxList__link--expo2025,
.sf-cpt-blog .p-postList__cat--expo2025 { background: #1e40af; }
.sf-cpt-blog .c-taxList__link--other,
.sf-cpt-blog .p-postList__cat--other { color: #fff; background: #eab308; }
.sf-cpt-blog .c-taxList__link--archive-20260531,
.sf-cpt-blog .p-postList__cat--archive-20260531 { background: #6b7280; }

/* ── RECRUIT = アウトライン（雇用形態別4色 / §4-3。色は仮確定 2026-06-03） ── */
.sf-cpt-recruit .c-taxList__link,
.sf-cpt-recruit .p-postList__cat {
  color: var(--c-orange);
  border: 1px solid var(--c-orange);
  background: rgba(224, 85, 49, 0.08);
}
.sf-cpt-recruit .c-taxList__link--full-time,
.sf-cpt-recruit .p-postList__cat--full-time {
  color: #1e40af; border-color: #1e40af; background: rgba(30, 64, 175, 0.10);
}
.sf-cpt-recruit .c-taxList__link--contract,
.sf-cpt-recruit .p-postList__cat--contract {
  color: #14b8a6; border-color: #14b8a6; background: rgba(20, 184, 166, 0.10);
}
.sf-cpt-recruit .c-taxList__link--part-time,
.sf-cpt-recruit .p-postList__cat--part-time {
  color: #f59e0b; border-color: #f59e0b; background: rgba(245, 158, 11, 0.10);
}
.sf-cpt-recruit .c-taxList__link--dispatch,
.sf-cpt-recruit .p-postList__cat--dispatch {
  color: #7b57d1; border-color: #7b57d1; background: rgba(123, 87, 209, 0.10);
}

/* RECRUIT 一覧カードの本文抜粋: 改行を維持して本文先頭3行を表示。
 * 「3行」は parts/post_list/style_normal.php（子テーマ override）で論理行ベースに制限し、
 * <br> で改行を再現する。長い行は折り返して表示する（視覚行での強制カットはしない）。 */
.sf-cpt-recruit .p-postList__excerpt {
  white-space: normal;
  overflow: hidden;
}

/* Search results: mixed CPT cards cannot rely on body .sf-cpt-* classes. */
.p-postList__cat--type-news,
.p-postList__cat--type-blog,
.p-postList__cat--type-recruit {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
}
.p-postList__cat--type-news.icon-folder::before,
.p-postList__cat--type-blog.icon-folder::before,
.p-postList__cat--type-recruit.icon-folder::before {
  content: none;
}
.p-postList__cat--type-news {
  color: var(--c-orange);
  border: 1px solid var(--c-orange);
  background: rgba(224, 85, 49, 0.08);
}
.p-postList__cat--type-news.p-postList__cat--event-info {
  color: #f59e0b; border-color: #f59e0b; background: rgba(245, 158, 11, 0.10);
}
.p-postList__cat--type-news.p-postList__cat--news {
  color: #7b57d1; border-color: #7b57d1; background: rgba(123, 87, 209, 0.10);
}
.p-postList__cat--type-news.p-postList__cat--pickup {
  color: #db2777; border-color: #db2777; background: rgba(219, 39, 119, 0.10);
}
.p-postList__cat--type-news.p-postList__cat--aichi-museum {
  color: #0ea5e9; border-color: #0ea5e9; background: rgba(56, 189, 248, 0.12);
}
.p-postList__cat--type-news.p-postList__cat--mm-museum {
  color: #16a34a; border-color: #16a34a; background: rgba(22, 163, 74, 0.10);
}
.p-postList__cat--type-news.p-postList__cat--restaurant {
  color: #1e40af; border-color: #1e40af; background: rgba(30, 64, 175, 0.10);
}
.p-postList__cat--type-news.p-postList__cat--other {
  color: #ca8a04; border-color: #ca8a04; background: rgba(234, 179, 8, 0.12);
}
.p-postList__cat--type-blog {
  color: #fff;
  border: 1px solid transparent;
  background: var(--c-orange);
}
.p-postList__cat--type-blog.p-postList__cat--work { background: #1f5fd6; }
.p-postList__cat--type-blog.p-postList__cat--work-side-story { background: #7b57d1; }
.p-postList__cat--type-blog.p-postList__cat--daily { background: #16a34a; }
.p-postList__cat--type-blog.p-postList__cat--gourmet { background: #db2777; }
.p-postList__cat--type-blog.p-postList__cat--interview { background: #14b8a6; }
.p-postList__cat--type-blog.p-postList__cat--expo2025 { background: #1e40af; }
.p-postList__cat--type-blog.p-postList__cat--other { color: #fff; background: #eab308; }
.p-postList__cat--type-blog.p-postList__cat--archive-20260531 { background: #6b7280; }
.p-postList__cat--type-recruit {
  color: var(--c-orange);
  border: 1px solid var(--c-orange);
  background: rgba(224, 85, 49, 0.08);
}
.p-postList__cat--type-recruit.p-postList__cat--full-time {
  color: #1e40af; border-color: #1e40af; background: rgba(30, 64, 175, 0.10);
}
.p-postList__cat--type-recruit.p-postList__cat--contract {
  color: #14b8a6; border-color: #14b8a6; background: rgba(20, 184, 166, 0.10);
}
.p-postList__cat--type-recruit.p-postList__cat--part-time {
  color: #f59e0b; border-color: #f59e0b; background: rgba(245, 158, 11, 0.10);
}
.p-postList__cat--type-recruit.p-postList__cat--dispatch {
  color: #7b57d1; border-color: #7b57d1; background: rgba(123, 87, 209, 0.10);
}

/* ============================================================
 * §7 追加調整
 * ============================================================ */
/* single 詳細 h1（記事タイトル）は固定ページより長文になり得るため縮小 */
.sf-archive-page .event-page-header--single .event-page-header__title-ja {
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.4;
}

/* 一覧カード: タイトル下のメタ（日付/チップ/著者）が近すぎるため約10px 下へ離す */
.sf-archive-page .p-postList__body .p-postList__meta,
.search-results .p-postList__body .p-postList__meta {
  margin-top: calc(0.75em + 10px);
}

/* BLOG 一覧カードの著者ラベル（アイコン＋名前） */
.sf-archive-page .p-postList__author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 2px;
}
.sf-archive-page .p-postList__author .c-postAuthor__figure {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.sf-archive-page .p-postList__author .c-postAuthor__figure img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Reduced motion（メタのフェードも無効化） ── */
@media (prefers-reduced-motion: reduce) {
  .sf-archive-page .event-page-header__meta {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── SP ── */
@media (max-width: 767px) {
  /* event-page-header の SP 調整（箱・inner padding・title-en・bg-en）は
   * sf-components.css に集約（パス1b）。archive 固有の meta SP のみ残す。 */
  .sf-archive-page .event-page-header__meta {
    margin-top: 20px;
    gap: 10px 14px;
  }
  .sf-sidebar {
    gap: 32px;
  }
}

/* ============================================================
 * §8 RECRUIT 詳細（single-recruit.php）
 *
 * 旧テーマ single-recruit の dl/dt/dd 求人項目表を新デザインへ移植。
 * ACF「リクルート詳細項目」10 項目を定義リスト表（company-data 流儀）で表示。
 * single recruit は body に sf-archive-page + sf-cpt-recruit が付く（sf-archive-header.php）。
 * ============================================================ */
.sf-archive-page .sf-recruit-detail {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 24px clamp(64px, 8vw, 110px);
}
.sf-archive-page .sf-recruit-detail__thumb {
  margin-bottom: clamp(32px, 4vw, 48px);
  border-radius: 16px;
  overflow: hidden;
}
.sf-archive-page .sf-recruit-detail__thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.sf-archive-page .sf-recruit-detail__body {
  margin-bottom: clamp(36px, 5vw, 56px);
  color: #26313f;
  line-height: 2;
}
.sf-archive-page .sf-recruit-detail__body > :first-child { margin-top: 0; }
.sf-archive-page .sf-recruit-detail__body > :last-child  { margin-bottom: 0; }

.sf-archive-page .sf-recruit-detail__table {
  margin: 0;
  border-top: 1px solid rgba(30, 47, 77, 0.14);
}
.sf-archive-page .sf-recruit-detail__row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding: 24px 0;
  border-bottom: 1px solid rgba(30, 47, 77, 0.14);
}
.sf-archive-page .sf-recruit-detail__term {
  margin: 0;
  color: var(--c-navy);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sf-archive-page .sf-recruit-detail__desc {
  margin: 0;
  color: #26313f;
  line-height: 1.9;
  word-break: break-word;
}

.sf-archive-page .sf-recruit-detail__back {
  margin-top: clamp(40px, 6vw, 72px);
  text-align: center;
}
.sf-archive-page .sf-recruit-detail__back a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.sf-archive-page .sf-recruit-detail__back a:hover {
  background: var(--c-orange);
  transform: translateY(-2px);
}
.sf-archive-page .sf-recruit-detail__back-arrow {
  width: 18px;
  height: 8px;
  background: currentColor;
  /* 左向き矢印（一覧へ戻る） */
  clip-path: polygon(0 50%, 40% 0, 40% 35%, 100% 35%, 100% 65%, 40% 65%, 40% 100%);
}

@media (max-width: 767px) {
  .sf-archive-page .sf-recruit-detail__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }
}

/* ── 応募（エントリー）フォーム：求人詳細下部に自動表示 ──
 * 共通フォーム要素は sf-components.css（.sf-form）。ここはラッパーのみ。 */
.sf-archive-page .sf-recruit-entry {
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: 16px;
  background: var(--c-bg-alt, #f6f7f9);
  border: 1px solid rgba(30, 47, 77, 0.1);
}
.sf-archive-page .sf-recruit-entry__title {
  margin: 0 0 clamp(24px, 4vw, 40px);
  text-align: center;
  line-height: 1.2;
}
.sf-archive-page .sf-recruit-entry__title-en {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: 0.1em;
  color: var(--c-navy);
}
.sf-archive-page .sf-recruit-entry__title-ja {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-orange);
}

@media (max-width: 767px) {
  .sf-archive-page .sf-recruit-entry {
    width: calc(100vw - 48px);
    margin-left: calc(50% - 50vw + 24px);
    margin-right: calc(50% - 50vw + 24px);
    padding: 28px;
  }
}

/* ── RECRUIT 一覧上部：CatHandセンター 導線カード ──
 * h1 直下・投稿一覧の上に表示（template-parts/archive-cpt.php・recruit 限定）。 */
.sf-cpt-recruit .sf-cathand-card {
  margin: 0 0 clamp(28px, 4vw, 44px);
}
.sf-cpt-recruit .sf-cathand-card__link {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: 16px;
  background: var(--c-bg-alt, #f6f7f9);
  border: 1px solid rgba(30, 47, 77, 0.1);
  text-decoration: none;
  color: var(--c-navy);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.sf-cpt-recruit .sf-cathand-card__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(30, 47, 77, 0.12);
}
.sf-cpt-recruit .sf-cathand-card__logo {
  width: 100%;
  height: auto;
  display: block;
}
.sf-cpt-recruit .sf-cathand-card__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--c-orange);
}
.sf-cpt-recruit .sf-cathand-card__title {
  display: block;
  margin: 6px 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
}
.sf-cpt-recruit .sf-cathand-card__text {
  display: block;
  line-height: 1.8;
  font-size: 15px;
}
/* CTA は /service/ の VIEW MORE ボタンと同デザイン（黄色ピル＋白丸アイコン）。 */
.sf-cpt-recruit .sf-cathand-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--c-yellow, #f5b937);
  border-radius: 999px;
  padding: 5px 5px 5px 18px;
  text-transform: uppercase;
  transition: transform .35s ease, filter .35s ease;
}
.sf-cpt-recruit .sf-cathand-card__cta-icon {
  width: 20px;
  height: 20px;
  font-size: 11px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-yellow, #f5b937);
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.sf-cpt-recruit .sf-cathand-card__link:hover .sf-cathand-card__cta {
  transform: translateX(6px);
  filter: brightness(1.04);
}
@media (max-width: 767px) {
  .sf-cpt-recruit .sf-cathand-card__link {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sf-cpt-recruit .sf-cathand-card__media {
    max-width: 240px;
    margin: 0 auto;
  }
  .sf-cpt-recruit .sf-cathand-card__cta {
    justify-content: center;
  }
}

/* ============================================================
 * NEWS アーカイブ — アイキャッチ無しテキスト一覧
 *
 * トップ新着NEWS（sf-top.css .news__*）と同デザイン。sf-top.css は
 * トップ専用 enqueue のためアーカイブには来ない → ここに .sf-cpt-news
 * スコープで自己完結移植（archive-cpt.php の news 分岐が出力）。
 * カテゴリ色分けは CATEGORY_MIGRATION_PLAN §4-1 と同一マップ。
 * ============================================================ */
.sf-cpt-news .news__list--archive { max-width: 820px; margin: 0 auto; }
.sf-cpt-news .news__item {
  /* PC/SP 共通: 日付＋カテゴリラベルを1行目、タイトルを2行目に */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 20px 0;
  /* 全アイテムに透明の上線を仕込む（レイアウト不変・二重線にならない）。
     ホバーで上下線をオレンジ化するため。 */
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--c-border);
  transition: border-color .2s;
}
.sf-cpt-news .news__date { grid-column: 1; grid-row: 1; }
.sf-cpt-news .news__tags {
  grid-column: 2; grid-row: 1;
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-self: start;
}
.sf-cpt-news .news__title {
  grid-column: 1 / -1; grid-row: 2;
  width: auto; flex: none; text-align: left;
}
.sf-cpt-news .news__item:first-child { border-top-color: var(--c-border); }
.sf-cpt-news .news__item:hover {
  border-top-color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}
.sf-cpt-news .news__date {
  font-family: 'Oswald', sans-serif; font-size: 13px;
  color: var(--c-sub); flex-shrink: 0; letter-spacing: .05em;
}
.sf-cpt-news .news__tag {
  font-size: 10px; font-weight: 700; color: var(--c-orange);
  border: 1px solid var(--c-orange); border-radius: 4px;
  padding: 2px 8px; flex-shrink: 0; letter-spacing: .04em;
  white-space: nowrap;
}
/* ── News tag colors (カテゴリ slug ベース / CATEGORY_MIGRATION_PLAN §4-1) ── */
.sf-cpt-news .news__tag--event-info {
  color: #f59e0b; border-color: #f59e0b; background: rgba(245,158,11,.10);
}
.sf-cpt-news .news__tag--news {
  color: #7b57d1; border-color: #7b57d1; background: rgba(123,87,209,.10);
}
.sf-cpt-news .news__tag--pickup {
  color: #db2777; border-color: #db2777; background: rgba(219,39,119,.10);
}
.sf-cpt-news .news__tag--aichi-museum {
  color: #0ea5e9; border-color: #0ea5e9; background: rgba(56,189,248,.12);
}
.sf-cpt-news .news__tag--mm-museum {
  color: #16a34a; border-color: #16a34a; background: rgba(22,163,74,.10);
}
.sf-cpt-news .news__tag--restaurant {
  color: #1e40af; border-color: #1e40af; background: rgba(30,64,175,.10);
}
.sf-cpt-news .news__tag--other {
  color: #ca8a04; border-color: #ca8a04; background: rgba(234,179,8,.12);
}
.sf-cpt-news .news__title { font-size: 14px; color: var(--c-text); text-decoration: none; }
.sf-cpt-news .news__title:hover { opacity: .65; }

/* ============================================================
 * single（NEWS/BLOG）下部パーツ
 *  - NEWS: 一覧へ戻るボタン（TIMES/RECRUIT の戻るボタンと同一スタイル）
 *  - BLOG: 関連記事「NEW BLOG POSTS」見出しをサイドバー sf-side-nav__title と同デザインに
 * ============================================================ */

/* NEWS 個別：一覧へ戻る（parts/single/after_article.php が出力） */
.sf-archive-page .sf-single-back {
  margin-top: clamp(40px, 6vw, 72px);
  text-align: center;
}
.sf-archive-page .sf-single-back a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--c-navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.sf-archive-page .sf-single-back a:hover {
  background: var(--c-orange);
  transform: translateY(-2px);
}
.sf-archive-page .sf-single-back-arrow {
  width: 18px;
  height: 8px;
  background: currentColor;
  /* 左向き矢印（一覧へ戻る） */
  clip-path: polygon(0 50%, 40% 0, 40% 35%, 100% 35%, 100% 65%, 40% 65%, 40% 100%);
}

/* BLOG 個別：関連記事「NEW BLOG POSTS」見出しをサイドバー見出しと同デザインに。
 * 親 related_post_list.php の <h2 class="l-articleBottom__title c-secTitle"> に対し、
 * sf-side-nav__title 相当の装飾を上書き（c-secTitle の擬似要素ラインは打ち消す）。 */
.sf-cpt-blog .l-articleBottom__section.-related .l-articleBottom__title {
  margin: 0 0 1.5em;
  padding: 10px 14px 12px;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--c-navy);
  border-bottom: 2px solid var(--c-orange);
}
.sf-cpt-blog .l-articleBottom__section.-related .l-articleBottom__title::before,
.sf-cpt-blog .l-articleBottom__section.-related .l-articleBottom__title::after {
  content: none;
}
