/* =================================================================
   ITサポート事務の教科書（it-job.me）
   色はこの変数だけを使う。色コードを直接書かない
   ================================================================= */
:root {
  /* 白を基調にした雑誌風（2026-11）。差し色は落ち着いた青 */
  --main: #3d7ea6;
  --main-dark: #2b5f80;
  --main-pale: #eef4f8;
  --accent: #d9735a;
  --accent-dark: #b85a43;
  --text: #222;
  --sub: #888;
  --line: #e4e4e4;
  --bg: #fff;
  --soft: #f6f6f4;
  --white: #fff;
  --yellow: #fbefb8;
  --blue: #d7e6f0;
  --red: #f8dcd3;
  --green: #dcefe0;
  --red-text: #c9492f;
  --caution-bg: #fdf8ea;
  --caution-line: #e8c96a;
  --radius: 4px;
  --en: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--main-dark); }
a:hover { opacity: .85; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ヘッダー（サイト名を中央に、メニューはその下に細く） -------- */
.header { background: var(--white); }
.header-in { max-width: 1240px; margin: 0 auto; padding: 30px 20px 14px; display: flex; align-items: center; justify-content: center; position: relative; }
.logo { text-decoration: none; color: var(--main); display: block; text-align: center; }
.logo:hover { opacity: 1; }
.logo-name { display: block; font-weight: 800; font-size: 34px; letter-spacing: .12em; line-height: 1.3; }
.logo-tag { display: block; font-size: 11px; color: var(--sub); letter-spacing: .12em; margin-top: 6px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); cursor: pointer; }
.menu-btn span:first-child, .menu-btn span:first-child::before, .menu-btn span:first-child::after {
  position: absolute; left: 11px; width: 22px; height: 1px; background: var(--text); content: ""; transition: .2s;
}
.menu-btn span:first-child { top: 21px; }
.menu-btn span:first-child::before { left: 0; top: -7px; }
.menu-btn span:first-child::after { left: 0; top: 7px; }
.gnav { background: var(--white); border-bottom: 1px solid var(--line); }
.gnav ul { max-width: 1240px; margin: 0 auto; padding: 0 8px; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; }
.gnav a { display: block; padding: 10px 20px 14px; color: var(--text); text-decoration: none; font-size: 13px; letter-spacing: .08em; }
.gnav a:hover { color: var(--main); opacity: 1; }

