@charset "utf-8";

/* =========================================================
   おうちの困りごと帖 — 黒・白・蛍光イエロー／細い罫線の編集レイアウト
   外部フォント・外部素材は読み込まない（端末のゴシック体を使う）。
   ========================================================= */

:root {
  --ink: #0e0e0e;
  --paper: #ffffff;
  --accent: #70C992;
  --rule: #dcdcdc;
  --muted: #6f6f6f;
  --tint: #f7f6f3;
  --main-w: 830px;
  --side-w: 260px;
  --gap: 62px;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Yu Gothic",
    "Noto Sans JP", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.02em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
}
.skip:focus {
  left: 8px;
  top: 8px;
}

/* ------------------------------------------------------------- ロゴ・記号 */

/* 読み上げ専用テキスト（ロゴは1文字ずつ装飾しているため別に置く） */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.logo {
  display: inline-flex;
  align-items: flex-end;
}
.logo__c {
  display: inline-block;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
}
.logo__c:nth-child(odd) {
  transform: rotate(-3deg);
}
.logo__c:nth-child(even) {
  transform: translateY(2px) rotate(2deg);
}
.logo__c:nth-child(3n) {
  transform: translateY(-1px) rotate(1deg);
}
.logo__c--small {
  font-size: 19px;
}
.logo__c--accent {
  background: var(--accent);
  box-shadow: 3px 0 0 var(--accent), -3px 0 0 var(--accent);
  transform: rotate(-2deg);
}
.logo--sm .logo__c {
  font-size: 19px;
}
.logo--sm .logo__c--small {
  font-size: 15px;
}

.mark,
.brand__mark,
.pill__mark,
.sechead__mark,
.footer__mark {
  display: block;
  width: 26px;
  height: 26px;
  color: currentColor;
}

/* ---------------------------------------------------------------- ヘッダー */

.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header__top {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 30px;
  height: 30px;
}
.brand__names {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand__latin {
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--muted);
}
.brand__tagline {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 1px solid var(--rule);
  padding-left: 22px;
}
.brand__tagline span {
  display: block;
}

