@charset "utf-8";
/*
  サイト全体の見た目。
  色・書体・幅は :root の変数にまとめている。部品の一覧は /_template/parts.html(公開しない)で見られる。
  決まり: 見出しの左に縦線を入れない・タイトルの上に小さい副題を付けない・ボックスを多用しない・明朝体を使わない。
*/

:root {
  --ink: #1f2a44;
  --text: #29334d;
  --muted: #4a5571;
  --line: #dde4f0;
  --bg-soft: #f5f8fd;
  --sky-50: #eef6ff;
  --sky-100: #e1efff;
  --blue: #2b6cf6;
  --blue-dark: #1d56d8;
  --sky: #2ec4f1;
  --yellow: #ffc93c;
  --marker: #ffe27a;
  --yellow-50: #fff7d9;
  --coral: #ff5a5f;
  --coral-50: #fff0f0;
  --pink: #ff6b9a;
  --green: #22c55e;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "YuGothic", "Meiryo", sans-serif;
  --font-num: "Avenir Next", "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  --wrap: 1200px;
  --main: 760px;
  --side: 296px;
  --pad: 20px;
  --ico-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231f2a44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-arrow-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 15l7-7 7 7' fill='none' stroke='%231f2a44' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%2322c55e'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16M4 12h16' fill='none' stroke='%231f2a44' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --ico-point: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.4L21 11l-6.4 2.6L12 20l-2.6-6.4L3 11l6.4-2.6z' fill='%231f2a44'/%3E%3C/svg%3E");
  --ico-caution: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%231f2a44'/%3E%3Cpath d='M12 6.5v7' stroke='%23fff' stroke-width='2.8' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.6' fill='%23fff'/%3E%3C/svg%3E");
  --ico-memo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20l1-5L15.5 4.5a2.1 2.1 0 0 1 3 0l1 1a2.1 2.1 0 0 1 0 3L9 19z' fill='%231f2a44'/%3E%3C/svg%3E");
  --ico-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'%3E%3Cpath d='M2 6 Q8.5 1 15 6 T28 6 T41 6 T54 6' fill='none' stroke='%23ff6b9a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --ico-wave-footer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 24V12Q15 0 30 12T60 12T90 12T120 12V24z' fill='%231f2a44'/%3E%3C/svg%3E");
}
@media (max-width: 359px) {
  :root { --pad: 16px; }
}

/* 土台 */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--text);
  background: #fff;
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue-dark); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 8px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* カテゴリの色(カテゴリを足したらここに1行足す) */
.cat-eikaiwa { --cat: #2ec4f1; --cat-soft: #dff3ff; }
.cat-kaitori { --cat: #ffc93c; --cat-soft: #fff1c2; }

/* ヘッダー */
.site-header { background: #fff; border-bottom: 2px solid var(--ink); }
.header-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: .06em;
}
.logo img { width: 36px; height: 36px; }
.global-nav { min-width: 0; }
.global-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.global-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.6;
  text-decoration: none; white-space: nowrap;
}
.global-nav a:hover { background: var(--sky-50); }
.global-nav a[aria-current] { background: var(--cat-soft, var(--sky-50)); box-shadow: inset 0 0 0 2px var(--ink); }
.cat-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--sky)); box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 767px) {
  .header-inner { padding-top: 10px; padding-bottom: 0; }
  .global-nav { width: calc(100% + var(--pad) * 2); margin: 0 calc(var(--pad) * -1); overflow-x: auto; scrollbar-width: none; }
  .global-nav::-webkit-scrollbar { display: none; }
  .global-nav ul { width: max-content; padding: 2px var(--pad) 10px; }
}

/* ページの枠 */
.page { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.main-col { min-width: 0; max-width: var(--main); margin: 0 auto; }
.sidebar { display: none; }
@media (min-width: 1080px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 64px; align-items: start; }
  .main-col { max-width: 800px; margin: 0; }
  .sidebar {
    display: block; position: sticky; top: 0;
    max-height: 100vh; overflow-y: auto; padding: 28px 4px 24px 0; scrollbar-width: thin;
  }
}

