/* ワークストラスト AI 記事（wt_ai_column）のページの枠。2026-10-17 シオン。
   他のクライアントの AI 記事（レトリック様 retrique-ai-column-shell.css）と同じ形：見出し帯 → 本文 70% ＋ 右サイドバー 25%。
   このファイルは AI 記事のページだけで読み込む。既存ページの CSS は使わず、変えない。 */
.wt-ai-single,
.wt-ai-single * { box-sizing: border-box; }

.wt-ai-single {
  --wt-ink: #1d2b3a;
  --wt-soft: rgba(29, 43, 58, .64);
  --wt-rule: rgba(21, 101, 192, .18);
  --wt-rule-soft: rgba(29, 43, 58, .08);
  --wt-blue: #1565c0;
  --wt-blue-dp: #0d4a8f;
  --wt-paper: #f3f7fb;
  display: block;
  color: var(--wt-ink);
  background: #fbfcfe;
  font-family: 'Noto Sans JP', -apple-system, 'Hiragino Sans', sans-serif;
}

/* 見出し帯（下層ページと同じ位置づけの小さな帯） */
.wt-ai-fv { background: var(--wt-paper); border-bottom: 1px solid var(--wt-rule); }
.wt-ai-fv__inner { width: min(90%, 1200px); margin: 0 auto; padding: 56px 0 48px; }
.wt-ai-fv__en { margin: 0; color: var(--wt-blue); font-size: 13px; font-weight: 700; letter-spacing: .18em; line-height: 1.4; }
.wt-ai-fv__ja { margin: 8px 0 0; color: var(--wt-ink); font-size: 32px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; }

/* パンくず */
.wt-ai-crumb { width: min(90%, 1200px); margin: 0 auto; padding: 16px 0 0; }
.wt-ai-crumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; color: var(--wt-soft); font-size: 12px; line-height: 1.6; }
.wt-ai-crumb li + li::before { content: "/"; margin: 0 8px; color: rgba(29, 43, 58, .36); }
.wt-ai-crumb a { color: var(--wt-blue-dp); text-decoration: none; }
.wt-ai-crumb a:hover { text-decoration: underline; }
.wt-ai-crumb li[aria-current="page"] { overflow-wrap: anywhere; }

/* 本文 70% ＋ サイドバー 25% */
.wt-ai-area { padding: 56px 0 120px; }
.wt-ai-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  width: min(90%, 1200px);
  margin: 0 auto;
}
.wt-ai-main { width: 70%; min-width: 0; margin-right: 5%; }
.wt-ai-sidebar { width: 25%; min-width: 0; }

/* 記事の題名と日付 */
.wt-ai-entry__title {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 10px 24px;
  color: var(--wt-ink);
  border-bottom: 1px solid var(--wt-rule-soft);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
}
.wt-ai-entry__title::before {
  content: "";
  position: absolute;
  top: .8em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wt-blue);
  transform: translateY(-50%);
}
.wt-ai-entry__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 8px; color: var(--wt-soft); font-size: 12px; line-height: 1.6; }
.wt-ai-entry__content { width: 100%; }

/* サイドバー */
.wt-ai-sidebar__section { margin: 0 0 34px; }
.wt-ai-sidebar__title {
  margin: 0 0 11px;
  padding: 0 0 5px;
  color: var(--wt-ink);
  border-bottom: 1px solid var(--wt-rule);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
}
.wt-ai-services,
.wt-ai-categories,
.wt-ai-recent { margin: 0; padding: 0; list-style: none; }
.wt-ai-services li,
.wt-ai-categories li,
.wt-ai-recent li { margin: 0; border-bottom: 1px solid var(--wt-rule-soft); }
.wt-ai-services a { display: block; padding: 14px 16px; color: var(--wt-ink); text-decoration: none; }
.wt-ai-services__name { display: block; font-size: 13px; font-weight: 700; line-height: 1.5; }
.wt-ai-services__desc { display: block; margin-top: 3px; color: var(--wt-soft); font-size: 11px; line-height: 1.55; }
.wt-ai-categories a { display: block; padding: 9px 6px; color: var(--wt-ink); font-size: 13px; line-height: 1.5; text-decoration: none; }
.wt-ai-recent a { display: block; padding: 10px 6px; color: var(--wt-ink); text-decoration: none; }
.wt-ai-recent time { display: block; color: var(--wt-soft); font-size: 11px; line-height: 1.5; }
.wt-ai-recent span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.55; }
.wt-ai-services a:hover,
.wt-ai-categories a:hover,
.wt-ai-recent a:hover { background: rgba(21, 101, 192, .05); }