.gnav {
  border-top: 1px solid var(--rule);
}
.gnav__inner {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.gnav__link {
  display: flex;
  align-items: center;
  padding: 0 26px;
  height: 52px;
  font-size: 14px;
  font-weight: 700;
  border-right: 1px solid var(--rule);
  position: relative;
}
.gnav__inner > .gnav__link:first-child {
  border-left: 1px solid var(--rule);
}
.gnav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.15s ease;
}
.gnav__link:hover::after,
.gnav__link.is-current::after {
  transform: scaleX(1);
}
.gnav__pill {
  margin-left: auto;
  align-self: center;
  background: var(--accent);
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.gnav__pill:hover {
  background: var(--ink);
  color: var(--accent);
}

/* -------------------------------------------------------------- レイアウト */

.shell {
  display: grid;
  grid-template-columns: minmax(0, var(--main-w)) var(--side-w);
  gap: 0 var(--gap);
  align-items: start;
  padding-top: 34px;
  padding-bottom: 72px;
}
.shell--wide {
  grid-template-columns: minmax(0, 1fr);
}

/* -------------------------------------------------------------- ヒーロー */

.hero {
  margin-bottom: 8px;
}
.hero__figure {
  border: 1px solid var(--rule);
  line-height: 0;
}
.hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero__band {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--accent);
  padding: 18px 24px;
}
.hero__kicker {
  align-self: flex-start;
  background: var(--ink);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  padding: 7px 12px 7px 14px;
  white-space: nowrap;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(14, 14, 14, 0.35);
  padding-left: 20px;
}
.hero__line1 {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.hero__line2 {
  font-size: 17px;
  font-weight: 700;
}
.hero__note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding: 14px 2px 18px;
}
.hero__note a {
  margin-left: 8px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

/* ----------------------------------------------------------- 見出しブロック */

.sechead {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin: 54px 0 26px;
}
.sechead__mark {
  width: 22px;
  height: 22px;
  flex: none;
}
.sechead__title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sechead__lead {
  flex: 1;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}
.sechead__link {
  font-size: 12px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  white-space: nowrap;
}

/* -------------------------------------------------------------- 記事カード */

.cards--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 30px;
}
.card__figure {
  line-height: 0;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.card__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card__link:hover .card__figure img {
  transform: scale(1.03);
}
/* 合う写真がない記事：写真枠と同じ比率で、カテゴリと主題を文字で組む */
.card__figure--type {
  position: relative;
  aspect-ratio: 3 / 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 22px 24px;
  line-height: 1.4;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.card__mark {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 30px;
  height: 30px;
  color: #fff;
}
.card__typecat {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--accent);
  padding: 4px 9px;
}
.card__typekw {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 12px;
}
.card__link:hover .card__figure--type .card__typekw {
  color: var(--accent);
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.tag {
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 9px;
}
.card__title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  margin: 8px 0 6px;
}
.card__link:hover .card__title {
  background: linear-gradient(transparent 72%, var(--accent) 0);
}
.card__lead {
  font-size: 13px;
  line-height: 1.85;
  color: #3c3c3c;
}

/* ----------------------------------------------------- チェックリストバナー */

.banner {
  display: block;
  position: relative;
  background: var(--accent);
  border: 2px solid var(--ink);
  padding: 30px 34px 30px 40px;
  margin: 54px 0;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--ink) 0 8px,
    transparent 8px 16px
  );
}
.banner__label {
  display: inline-block;
  background: var(--ink);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 12px;
}
.banner__title {
  display: block;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.45;
  margin: 14px 0 10px;
}
.banner__body {
  display: block;
  max-width: 46em;
  font-size: 13px;
  line-height: 1.9;
}
.banner__cta {
  display: inline-block;
  margin-top: 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 999px;
}
.banner:hover .banner__cta {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ------------------------------------------------------------- 広告枠（PR） */

.adnotice {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--muted);
}
.adslot {
  margin: 48px 0 36px;
  border: 1px solid var(--ink);
  background: var(--tint);
}
.adslot__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.adslot__pr {
  background: var(--ink);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 2px 8px;
}
.adslot__body {
  display: flex;
  gap: 22px;
  padding: 18px;
}
.adslot__creative {
  flex: 0 0 300px;
  max-width: 100%;
}
.adslot__banner {
  display: block;
  line-height: 0;
}
.adslot__banner img {
  max-width: 100%;
  height: auto;
}
/* 計測用の 1px 画像は、どの幅でも 1px のまま。 */
.adslot__pixel {
  width: 1px !important;
  height: 1px !important;
  max-width: 1px;
  border: 0;
}
.adslot__text {
  margin-top: 8px;
  font-size: 13px;
}
.adslot__text a {
  border-bottom: 2px solid var(--accent);
  font-weight: 700;
}
.adslot__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 300 / 250;
  width: 300px;
  max-width: 100%;
  border: 1px dashed var(--muted);
  background: #fff;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  color: var(--muted);
}
.adslot__notes {
  font-size: 12.5px;
  line-height: 1.85;
  color: #3c3c3c;
}
.adslot__notes p + p {
  margin-top: 8px;
}
.adslot__policy a {
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 700px) {
  .adslot__body {
    flex-direction: column;
  }
  .adslot__creative {
    flex-basis: auto;
  }
}

/* --------------------------------------------------------- カテゴリグリッド */

.catgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.catgrid a {
  display: block;
  background: #fff;
  padding: 20px 22px;
  height: 100%;
}
.catgrid b {
  font-size: 16px;
  font-weight: 800;
}
.catgrid span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.catgrid a:hover {
  background: var(--accent);
}
.catgrid a:hover span {
  color: var(--ink);
}

/* --------------------------------------------------------- はじめての方へ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.steps__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
  padding: 22px 22px 24px;
}
.steps__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
}
.steps__title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
}
.steps__body {
  font-size: 12.5px;
  line-height: 1.85;
  color: #3c3c3c;
  flex: 1;
}
.steps__link {
  font-size: 12.5px;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}
.steps__link:hover {
  background: var(--accent);
}

/* ------------------------------------------------------------- サイドバー */