/* パンくずリスト */
.breadcrumb ol {
  display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none;
  font-size: 13.5px; line-height: 1.7; color: var(--muted);
}
.breadcrumb li:not(:last-child)::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 8px;
  border-top: 2px solid #7f8ba6; border-right: 2px solid #7f8ba6; transform: rotate(45deg);
}
.breadcrumb a, .doc .breadcrumb a:not([class]) { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover, .doc .breadcrumb a:not([class]):hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

/* 記事の上部 */
.article-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 18px; }
.pr-label {
  flex: none; margin-top: 1px; padding: 0 8px;
  border: 1.5px solid var(--ink); border-radius: 6px; background: #fff;
  color: var(--ink); font-family: var(--font-num); font-size: 12px; font-weight: 800; line-height: 1.6; letter-spacing: .1em;
}
.article-title, .doc-title {
  margin: 14px 0 14px;
  color: var(--ink); font-size: clamp(25px, 1.6vw + 19px, 36px); font-weight: 800; line-height: 1.45; letter-spacing: .02em;
  word-break: auto-phrase; font-feature-settings: "palt";
}
.article-dates { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 26px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.article-dates span { display: inline-flex; align-items: center; gap: 6px; }
.article-dates svg { flex: none; width: 16px; height: 16px; }
.article-dates time { color: var(--ink); font-family: var(--font-num); font-weight: 700; letter-spacing: .02em; }

/* 記事の冒頭の要約(この記事の結論)。導入文の代わりに置く */
.summary {
  position: relative; margin: 12px 0 0; padding: 30px 22px 14px;
  border: 2.5px solid var(--ink); border-radius: 22px; background: #fff; box-shadow: 5px 5px 0 var(--ink);
}
.summary .summary-label {
  position: absolute; top: -16px; left: 18px; margin: 0; padding: 2px 16px;
  border-radius: 999px; background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 800; line-height: 1.7; letter-spacing: .08em;
}
.summary .summary-lead { margin: 0 0 14px; font-size: 17px; line-height: 1.9; }
.summary-lead strong { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 60%, var(--marker) 60%); }
.summary-list { margin: 0; padding: 0; list-style: none; counter-reset: sum; }
.summary-list li { position: relative; padding: 13px 0 12px 42px; border-top: 2px dashed #d5deec; counter-increment: sum; }
.summary-list li::before {
  content: counter(sum); position: absolute; left: 0; top: 14px; width: 28px; height: 28px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow);
  color: var(--ink); font-family: var(--font-num); font-size: 14px; font-weight: 800; line-height: 24px; text-align: center; letter-spacing: 0;
}
.summary-list li:nth-child(4n+2)::before { background: var(--sky); }
.summary-list li:nth-child(4n+3)::before { background: var(--pink); }
.summary-list li:nth-child(4n)::before { background: var(--green); }
.summary-list a {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 2px;
  color: var(--ink); font-size: 16.5px; font-weight: 800; line-height: 1.6; text-decoration: none;
}
.summary-list a::after { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--sky-100) var(--ico-chevron) center / 11px no-repeat; }
.summary-list a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.summary-text { display: block; font-size: 15.5px; line-height: 1.85; }
@media (max-width: 599px) {
  .summary { padding: 28px 18px 10px; }
  .summary-list li { padding-left: 38px; }
}

/* 要約の下の案件の比較表 */
.offers { margin: 44px 0 0; }
.offers .offers-title {
  margin: 0 0 18px; padding-bottom: 14px;
  color: var(--ink); font-size: clamp(20px, .6vw + 18px, 24px); font-weight: 800; line-height: 1.5; letter-spacing: .02em;
  word-break: auto-phrase; font-feature-settings: "palt"; background: var(--ico-wave) left bottom / 60px 10px no-repeat;
}
.offers .table-figure { margin: 0; }
.table-offers .table-wrap td, .table-offers .table-wrap th { vertical-align: middle; }
.table-offers .table-wrap td.cell-left { text-align: left; }
.table-offers .table-wrap tbody th { min-width: 10.5em; }
.offer-name { display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.offer-logo {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 800;
}
.offer-logo img { width: 100%; height: 100%; object-fit: contain; }
.btn-mini {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 16px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); box-shadow: 0 3px 0 var(--ink);
  color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.4; white-space: nowrap; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-mini:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
/* スマホでは右端のボタンの列を出さず、サービス名の下にボタンを出す(横にスクロールしなくても押せるように) */
.offer-btn-sp { display: none; }
@media (max-width: 599px) {
  .table-offers .col-btn { display: none; }
  .table-offers .table-wrap table { min-width: 0; }
  .table-offers .table-wrap tbody th { min-width: 9em; }
  .offer-btn-sp { display: inline-flex; margin-top: 8px; min-height: 36px; padding: 4px 14px; font-size: 13px; }
  .offer-name { gap: 8px; }
  .offer-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 10px; }
}