/* 2カラム ------------------------------------------------------ */
.wrap { max-width: 1180px; margin: 40px auto 72px; padding: 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.main { min-width: 0; }

/* 一覧 ---------------------------------------------------------- */
.archive-title { font-size: 24px; font-weight: 500; margin: 0 0 4px; line-height: 1.4; letter-spacing: .08em; }
.archive-lead { margin: 0 0 28px; color: var(--sub); font-size: 13px; }
.archive-lead:empty { display: none; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
.card a { display: block; color: var(--text); text-decoration: none; }
.card a:hover { opacity: 1; }
.card-img { aspect-ratio: 520 / 300; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 0 0; }
.card-cat { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; color: var(--sub); }
.card-cat::before { content: "–"; margin-right: 8px; }
.card-body h3, .ranking h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.7; }
.card-date { margin: 8px 0 0; color: var(--sub); font-size: 12px; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.card-date .upd { color: var(--main-dark); }
.new-upd { display: inline-block; border: 1px solid var(--accent); color: var(--accent); font-size: 10px; line-height: 1.7; padding: 0 8px; border-radius: 99px; letter-spacing: .08em; }
.post-date.upd { color: var(--main-dark); font-weight: bold; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.post-date.pub { font-size: 12px; }
.cat-label { display: inline-block; border: 1px solid var(--main); color: var(--main); font-size: 11px; padding: 1px 12px; border-radius: 99px; line-height: 1.7; text-decoration: none; letter-spacing: .08em; }

.pager ul { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager a, .pager span { display: block; min-width: 40px; padding: 6px 12px; text-align: center; border-radius: 99px; border: 1px solid var(--line); color: var(--text); font-family: var(--en); font-size: 14px; text-decoration: none; }
.pager span[aria-current] { background: var(--main); border-color: var(--main); color: var(--white); }
.pager .dots { padding: 6px 4px; color: var(--sub); }

/* 記事 ---------------------------------------------------------- */
.crumb ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--sub); }
.crumb li + li::before { content: "›"; margin: 0 8px; }
.crumb a { color: var(--sub); }
.post { background: var(--white); padding: 0; }
.post-meta { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--sub); }
.post-title { font-size: 26px; font-weight: 600; line-height: 1.6; margin: 0 0 24px; letter-spacing: .04em; }
.eyecatch { margin: 0 0 16px; }
.eyecatch img { width: 100%; }
.pr-notice { font-size: 12px; color: var(--sub); background: var(--soft); padding: 6px 12px; margin: 0 0 24px; }

.entry { font-size: 16px; }
.entry p { margin: 0 0 1.4em; }
.entry h2 { font-size: 21px; font-weight: 600; line-height: 1.6; margin: 2.8em 0 1.1em; padding: 16px 0; border-top: 2px solid var(--main); border-bottom: 1px solid var(--line); }
.entry h3 { font-size: 18px; font-weight: 600; line-height: 1.6; margin: 2.2em 0 .8em; padding: 2px 0 2px 14px; border-left: 3px solid var(--main); }
.entry h4 { font-size: 17px; margin: 1.6em 0 .6em; color: var(--main-dark); }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.entry li { margin: .2em 0; }
.entry img { border-radius: 4px; }
.entry .aligncenter { display: block; margin: 0 auto 1.4em; }
.entry .alignright { float: right; margin: 0 0 1em 1em; max-width: 45%; }
.entry .alignleft { float: left; margin: 0 1em 1em 0; max-width: 45%; }
.entry blockquote { margin: 0 0 1.4em; padding: 16px 20px; background: var(--soft); border-left: 4px solid var(--line); color: #555; }
.entry blockquote p:last-child { margin: 0; }
.entry iframe { max-width: 100%; }
.entry::after { content: ""; display: block; clear: both; }

/* 文字の装飾（SANGO の書き方をそのまま使う） */
.keiko_yellow { background: linear-gradient(transparent 55%, var(--yellow) 55%); }
.keiko_blue { background: linear-gradient(transparent 55%, var(--blue) 55%); }
.keiko_red { background: linear-gradient(transparent 55%, var(--red) 55%); }
.keiko_green { background: linear-gradient(transparent 55%, var(--green) 55%); }
.big { font-size: 1.2em; }
.small { font-size: .85em; }
.red { color: var(--red-text); }
.main-c { color: var(--main-dark); }
.center { text-align: center; }
.right { text-align: right; }

/* 目次 */
.toc { background: var(--main-pale); border-radius: var(--radius); padding: 16px 22px; margin: 0 0 2em; }
.toc-title { font-weight: bold; margin: 0 0 6px; color: var(--main-dark); }
.toc ol { margin: 0; padding-left: 1.4em; font-size: 15px; }
.toc a { text-decoration: none; }

/* 囲み枠（役割で3種類。見出しを付けると上にラベルが出る） */
.box { position: relative; margin: 0 0 1.6em; padding: 18px 20px; border-radius: 8px; }
.box > :last-child { margin-bottom: 0; }
.box.point { background: var(--main-pale); }
.box.frame { border: 2px solid var(--main); background: var(--white); }
.box.caution { background: var(--caution-bg); border: 2px solid var(--caution-line); }
.box:has(> .box-title) { margin-top: 2em; padding-top: 0; }
.box-title { display: inline-block; margin: -15px 0 10px; padding: 3px 14px; background: var(--main); color: var(--white); border-radius: 14px; font-size: 14px; font-weight: bold; line-height: 1.5; }
.box.caution .box-title { background: var(--caution-line); color: var(--text); }
.box.point:has(> .box-title) { padding-top: 0; }

.entry .list ul { list-style: none; padding-left: 0; }
.entry .list li { position: relative; padding-left: 1.6em; }
.entry .list li::before { content: "✔"; position: absolute; left: 0; color: var(--main); font-weight: bold; }
.entry .list-raw li::before { content: none; }
.entry .list-raw li { padding-left: 0; }
.entry .list-none { list-style: none; padding-left: 0; }

/* 吹き出し */
.say { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 1.6em; }
.say.right { flex-direction: row-reverse; }
.say-face { flex: 0 0 72px; text-align: center; font-size: 11px; color: var(--sub); line-height: 1.4; }
.say-face img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); display: block; margin: 0 auto 4px; }
.say-text { position: relative; flex: 1; background: var(--soft); border-radius: 10px; padding: 12px 16px; }
.say-text::before { content: ""; position: absolute; top: 20px; left: -8px; border: 8px solid transparent; border-left: 0; border-right-color: var(--soft); }
.say.right .say-text::before { left: auto; right: -8px; border: 8px solid transparent; border-right: 0; border-left-color: var(--soft); }
.say-text > :last-child { margin-bottom: 0; }

