/* IDC比較・選び方ナビ　共通の見た目（C案「目次がついてくる」。2026-11-28 本人が3案から選んだ。見本は _comps/design-20261128/）
   色：墨（--ink）と山吹（--acc）。強調は山吹の1色だけ。地は白、帯は生成り（--sub）。左の太い色の線・色の移り・見出しの頭の記号は使わない（D:\___AI___\design.md） */
:root {
  --ink: #1b1f24;
  --acc: #b97800;
  --acc-l: #f2b632;
  --sub: #f5f3ee;
  --line: #e3e0d8;
  --mut: #626a73;
  --link: #0b57a3;
  --bg: #fff;
  --w: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: "Yu Gothic UI", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.8; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------------------------------------------------------------- ヘッダー（墨の帯） */
.site-header { background: var(--ink); color: #fff; }
.site-header__inner { max-width: var(--w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: .02em; white-space: nowrap; }
.logo__a { color: var(--acc-l); margin-right: 3px; }
.nav-toggle { display: none; }
.gnav { flex: 1; display: flex; align-items: center; gap: 24px; }
.gnav ul { display: flex; gap: 26px; font-size: 14px; font-weight: 600; flex: 1; }
.gnav a { display: block; padding: 22px 0; color: #e8eaed; }
.gnav a:hover { color: #fff; }
.gnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--acc-l); }
.gnav__search { display: flex; align-items: center; border: 1px solid #4a525c; border-radius: 4px; overflow: hidden; }
.gnav__search input { width: 180px; border: 0; background: transparent; color: #fff; padding: 6px 12px; font-size: 13px; outline: none; }
.gnav__search input::placeholder { color: #9aa2ab; }
.gnav__search button { width: 34px; height: 32px; border: 0; background: transparent; position: relative; cursor: pointer; }
.gnav__search button::before { content: ""; position: absolute; left: 10px; top: 8px; width: 11px; height: 11px; border: 2px solid #c9ced4; border-radius: 50%; }
.gnav__search button::after { content: ""; position: absolute; left: 21px; top: 20px; width: 6px; height: 2px; background: #c9ced4; transform: rotate(45deg); }

/* パンくず */
.crumb { max-width: var(--w); margin: 0 auto; padding: 16px 24px 0; font-size: 12px; color: var(--mut); }
.crumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumb li + li::before { content: "＞"; margin: 0 .5em; color: #b5b9be; }
.crumb a:hover { text-decoration: underline; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.main { min-width: 0; }

/* ---------------------------------------------------------------- トップ */
.hero { background: var(--ink); color: #fff; margin: 0 calc(50% - 50vw); padding: 44px 0 56px; }
.hero__in { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.hero__title { font-size: 36px; line-height: 1.4; font-weight: 700; }
.hero__lead { margin-top: 12px; color: #c9ced4; max-width: 700px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 52px; }
.st__k { font-family: Georgia, "Times New Roman", serif; font-size: 15px; color: var(--acc); letter-spacing: .06em; }
.st__h { font-size: 24px; margin: 2px 0 4px; }
.st__p { font-size: 14px; color: var(--mut); margin-bottom: 12px; }
.st__row { display: grid; grid-template-columns: 40px 1fr; border-top: 1px solid var(--line); }
.st__row:last-child { border-bottom: 1px solid var(--line); }
.st__n { font-family: Georgia, "Times New Roman", serif; color: var(--acc); font-size: 17px; padding-top: 12px; }
.st__row a { display: block; padding: 12px 0; }
.st__t { display: block; font-weight: 600; line-height: 1.6; }
.st__row a:hover .st__t { text-decoration: underline; }
.more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--acc); }
.more:hover { color: var(--acc); }
.band { background: var(--sub); margin: 64px calc(50% - 50vw) -72px; padding: 40px 0 48px; }
.band__in { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.band__h, .section-title { font-size: 22px; margin-bottom: 18px; }

/* カード */
.cards { display: grid; gap: 28px 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card__link { display: block; }
.card__img { position: relative; }
.card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--sub); }
.card__cat { display: none; }
.card__body { margin-top: 10px; }
.card__title { font-size: 15px; font-weight: 600; line-height: 1.6; }
.card__link:hover .card__title { text-decoration: underline; }
.card__date { display: block; font-size: 12px; color: var(--mut); margin-top: 4px; }

/* ---------------------------------------------------------------- 分類のページ */
.archive-head { padding: 28px 0 8px; }
.archive-head__label { font-size: 12px; font-weight: 700; color: var(--acc); letter-spacing: .06em; }
.archive-head__title { font-size: 30px; line-height: 1.45; margin-top: 2px; }
.archive-head__desc { color: var(--mut); margin-top: 10px; max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips a { display: inline-block; font-size: 13px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; }
.is-archive .cards { margin-top: 36px; }
/* 分類のよく読まれている記事（1位を大きく、2位からは小さく） */
.new-a { margin-top: 32px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.new-a__lead figure { position: relative; }
.new-a__lead img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.new-a__body { margin-top: 12px; }
.new-a__label { font-size: 12px; font-weight: 700; color: var(--acc); }
.new-a__lead h3 { font-size: 21px; line-height: 1.5; margin-top: 4px; }
.new-a__desc { font-size: 14px; color: var(--mut); margin-top: 8px; }
.new-a__go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--acc); }
.new-a__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; align-content: start; }
.new-card figure { position: relative; }
.new-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.new-card h3 { font-size: 14px; line-height: 1.55; margin-top: 8px; font-weight: 600; }
.new-a a:hover h3 { text-decoration: underline; }
.rank { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1; padding: 6px 8px; border-radius: 3px; }
.rank__unit { font-family: inherit; font-size: 11px; margin-left: 1px; }
.rank--1 { background: var(--acc); }

/* ---------------------------------------------------------------- 記事 */
.post { padding-top: 26px; }
.post--side { display: grid; grid-template-columns: 240px minmax(0, 740px); column-gap: 56px; justify-content: center; }
.post--side .post__head { grid-column: 2; }
.post--side .post__layout { display: contents; }
.post--side .post-side { grid-column: 1; grid-row: 1 / span 2; }
.post--side .post__body { grid-column: 2; }
.post--page { max-width: 820px; margin: 0 auto; }
.post__cats { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tag { font-size: 12px; font-weight: 700; color: var(--acc); letter-spacing: .04em; }
.tag:hover { text-decoration: underline; }
.post__title { font-size: 32px; line-height: 1.5; font-weight: 700; margin-top: 4px; }
.post__meta { font-size: 13px; color: var(--mut); margin-top: 10px; display: flex; gap: 16px; }
.post__eyecatch { margin: 24px 0 8px; }
.post__eyecatch img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
/* 左の目次（スクロールしても付いてくる） */
.post-side__inner { position: sticky; top: 24px; }
.side-toc { font-size: 14px; }
.side-toc__title { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--mut); margin-bottom: 10px; }
.side-toc__list { max-height: calc(100vh - 90px); overflow: auto; overscroll-behavior: contain; }
.side-toc__list > li > a { display: block; padding: 8px 0 8px 12px; border-left: 2px solid var(--line); line-height: 1.55; }
.side-toc__list ol { display: none; }
.side-toc__list a:hover { color: var(--acc); }
.side-toc__list a.is-active { border-left-color: var(--acc); font-weight: 700; }
.post--side .entry .toc { display: none; }   /* パソコンの幅では左の目次だけ */

/* 本文 */
.entry { margin-top: 18px; }
.entry > * + * { margin-top: 1.2em; }
.entry p { margin: 0 0 1.2em; }
.entry a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.entry strong, .entry b { font-weight: 700; }
.entry h2, .entry .styled_h2 { font-size: 25px; line-height: 1.5; margin: 56px 0 18px; padding-top: 20px; border-top: 1px solid var(--ink); }
.entry h3, .entry .styled_h3 { font-size: 20px; line-height: 1.55; margin: 36px 0 14px; position: relative; padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.entry h3::after, .entry .styled_h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 80px; border-bottom: 2px solid var(--acc); }
.entry h4 { font-size: 17px; margin: 28px 0 10px; }
.entry ul, .entry ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .3em; }
.entry img { display: block; margin: 1.4em auto; border-radius: 3px; height: auto; }
.entry .alignnone { margin-left: 0; }
.entry figure { margin: 1.4em 0; }
.entry blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--sub); border-radius: 4px; color: #3b4249; }
.entry .well2 { background: var(--sub); border-radius: 4px; padding: 18px 22px; margin: 1.4em 0; }
.table-scroll { overflow-x: auto; margin: 1.4em 0; }
.entry table { border-collapse: collapse; width: 100%; font-size: 15px; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; }
.entry th { background: var(--sub); font-weight: 700; }
/* 本文の目次（スマホの幅と、左の欄の無いページ） */
.toc { background: var(--sub); border-radius: 4px; padding: 16px 20px; margin: 24px 0; font-size: 14px; }
.toc summary { cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--mut); list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.entry .toc__list { list-style: none; padding: 0; margin: 8px 0 0; }
.entry .toc__list li { margin: 0; padding: 4px 0; }
.entry .toc__list ol { list-style: none; padding-left: 1.2em; margin: 2px 0 0; }
.entry .toc a { color: inherit; text-decoration: none; }
.entry .toc a:hover { text-decoration: underline; }
/* 資料の案内（dxnavi.com の「データセンター活用ガイド」） */
.guide { margin: 40px 0; }
.entry .guide__link { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px 24px; align-items: center; padding: 22px 26px; background: var(--sub); border-radius: 4px; color: var(--ink); text-decoration: none; }
.entry .guide__img { margin: 0; border-radius: 3px; width: 150px; }
.guide__text { display: block; }
.guide__k { display: block; font-size: 12px; font-weight: 700; color: var(--acc); }
.guide__t { display: block; font-weight: 700; font-size: 17px; line-height: 1.5; margin-top: 2px; }
.guide__b { background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 4px; font-weight: 700; white-space: nowrap; font-size: 14px; }
.guide__link:hover .guide__b { background: #000; }

/* 前後の記事・関連記事 */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1036px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); }
.prevnext a { display: block; font-weight: 600; line-height: 1.55; font-size: 15px; }
.prevnext a span { display: block; font-size: 12px; color: var(--mut); font-weight: 400; margin-bottom: 2px; }
.prevnext__next { text-align: right; }
.prevnext a:hover { color: var(--acc); }
.related { background: var(--sub); margin: 56px calc(50% - 50vw) -72px; padding: 40px max(24px, calc(50vw - 556px)) 48px; }

/* ---------------------------------------------------------------- 固定ページ（決まりのページ・検索・404） */
.post--page .post__head { padding-bottom: 6px; }
.post--page .post__title { font-size: 30px; }
.policy-meta { margin-top: 40px; font-size: 13px; color: var(--mut); }
.policy-form { min-height: 40px; }
.search-box { display: flex; gap: 8px; margin: 20px 0; max-width: 560px; }
.search-box input { flex: 1; border: 1px solid #c9ccd1; border-radius: 4px; padding: 10px 14px; }
.btn { display: inline-block; border: 0; border-radius: 4px; padding: 10px 22px; font-weight: 700; cursor: pointer; }
.btn--main { background: var(--ink); color: #fff; }
.entry .btn--main, .notfound .btn--main { color: #fff; text-decoration: none; }
.search-count { font-size: 14px; color: var(--mut); margin-bottom: 20px; }
.notfound > p { margin: 14px 0; }

/* ---------------------------------------------------------------- フッター */
.site-footer { background: var(--ink); color: #c9ced4; margin-top: 72px; font-size: 13px; position: relative; }
.site-footer__inner { max-width: var(--w); margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer__name { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.site-footer__h { color: #fff; font-weight: 700; margin-bottom: 8px; }
.site-footer__nav li { padding: 3px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright { max-width: var(--w); margin: 0 auto; padding: 14px 24px 28px; font-size: 12px; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.to-top.is-show { opacity: .85; pointer-events: auto; }
.to-top::before { content: ""; position: absolute; left: 16px; top: 18px; width: 10px; height: 10px; border: solid #fff; border-width: 2px 0 0 2px; transform: rotate(45deg); }

/* ---------------------------------------------------------------- スマホ・タブレット */
@media (max-width: 1000px) {
  .post--side { display: block; }
  .post-side { display: none; }
  .post--side .entry .toc { display: block; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .site-header__inner { flex-wrap: wrap; gap: 0 16px; padding: 12px 16px 0; min-height: 0; }
  .gnav { flex-basis: 100%; }
  .gnav ul { gap: 16px; font-size: 12.5px; }
  .gnav a { padding: 10px 0; }
  .gnav__search { display: none; }
  .crumb { padding: 12px 16px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 28px 0 36px; }
  .hero__in { padding: 0 16px; }
  .hero__title { font-size: 25px; }
  .steps { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
  .band { padding: 32px 0 40px; }
  .band__in { padding: 0 16px; }
  .cards--3, .cards--4 { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .card__title { font-size: 14px; }
  .new-a { grid-template-columns: 1fr; }
  .archive-head__title { font-size: 24px; }
  .post { padding-top: 18px; }
  .post__title, .post--page .post__title { font-size: 23px; }
  .entry h2, .entry .styled_h2 { font-size: 20px; margin-top: 44px; }
  .entry h3, .entry .styled_h3 { font-size: 18px; }
  .entry .guide__link { grid-template-columns: 1fr; padding: 20px; }
  .entry .guide__img { width: 100%; max-width: 260px; margin: 0 auto 6px; }
  .guide__b { text-align: center; }
  .prevnext { grid-template-columns: 1fr; gap: 14px; }
  .prevnext__next { text-align: left; }
  .related { padding: 32px 16px 40px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 20px; padding: 32px 16px 16px; }
  .copyright { padding: 14px 16px 24px; }
}
