.note-btn-wrap {
  margin-block: var(--block-gap);
}

.note-btn-wrap.is-center {
  text-align: center;
}

.note-btn-wrap.is-left {
  text-align: left;
}

.note-btn-wrap.is-right {
  text-align: right;
}

.note-btn-wrap:has(.is-raised) {
  padding-bottom: var(--space-1);
}

.note-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(12rem, 100%);
  max-width: 100%;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: var(--lead-tight);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: background var(--move) var(--ease), color var(--move) var(--ease), border-color var(--move) var(--ease), box-shadow var(--move) var(--ease);
}

.note-btn:hover {
  text-decoration: none;
}

.note-btn.is-sm {
  min-width: 8rem;
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
}

.note-btn.is-md {
  padding: var(--space-3) var(--space-5);
}

.note-btn.is-lg {
  min-width: min(16rem, 100%);
  padding: var(--space-4) var(--space-6);
  font-size: var(--step-1);
}

.note-btn.is-square {
  border-radius: 0;
}

.note-btn.is-soft {
  border-radius: var(--radius-sm);
}

.note-btn.is-pill {
  border-radius: var(--radius-pill);
}

/* 色は配色の accent と、accent を混ぜた墨・苔。--btn に置いて派生を一箇所にまとめる。 */
.note-btn.is-kiln {
  --btn: var(--accent);
  --btn-deep: var(--accent-deep);
}

.note-btn.is-ink {
  --btn: var(--tone-ink);
  --btn-deep: color-mix(in oklab, var(--tone-ink) 80%, black);
}

.note-btn.is-moss {
  --btn: var(--tone-moss);
  --btn-deep: color-mix(in oklab, var(--tone-moss) 78%, black);
}

.note-btn.is-solid,
.note-btn.is-raised,
.note-btn.is-shine {
  background: var(--btn, var(--accent));
  color: #fff;
}

.note-btn.is-solid:hover,
.note-btn.is-raised:hover,
.note-btn.is-shine:hover {
  background: var(--btn-deep, var(--accent-deep));
  color: #fff;
}

.note-btn.is-outline {
  background: var(--surface);
  border: 1.5px solid currentColor;
  color: var(--btn, var(--accent));
}

.note-btn.is-outline:hover {
  background: var(--btn, var(--accent));
  color: #fff;
}

.note-btn.is-more {
  color: var(--btn, var(--accent));
}

.note-btn.is-more:hover {
  color: var(--btn-deep, var(--accent-deep));
}

.note-btn.is-raised {
  overflow: visible;
  box-shadow: 0 3px 0 var(--btn-deep, var(--accent-deep));
}

.note-btn.is-raised:hover {
  box-shadow: 0 1px 0 var(--btn-deep, var(--accent-deep));
  transform: translateY(2px);
}

/* 光は常時流さない。上半分に紙の艶を一枚置き、触れた時だけ一度だけ走る。 */
.note-btn.is-shine {
  background-image: linear-gradient(180deg, oklch(100% 0 0 / 0.12), oklch(100% 0 0 / 0) 55%);
}

.note-btn.is-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, oklch(100% 0 0 / 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.note-btn.is-shine:hover::after {
  animation: note-shine 900ms var(--ease) 1;
}

@keyframes note-shine {
  to {
    transform: translateX(120%);
  }
}

.note-btn.is-more {
  min-width: 0;
  padding: var(--space-1) 0;
  background: transparent;
  overflow: visible;
  font-weight: 700;
}

.note-btn.is-more::after {
  content: " →";
}

.note-balloon {
  --face: 4rem;
  display: grid;
  grid-template-columns: var(--face) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  margin-block: var(--block-gap);
}

.note-balloon.is-right {
  grid-template-columns: minmax(0, 1fr) var(--face);
}

.note-balloon.is-right .note-balloon-face {
  order: 2;
}

.note-balloon.is-right .note-balloon-body {
  order: 1;
}

.note-balloon-face {
  width: var(--face);
  height: var(--face);
  border-radius: 50%;
  background: var(--hero-a);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.18), 0 1px 2px oklch(0% 0 0 / 0.08);
}

.note-balloon-face.is-ink {
  background: var(--hero-b);
}

.note-balloon-face.is-moss {
  background: var(--hero-c);
}

.note-balloon-name {
  margin: 0 0 var(--space-1);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: var(--lead-tight);
  color: var(--ink-faint);
}