.col-side {
  position: sticky;
  top: 16px;
}
.side-block {
  margin-bottom: 26px;
}
.side-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
}
.side-list li {
  border-bottom: 1px solid var(--rule);
}
.side-list a {
  display: block;
  padding: 11px 2px;
}
.side-list b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}
.side-list span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.side-list time {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}
.side-list a:hover b {
  background: linear-gradient(transparent 72%, var(--accent) 0);
}
.side-list--sources b {
  font-size: 12px;
  font-weight: 600;
}
.side-note {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 8px;
  text-align: right;
}

.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 18px 14px 22px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.5;
}
.pill__mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}
.pill:hover {
  background: var(--accent);
  color: var(--ink);
}
.pill:hover .pill__mark {
  color: var(--ink);
}

.sidesearch__label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.sidesearch__row {
  display: flex;
  border: 1px solid var(--ink);
}
.sidesearch__input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
}
.sidesearch__button {
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}
.sidesearch__button:hover {
  background: var(--accent);
  color: var(--ink);
}

/* 雑誌広告風の自社ガイド導線 */
.adcard {
  display: block;
  position: relative;
  border: 2px solid var(--ink);
  padding: 18px 18px 0;
  background: #fff;
  overflow: hidden;
}
.adcard::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 78px;
  height: 78px;
  background: var(--accent);
  transform: rotate(45deg);
}
.adcard__kicker {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
}
.adcard__title {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.3;
  margin: 6px 0 8px;
}
.adcard__sub {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  padding-bottom: 14px;
}
.adcard__note {
  display: block;
  margin: 0 -18px;
  background: var(--ink);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 8px;
}
.adcard:hover .adcard__note {
  background: var(--accent);
  color: var(--ink);
}

.blackcard {
  display: block;
  background: var(--ink);
  color: #fff;
  padding: 22px 20px;
}
.blackcard__title {
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.45;
}
.blackcard__sub {
  display: block;
  font-size: 11.5px;
  color: #c9c9c9;
  margin-top: 8px;
}
.blackcard:hover .blackcard__title {
  color: var(--accent);
}

/* ------------------------------------------------------------ パンくず・見出し */

.crumbs {
  font-size: 11.5px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crumbs li + li::before {
  content: "／";
  margin-right: 6px;
  color: var(--rule);
}
.crumbs a:hover {
  border-bottom: 1px solid var(--ink);
}

.pagehead {
  padding: 26px 0 22px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 30px;
}
.pagehead__kicker {
  display: inline-block;
  background: var(--ink);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 4px 11px;
  margin-bottom: 12px;
}
.pagehead__title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.45;
}
.pagehead__lead {
  font-size: 13.5px;
  color: #3c3c3c;
  margin-top: 10px;
  max-width: 46em;
}

/* ------------------------------------------------------------------ 絞り込み */

.finder {
  border: 1px solid var(--ink);
  padding: 20px 22px;
  margin-bottom: 30px;
}
.finder__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0;
}
.finder__row {
  display: flex;
  border: 1px solid var(--ink);
  margin: 8px 0 16px;
}
.finder__input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
}
.finder__submit {
  border: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  padding: 0 24px;
  cursor: pointer;
}
.finder__submit:hover {
  background: var(--accent);
  color: var(--ink);
}
.finder__cats {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.finder__cats legend {
  float: left;
  margin-right: 12px;
  padding: 0;
  line-height: 32px;
}
.chip {
  position: relative;
  display: inline-block;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-block;
  border: 1px solid var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.chip input:checked + span {
  background: var(--ink);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}
.finder__status {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  margin-top: 16px;
  padding-top: 12px;
}
.finder__status b {
  font-size: 17px;
  color: var(--ink);
}
.finder__reset {
  background: none;
  border: 0;
  border-bottom: 2px solid var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 0 1px;
  cursor: pointer;
}
.finder__empty {
  border-top: 1px solid var(--rule);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 13.5px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
/* 絞り込みで hidden にした要素は、display 指定より優先して隠す。 */
.finder__empty[hidden],
.finder__reset[hidden],
.cards__item[hidden] { display: none; }

/* ------------------------------------------------------------------ 記事本文 */

.entry__head {
  padding: 26px 0 20px;
}
.entry__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted);
}
.entry__title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 14px 0 12px;
}
.entry__lead {
  font-size: 15px;
  line-height: 1.95;
  color: #2b2b2b;
  border-left: 5px solid var(--accent);
  padding-left: 16px;
}
.entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--muted);
}
.entry__figure {
  line-height: 0;
  border: 1px solid var(--rule);
}
.entry__figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.entry__figure figcaption {
  line-height: 1.7;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 10px;
  border-top: 1px solid var(--rule);
}