/* 表 */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.6em; }
/* スマホで表が横にはみ出すとき（site.js が .is-scroll を付ける） */
.table-hint { display: none; margin: 0 0 6px; font-size: 12px; color: var(--sub); text-align: right; }
.table-hint::before { content: "← "; }
.table-hint::after { content: " →"; }
.table-wrap.is-scroll + .table-hint, .table-hint.on { display: block; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; text-align: left; }
.entry th, .entry thead td { background: var(--main-pale); }
.tp tbody td:first-child { background: var(--soft); font-weight: bold; }

/* 関連記事カード */
.kanren { display: flex; gap: 14px; align-items: center; margin: 0 0 1.6em; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--text); text-decoration: none; }
.box .kanren:last-child { margin-bottom: 0; }
.kanren-img { flex: 0 0 140px; aspect-ratio: 520 / 300; overflow: hidden; border-radius: 6px; background: var(--main-pale); }
.kanren-img img { width: 100%; height: 100%; object-fit: cover; }
.kanren-label { display: inline-block; font-size: 11px; font-weight: bold; color: var(--white); background: var(--main); border-radius: 4px; padding: 0 8px; margin-bottom: 4px; }
.kanren-title { display: block; font-weight: bold; line-height: 1.55; }

/* ボタン */
.btn, .btn-aff { display: inline-block; padding: 14px 32px; border-radius: 99px; font-weight: bold; text-decoration: none; text-align: center; line-height: 1.5; }
.btn { background: var(--main); color: var(--white); }
.btn-aff { background: var(--accent); color: var(--white); box-shadow: 0 4px 0 var(--accent-dark); max-width: 100%; }
.btn-aff:hover, .btn:hover { color: var(--white); }
.btn-aff::after { content: "›"; margin-left: 10px; }
.aff-btn { text-align: center; margin: 0 0 1.6em; }
.btn-aff.sub { background: var(--white); color: var(--accent-dark); box-shadow: 0 4px 0 var(--accent-dark); border: 2px solid var(--accent); }
.btn-aff.sub:hover { color: var(--accent-dark); }
.cta .aff-btn { margin-bottom: 18px; }
.aff { font-weight: bold; }

/* 誘導枠 */
.cta { position: relative; margin: 2em 0 0; padding: 22px 20px 4px; border-radius: var(--radius); background: var(--main-pale); text-align: center; }
.cta-title { font-weight: bold; color: var(--main-dark); margin: 0 0 6px; }
.cta-text { font-size: 14px; margin: 0 0 14px; }
.cta-pr { position: absolute; top: 6px; right: 10px; margin: 0; font-size: 11px; color: var(--sub); }
.entry .cta { margin: 0 0 1.6em; }

/* 関連記事一覧 */
.related { margin-top: 56px; }
.related-title { font-size: 18px; font-weight: 500; margin: 0 0 24px; padding-top: 28px; border-top: 1px solid var(--line); line-height: 1.5; letter-spacing: .06em; }
.notfound { text-align: center; }

/* サイドバー ---------------------------------------------------- */
.side { display: grid; gap: 44px; }
.widget { background: var(--white); padding: 0; }
.widget-cta { padding: 0; background: none; box-shadow: none; }
.widget-cta .cta { margin: 0; }
.widget-title { font-size: 14px; font-weight: 500; letter-spacing: .12em; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--text); }
.mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mini a { display: grid; grid-template-columns: 100px 1fr; gap: 10px; align-items: center; color: var(--text); text-decoration: none; position: relative; font-size: 14px; line-height: 1.55; }
.mini img { width: 100px; aspect-ratio: 520 / 300; object-fit: cover; border-radius: 6px; }
.mini .no { position: absolute; left: -4px; top: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--main); color: var(--white); font-size: 12px; font-weight: bold; text-align: center; line-height: 24px; z-index: 1; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; }
.cat-list span { color: var(--sub); font-size: 13px; }