.wt-ai-sidebar__cta {
  display: block;
  margin-top: 16px;
  padding: 12px;
  color: #fbfcfe;
  background: #c0392b;
  border: 1px solid #c0392b;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
.wt-ai-sidebar__cta:hover { color: #c0392b; background: #fbfcfe; }

/* 本文の最初の余白は、題名と日付のすぐ下に合わせる（本文 CSS の上の余白 48px／32px をこのページだけ詰める） */
.wt-ai-entry__content > #bcw.workstrust-article.mg-edition { padding-top: 24px; }

@media screen and (max-width: 950px) {
  .wt-ai-area { padding: 40px 0 80px; }
  .wt-ai-main { width: 100%; margin-right: 0; }
  .wt-ai-sidebar { width: 100%; margin-top: 48px; }
}

@media screen and (max-width: 640px) {
  .wt-ai-fv__inner { padding: 36px 0 30px; }
  .wt-ai-fv__ja { font-size: 24px; }
  .wt-ai-area { padding: 28px 0 64px; }
  .wt-ai-entry__title { font-size: 18px; }
  .wt-ai-entry__content > #bcw.workstrust-article.mg-edition { padding-top: 16px; }
}

/* 2026-10-17 聖司さん「この部分はお役立ち情報にも入れた方が良いのでは」：一覧ページと同じ見出し帯（.wt-page-heading）。
   形は共通の下層ページの見出しと同じ。一覧ページで移行用 CSS が足している小さな説明枠の指定だけを、このページ用に写した（移行用 CSS は読み込まない）。
   ページの h1 は記事の題名なので、見出し帯の「お役立ち情報」は p にして、一覧ページの h1 と同じ大きさにした。 */
.wt-ai-single-page .wt-ai-heading .wt-page-heading--migration { --wtl-hero-accent: #5da7cf; --wtl-hero-soft: #eaf4f9; }
.wt-ai-single-page .wt-ai-heading .wt-ai-heading__title { margin: 0; color: rgb(95, 77, 68); font-family: "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif; font-size: 32px; font-weight: 700; line-height: 1.8; }
.wt-ai-single-page .wt-ai-heading .wt-page-heading--migration .wt-guide-context {
  position: absolute; display: grid; align-content: start; min-width: min(76%, 306px); min-height: 0; padding: 12px 16px 13px;
  overflow: hidden; border: 0; border-left: 2px solid #2f79ad; background: rgba(255, 255, 255, .96); color: #003b70;
  box-shadow: 0 14px 32px rgba(0, 32, 72, .12);
}
.wt-ai-single-page .wt-ai-heading .wt-page-heading--migration .wt-guide-context::after { display: none; }
.wt-ai-single-page .wt-ai-heading .wt-page-heading--migration .wt-guide-context > span { color: #2f79ad; font-size: 9px; letter-spacing: .16em; }
.wt-ai-single-page .wt-ai-heading .wt-page-heading--migration .wt-guide-context > strong { margin-top: 4px; color: #003b70; font-size: 14px; line-height: 1.4; }
.wt-ai-single-page .wt-ai-heading .wt-migration-heading__image { max-width: min(100%, 430px); }
.wt-ai-single-page .wt-ai-crumb { padding-top: 20px; }

/* 表：スマホで本文の幅を超えるときは、表だけを横にスクロールさせる（本文全体は隠さない） */
@media screen and (max-width: 640px) {
  .wt-ai-single-page .wt-ai-heading .wt-ai-heading__title { font-size: 22px; }
  .wt-ai-single-page .wt-ai-heading .wt-page-heading--migration .wt-guide-context { min-width: min(84%, 280px); padding: 9px 12px 10px; }
  .wt-ai-entry__content #bcw.workstrust-article.mg-edition table.mg-table { display: block; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 右端に固定の「お問い合わせ」（全ページ共通の部品）：スマホでは記事の題名や本文の上に重なって読めなくなるため、このページだけスマホ幅では出さない。
   問い合わせは、ヘッダーの「無料相談」と、記事の下のサイドバーの「無料相談する」から行ける。他のページの表示は変えない。 */
@media screen and (max-width: 640px) {
  body.wt-ai-single-page .wt-side-contact { display: none; }
}