.toc {
  border: 1px solid var(--ink);
  padding: 20px 24px;
  margin: 30px 0 34px;
  background: var(--tint);
}
.toc__title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.toc ol {
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  font-size: 13.5px;
  line-height: 1.9;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-weight: 800;
  font-size: 11px;
  color: var(--muted);
  margin-right: 10px;
}
.toc a:hover {
  background: linear-gradient(transparent 72%, var(--accent) 0);
}

.prose {
  font-size: 15.5px;
  line-height: 2.05;
}
.prose p {
  margin: 0 0 1.5em;
}
.prose__h2 {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.6;
  border-left: 7px solid var(--accent);
  padding-left: 14px;
  margin: 2.6em 0 1em;
  scroll-margin-top: 20px;
}
.prose__h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 2em 0 0.7em;
}
.prose__list {
  margin: 0 0 1.6em;
  border-top: 1px solid var(--rule);
}
.prose__list li {
  position: relative;
  padding: 0.7em 0 0.7em 1.5em;
  border-bottom: 1px solid var(--rule);
  line-height: 1.85;
}
.prose__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.35em;
  width: 9px;
  height: 9px;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--ink);
}
.prose__steps {
  counter-reset: step;
  margin: 0 0 1.6em;
}
.prose__steps li {
  counter-increment: step;
  position: relative;
  padding: 0.55em 0 0.55em 2.6em;
  line-height: 1.85;
}
.prose__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 1.85em;
  height: 1.85em;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.note {
  background: var(--tint);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--ink);
  padding: 18px 22px;
  margin: 2.2em 0;
}
.note__title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 6px !important;
}
.note__body {
  font-size: 13.5px;
  line-height: 1.95;
  margin: 0 !important;
}
.deflist {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-top: 1px solid var(--rule);
  margin: 0 0 1.8em;
  font-size: 14px;
}
.deflist dt {
  font-weight: 700;
  background: var(--tint);
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}
.deflist dd {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  word-break: break-word;
}
.linkcard a {
  display: block;
  border: 2px solid var(--ink);
  padding: 16px 20px;
  font-weight: 800;
  font-size: 15px;
}
.linkcard a::after {
  content: "↗";
  margin-left: 8px;
}
.linkcard a:hover {
  background: var(--accent);
}
.linkcard__note {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
}
.linkcard a:hover .linkcard__note {
  color: var(--ink);
}
.prose a {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
}

.entry__sources {
  border-top: 2px solid var(--ink);
  margin-top: 48px;
  padding-top: 20px;
}
.entry__sources h2 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.entry__sources li {
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-size: 13px;
}
.entry__sources li a {
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  word-break: break-all;
}
.entry__sources li span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.entry__disclaimer {
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 14px;
}

.backlink {
  margin: 40px 0 0;
  font-size: 13.5px;
  font-weight: 700;
}
.backlink a {
  border-bottom: 2px solid var(--accent);
}

/* --------------------------------------------------------------- ガイド */