/* フッター ------------------------------------------------------ */
.footer { background: var(--main); color: var(--white); text-align: center; padding: 24px 16px 32px; font-size: 14px; }
.footer a { color: var(--white); }
.footer-nav { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.copy { margin: 0; }
.copy span { display: block; font-size: 12px; opacity: .85; }

/* トップページ -------------------------------------------------- */
.home { display: block; }
/* 上の横スライド（注目の記事）。横にスクロールして見る */
.slider { margin-top: 0; }
.slides { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: min(46vw, 620px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides .card { scroll-snap-align: start; }
.slides .card-body { padding: 14px 16px 0; }
.slides .card-body h3 { font-size: 17px; }
.home-in { max-width: 1180px; margin: 0 auto; padding: 0 20px 80px; }
.intro { text-align: center; padding: 64px 0 8px; }
.intro-tag { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: .12em; color: var(--main-dark); }
.intro-lead { max-width: 620px; margin: 16px auto 0; font-size: 14px; color: var(--text); }
.intro-meta { margin: 16px 0 0; font-size: 12px; color: var(--sub); letter-spacing: .06em; }
.home-sec { margin-top: 88px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.sec-title { margin: 0; font-size: 13px; font-weight: 400; letter-spacing: .12em; display: flex; flex-direction: column; gap: 8px; }
.sec-title span { font-family: var(--en); font-size: 46px; font-weight: 400; letter-spacing: .04em; line-height: 1.15; }
.tags { flex: 0 1 620px; display: flex; align-items: baseline; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.tags-label { margin: 0; font-size: 12px; letter-spacing: .1em; white-space: nowrap; }
.tags-label::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--main); margin-right: 12px; }
.tags ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: block; padding: 2px 14px; border: 1px solid var(--text); border-radius: 99px; color: var(--text); text-decoration: none; font-size: 12px; }
.tags a:hover { background: var(--text); color: var(--white); opacity: 1; }
.home .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ranking { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ranking a { display: block; position: relative; color: var(--text); text-decoration: none; }
.ranking a:hover { opacity: 1; }
.rank-no { display: block; font-family: var(--en); font-size: 34px; line-height: 1; color: var(--main); margin-bottom: 10px; }
.ranking .card-cat { margin-top: 12px; }
.ranking h3 { font-size: 14px; }
.home-cta .cta { margin: 0; padding: 40px 20px 20px; background: var(--soft); }
.more { text-align: center; margin: 48px 0 0; }
.more a { display: inline-block; min-width: 240px; padding: 12px 36px; border: 1px solid var(--text); border-radius: 99px; color: var(--text); text-decoration: none; font-family: var(--en); font-size: 14px; letter-spacing: .12em; }
.more a:hover { background: var(--text); color: var(--white); opacity: 1; }

/* スマホ -------------------------------------------------------- */
@media (max-width: 960px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .home .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { flex-direction: column; align-items: stretch; gap: 24px; }
  .tags { flex-basis: auto; }
  .ranking { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .header-in { padding: 16px 56px 14px 16px; justify-content: flex-start; }
  .logo { text-align: left; }
  .logo-name { font-size: 19px; letter-spacing: .08em; }
  .logo-tag { font-size: 9px; letter-spacing: .04em; margin-top: 2px; }
  .slides { grid-auto-columns: 84vw; gap: 10px; }
  .intro { padding-top: 44px; }
  .intro-tag { font-size: 15px; }
  .intro-lead { text-align: left; }
  .home-in { padding: 0 16px 56px; }
  .home-sec { margin-top: 64px; }
  .sec-head { margin-bottom: 28px; }
  .sec-title span { font-size: 34px; }
  .tags { flex-direction: column; gap: 12px; }
  .ranking { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ranking a { display: grid; grid-template-columns: 34px 120px minmax(0, 1fr); gap: 0 12px; align-items: start; }
  .ranking .rank-no { grid-row: 1 / 3; font-size: 26px; margin: 0; }
  .ranking .card-img { grid-row: 1 / 3; }
  .ranking .card-cat { margin-top: 0; }
  .menu-btn { display: block; }
  .gnav { display: none; }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; padding: 0; }
  .gnav a { padding: 12px 20px; }
  .gnav a { border-top: 1px solid var(--line); }
  .menu-btn[aria-expanded="true"] span:first-child { background: transparent; }
  .menu-btn[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
  .wrap { margin-top: 16px; gap: 20px; }
  .cards, .home .cards { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .eyecatch { margin: 0 -16px 14px; }
  .wrap { margin-top: 24px; }
  .post-title { font-size: 21px; }
  .entry h2 { font-size: 19px; }
  .entry .alignright, .entry .alignleft { float: none; max-width: 100%; margin: 0 auto 1em; display: block; }
  .kanren-img { flex-basis: 100px; }
  .say-face { flex-basis: 60px; }
  .say-face img { width: 52px; height: 52px; }
  .btn-aff { padding: 14px 22px; }
  .entry table { width: max-content; min-width: 100%; font-size: 14px; border-collapse: separate; border-spacing: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .entry th, .entry td { min-width: 8em; max-width: 12em; padding: 8px 10px; border-width: 0 1px 1px 0; }
  .entry tr > :first-child { position: sticky; left: 0; z-index: 1; min-width: 5.5em; max-width: 6.5em; background: var(--soft); box-shadow: 2px 0 4px rgba(0, 0, 0, .06); }
  .entry thead tr > :first-child { background: var(--main-pale); }
}