/*
 * 吹き出し本体。地色・線色・線幅を変数に持ち、尾（::before）が同じ値を参照する。
 * 尾は 12px の正方形を 45° 回した菱形。左向きは左辺＋底辺、右向きは上辺＋右辺が外側になる。
 * 菱形の内側半分が本体の枡線に被さるので、尾の付け根で線が切れて見える。
 */
.note-balloon-body {
  --bubble-bg: var(--surface);
  --bubble-line: var(--line);
  --bubble-bw: 1px;
  --tail: 12px;
  position: relative;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bubble-bg);
  border: var(--bubble-bw) solid var(--bubble-line);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.note-balloon.is-fill .note-balloon-body {
  --bubble-bg: var(--accent-soft);
  --bubble-line: var(--accent-soft);
}

.note-balloon.is-think .note-balloon-body {
  --bubble-bw: 2px;
  --bubble-line: var(--accent);
}

/* 尾の中心は顔の中心（--face / 2）に合わせる。位置は本体のパディング端基準なので線幅を差し引く。 */
.note-balloon-body::before {
  content: "";
  position: absolute;
  top: calc(var(--face) / 2 - var(--tail) / 2 - 2 * var(--bubble-bw));
  left: calc(-1 * var(--tail) / 2 - 2 * var(--bubble-bw));
  width: var(--tail);
  height: var(--tail);
  background: var(--bubble-bg);
  border: var(--bubble-bw) solid var(--bubble-line);
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(45deg);
  pointer-events: none;
}

.note-balloon.is-right .note-balloon-body::before {
  left: auto;
  right: calc(-1 * var(--tail) / 2 - 2 * var(--bubble-bw));
  border-color: var(--bubble-line);
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.note-caption,
.note-box {
  --box: var(--accent);
  margin-block: var(--block-gap);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.note-caption-title,
.note-box-title {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: var(--lead-heading);
}

.note-caption-body,
.note-box-body {
  padding: var(--space-4);
}

.note-caption.is-fill .note-caption-title,
.note-box.is-lg .note-box-title {
  background: var(--box);
  color: #fff;
}

.note-caption.is-outline .note-caption-title {
  background: var(--surface);
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line);
}

.note-caption.is-stripe .note-caption-title {
  background: repeating-linear-gradient(-45deg, var(--accent-soft), var(--accent-soft) 8px, var(--surface) 8px, var(--surface) 16px);
  color: var(--accent-deep);
}

.note-caption.is-sticky {
  background: var(--paper-warm);
  border-color: var(--paper-warm-line);
}

.note-caption.is-sticky .note-caption-title {
  background: var(--paper-warm-deep);
  color: var(--ink-strong);
}

.note-caption.is-underline {
  border: 0;
  border-radius: 0;
}

.note-caption.is-underline .note-caption-title {
  background: transparent;
  border-bottom: 3px solid var(--accent);
  padding-left: 0;
}

.note-caption.is-leftbar {
  border: 0;
  border-left: 4px solid var(--accent);
  border-radius: 0;
}

.note-caption.is-leftbar .note-caption-title {
  background: transparent;
}

.note-caption.is-inverted .note-caption-title {
  background: var(--tone-ink);
  color: #fff;
}

.note-box-glyph {
  display: inline-grid;
  place-items: center;
  width: var(--space-5);
  height: var(--space-5);
  margin-right: var(--space-2);
  border-radius: 3px;
  background: oklch(100% 0 0 / 0.18);
  font-size: 0.6875rem;
  font-weight: 700;
}

/* 意味色。色相は保ち、配色の accent を少し混ぜて馴染ませる（tokens.css の --sem-*）。 */
.note-box.is-point,
.note-box.is-info {
  --box: var(--sem-info);
}

.note-box.is-alert,
.note-box.is-announce {
  --box: var(--sem-alert);
}

.note-box.is-good {
  --box: var(--sem-good);
}

.note-box.is-bad {
  --box: var(--sem-bad);
}

.note-box.is-question,
.note-box.is-pencil {
  --box: var(--sem-question);
}

.note-box.is-book {
  --box: var(--tone-ink);
}

.note-box.is-lg {
  border-color: color-mix(in oklab, var(--box) 30%, var(--line));
}

/* 小さい囲み。印は見出しの中にあるので、見出しを横並びにして本文の左を印の幅だけ空ける。 */
.note-box.is-sm {
  --glyph: 1.5rem;
  padding: var(--space-3) var(--space-4);
  border-color: color-mix(in oklab, var(--box) 24%, var(--line));
}

.note-box.is-sm .note-box-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--ink-strong);
  padding: 0;
}