.pagehead--guide {
  border-bottom-width: 6px;
}
.guide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.btn {
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 999px;
}
.btn:hover {
  background: var(--accent);
}
.btn--black {
  background: var(--ink);
  color: #fff;
}
.btn--black:hover {
  background: var(--accent);
  color: var(--ink);
}
.guide-progress {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
}
.guide-progress b {
  font-size: 19px;
  color: var(--ink);
}
.guide-storage {
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--muted);
  background: var(--tint);
  border: 1px solid var(--rule);
  padding: 12px 16px;
  margin-bottom: 30px;
}
.clgroup {
  margin-bottom: 30px;
  break-inside: avoid;
}
.clgroup__title {
  font-size: 15px;
  font-weight: 900;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
}
.clgroup__title::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--accent);
  margin-right: 10px;
}
.clitem label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 8px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.75;
}
.clitem label:hover {
  background: var(--tint);
}
.clitem input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.clitem__box {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border: 2px solid var(--ink);
  background: #fff;
  position: relative;
}
.clitem input:checked + .clitem__box {
  background: var(--accent);
}
.clitem input:checked + .clitem__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(40deg);
}
.clitem input:focus-visible + .clitem__box {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}
.clitem input:checked ~ .clitem__text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.guide-memo {
  margin: 40px 0;
}
.guide-memo h2,
.guide-read h2 {
  font-size: 15px;
  font-weight: 900;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.guide-memo p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.memo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.memo-table th,
.memo-table td {
  border: 1px solid var(--rule);
  padding: 10px;
  text-align: left;
}
.memo-table th {
  background: var(--tint);
  font-weight: 700;
  white-space: nowrap;
}
.memo-table td {
  height: 46px;
}
.guide-foot {
  font-size: 11.5px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  margin-top: 30px;
}

/* ------------------------------------------------------------------- 404 */

.nf {
  text-align: center;
  padding: 80px 0 100px;
}
.nf__code {
  font-size: 96px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  display: inline-block;
  background: linear-gradient(transparent 62%, var(--accent) 0);
}
.nf__title {
  font-size: 24px;
  font-weight: 900;
  margin: 22px 0 10px;
}
.nf__lead {
  font-size: 14px;
  color: var(--muted);
}
.nf__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.nf__links a {
  display: inline-block;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 22px;
}
.nf__links a:hover {
  background: var(--accent);
}

/* ---------------------------------------------------------------- フッター */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 44px 0 56px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.site-footer__note {
  font-size: 12px;
  color: #c9c9c9;
  border-left: 1px solid #3a3a3a;
  padding-left: 16px;
  max-width: 34em;
  line-height: 1.8;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  border-top: 1px solid #3a3a3a;
  border-bottom: 1px solid #3a3a3a;
  margin: 24px 0 20px;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 700;
}
.site-footer__nav a:hover {
  color: var(--accent);
}
.site-footer__consent {
  font: inherit;
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.site-footer__consent:hover {
  color: var(--accent);
}
.site-footer__legal {
  font-size: 11.5px;
  line-height: 1.9;
  color: #a5a5a5;
}
.site-footer__legal a {
  color: #fff;
  border-bottom: 1px solid var(--accent);
}

/* ------------------------------------------------------------- レスポンシブ */

@media (max-width: 1080px) {
  .shell {
    gap: 0 40px;
  }
  .brand__tagline span {
    display: none;
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 20px;
  }
  .col-side {
    position: static;
    margin-top: 56px;
    border-top: 2px solid var(--ink);
    padding-top: 26px;
  }
  .site-header__top {
    padding-bottom: 12px;
  }
  .brand__tagline {
    font-size: 11px;
  }
  .gnav__inner {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .gnav__inner::-webkit-scrollbar {
    display: none;
  }
  .gnav__link {
    padding: 0 18px;
    height: 46px;
    white-space: nowrap;
  }
  .gnav__pill {
    margin-left: 8px;
    flex: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }
  .wrap {
    padding: 0 16px;
  }
  .brand__tagline {
    display: none;
  }
  .logo__c {
    font-size: 21px;
  }
  .logo__c--small {
    font-size: 16px;
  }
  .hero__band {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
  }
  .hero__copy {
    border-left: 0;
    padding-left: 0;
  }
  .hero__line1 {
    font-size: 25px;
  }
  .hero__line2 {
    font-size: 15px;
  }
  .cards--2,
  .catgrid,
  .steps {
    grid-template-columns: 1fr;
  }
  .catgrid {
    gap: 1px;
  }
  .sechead {
    flex-wrap: wrap;
    margin: 42px 0 22px;
  }
  .sechead__lead {
    width: 100%;
    order: 3;
  }
  .banner {
    padding: 24px 20px 24px 28px;
  }
  .banner__title {
    font-size: 22px;
  }
  .entry__title {
    font-size: 25px;
  }
  .pagehead__title {
    font-size: 24px;
  }
  .deflist {
    grid-template-columns: 1fr;
  }
  .deflist dt {
    border-bottom: 0;
  }
  .guide-actions {
    flex-wrap: wrap;
  }
  .guide-progress {
    width: 100%;
    margin-left: 0;
  }
  .nf__code {
    font-size: 68px;
  }
  .memo-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------------- 印刷 */

@media print {
  body {
    font-size: 11pt;
    line-height: 1.7;
  }
  .site-header,
  .site-footer,
  .col-side,
  .crumbs,
  .no-print,
  .banner,
  .skip {
    display: none !important;
  }
  .shell {
    display: block;
    padding: 0;
  }
  .wrap {
    max-width: none;
    padding: 0;
  }
  .clitem label:hover {
    background: none;
  }
  .clitem__box {
    border-color: #000;
  }
  .clgroup__title {
    background: #000 !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .pagehead__lead {
    max-width: none;
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444;
  }
}
:root { scroll-padding-top: 1.5rem; }
.entry__answer { margin: 1.5rem 0; padding: 1.2rem 1.4rem; background: #eff8f2; border-left: 4px solid var(--accent); font-size: 1rem; line-height: 1.9; }
.entry__answer p { margin: 0; }
.entry__byline { font-size: .8rem; line-height: 1.8; color: #444; }
.entry__byline a, .prose a, .editor-note a { text-decoration: underline; text-underline-offset: .2em; }
.tablewrap { margin: 1.8rem 0; max-width: 100%; }
.tablewrap__scroll { overflow-x: auto; border: 1px solid #d7e2db; }
.tablewrap__scroll:focus-visible { outline: 3px solid #23643e; outline-offset: 3px; }
.datatable { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.8; }
.datatable caption { text-align: left; padding: .85rem 1rem; font-weight: 700; background: #eff8f2; }
.datatable th, .datatable td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid #d7e2db; border-right: 1px solid #d7e2db; overflow-wrap: anywhere; }
.datatable thead th { background: #e0f1e6; }
.datatable tbody th { background: #f6f8f6; width: 24%; }
.tablewrap figcaption, .srcref { font-size: .8rem; line-height: 1.8; color: #4b514d; }
.sample, .editor-note { margin: 2rem 0; padding: 1.3rem; border: 1px solid #d7e2db; background: #f6f8f6; line-height: 1.9; }
.sample__title { font-weight: 700; }
.sample__body { margin: .8rem 0 0; }
.sample__body p { margin: .5rem 0; }
.editor-note h2 { font-size: 1.2rem; }
@media (max-width: 600px) {
  .entry__answer { padding: 1rem; font-size: .95rem; }
  .datatable { font-size: .8rem; }
  .datatable th, .datatable td { padding: .65rem .5rem; }
  .datatable:has(th:nth-child(3)) { min-width: 520px; }
}

/* -------------------------------------------------- アクセス解析の同意（本番のみ） */

.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border: 1px solid #3a3a3a;
  border-left: 4px solid var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.consent[hidden] { display: none; }
.consent__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 18px 16px;
}
.consent__text {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #e6e6e6;
}
.consent__text b { color: #fff; }
.consent__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.consent__btn {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 18px;
  color: #fff;
  background: none;
  border: 1px solid #6f6f6f;
  cursor: pointer;
}
.consent__btn:hover { border-color: var(--accent); }
.consent__btn--yes {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}
.consent__btn--yes:hover { background: #8ed7aa; }
.consent__btn:focus-visible,
.consent__link:focus-visible,
.site-footer__consent:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.consent__link {
  font-size: 12px;
  color: #c9c9c9;
  border-bottom: 1px solid var(--accent);
}
.consent__link:hover { color: #fff; }

@media (max-width: 600px) {
  .consent { left: 0; right: 0; bottom: 0; border-left: 0; border-top: 4px solid var(--accent); }
}
