/* =========================================================
 * 事例紹介一覧（archive-works.php）
 * 改修案ワイヤフレーム「事例一覧 改修案」をもとにした表示
 * ========================================================= */
.wa {
  --wa-bg: #f6f7f5;
  --wa-ink: #1b1f1e;
  --wa-muted: #5f6866;
  --wa-line: #dfe3e0;
  --wa-teal: #0f8f8a;
  --wa-brand: #00aebb;
  --wa-sun: #f3c318;
  --wa-sun-ink: #3b2f00;
  color: var(--wa-ink);
}
/* テーマの main（overflow:hidden）だと右カラムの追従（sticky）が効かないため、見た目が同じ clip にする */
body.post-type-archive-works .global_contents { overflow: clip; }
.wa a { color: inherit; text-decoration: none; }
.wa img { display: block; max-width: 100%; }
.wa button, .wa select, .wa input { font: inherit; color: inherit; }
.wa h1, .wa h2 { background: none; padding: 0; border: 0; }

/* ---------- 見出し（WORKS） ---------- */
.wa-hero { position: relative; overflow: hidden; background: #f4f4f4; text-align: center; padding: 36px 20px 26px; margin-bottom: 20px; }
.wa-hero__bg { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font-size: clamp(56px, 9vw, 104px); font-weight: 900; line-height: 1; color: #fff; white-space: nowrap; pointer-events: none; }
.wa .wa-hero__h { position: relative; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; margin: 0 0 10px; line-height: 1.3; letter-spacing: .06em; }
.wa-hero__p { position: relative; margin: 0; font-size: 14px; line-height: 1.8; }

.wa-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; }


/* 社名・キーワード検索（絞り込みの中） */
.wa-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--wa-line); border-radius: 999px; padding: 7px 16px; width: 100%; max-width: 300px; background: #fff; }
.wa-sec__title .wa-search { margin-left: auto; align-self: center; }
.wa .wa-search input { border: 0; background: transparent; width: 100%; height: auto; margin: 0; padding: 0; outline: none; font-size: 13px; line-height: 1.5; box-shadow: none; }
.wa-search svg { flex: none; color: var(--wa-muted); }

/* ---------- 2カラム ---------- */
.wa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; }
.wa-layout > * { min-width: 0; }
.wa-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.wa-main > * { min-width: 0; }

.wa-sec__title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.wa .wa-sec__title h2 { font-size: 19px; margin: 0; padding: 0 !important; line-height: 1.5; } /* テーマの section h2 の左余白を打ち消す */
.wa-sec__title small { color: var(--wa-muted); font-size: 12.5px; }
#works-all { scroll-margin-top: 100px; }