/* 目次 */
.toc { margin: 30px 0 0; padding: 4px 22px 16px; border-radius: 22px; background: var(--sky-50); }
.toc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0 12px; cursor: pointer; list-style: none;
  color: var(--ink); font-size: 17px; font-weight: 800;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
  content: ""; flex: none; width: 30px; height: 30px;
  border: 2px solid var(--ink); border-radius: 50%; background: #fff var(--ico-chevron) center / 14px no-repeat;
  transition: transform .2s;
}
.toc[open] > summary::after { transform: rotate(180deg); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc > ol { counter-reset: toc; }
.toc > ol > li { padding: 10px 0; border-top: 2px dashed #c9d8ef; }
.toc > ol > li:not(.is-extra) { counter-increment: toc; }
.toc > ol > li > a { display: flex; gap: 12px; color: var(--ink); font-weight: 700; line-height: 1.6; text-decoration: none; }
.toc > ol > li > a::before {
  content: counter(toc); flex: none; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 50%; background: var(--blue); color: #fff;
  font-family: var(--font-num); font-size: 13px; font-weight: 800; line-height: 26px; text-align: center; letter-spacing: 0;
}
.toc > ol > li.is-extra > a::before { content: ""; width: 10px; height: 10px; margin: 8px 8px 0; background: var(--ink); }
.toc a:hover { text-decoration: underline; }
.toc li ol { margin: 6px 0 0 38px; }
.toc li li a { display: block; padding: 3px 0; color: var(--text); font-size: 15px; line-height: 1.6; text-decoration: none; }

/* 本文 */
.article-body { margin-top: 8px; }
.article-body p, .doc p { margin: 0 0 1.4em; }
.article-body h2 {
  display: flex; align-items: flex-start; gap: 14px; margin: 76px 0 22px;
  color: var(--ink); font-size: clamp(22px, .9vw + 18px, 28px); font-weight: 800; line-height: 1.5; letter-spacing: .02em;
  word-break: auto-phrase; font-feature-settings: "palt";
}
.h2-num {
  flex: none; width: 44px; height: 44px; margin-top: -2px;
  border: 2.5px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink); font-family: var(--font-num); font-size: 20px; font-weight: 800; line-height: 39px; text-align: center; letter-spacing: 0;
}
.sec:nth-of-type(4n+2) .h2-num { background: var(--sky); }
.sec:nth-of-type(4n+3) .h2-num { background: var(--pink); }
.sec:nth-of-type(4n) .h2-num { background: var(--green); }
@media (max-width: 599px) {
  .article-body h2 { gap: 12px; }
  .h2-num { width: 38px; height: 38px; margin-top: -1px; font-size: 18px; line-height: 33px; }
}
.eyecatch { margin: 0 0 24px; overflow: hidden; border: 2px solid var(--ink); border-radius: 20px; background: #fff; }
.eyecatch img { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.article-body h3, .doc h2 {
  margin: 52px 0 16px; padding-bottom: 14px;
  color: var(--ink); font-size: clamp(19px, .5vw + 17px, 22px); font-weight: 800; line-height: 1.55; letter-spacing: .02em;
  word-break: auto-phrase; font-feature-settings: "palt";
  background: var(--ico-wave) left bottom / 60px 10px no-repeat;
}
.article-body h4, .doc h3 { margin: 36px 0 10px; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.6; }
.article-body strong, .doc strong { color: var(--ink); font-weight: 700; }
.marker { background: linear-gradient(transparent 58%, var(--marker) 58%); }
.article-body a:not([class]), .doc a:not([class]), .faq a, .sources a, .author a, .article-policy a {
  color: var(--blue-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em;
}
.article-body a:not([class]):hover, .doc a:not([class]):hover { text-decoration-thickness: 2.5px; }

/* 箇条書き(文書のページは main の直下のリストだけ。パンくずリストに掛けないため) */
.article-body ul:not([class]), .doc > ul:not([class]) { margin: 0 0 1.5em; padding: 0; list-style: none; }
.article-body ul:not([class]) > li, .doc > ul:not([class]) > li { position: relative; margin: .5em 0; padding-left: 1.5em; }
.article-body ul:not([class]) > li::before, .doc > ul:not([class]) > li::before {
  content: ""; position: absolute; left: .3em; top: .7em; width: .5em; height: .5em; border-radius: 50%; background: var(--blue);
}
.article-body ol:not([class]), .doc > ol:not([class]) { margin: 0 0 1.5em; padding: 0; list-style: none; counter-reset: num; }
.article-body ol:not([class]) > li, .doc > ol:not([class]) > li { position: relative; margin: .6em 0; padding-left: 2.2em; counter-increment: num; }
.article-body ol:not([class]) > li::before, .doc > ol:not([class]) > li::before {
  content: counter(num); position: absolute; left: 0; top: 4px; width: 24px; height: 24px;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow);
  color: var(--ink); font-family: var(--font-num); font-size: 13px; font-weight: 800; line-height: 20px; text-align: center; letter-spacing: 0;
}
.check-list { margin: 0 0 1.5em; padding: 0; list-style: none; }
.check-list li { position: relative; margin: .55em 0; padding-left: 2em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 22px; height: 22px; background: var(--ico-check) center / contain no-repeat; }
.def-list { margin: 0 0 1.5em; }
.def-list dt { position: relative; padding-left: 1.2em; color: var(--ink); font-weight: 800; }
.def-list dt::before { content: ""; position: absolute; left: 0; top: .62em; width: .6em; height: .6em; border-radius: 3px; background: var(--coral); }
.def-list dd { margin: .15em 0 1em 1.2em; }

/* 手順 */
.steps { margin: 30px 0 32px; padding: 0; list-style: none; counter-reset: step; }
.steps > li { position: relative; min-height: 64px; padding: 0 0 24px 64px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 46px; height: 46px;
  border: 2.5px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink); font-family: var(--font-num); font-size: 19px; font-weight: 800; line-height: 41px; text-align: center;
}
.steps > li::after { content: ""; position: absolute; left: 22px; top: 58px; bottom: 6px; border-left: 2.5px dashed #a9bbdb; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps .step-title { margin: 8px 0 4px; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.55; }
.steps p { margin: 0 0 .6em; }

/* 表 */
.table-figure { margin: 30px 0; }
.table-figure figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  margin-bottom: 10px; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.6;
}
.scroll-hint { display: none; color: var(--muted); font-size: 13px; font-weight: 700; }
.is-scrollable .scroll-hint { display: inline; }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 18px; background: #fff; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.7; letter-spacing: .02em; }
.table-wrap th, .table-wrap td {
  padding: 12px 14px; border-bottom: 1.5px solid var(--line); border-left: 1.5px solid var(--line);
  text-align: left; vertical-align: top;
}
.table-wrap tr > :first-child { border-left: 0; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap thead th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; border-bottom: 0; border-left-color: rgba(255, 255, 255, .2); }
.table-wrap tbody th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.table-wrap .is-pick, .table-wrap tr.is-pick > td { background: var(--yellow-50); }
.table-wrap thead th.is-pick { background: var(--yellow); color: var(--ink); }
.table-compare table { min-width: 600px; }
.table-compare td { text-align: center; }
.table-compare tbody th, .table-compare thead th:first-child { position: sticky; left: 0; z-index: 1; min-width: 8.5em; }
.table-compare tbody th { box-shadow: 1.5px 0 0 var(--line); }
.table-spec th { width: 32%; min-width: 7em; }
@media (max-width: 599px) {
  .table-wrap table { font-size: 14.5px; }
  .table-wrap th, .table-wrap td { padding: 10px 11px; }
}
.mark { display: block; font-size: 22px; font-weight: 800; line-height: 1.25; }
.mark-best { color: #e8484d; }
.mark-good { color: var(--blue); }
.mark-fair, .mark-bad { color: #6b7590; }
.table-note { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* 装飾ボックス(1つの章に1つまでを目安にする) */
.box { position: relative; margin: 42px 0 30px; padding: 28px 22px 20px; border-radius: 18px; background: var(--yellow-50); }
.box > :last-child { margin-bottom: 0; }
.box p { margin-bottom: .8em; }
.box-label {
  position: absolute; top: -16px; left: 18px;
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 14px 2px 10px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow);
  color: var(--ink); font-size: 14px; font-weight: 800; line-height: 1.7; letter-spacing: .06em;
}
.box-label::before { content: ""; width: 16px; height: 16px; background: var(--ico-point) center / contain no-repeat; }
.box-caution { background: var(--coral-50); }
.box-caution .box-label { background: #ff9ea1; }
.box-caution .box-label::before { background-image: var(--ico-caution); }
.box-memo { background: var(--sky-50); }
.box-memo .box-label { background: #9fdcf6; }
.box-memo .box-label::before { background-image: var(--ico-memo); }

/* 引用 */
.article-body blockquote { margin: 30px 0; padding: 22px 22px 16px; border-radius: 18px; background: var(--bg-soft); }
.article-body blockquote p { margin-bottom: .6em; }
.article-body blockquote cite { display: block; color: var(--muted); font-size: 13.5px; font-style: normal; }

/* 案件のボタン */
.cta { margin: 40px 0 8px; text-align: center; }
.cta .cta-copy {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 12px;
  color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.6;
}
.cta-copy::before, .cta-copy::after { content: ""; flex: none; width: 2.5px; height: 20px; border-radius: 2px; background: var(--ink); }
.cta-copy::before { transform: rotate(-28deg); }
.cta-copy::after { transform: rotate(28deg); }
.btn-cta {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 460px; min-height: 64px; margin: 0 auto; padding: 14px 46px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--yellow); box-shadow: 0 5px 0 var(--ink);
  color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.5; letter-spacing: .05em; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn-cta::after {
  content: ""; position: absolute; top: 50%; right: 12px; width: 28px; height: 28px; margin-top: -14px;
  border-radius: 50%; background: var(--ink) var(--ico-arrow-white) center / 13px no-repeat;
}
.btn-cta:hover { background: #ffd45e; transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-cta:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.cta .cta-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 359px) {
  .btn-cta { padding: 12px 44px 12px 20px; font-size: 16px; letter-spacing: .02em; }
}

/*
  案件のリンクの出し入れ。リンクは assets/js/offers.js にまとめ、url が入った案件だけ JS が is-ready を付けて出す。
  記事の中: ボタンは <div class="cta" data-offer="キー"> の中の <a class="btn-cta" data-offer-link>(href は書かない)。
  本文の中のリンクは <a class="offer-link" data-offer="キー">、表の小さいボタンは <a class="btn-mini" data-offer="キー">。
*/
.cta[data-offer]:not(.is-ready), .service-card[data-offer]:not(.is-ready), a.btn-mini[data-offer]:not(.is-ready) { display: none; }
a.offer-link[data-offer]:not(.is-ready) { color: inherit; text-decoration: none; pointer-events: none; }
a.offer-link.is-ready { color: var(--blue-dark); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
.offer-pixel { position: absolute; width: 1px; height: 1px; border: 0; }

/* サービスの札(案件をまとめて見せるとき) */
.service-card {
  display: grid; gap: 14px; margin: 34px 0; padding: 22px;
  border: 2.5px solid var(--ink); border-radius: 24px; background: #fff; box-shadow: 5px 5px 0 var(--ink);
}
.service-card-head { display: flex; align-items: center; gap: 14px; }
.service-card-logo {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px;
  border: 2px solid var(--ink); border-radius: 16px; background: var(--sky-50);
  color: var(--ink); font-size: 13px; font-weight: 800;
}
.service-card-name { margin: 0; color: var(--ink); font-size: 19px; font-weight: 800; line-height: 1.4; }
.service-card .check-list { margin: 0; }
.service-card .btn-cta { max-width: none; }

/* よくある質問 */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  position: relative; display: flex; gap: 14px; padding: 18px 44px 18px 0;
  cursor: pointer; list-style: none; color: var(--ink); font-weight: 700; line-height: 1.65;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; flex: none; width: 32px; height: 32px; margin-top: -2px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-num); font-size: 16px; font-weight: 800; line-height: 32px; text-align: center;
}
.faq summary::after { content: ""; position: absolute; top: 22px; right: 6px; width: 22px; height: 22px; background: var(--ico-plus) center / contain no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { display: flex; gap: 14px; padding: 0 0 20px; }
.faq-a::before {
  content: "A"; flex: none; width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-family: var(--font-num); font-size: 16px; font-weight: 800; line-height: 28px; text-align: center;
}
.faq-a > div { min-width: 0; }
.faq-a > div > :last-child { margin-bottom: 0; }

/* 参照元 */
.sources { margin: 0; padding: 0; list-style: none; font-size: 15.5px; line-height: 1.7; }
.sources li { padding: 14px 0; border-bottom: 1.5px dashed var(--line); }
.sources li:first-child { padding-top: 4px; }
.sources a { font-weight: 700; }
.sources .checked { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; }

/* 記事の末尾 */
.article-foot { margin-top: 72px; }
.author { padding: 22px 22px 20px; border-radius: 22px; background: var(--bg-soft); }
.author-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.author-avatar {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px;
  border: 2.5px solid var(--ink); border-radius: 50%; background: var(--sky);
  color: var(--ink); font-size: 22px; font-weight: 800;
}
.author-name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1.5; }
.author-chip { padding: 1px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.author-role { display: block; margin: 0; color: var(--muted); font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.author-bio { margin: 0 0 10px; font-size: 15px; line-height: 1.85; }
.author-link { margin: 0; font-size: 14.5px; font-weight: 700; }
.article-policy { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.article-policy a { font-weight: 700; }
.back-toc { margin: 14px 0 0; text-align: right; font-size: 14px; }
.back-toc a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; text-decoration: none; }
.back-toc a::before { content: ""; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 50%; background: #fff var(--ico-arrow-up) center / 11px no-repeat; }
.back-toc a:hover { text-decoration: underline; }

/* 見出し(一覧の区切り) */
.section-title {
  margin: 0 0 22px; padding-bottom: 14px;
  color: var(--ink); font-size: clamp(21px, 1vw + 17px, 28px); font-weight: 800; line-height: 1.45; letter-spacing: .03em;
  font-feature-settings: "palt"; background: var(--ico-wave) left bottom / 72px 12px no-repeat;
}
.related { margin-top: 72px; }

/* 記事の札 */
.post-list { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.post-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--ink); text-decoration: none; }
.post-card-thumb { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-cat { display: none; }
.post-card-title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.55; word-break: auto-phrase; }
.post-card:hover .post-card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.post-card-date { display: block; margin-top: 4px; color: var(--muted); font-family: var(--font-num); font-size: 13px; font-weight: 700; }
@media (min-width: 700px) {
  .post-list.cols-2, .post-list.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 26px; }
  .post-list.cols-2 .post-card, .post-list.cols-3 .post-card { grid-template-columns: 1fr; gap: 12px; }
  .post-list.cols-2 .post-card-thumb, .post-list.cols-3 .post-card-thumb { border-radius: 16px; }
  .post-list.cols-2 .post-card-cat, .post-list.cols-3 .post-card-cat {
    display: inline-block; position: absolute; left: 10px; bottom: 10px; padding: 0 10px;
    border: 2px solid var(--ink); border-radius: 999px; background: var(--cat-soft, #fff);
    color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.7;
  }
  .post-list.cols-2 .post-card-title, .post-list.cols-3 .post-card-title { font-size: 17px; }
}
@media (min-width: 1000px) {
  .post-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.empty-note { margin: 0; padding: 22px; border-radius: 18px; background: var(--bg-soft); font-size: 15.5px; }

/* サイドバー */
.side-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: .06em; }
/* 丸の縁(box-shadow)は外へ 2px はみ出す。サイドバーははみ出しを隠すので、左に 2px あけて縁が欠けないようにする */
.side-title::before { content: ""; flex: none; width: 10px; height: 10px; margin-left: 2px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.side-toc { padding: 18px 16px 14px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; }
.side-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: stoc; }
.side-toc li:not(.is-extra) { counter-increment: stoc; }
.side-toc a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--text); font-size: 14.5px; line-height: 1.55; text-decoration: none; }
.side-toc a::before {
  content: counter(stoc); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sky-100);
  color: var(--ink); font-family: var(--font-num); font-size: 12px; font-weight: 800; line-height: 22px; text-align: center; letter-spacing: 0;
}
.side-toc li.is-extra a::before { content: ""; width: 8px; height: 8px; margin: 7px 7px 0; background: #9aa6bf; }
.side-toc a:hover { background: var(--sky-50); }
.side-toc a.is-active { background: var(--yellow-50); color: var(--ink); font-weight: 700; }
.side-toc a.is-active::before { background: var(--ink); color: #fff; }
.side-block { margin-top: 24px; }
.side-cats { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.side-cats a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px;
  background: var(--cat-soft, var(--sky-50)); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none;
}
.side-cats img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.side-cats a:hover { box-shadow: inset 0 0 0 2px var(--ink); }

/* 先頭へ戻るボタン */
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 50px; height: 50px;
  border: 2px solid var(--ink); border-radius: 50%; background: #fff var(--ico-arrow-up) center / 18px no-repeat;
  box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* フッター */
.site-footer { position: relative; margin-top: 110px; background: var(--ink); color: #fff; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 24px; background: var(--ico-wave-footer) repeat-x left bottom / 120px 24px; }
.footer-inner { display: grid; gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 44px var(--pad) 30px; }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
}
.site-footer .logo { color: #fff; }
.footer-desc { margin: 14px 0 0; color: #e3e9f6; font-size: 14.5px; line-height: 1.85; }
.footer-title { margin: 0 0 10px; color: var(--yellow); font-size: 14px; font-weight: 800; letter-spacing: .1em; }
.footer-nav ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #fff; font-size: 15px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { margin: 0; padding: 18px var(--pad) 22px; border-top: 1px solid rgba(255, 255, 255, .18); color: #d5ddee; font-size: 13px; text-align: center; }

/* トップページ */
.home-intro { position: relative; overflow: hidden; background: var(--sky-50); border-bottom: 2px solid var(--ink); }
.home-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.home-intro-inner { position: relative; display: grid; gap: 30px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 40px var(--pad) 50px; }
@media (min-width: 900px) {
  .home-intro-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding-top: 72px; padding-bottom: 80px; }
}
.home-title {
  margin: 0; color: var(--ink); font-size: clamp(38px, 3.6vw + 22px, 64px); font-weight: 800; line-height: 1.25; letter-spacing: .04em;
  font-feature-settings: "palt";
}
.home-title span { padding: 0 .06em; background: linear-gradient(transparent 62%, var(--marker) 62%); }
.home-desc { max-width: 34em; margin: 18px 0 0; font-size: 17px; line-height: 1.95; }
.home-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px;
  border: 2.5px solid var(--ink); border-radius: 24px; background: var(--cat-soft); box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.cat-card:nth-child(odd) { transform: rotate(-1.2deg); }
.cat-card:nth-child(even) { transform: rotate(1.2deg); }
.cat-card:hover { transform: rotate(0) translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.cat-card img { width: 100%; max-width: 200px; margin: 0 auto 6px; aspect-ratio: 1; }
.cat-card-name { font-size: clamp(16px, .8vw + 13.5px, 21px); font-weight: 800; line-height: 1.45; word-break: auto-phrase; }
.cat-card-desc { font-size: 14px; line-height: 1.7; word-break: auto-phrase; }
.cat-card-count { margin-top: 6px; font-family: var(--font-num); font-size: 13px; font-weight: 800; }
@media (max-width: 359px) {
  .home-cats { gap: 12px; }
  .cat-card { padding: 12px 12px 14px; }
}
.home-section { max-width: var(--wrap); margin: 72px auto 0; padding: 0 var(--pad); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.section-head .section-title { margin-bottom: 0; }
.section-more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.section-more::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--ink) var(--ico-arrow-white) center / 12px no-repeat; }
.section-more:hover { text-decoration: underline; }
.home-about { max-width: var(--wrap); margin: 80px auto 0; padding: 0 var(--pad); }
.home-about-inner { display: grid; gap: 20px; padding: 30px 24px; border-radius: 28px; background: var(--yellow-50); }
@media (min-width: 800px) {
  .home-about-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 36px 44px; }
}
.home-about h2 { margin: 0 0 8px; color: var(--ink); font-size: 22px; font-weight: 800; line-height: 1.5; }
.home-about p { margin: 0; font-size: 15.5px; }
.home-about-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sub {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.5; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-sub:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

/* カテゴリのページ */
.cat-hero {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px 20px; align-items: center; margin: 18px 0 44px; padding: 22px;
  border: 2.5px solid var(--ink); border-radius: 26px; background: var(--cat-soft); box-shadow: 5px 5px 0 var(--ink);
}
.cat-hero img { width: 84px; height: 84px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; }
.cat-hero h1 { margin: 0; color: var(--ink); font-size: clamp(25px, 1.6vw + 19px, 36px); font-weight: 800; line-height: 1.4; font-feature-settings: "palt"; }
.cat-hero p { grid-column: 1 / -1; margin: 0; font-size: 16px; line-height: 1.85; }
@media (min-width: 700px) {
  .cat-hero { grid-template-columns: 120px minmax(0, 1fr); padding: 28px 34px; }
  .cat-hero img { grid-row: span 2; width: 120px; height: 120px; }
  .cat-hero p { grid-column: 2; }
}
.pagination { display: flex; justify-content: center; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.pagination a, .pagination span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border: 2px solid var(--ink); border-radius: 12px; background: #fff;
  color: var(--ink); font-family: var(--font-num); font-weight: 800; text-decoration: none;
}
.pagination [aria-current] { background: var(--ink); color: #fff; }
.pagination a:hover { background: var(--sky-50); }

/* 運営者情報・方針などの文書のページ */
.doc { max-width: var(--main); margin: 0 auto; }
.doc .breadcrumb, .cat-page .breadcrumb { padding-top: 18px; }
.doc-date { margin: 0 0 30px; color: var(--muted); font-size: 14px; }
.todo { padding: 0 .3em; border-radius: 4px; outline: 2px dashed #d99a00; background: #fff3a8; color: var(--ink); }

/* メールアドレスの画像(アドレスは文字のまま書かない) */
.mail-figure { margin: 26px 0 10px; }
.mail-img { display: block; width: 250px; max-width: 100%; height: auto; margin: 2px 0 6px; }
.mail-note, .doc p.mail-note { color: var(--muted); font-size: 14px; line-height: 1.75; }
td .mail-note { display: block; }

/* 入力欄(お問い合わせのフォームを使うときのため。今は使っていない) */
.form { display: grid; gap: 22px; margin-top: 26px; }
.form-row label, .form-row .form-label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 15.5px; font-weight: 800; }
.form-req { margin-left: 8px; padding: 1px 8px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; vertical-align: 2px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fff;
  color: var(--text); font: inherit; font-size: 16px; line-height: 1.6;
}
.form textarea { min-height: 200px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; }
.form-check input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--blue); }
.btn-primary {
  justify-self: start; display: inline-flex; align-items: center; justify-content: center; min-width: 220px; min-height: 56px; padding: 12px 32px;
  border: 2.5px solid var(--ink); border-radius: 999px; background: var(--blue); box-shadow: 0 4px 0 var(--ink);
  color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .08em; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:hover:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-primary:disabled { background: #9aa6bf; cursor: not-allowed; }

/* 404 */
.notfound { max-width: 640px; margin: 36px auto 0; text-align: center; }
.notfound img { width: min(100%, 420px); margin: 0 auto 8px; }
.notfound h1 { margin: 0 0 12px; color: var(--ink); font-size: clamp(24px, 2vw + 18px, 34px); font-weight: 800; line-height: 1.45; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