.note-box.is-sm .note-box-body {
  padding: var(--space-1) 0 0 calc(var(--glyph) + var(--space-2));
}

.note-box.is-sm .note-box-glyph {
  flex: none;
  width: var(--glyph);
  height: var(--glyph);
  margin: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--box);
}

.note-simple,
.note-accent {
  margin-block: var(--block-gap);
  padding: var(--space-4);
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.note-simple.is-solid {
  border: 1px solid var(--line-strong);
}

.note-simple.is-dashed {
  border: 1px dashed var(--line-strong);
}

.note-simple.is-accent {
  border: 1px solid var(--accent);
}

.note-simple.is-accent-dash {
  border: 1px dashed var(--accent);
}

.note-simple.is-fill {
  background: var(--accent);
  color: #fff;
}

.note-simple.is-tint {
  background: var(--accent-soft);
}

.note-simple.is-gray {
  background: var(--surface-recessed);
}

.note-simple.is-stripe {
  background: repeating-linear-gradient(-45deg, var(--surface-recessed), var(--surface-recessed) 8px, var(--surface) 8px, var(--surface) 16px);
}

.note-accent.is-stripe {
  background: repeating-linear-gradient(-45deg, var(--accent-soft), var(--accent-soft) 10px, var(--surface) 10px, var(--surface) 20px);
}

.note-accent.is-grid {
  background-image:
    linear-gradient(color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent) 1px, transparent 1px);
  background-size: var(--space-4) var(--space-4);
}

.note-accent.is-fold {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow: 0 1px 0 var(--paper-warm-line);
}

.note-accent.is-fold::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border: var(--space-3) solid transparent;
  border-top-color: var(--paper-warm-deep);
  border-right-color: var(--paper-warm-deep);
}

.note-accent.is-stitch {
  border: 2px dashed var(--accent);
}

.note-accent.is-bracket,
.note-accent.is-bracket-lg {
  border: 0;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 2px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 2px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 2px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 16px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 2px 16px no-repeat;
}

.note-accent.is-bracket-lg {
  padding: var(--space-5);
  background-size: 24px 3px, 3px 24px, 24px 3px, 3px 24px, 24px 3px, 3px 24px, 24px 3px, 3px 24px;
}

.note-accent.is-dent {
  background: var(--surface-recessed);
  box-shadow: inset 0 1px 3px oklch(0% 0 0 / 0.07);
}

