/* =========================================================
 * 企業研修一覧（archive-workshop.php）
 * /workshop/ の一覧
 * 改修案ワイヤー「企業研修一覧 改修案」をもとにした表示（/works/・/download/ と同じ見た目の決まり）
 * ========================================================= */
.wsa {
  --wsa-ink: #1b1f1e;
  --wsa-muted: #5f6866;
  --wsa-line: #dfe3e0;
  --wsa-teal: #0f8f8a;
  --wsa-brand: #00aebb;
  --wsa-brand-ink: #007f88;
  --wsa-sun: #f3c318;
  --wsa-sun-h: #e6b70f;
  --wsa-soft: #f6f7f5;
  color: var(--wsa-ink);
}
/* テーマの main（overflow:hidden）だと右カラムの追従（sticky）が効かないため、見た目が同じ clip にする */
body.wsa-page .global_contents { overflow: clip; }
.wsa a { color: inherit; text-decoration: none; }
.wsa img { display: block; max-width: 100%; }
.wsa button { font: inherit; color: inherit; }
.wsa h1, .wsa h2, .wsa h3 { background: none; padding: 0; border: 0; }
.wsa [hidden] { display: none !important; }

/* ---------- 見出し ---------- */
.wsa-hero { position: relative; overflow: hidden; background: #f4f4f4; text-align: center; padding: 44px 20px 36px; }
.wsa-hero__bg { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); font-size: clamp(56px, 9vw, 108px); font-weight: 900; line-height: 1; color: #fff; white-space: nowrap; pointer-events: none; }
.wsa .wsa-hero__h { position: relative; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; margin: 0 0 10px; line-height: 1.35; letter-spacing: .06em; }
.wsa-hero__p { position: relative; margin: 0 auto; max-width: 640px; font-size: 14.5px; line-height: 1.9; }

/* ---------- ボタン ---------- */
.wsa .wsa-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; font-weight: 700; padding: 13px 28px; font-size: 15px; line-height: 1.5; border: 1px solid transparent; cursor: pointer; text-align: center; transition: background .15s, color .15s; }
.wsa .wsa-btn--sun { background: var(--wsa-sun); border-color: var(--wsa-sun); color: #111; }
.wsa .wsa-btn--sun:hover { background: var(--wsa-sun-h); border-color: var(--wsa-sun-h); }
.wsa .wsa-btn--line { background: #fff; border-color: var(--wsa-ink); }
.wsa .wsa-btn--line:hover { background: var(--wsa-ink); color: #fff; }

/* ---------- 2カラム ---------- */
.wsa-inner { max-width: 1180px; margin: 0 auto; padding: 36px 20px 64px; }
.wsa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
.wsa-layout > * { min-width: 0; }
.wsa-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; }
.wsa-main > * { min-width: 0; }
.wsa-sec__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wsa .wsa-sec__title h2 { font-size: 20px; margin: 0; padding: 0 !important; line-height: 1.5; } /* テーマの section h2 の左余白を打ち消す */
.wsa .wsa-sec__more { font-size: 13px; font-weight: 700; color: var(--wsa-brand-ink); white-space: nowrap; }
.wsa-sec__more::after { content: " →"; }
#workshop-all { scroll-margin-top: 100px; }

/* ---------- 研修カード ---------- */
.wsa-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wsa-card[hidden] { display: none; }
.wsa-card__no { position: absolute; left: 8px; top: 8px; z-index: 1; background: var(--wsa-ink); color: #fff; font-weight: 900; font-size: 12px; line-height: 1.6; border-radius: 4px; padding: 1px 8px; }
.wsa-card__thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #eef3f2; border: 1px solid var(--wsa-line); transition: border-color .15s; }
.wsa-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wsa-card__thumb img.wsa-card__noimg { width: 40%; height: auto; object-fit: contain; }
.wsa-card:hover .wsa-card__thumb { border-color: var(--wsa-teal); }
.wsa-card:hover .wsa-card__thumb img { transform: scale(1.03); }
.wsa-card__tgt { display: flex; flex-wrap: wrap; gap: 4px; }
.wsa-card__tgt span { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 8px; background: #e6f6f7; color: var(--wsa-brand-ink); line-height: 1.7; }
.wsa-card__ttl { font-size: 15px; font-weight: 700; line-height: 1.5; }
.wsa-card:hover .wsa-card__ttl { color: var(--wsa-teal); }
.wsa-card__about { font-size: 12.5px; color: var(--wsa-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wsa-card__tags { font-size: 12px; color: var(--wsa-muted); line-height: 1.6; }

/* ---------- 絞り込み ---------- */
.wsa-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px 18px; border-radius: 10px; background: var(--wsa-soft); }
.wsa-frow { display: flex; align-items: flex-start; gap: 8px 16px; min-width: 0; }
.wsa-flabel { flex: none; width: 6.5em; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--wsa-muted); }
.wsa-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.wsa .wsa-chip { border: 1px solid var(--wsa-line); background: #fff; border-radius: 999px; padding: 5px 14px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.wsa .wsa-chip[aria-pressed="true"] { background: var(--wsa-ink); border-color: var(--wsa-ink); color: #fff; }
.wsa .wsa-tag { border: 1px solid var(--wsa-line); background: #fff; border-radius: 4px; padding: 5px 11px; font-size: 12.5px; line-height: 1.4; cursor: pointer; text-align: left; }
.wsa .wsa-tag:hover { background: #f2f2f2; }
.wsa .wsa-tag[aria-pressed="true"] { background: var(--wsa-brand); border-color: var(--wsa-brand); color: #fff; }
.wsa-tag__n { margin-left: 6px; font-size: 11px; color: var(--wsa-muted); }
.wsa-tag[aria-pressed="true"] .wsa-tag__n { color: #fff; }
.wsa-kw { flex: 1; display: flex; max-width: 420px; margin: 0; }
.wsa .wsa-kw input { flex: 1; min-width: 0; border: 1px solid var(--wsa-line); border-right: 0; border-radius: 6px 0 0 6px; padding: 7px 12px; font-size: 14px; background: #fff; }
.wsa .wsa-kw button { border: 0; background: var(--wsa-ink); color: #fff; border-radius: 0 6px 6px 0; padding: 0 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
/* よく探される言葉（対象／ジャンル）：キーワード欄の下を点線で区切って1行ずつ */
.wsa-kwg { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed #d6dbd9; }
.wsa-kwg .wsa-flabel { padding-top: 4px; }
.wsa .wsa-kwchip { border: 1px solid var(--wsa-line); background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12.5px; line-height: 1.5; cursor: pointer; transition: border-color .15s, color .15s; }
.wsa .wsa-kwchip:hover { border-color: var(--wsa-brand); color: var(--wsa-brand-ink); }
.wsa .wsa-kwchip[aria-pressed="true"] { background: var(--wsa-ink); border-color: var(--wsa-ink); color: #fff; }
.wsa .wsa-kwchip.is-zero { opacity: .4; } /* 押すと0件になる組み合わせ（押すことはできる） */
.wsa .wsa-kwchip.is-zero:hover { border-color: var(--wsa-line); color: inherit; }
/* 対象の独立ページ（新入社員・次世代リーダー・管理職）：一覧の上に横3つ。NEWONEブルーの地に白い線のイラスト（差し色は黄色）。選んでいる対象のカードは黄色の枠 */
.wsa-lps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.wsa .wsa-lp { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 86px; padding: 12px 10px 12px 16px; border-radius: 10px; background: linear-gradient(135deg, var(--wsa-brand), #0090a0); color: #fff; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.wsa .wsa-lp:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 127, 136, .22); }
.wsa .wsa-lp.is-on { box-shadow: 0 0 0 3px var(--wsa-sun); }
.wsa-lps + .wsa-grid { margin-top: 40px; } /* 特集ページのカードと研修一覧の間 */
.wsa-lp__body { display: grid; gap: 2px; min-width: 0; }
.wsa-lp__lb { justify-self: start; font-size: 10.5px; font-weight: 700; line-height: 1.6; color: var(--wsa-ink); background: var(--wsa-sun); border-radius: 3px; padding: 0 6px; }
.wsa .wsa-lp__t { font-size: 15px; font-weight: 700; line-height: 1.4; color: #fff; }
.wsa-lp__go { margin-top: 4px; font-size: 11.5px; font-weight: 700; }
.wsa-lp__go::after { content: " →"; }
.wsa-lp__ill { width: 72px; height: 60px; flex: none; color: #fff; }
.wsa-lp__ill .y { fill: var(--wsa-sun); stroke: var(--wsa-sun); }
.wsa-lp__ill .w { fill: #fff; }
.wsa-factions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.wsa .wsa-clear { border: 1px solid var(--wsa-ink); background: #fff; border-radius: 999px; padding: 6px 18px; font-size: 13px; font-weight: 700; cursor: pointer; }
.wsa .wsa-clear:hover { background: var(--wsa-ink); color: #fff; }
.wsa .wsa-clear:disabled { opacity: .35; cursor: default; background: #fff; color: var(--wsa-ink); }
.wsa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; margin-top: 22px; }
.wsa-empty { display: grid; justify-items: center; gap: 14px; text-align: center; color: var(--wsa-muted); padding: 30px; margin: 0; }
.wsa-empty p { margin: 0; line-height: 1.8; }
.wsa-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.wsa .wsa-more { border: 1px solid var(--wsa-ink); background: #fff; border-radius: 999px; padding: 10px 32px; font-weight: 700; cursor: pointer; }
.wsa .wsa-more:hover { background: var(--wsa-ink); color: #fff; }

/* ---------- 右カラム：相談（追従） ---------- */
.wsa-side { align-self: stretch; }
.wsa-cta { position: sticky; top: 104px; z-index: 5; border-radius: 12px; background: var(--wsa-brand); padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.wsa-cta__lb { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: #fff; opacity: .9; }
.wsa-cta__h { font-size: 16px; line-height: 1.5; color: #fff; white-space: nowrap; }
.wsa-cta__p { font-size: 12px; line-height: 1.6; color: #fff; margin: 0 0 4px; }
.wsa .wsa-cta a { display: block; text-align: center; border-radius: 999px; font-weight: 700; font-size: 13.5px; padding: 10px 12px; }
.wsa .wsa-cta__b1 { background: var(--wsa-sun); color: #111; }
.wsa .wsa-cta__b1:hover { background: var(--wsa-sun-h); }
.wsa .wsa-cta__b2 { background: #fff; color: var(--wsa-brand-ink); }
.wsa .wsa-cta__b2:hover { background: #f0fbfc; }
.wsa .wsa-cta .wsa-cta__b3 { color: #fff; font-size: 12.5px; padding: 4px; text-decoration: underline; }

/* ---------- スマホ・タブレット下部の相談バー ---------- */
.wsa-spbar { display: none; }

/* ---------- 画面幅ごと ---------- */
@media (max-width: 1000px) {
  .wsa-layout { grid-template-columns: 1fr; }
  .wsa-side { display: none; }
  .wsa-spbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; gap: 8px; background: var(--wsa-brand); padding: 10px 16px; }
  .wsa .wsa-spbar a { flex: 1; text-align: center; border: 1px solid #fff; border-radius: 999px; padding: 9px 6px; font-weight: 700; font-size: 13px; white-space: nowrap; }
  .wsa .wsa-spbar__b1 { flex: 1.4; background: var(--wsa-sun); border-color: var(--wsa-sun); color: #111; }
  .wsa .wsa-spbar__b2 { background: #fff; color: var(--wsa-brand-ink); }
  body.wsa-page { padding-bottom: 60px; }
  .wsa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
}
@media (max-width: 640px) {
  .wsa-inner { padding: 24px 16px 48px; }
  .wsa-hero { padding: 32px 16px 28px; }
  .wsa-hero__p br { display: none; }
  /* スマホは3枚を横スクロール（次のカードが少し見える幅にする） */
  .wsa-lps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -16px; padding: 2px 16px 6px 0; }
  .wsa-lps::-webkit-scrollbar { display: none; }
  .wsa .wsa-lp { scroll-snap-align: start; }
  .wsa-lp__ill { width: 60px; height: 50px; }
  .wsa-lps + .wsa-grid { margin-top: 28px; }
  .wsa-frow { flex-direction: column; gap: 6px; }
  .wsa-flabel { width: auto; padding-top: 0; }
  .wsa-kw { max-width: none; width: 100%; }
  .wsa-filters { padding: 14px; }
  .wsa-grid { grid-template-columns: 1fr; }
  .wsa-sec__title { flex-wrap: wrap; }
}
