/* サーバー選びラボ 専用デザイン（2026-08-01）
   参考：streamrental.com（「レンタルサーバー おすすめ」SERP3位）を実測
   実測値＝本文カラム920px／body 白・14px／h1 26px・700・行間39px
          h2＝白文字 + linear-gradient(to left, #72c6ff→#116886)・角丸5px・padding 8px 20px 8px 53.5px
   このサイトの主役は「比較表」。1列目を固定し、料金の型で絞り込めるようにしてある。 */
:root {
  --primary: #116886;
  --primary-dark: #0c4d64;
  --primary-light: #eaf4f9;
  --accent: #72c6ff;
  --cta: #ef6c1a;
  --cta-dark: #d75c0f;
  --bg: #ffffff;
  --panel: #f6f8fa;
  --text: #333333;
  --muted: #667085;
  --border: #d9dee3;
  --line: #e7ecf0;
  --ok: #17915f;
  --ng: #c0392b;
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

/* ヘッダー：比較サイトらしい濃紺グラデ＋タブ型ナビ */
body::before { content: ""; display: block; height: 4px; background: linear-gradient(to right, var(--primary-dark), var(--accent)); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .inner {
  max-width: 980px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand .logo-mark {
  width: 36px; height: 36px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.05rem;
}
.brand .brand-name { font-weight: 700; font-size: 1.05rem; }
.brand .brand-sub { display: block; font-size: .62rem; font-weight: 400; color: var(--muted); }
.header-nav { display: flex; gap: 2px; }
.header-nav a {
  text-decoration: none; color: var(--text); font-size: .82rem; font-weight: 700;
  padding: 8px 14px; border-radius: 5px; white-space: nowrap; transition: background .15s, color .15s;
}
.header-nav a:hover { background: var(--primary-light); color: var(--primary-dark); }

main { max-width: 980px; margin: 0 auto; padding: 0 24px 72px; }

/* ヒーロー */
.hero { margin: 0; padding: 26px 0 6px; background: none; }
.hero::after { display: none; }
.badge-update {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-light); color: var(--primary-dark); border: 1px solid #c5dfeb;
  font-size: .73rem; font-weight: 700; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px;
}
.badge-update::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
h1 {
  font-size: 1.62rem; line-height: 1.5; font-weight: 700; margin-bottom: 12px;
  padding-bottom: 14px; border-bottom: 2px solid var(--accent);
}
h1 .hl { background: linear-gradient(transparent 66%, #ffe08a 66%); padding: 0 2px; }
.lead { color: var(--text); font-size: .92rem; max-width: 46em; margin-bottom: 14px; }
.pr-note { font-size: .69rem; color: #98a4b5; margin-bottom: 0; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.trust-badges span {
  font-size: .72rem; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light); border: 1px solid #c5dfeb; border-radius: 4px;
  padding: 5px 12px; display: inline-flex; align-items: center; gap: 6px;
}
.trust-badges span::before { content: "✓"; }

/* 見出し：streamrental型のグラデ帯 */
h2 {
  font-size: 1.18rem; font-weight: 700; color: #fff; line-height: 1.5;
  margin: 54px 0 16px; padding: 9px 20px 9px 18px; border-radius: 5px;
  background: linear-gradient(to left, var(--accent), var(--primary-dark));
  display: flex; align-items: center; gap: 10px;
}
h2::before {
  content: ""; width: 4px; height: 18px; background: #fff; border-radius: 2px; flex-shrink: 0; opacity: .9;
}
h2 + p, h2 + .lead { margin-top: 0; }
h2 + .table-scroll, h2 + .rank-cards, h2 + .calc-card, h2 + .tool-grid, h2 + .filter-bar { margin-top: 14px; }
h3 {
  font-size: 1.02rem; font-weight: 700; margin: 30px 0 10px;
  padding: 6px 0 6px 12px; border-left: 5px solid var(--primary);
}
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 1.4em; }
li { margin-bottom: 6px; }
a { color: #0b6c93; }

/* ── 比較表（このサイトの主役）──────────────────
   横に長い表なので、1列目のサービス名をスクロールしても残す。 */
.table-scroll { overflow-x: auto; margin-bottom: 8px; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
.table-scroll table { min-width: 860px; margin: 0; border: none; border-radius: 0; }
.article table, .content-card table, .table-scroll table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .83rem; background: #fff;
}
.article th, .article td, .content-card th, .content-card td,
.table-scroll th, .table-scroll td {
  border-bottom: 1px solid var(--line); border-right: 1px solid var(--line);
  padding: 12px 13px; text-align: left; vertical-align: top;
}

/* 縦ヘッダー型の表（各行の先頭がth）は薄いグレーで */
.article th, .content-card th, .table-scroll th { background: var(--panel); }
.article tr:first-child:has(th + th) th, .table-scroll tr:first-child:has(th + th) th, .content-card tr:first-child:has(th + th) th {
  background: var(--primary-dark); color: #fff; font-size: .77rem; font-weight: 700; letter-spacing: .03em;
  border-bottom: none; white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
.table-scroll tr td:first-child, .table-scroll tr th:first-child {
  position: sticky; left: 0; z-index: 1; background: #fff;
  box-shadow: 1px 0 0 var(--border);
  font-weight: 700;
}
.table-scroll tr:first-child th:first-child { background: var(--primary-dark); z-index: 3; }
.table-scroll tr:nth-child(even) td { background: #fafcfd; }
.table-scroll tr:nth-child(even) td:first-child { background: #fafcfd; }
.table-scroll tbody tr:hover td { background: #fff8e8; }
.table-scroll tr:last-child td { border-bottom: none; }
.table-scroll td:last-child, .table-scroll th:last-child { border-right: none; }
/* 表内の強調 */
.table-scroll .price { font-weight: 700; color: var(--primary-dark); font-size: .95rem; font-variant-numeric: tabular-nums; }
.table-scroll .badge-min {
  display: inline-block; font-size: .64rem; font-weight: 700; color: #fff; background: var(--cta);
  border-radius: 3px; padding: 1px 6px; margin-left: 5px; vertical-align: 1px;
}
.table-scroll .yes { color: var(--ok); font-weight: 700; }
.table-scroll .no { color: var(--ng); font-weight: 700; }
.move { font-size: .72rem; font-weight: 700; margin-left: 5px; }
.move.up { color: var(--ok); }
.move.down { color: var(--ng); }
.move.stay { color: var(--muted); }

/* 料金の型で絞り込むフィルタ */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin: 14px 0 12px;
}
.filter-bar .fb-label { font-size: .78rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.filter-btn {
  font-size: .78rem; font-weight: 700; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  font-family: inherit; transition: all .15s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-btn.is-active { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.filter-note { font-size: .74rem; color: var(--muted); margin: 0 0 16px; }
tr.is-hidden { display: none; }

/* キャンペーン枠：締切の緊急感を出す（streamrentalの型） */
.cp-box {
  border: 2px dashed var(--cta); border-radius: var(--radius);
  padding: 18px 22px; margin: 22px 0;
  background: #fffaf5;
}
.cp-box .cp-title { font-weight: 700; color: var(--cta-dark); font-size: 1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cp-box ul { margin: 0 0 12px 1.3em; }
.cp-box li { font-size: .85rem; }
.cp-deadline { font-weight: 700; color: var(--ng); }

/* 吹き出し */
.balloon {
  position: relative; background: var(--primary-light); border-radius: 12px;
  padding: 14px 18px; margin: 18px 0 22px 14px; font-size: .87rem;
}
.balloon::before {
  content: ""; position: absolute; left: -9px; top: 18px;
  border: 9px solid transparent; border-right-color: var(--primary-light); border-left: 0;
}

/* 比較カード */
.rank-cards { display: grid; gap: 14px; margin: 18px 0 10px; counter-reset: rank; }
.rank-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center;
  position: relative; transition: border-color .2s, box-shadow .2s;
}
.rank-card:hover { border-color: var(--primary); box-shadow: 0 3px 12px rgba(17,104,134,.12); }
.rank-card::before {
  counter-increment: rank; content: counter(rank) "位";
  position: absolute; top: -11px; left: 16px;
  min-width: 38px; height: 24px; padding: 0 8px; border-radius: 4px;
  background: linear-gradient(to left, var(--accent), var(--primary-dark)); color: #fff;
  font-size: .74rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.rank-card .rc-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; grid-column: 1; grid-row: 1; padding-top: 6px; }
.rank-card .rc-name { font-size: 1.08rem; font-weight: 700; }
.rank-card .rc-tag {
  font-size: .68rem; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light); border: 1px solid #c5dfeb; border-radius: 4px; padding: 2px 10px;
}
.rank-card .rc-tag.warn { color: #93370d; background: #fef0c7; border-color: #fedf89; }
.rank-card .rc-price { grid-column: 1; grid-row: 2; font-size: .85rem; color: var(--muted); margin: 2px 0 0; }
.rank-card .rc-price b { font-size: 1.5rem; color: var(--primary-dark); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-card .rc-note { font-size: .77rem; color: var(--muted); grid-column: 1 / -1; margin: 8px 0 0; border-top: 1px dashed var(--border); padding-top: 10px; }
.rank-card .rc-cta { grid-column: 2; grid-row: 1 / 3; align-self: center; }

/* ボタン：CTAはオレンジ（比較サイトの定番） */
.calc-btn, .btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--cta); color: #fff !important; font-size: .9rem; font-weight: 700;
  text-decoration: none; border: none; border-radius: 6px; padding: 13px 26px; cursor: pointer;
  box-shadow: 0 2px 0 var(--cta-dark); transition: background .15s, transform .1s;
}
.calc-btn::before, .btn-cta::before { display: none; }
.calc-btn:hover, .btn-cta:hover { background: var(--cta-dark); transform: translateY(1px); box-shadow: 0 1px 0 var(--cta-dark); }
.btn-cta::after { content: "›"; font-weight: 700; }
.btn-sub {
  background: #fff; color: var(--primary-dark) !important; border: 1px solid var(--primary);
  box-shadow: none; font-size: .82rem; padding: 10px 18px;
}
.btn-sub:hover { background: var(--primary-light); }

/* 診断・フォーム */
.calc-card, .content-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 22px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 7px; }
.field .note { font-weight: 400; color: var(--muted); font-size: .74rem; }
.field input[type="number"], .field select {
  width: 100%; max-width: 340px; padding: 12px 14px; font-size: 1rem;
  border: 1px solid #c3ccd4; border-radius: 6px; background: #fff; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(17,104,134,.12); }
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-group label {
  font-weight: 700; font-size: .85rem; display: flex; align-items: center; gap: 7px;
  border: 1px solid #c3ccd4; border-radius: 6px; padding: 10px 15px; cursor: pointer; background: #fff;
}
.radio-group label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }

.result {
  display: none; background: var(--primary-light); border: 1px solid #b7d9e8;
  border-radius: var(--radius); padding: 22px; margin-bottom: 20px;
}
.result.show { display: block; }
.result-main { font-size: .85rem; font-weight: 700; color: var(--muted); }
.result-main .big { display: block; font-size: 1.7rem; font-weight: 700; color: var(--primary-dark); line-height: 1.4; }
.result table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .87rem; }
.result th, .result td { text-align: left; padding: 10px; border-bottom: 1px solid #cde3ee; }
.result td.num { text-align: right; font-weight: 700; }

/* ツールカード */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; margin: 22px 0; }
.tool-card {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.tool-card:hover { border-color: var(--primary); box-shadow: 0 3px 12px rgba(17,104,134,.12); transform: none; }
.tool-card .tool-icon {
  width: 44px; height: 44px; border-radius: 8px; background: var(--primary-light);
  border: 1px solid #c5dfeb; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.tool-card .tool-name { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.tool-card .tool-desc { font-size: .8rem; color: var(--muted); line-height: 1.75; }
.tool-card .tool-more { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--primary-dark); }

/* 目次・注意・FAQ */
.toc { background: var(--panel) !important; border: 1px solid var(--border) !important; border-radius: var(--radius) !important; }
.toc strong { color: var(--primary-dark); }
.toc a { color: var(--text); text-decoration: underline; }
.disclaimer {
  background: #fffaeb; border: 1px solid #fedf89; border-left: 5px solid #f79009; border-radius: var(--radius);
  padding: 16px 20px; font-size: .78rem; color: #7a4d0b; margin: 28px 0; line-height: 1.85;
}
.faq dt { font-weight: 700; margin-top: 20px; padding-left: 30px; position: relative; }
.faq dt::before {
  content: "Q"; position: absolute; left: 0; top: 4px; width: 21px; height: 21px;
  background: var(--primary-dark); color: #fff; font-size: .7rem; font-weight: 700; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.faq dd { margin: 7px 0 0 30px; color: var(--text); font-size: .9rem; }

.breadcrumb { font-size: .75rem; color: var(--muted); margin: 18px 0 6px; }
.breadcrumb a { color: #0b6c93; text-decoration: none; }
main > .breadcrumb + h1 { font-size: 1.5rem; margin-top: 4px; }

/* フッター */
.site-footer { background: #10222c; color: #c3d3db; margin-top: 44px; }
.site-footer .inner { max-width: 980px; margin: 0 auto; padding: 40px 24px 28px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px 64px; margin-bottom: 24px; }
.footer-brand { max-width: 300px; }
.footer-brand .fb-name { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; color: #fff; }
.footer-brand p { font-size: .76rem; color: #8fa6b1; margin: 0; line-height: 1.8; }
.footer-col .fc-title { font-size: .68rem; font-weight: 700; color: #7f97a3; letter-spacing: .1em; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { font-size: .82rem; color: #c3d3db; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-note { font-size: .69rem; color: #7f97a3; border-top: 1px solid #1e3641; padding-top: 18px; }
.footer-note p { margin-bottom: 4px; }

@media (max-width: 640px) {
  h1 { font-size: 1.3rem; }
  main > .breadcrumb + h1 { font-size: 1.24rem; }
  h2 { font-size: 1.06rem; margin-top: 42px; padding: 8px 14px; }
  .header-nav { display: none; }
  main { padding: 0 16px 52px; }
  .calc-card, .content-card { padding: 18px 14px; }
  .rank-card { grid-template-columns: 1fr; }
  .rank-card .rc-head, .rank-card .rc-price { grid-column: 1; grid-row: auto; }
  .rank-card .rc-cta { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .rank-card .btn-cta { width: 100%; }
  .table-scroll tr td:first-child, .table-scroll tr th:first-child { position: static; box-shadow: none; }
}

/* サービスロゴ */
.tlogo { border-radius: 4px; vertical-align: -4px; margin-right: 7px; background: #fff; }
.tcell { white-space: nowrap; }
.rc-name .tlogo-lg { width: 24px; height: 24px; vertical-align: -5px; }