.note-accent.is-raise {
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.note-accent.is-bar {
  border-left: 6px solid var(--accent);
}

.note-accent.is-sticky {
  background: var(--paper-warm-deep);
  box-shadow: inset 0 -2px 0 oklch(0% 0 0 / 0.05);
}

.note-accent.is-speech,
.note-accent.is-speech-round {
  position: relative;
  margin-bottom: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.note-accent.is-speech-round {
  border-radius: 24px;
}

/* 下向きの尾。吹き出しと同じ菱形の作法（右辺＋底辺が外側）。 */
.note-accent.is-speech::after,
.note-accent.is-speech-round::after {
  content: "";
  position: absolute;
  left: var(--space-5);
  bottom: calc(-1 * var(--space-2));
  width: 12px;
  height: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(45deg);
  pointer-events: none;
}

.note-simple > :first-child,
.note-accent > :first-child,
.note-caption-body > :first-child,
.note-box-body > :first-child,
.note-balloon-body > :first-child,
.note-tabs-panel > :first-child,
.note-accordion-body > :first-child {
  margin-top: 0;
}

.note-simple > :last-child,
.note-accent > :last-child,
.note-caption-body > :last-child,
.note-box-body > :last-child,
.note-balloon-body > :last-child,
.note-tabs-panel > :last-child,
.note-accordion-body > :last-child {
  margin-bottom: 0;
}

.note-mark {
  padding: 0 0.1em;
}

.note-mark.is-lemon {
  background: linear-gradient(transparent 62%, var(--mark-lemon) 62%);
}

.note-mark.is-amber {
  background: linear-gradient(transparent 62%, var(--mark-amber) 62%);
}

.note-mark.is-moss {
  background: linear-gradient(transparent 62%, var(--mark-moss) 62%);
}

.note-mark.is-sky {
  background: linear-gradient(transparent 62%, var(--mark-sky) 62%);
}

.note-steps {
  margin-block: var(--block-gap);
  padding: 0;
  list-style: none;
  counter-reset: note-step;
}

.note-step {
  position: relative;
  display: grid;
  grid-template-columns: var(--space-6) minmax(0, 1fr);
  column-gap: var(--space-3);
  margin: 0;
  padding: 0 0 var(--space-5);
  border: 0;
  list-style: none;
  counter-increment: note-step;
}

.note-step:last-child {
  padding-bottom: 0;
}

.note-step > * {
  grid-column: 2;
  min-width: 0;
}

.note-step::before {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  width: var(--space-6);
  height: var(--space-6);
  margin: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  display: grid;
  place-items: center;
  box-sizing: border-box;
}

.note-step::after {
  content: "";
  grid-column: 1;
  grid-row: 1 / -1;
  justify-self: center;
  align-self: stretch;
  width: 2px;
  margin-top: var(--space-6);
  background: var(--accent-soft);
  position: relative;
  z-index: 0;
  pointer-events: none;
}

.note-step:last-child::after {
  content: none;
}

.note-steps.is-numbered .note-step::before {
  content: counter(note-step);
}

.note-steps.is-timeline .note-step::before {
  content: "";
  width: var(--space-3);
  height: var(--space-3);
  margin: var(--space-2) auto 0;
}

.note-steps.is-timeline .note-step::after {
  margin-top: var(--space-5);
}

.note-steps.is-check .note-step::before {
  content: "✓";
  background: var(--sem-good);
}

.note-steps.is-check .note-step::after {
  content: none;
}

.note-step h3 {
  margin: var(--space-1) 0 var(--space-2);
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--step-0);
  line-height: var(--lead-heading);
}

.note-step-body > :first-child {
  margin-top: 0;
}

.note-step-body > :last-child {
  margin-bottom: 0;
}

.note-accordion,
.note-restricted {
  margin-block: var(--space-3);
  background: var(--surface);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.note-accordion.is-box,
.note-restricted {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-accordion.is-underline {
  border-bottom: 1px solid var(--line);
}

.note-accordion summary,
.note-restricted summary {
  position: relative;
  cursor: pointer;
  padding: var(--space-3) var(--space-8) var(--space-3) var(--space-4);
  font-weight: 700;
  list-style: none;
}

/* 開閉の印は右端の細い山形。開くと反転する。 */
.note-accordion summary::after,
.note-restricted summary::after {
  content: "";
  position: absolute;
  right: var(--space-4);
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--move) var(--ease);
}

.note-accordion[open] summary::after,
.note-restricted[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.note-accordion summary::-webkit-details-marker,
.note-restricted summary::-webkit-details-marker {
  display: none;
}

.note-accordion .note-accordion-body,
.note-restricted .note-restricted-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: 1px solid var(--line);
}

.note-faq {
  margin-block: var(--block-gap);
  display: grid;
  gap: var(--space-4);
}

.note-faq-q,
.note-faq-a {
  display: grid;
  grid-template-columns: var(--space-6) minmax(0, 1fr);
  gap: var(--space-3);
  margin: var(--space-2) 0;
}

.note-faq.is-q .note-faq-q::before,
.note-faq.is-q .note-faq-a::before,
.note-faq.is-fill .note-faq-q::before,
.note-faq.is-fill .note-faq-a::before,
.note-faq.is-border .note-faq-q::before,
.note-faq.is-border .note-faq-a::before {
  width: var(--space-6);
  height: var(--space-6);
  border-radius: var(--space-1);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.note-faq.is-q .note-faq-q::before,
.note-faq.is-fill .note-faq-q::before,
.note-faq.is-border .note-faq-q::before {
  content: "Q";
  background: var(--accent);
}

.note-faq.is-q .note-faq-a::before,
.note-faq.is-fill .note-faq-a::before,
.note-faq.is-border .note-faq-a::before {
  content: "A";
  background: var(--sem-neutral);
}

.note-faq.is-fill .note-faq-item {
  background: var(--accent-soft);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
}

.note-faq.is-border .note-faq-item {
  border: 1px solid var(--line);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
}

.note-faq.is-simple .note-faq-q,
.note-faq.is-simple .note-faq-a {
  display: block;
}

.note-faq.is-simple .note-faq-q {
  font-weight: 700;
}

.note-tabs {
  margin-block: var(--block-gap);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.note-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: var(--surface-recessed);
}

.note-tabs-nav button {
  border: 0;
  background: transparent;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.note-tabs-nav button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink-strong);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.note-tabs-panel {
  padding: var(--space-4);
}

.note-banner,
.note-cardlink {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: var(--space-4);
  margin-block: var(--block-gap);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color var(--move) var(--ease);
}

.note-banner:hover,
.note-cardlink:hover {
  color: inherit;
  text-decoration: none;
  border-color: var(--line-accent);
}

.note-banner-art,
.note-cardlink-art {
  min-height: 4.5rem;
  border-radius: var(--radius);
}

.note-banner.is-overlay {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  min-height: 8.75rem;
}

.note-banner.is-overlay .note-banner-art {
  min-height: 8.75rem;
  border-radius: 0;
}

.note-banner.is-overlay .note-banner-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: var(--space-3) var(--space-4);
  max-height: 100%;
  overflow: hidden;
  background: linear-gradient(oklch(0% 0 0 / 0), oklch(12% 0.01 230 / 0.72));
  color: #fff;
}

.note-banner.is-overlay .note-banner-kicker,
.note-banner.is-overlay h3 {
  color: #fff;
}

.note-banner-kicker,
.note-cardlink-meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.note-banner h3,
.note-cardlink h3 {
  margin: var(--space-1) 0 var(--space-1);
  font-size: var(--step-0);
}

.note-dl {
  margin-block: var(--block-gap);
  border-top: 1px solid var(--line);
}

.note-dl div {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.note-dl.is-stack div {
  grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr);
}

.note-dl.is-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
}

.note-dl.is-row div {
  padding: var(--space-4);
  border: 0;
  border-right: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
}

.note-dl dt {
  font-weight: 700;
}

.note-boxmenu,
.note-linklist {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--block-gap);
  padding: 0;
  list-style: none;
}