/* ---------- 事例カード（左に写真、右に対象ラベル・日付・社名・見出し・タグ、下に業界・従業員数とロゴ） ---------- */
.wa-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; min-width: 0; background: #fff; border: 1px solid #e6e6e3; color: #111; margin-top: 18px; transition: background-color .15s; }
.wa-card:hover { background: #f5f5f3; } /* カーソルを置くと少しグレーに */
.wa-card[hidden] { display: none; }
.wa-thumb { position: relative; overflow: hidden; background: #eee; aspect-ratio: 3 / 2; align-self: start; }
.wa-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.wa-card:hover .wa-thumb img { transform: scale(1.03); }
.wa-new { position: absolute; left: 8px; top: 8px; background: var(--wa-sun); color: var(--wa-sun-ink); font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 7px; line-height: 1.7; }
.wa-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 20px 14px; }
.wa-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wa-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-label { display: inline-block; background: var(--wa-brand); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 4px 12px; }
.wa-date { flex: none; font-size: 13px; color: #333; line-height: 1.5; padding-top: 4px; }
.wa-co { font-weight: 800; font-size: 17px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.wa-desc { display: flex; flex-direction: column; font-size: 14px; color: #333; line-height: 1.7; }
.wa-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-tag { font-size: 12px; font-weight: 700; color: #333; background: #ececea; padding: 4px 10px; line-height: 1.5; }
.wa-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 10px; border-top: 1px solid #e6e6e3; }
.wa-info { display: flex; flex-direction: column; font-size: 12.5px; color: var(--wa-muted); line-height: 1.7; min-width: 0; }
.wa-lg { flex: none; width: 120px; height: 48px; display: grid; place-items: center end; }
.wa-lg img { max-height: 48px; max-width: 120px; object-fit: contain; }

/* ---------- 絞り込み（白い箱の中に、見出し＋チェックボックスを小さめの文字で並べる） ---------- */
.wa-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 26px; background: #fff; border: 1px solid #ececec; border-radius: 16px; box-shadow: 0 3px 8px rgba(0, 0, 0, .04); }
.wa-fmore { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.wa-fmore-btn { display: none; }
.wa .wa-fg { border: 0; margin: 0; padding: 0; min-width: 0; }
.wa .wa-fg__h { display: block; float: none; width: auto; margin: 0 0 8px; padding: 0 0 0 8px; border-left: 3px solid var(--wa-ink); font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--wa-ink); }
.wa-fg__list { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-left: 2px; }
.wa .wa-ck { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 12.5px; line-height: 1.5; color: #333; cursor: pointer; white-space: nowrap; }
.wa .wa-ck input { display: inline-block !important; position: static !important; opacity: 1 !important; -webkit-appearance: checkbox; appearance: auto; width: 13px; height: 13px; margin: 0; flex: none; accent-color: var(--wa-ink); cursor: pointer; }
.wa-ck:hover span { text-decoration: underline; }
/* テーマが label 内の span に描く独自のチェック枠を出さない（本物のチェックボックスを使う） */
.wa .wa-ck span { position: static; padding: 0; }
.wa .wa-ck span::before, .wa .wa-ck span::after { content: none !important; display: none !important; }
.wa-ck:hover span { text-decoration: underline; }

.wa-grid { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 22px; } /* 絞り込みの箱との間をあける（カードの上の余白と合わせて40px） */
.wa-empty { grid-column: 1 / -1; text-align: center; color: var(--wa-muted); padding: 30px; margin: 0; }
.wa-empty[hidden] { display: none; }
.wa-more-wrap { display: flex; justify-content: center; margin-top: 28px; }
.wa-btn { border: 1px solid var(--wa-ink); background: #fff; border-radius: 999px; padding: 10px 32px; font-weight: 700; cursor: pointer; }
.wa-btn[hidden] { display: none; }

/* ---------- 右カラム ---------- */
.wa-side { align-self: stretch; }

.wa-cta { position: sticky; top: 104px; z-index: 5; border-radius: 12px; background: var(--wa-brand); color: #fff; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; }
.wa-cta__lb { font-size: 11px; font-weight: 700; letter-spacing: .18em; opacity: .85; }
.wa-cta__h { font-size: 16px; line-height: 1.5; margin-bottom: 4px; }
.wa-cta a { display: block; text-align: center; border-radius: 999px; font-weight: 700; font-size: 13.5px; padding: 10px 12px; }
.wa .wa-cta__b1 { background: #fff; color: #007f88; }
.wa .wa-cta__b2 { background: var(--wa-sun); border: 1px solid var(--wa-sun); color: #111; } /* 30分のオンライン相談：黄色地に黒字 */
.wa-cta__b1:hover { background: #f0fbfc; }
.wa .wa-cta__b2:hover { background: #e6b70f; border-color: #e6b70f; }
.wa-cta hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .45); margin: 6px 0 4px; width: 100%; }
.wa-cta__lgh { font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.wa-cta__logos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wa .wa-cta__logos a { background: #fff; border-radius: 6px; height: 40px; display: grid; place-items: center; padding: 6px; font-weight: 400; }
.wa-cta__logos img { max-height: 26px; max-width: 100%; object-fit: contain; }

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

/* ---------- 画面幅ごと ---------- */
@media (max-width: 1000px) {
  .wa-layout { grid-template-columns: 1fr; }
  .wa-side { display: none; }
  .wa-spbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; align-items: center; justify-content: space-between; gap: 10px; background: var(--wa-brand); color: #fff; padding: 10px 16px; font-size: 13px; font-weight: 700; }
  .wa .wa-spbar a { background: #fff; color: #007f88; border-radius: 999px; padding: 7px 16px; white-space: nowrap; }
  body.post-type-archive-works { padding-bottom: 56px; }
}
@media (max-width: 900px) {
  .wa-card { grid-template-columns: 220px minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wa-card { grid-template-columns: 1fr; }
  .wa-body { padding: 12px 14px 14px; }
  .wa-co { font-size: 16px; }
  .wa-lg { width: 96px; height: 40px; }
  .wa-lg img { max-height: 40px; max-width: 96px; }
  .wa-grid { margin-top: 28px; }
  /* 課題・テーマ以外（対象・企業規模・業界）はたたむ */
  .wa .wa-fmore-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 1px dashed var(--wa-muted); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--wa-ink); cursor: pointer; }
  .wa-fmore-btn[aria-expanded="true"] span { transform: rotate(180deg); }
  .wa-fmore { display: none; }
  .wa-fmore.is-open { display: grid; }
  .wa-filters { padding: 16px; border-radius: 12px; }
  .wa-fg__list { gap: 5px 14px; }
  .wa .wa-ck { white-space: normal; }
  .wa .wa-search { max-width: none; margin-left: 0; }
  .wa-hero__p br { display: none; }
  .wa-inner { padding: 0 16px 48px; }
}