.note-boxmenu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-boxmenu a,
.note-linklist a {
  display: block;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--move) var(--ease);
}

.note-boxmenu a:hover,
.note-linklist a:hover {
  border-color: var(--line-accent);
  text-decoration: none;
}

.note-boxmenu strong {
  display: block;
  margin-bottom: var(--space-1);
}

.note-cols {
  display: grid;
  gap: var(--space-4);
  margin-block: var(--block-gap);
}

.note-cols.is-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-cols.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note-cols.is-card > * {
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* 章の柱。中央の見出し語を、細い罫で左右から挟む。 */
.note-section {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-5);
  padding: 0;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  color: var(--ink-strong);
  border: 0;
}

.note-section::before,
.note-section::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.note-section:first-child {
  margin-top: 0;
}

.note-postlist {
  margin-block: var(--block-gap);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.note-postlist a {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-3);
  color: inherit;
  text-decoration: none;
}

.note-postlist.is-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.note-postlist .hero-art {
  min-height: 4rem;
}

.note-postlist p {
  margin: 0;
  font-weight: 700;
}

.note-fullwide {
  margin-block: var(--space-6);
  margin-inline: calc(-1 * var(--bleed-x));
  padding: var(--space-5) var(--bleed-x);
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.note-fullwide-inner > :first-child {
  margin-top: 0;
}

.note-fullwide-inner > :last-child {
  margin-bottom: 0;
}

.note-fullwide.is-kiln {
  background: var(--accent-soft);
}

.note-fullwide.is-ink {
  background: var(--tone-ink);
  color: #fff;
}

.note-fullwide.is-moss {
  background: var(--tone-moss-soft);
}

.note-fullwide.is-paper {
  background: var(--paper-warm);
}

.note-fullwide.is-wave {
  padding-bottom: var(--space-6);
  border-radius: 0 0 50% 50% / 0 0 var(--space-5) var(--space-5);
}

.note-fullwide.is-slant {
  clip-path: polygon(0 var(--space-2), 100% 0, 100% 100%, 0 calc(100% - var(--space-2)));
  padding-block: var(--space-6);
}

.note-review {
  margin-block: var(--block-gap);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  background: var(--surface);
}

.note-review-head h3 {
  margin: 0 0 var(--space-2);
}

.note-review-price {
  margin: var(--space-1) 0 0;
  font-weight: 700;
}

.note-review-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.note-stars {
  color: var(--sem-alert);
  letter-spacing: 0.08em;
}

.note-rss {
  margin-block: var(--block-gap);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.note-rss-source {
  margin: 0 0 var(--space-2);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.note-rss ul {
  margin: 0;
  padding-left: var(--space-5);
}

.note-rss time {
  margin-left: var(--space-2);
  color: var(--ink-faint);
  font-size: 0.875em;
}

.note-listgroup {
  margin-block: var(--block-gap);
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-8);
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.note-listgroup li {
  position: relative;
  margin: var(--space-2) 0;
  overflow-wrap: anywhere;
}

.note-listgroup.is-check li::before,
.note-listgroup.is-good li::before,
.note-listgroup.is-bad li::before {
  position: absolute;
  left: calc(-1 * var(--space-5));
  width: var(--space-5);
  text-align: center;
  font-weight: 700;
}

.note-listgroup.is-check li::before {
  content: "✓";
  color: var(--accent);
}

.note-listgroup.is-good li::before {
  content: "○";
  color: var(--sem-good);
}

.note-listgroup.is-bad li::before {
  content: "×";
  color: var(--sem-bad);
}

.note-listgroup.is-num {
  list-style: decimal;
  padding-left: var(--space-6);
}

.note-listgroup.is-under li {
  border-bottom: 1px dotted var(--line);
  padding-bottom: var(--space-1);
}

.note-listgroup.is-flat {
  border: 0;
  padding-left: var(--space-5);
  list-style: disc;
}

.note-quote {
  margin-block: var(--space-6);
  padding: var(--space-1) 0;
  border: 0;
  text-align: center;
}

.note-quote-body {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: var(--lead);
}

.note-quote footer {
  margin-top: var(--space-2);
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.note-text.is-xs {
  font-size: 0.75em;
}

.note-text.is-sm {
  font-size: 0.875em;
}

.note-text.is-lg {
  font-size: 1.125em;
}

.note-text.is-xl {
  font-size: 1.375em;
}

.note-text.is-note {
  color: var(--ink-faint);
  font-size: 0.8125em;
}

.note-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface-recessed);
  padding: 0.05em 0.35em;
  border-radius: 3px;
}

.note-code-kind {
  margin-right: var(--space-2);
  font-size: 0.75em;
  font-weight: 700;
  color: var(--accent-deep);
}

.note-table {
  margin-block: var(--block-gap);
  max-width: 100%;
  overflow-x: auto;
}

.note-table table {
  width: 100%;
  border-collapse: collapse;
}

.note-table th,
.note-table td,
.prose table th,
.prose table td {
  border: 1px solid var(--line);
  padding: var(--space-2) var(--space-3);
  text-align: left;
}

.note-table th,
.prose th {
  background: var(--accent-soft);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.note-table.is-stripe tbody tr:nth-child(even) {
  background: var(--surface-recessed);
}

.note-table.is-thcol td:first-child {
  font-weight: 700;
  background: var(--surface-recessed);
}

.note-table.is-scroll {
  overflow-x: auto;
}

.note-frame {
  margin-block: var(--block-gap);
}

.note-frame.is-line img,
.note-frame.is-line .hero-art {
  border: 1px solid var(--line);
}

.note-frame.is-shadow img,
.note-frame.is-shadow .hero-art {
  box-shadow: var(--shadow);
}

.note-frame.is-polaroid {
  padding: var(--space-3) var(--space-3) var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.note-frame figcaption {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  color: var(--ink-faint);
  text-align: center;
}

.note-br.is-pc {
  display: none;
}

.note-visible.is-sp {
  display: none;
}

/* .toc-fab の見た目は global.css。ここは目次へ飛んだ時のヘッダー分の余白だけ。 */
.contents-toc {
  scroll-margin-top: calc(var(--header-h) + var(--space-3));
}

.prose [id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-block: var(--block-gap);
}

.block-index {
  width: 100%;
  font-size: 0.9375rem;
}

@media (max-width: 960px) {
  .note-boxmenu,
  .note-cols.is-2,
  .note-cols.is-3,
  .note-dl.is-stack div,
  .note-dl.is-row,
  .note-banner:not(.is-overlay),
  .note-cardlink,
  .note-review-cols,
  .note-postlist.is-card {
    grid-template-columns: 1fr;
  }

  .note-balloon {
    --face: 3rem;
    gap: var(--space-3);
  }

  .note-balloon-body {
    padding: var(--space-3);
    font-size: 0.9375rem;
  }

  .note-fullwide {
    margin-inline: calc(-1 * var(--space-4));
    padding-inline: var(--space-4);
  }

  .note-visible.is-pc {
    display: none;
  }

  .note-visible.is-sp {
    display: block;
  }

  .note-br.is-sp {
    display: none;
  }

  .note-br.is-pc {
    display: inline;
  }
}
