/*
 * 配色はダークに固定する（ライトモードは持たない）。
 * 黒地に、アクセント色を 3 つ使う。--yellow が主、--green / --green-2 が従、--red はヘッダーなどの差し色だけ。
 */
:root {
  --background: #0d1210;
  --background-2: #141b17;
  --surface: #1a2320;
  --border: #2a3630;
  --foreground: #f1f3f2;
  --muted: #a9b3ad;

  --yellow: #ffe100;
  --green: #0d9b4e;
  --green-2: #11c061;
  --red: #e5002b;

  /* アクセント色を薄く敷くとき（タグの地など） */
  --yellow-dim: #2a2600;
  --green-dim: #0f2a1b;

  --focus: var(--yellow);
  --content-width: 1024px;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Noto Sans JP", system-ui, "Hiragino Sans", sans-serif;
  line-height: 1.7;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.4;
}

/* ページの見出しは控えめな大きさにそろえる（記事のタイトルだけ PostDetail で大きくする） */
h1 {
  font-size: 1.5rem;
}

/* キーボード操作のフォーカスは黄のリングで統一する */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* styles/layout.module.css */
.layout_main {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* 「本文へ」のスキップリンク。フォーカスしたときだけ画面の左上に出す */
.layout_skipLink {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--foreground);
  transform: translateY(-100%);
}

.layout_skipLink:focus {
  transform: translateY(0);
}

/* styles/SiteHeader.module.css */
.SiteHeader_header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

/*
 * PC: 左に赤→黄→緑を 62° の斜めで並べ、右（420px から 640px）と下（30% から）へ黒に溶かす。
 * mask が効かない環境では 3 色が溶けずに切れるだけで、ナビは黒地の上にあるので読める。
 */
.SiteHeader_header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    62deg,
    var(--red) 0 190px,
    var(--yellow) 190px 392px,
    var(--green) 392px 560px,
    transparent 560px
  );
  -webkit-mask:
    linear-gradient(90deg, #000 0 420px, transparent 640px),
    linear-gradient(180deg, #000 0 30%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask:
    linear-gradient(90deg, #000 0 420px, transparent 640px),
    linear-gradient(180deg, #000 0 30%, transparent 100%);
  mask-composite: intersect;
}

/* スマホ用の帯。PC では出さない */
.SiteHeader_band {
  display: none;
}

.SiteHeader_inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 16px;
}

.SiteHeader_nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.SiteHeader_nav a {
  display: inline-block;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.SiteHeader_nav a:hover,
.SiteHeader_nav a:focus-visible {
  border-bottom-color: var(--muted);
}

/* 現在地は黄の下線 */
.SiteHeader_nav a[aria-current="page"] {
  border-bottom-color: var(--yellow);
}

@media (max-width: 640px) {
  .SiteHeader_header::before {
    display: none;
  }

  /* 上端に 14px の帯。3 色を幅いっぱいに並べ、右端だけ黒へ溶かす */
  .SiteHeader_band {
    display: block;
    height: 14px;
    background: linear-gradient(
      62deg,
      var(--red) 0 30%,
      var(--yellow) 30% 70%,
      var(--green) 70% 100%
    );
    -webkit-mask: linear-gradient(90deg, #000 0 84%, transparent 100%);
    mask: linear-gradient(90deg, #000 0 84%, transparent 100%);
  }

  .SiteHeader_inner {
    justify-content: flex-start;
    height: 44px;
  }

  .SiteHeader_nav {
    gap: 4px 16px;
    font-size: 0.875rem;
  }
}

/* styles/SiteFooter.module.css */
.SiteFooter_footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.SiteFooter_inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px;
}

.SiteFooter_inner a {
  color: var(--yellow);
  text-decoration: none;
}

.SiteFooter_inner a:hover {
  text-decoration: underline;
}

/* styles/PostList.module.css */
.PostList_heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.PostList_heading h1 {
  margin: 0;
  font-size: 1.5rem;
}

.PostList_count {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.PostList_lead {
  margin: 4px 0 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.PostList_list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 左に 3px の縦線。accent のカードだけ黄 */
.PostList_card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-2);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.15s;
}

.PostList_card.PostList_accent {
  border-left-color: var(--yellow);
}

.PostList_card:hover {
  border-top-color: var(--green-2);
  border-right-color: var(--green-2);
  border-bottom-color: var(--green-2);
}

/* カード全体でキーボードのフォーカスが見えるようにする */
.PostList_card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.PostList_title {
  margin: 0 0 4px;
  font-size: 1.0625rem;
}

.PostList_title a {
  color: var(--foreground);
  text-decoration: none;
}

/* 下書きの印。右肩のバッジと見分けるため、灰の破線枠にする */
.PostList_draft {
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px dashed var(--muted);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
  white-space: nowrap;
}

/* リンクの当たり判定をカード全体に広げる */
.PostList_title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* フォーカスリングはカード側（:focus-within）で出す */
.PostList_title a:focus-visible {
  outline: none;
}

.PostList_summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.PostList_chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.PostList_chips li {
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
}

.PostList_date {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

.PostList_empty {
  color: var(--muted);
}

@media (max-width: 640px) {
  .PostList_card {
    padding: 16px;
  }

  /* 右に日付を出すカードは、日付をタイトルの上に回し、本文の幅を確保する */
  .PostList_post {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .PostList_post .PostList_date {
    order: -1;
  }
}

/* styles/PostDetail.module.css */
/*
 * PC は本文（左）と目次（右、240px、sticky。ブログの記事ページの右の列とそろえる）の 2 列。目次は本文の高さいっぱいの列に置き、
 * 900px 以下では 1 列にして、目次を見出しと本文のあいだに入れる。
 */
.PostDetail_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "header"
    "content";
}

.PostDetail_layout.PostDetail_withToc {
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "header aside"
    "content aside";
  column-gap: 48px;
}

.PostDetail_header {
  grid-area: header;
  margin-bottom: 32px;
}

.PostDetail_aside {
  grid-area: aside;
}

.PostDetail_aside > * {
  position: sticky;
  top: 24px;
}

.PostDetail_content {
  grid-area: content;
  min-width: 0;
}

@media (max-width: 900px) {
  .PostDetail_layout.PostDetail_withToc {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "header"
      "aside"
      "content";
  }

  .PostDetail_aside {
    margin-bottom: 32px;
  }

  .PostDetail_aside > * {
    position: static;
  }
}

.PostDetail_breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0 0 8px;
  padding: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  list-style: none;
}

.PostDetail_breadcrumb li + li::before {
  content: "／";
  margin-right: 8px;
}

.PostDetail_breadcrumb a {
  color: var(--yellow);
  text-decoration: none;
}

.PostDetail_breadcrumb a:hover {
  text-decoration: underline;
}

.PostDetail_dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* 下書きの印。一覧と同じ灰の破線枠 */
.PostDetail_draft {
  padding: 0 8px;
  border: 1px dashed var(--muted);
  border-radius: 4px;
  font-weight: 600;
}

.PostDetail_title {
  margin: 4px 0 8px;
  font-size: 1.75rem;
}

.PostDetail_summary {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* 主ボタン（黄地に黒字）。1 ページに 1 つだけ */
.PostDetail_primaryButton {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--yellow);
  color: #111;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.PostDetail_primaryButton:hover {
  background: #fff04d;
}

.PostDetail_footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.PostDetail_back {
  color: var(--muted);
  text-decoration: none;
}

.PostDetail_back:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* 記事本文（Markdown から変換した HTML） */
.PostDetail_body {
  margin-bottom: 40px;
  /* 長い URL などでスマホ幅から横にはみ出さないようにする */
  overflow-wrap: anywhere;
}

.PostDetail_body > :first-child {
  margin-top: 0;
}

/* 本文の見出しは h2 から始まる（lib/markdown.ts で1段下げている） */
.PostDetail_body h2,
.PostDetail_body h3,
.PostDetail_body h4,
.PostDetail_body h5,
.PostDetail_body h6 {
  margin: 2em 0 0.75em;
}

.PostDetail_body h2 {
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
  font-size: 1.375rem;
  /* 目次から飛んだときに、見出しが画面の端に貼り付かないようにする */
  scroll-margin-top: 24px;
}

.PostDetail_body h3 {
  font-size: 1.25rem;
}

.PostDetail_body h4 {
  font-size: 1.125rem;
}

.PostDetail_body h5,
.PostDetail_body h6 {
  font-size: 1rem;
}

.PostDetail_body p,
.PostDetail_body ul,
.PostDetail_body ol,
.PostDetail_body blockquote,
.PostDetail_body pre,
.PostDetail_body table {
  margin: 0 0 1.25em;
}

.PostDetail_body ul,
.PostDetail_body ol {
  padding-left: 1.5em;
}

.PostDetail_body li + li {
  margin-top: 0.25em;
}

.PostDetail_body li > ul,
.PostDetail_body li > ol {
  margin: 0.25em 0 0;
}

.PostDetail_body blockquote {
  padding: 0 1em;
  border-left: 4px solid var(--border);
  color: var(--muted);
}

.PostDetail_body blockquote > :last-child {
  margin-bottom: 0;
}

.PostDetail_body a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.PostDetail_body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.PostDetail_body hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid var(--border);
}

.PostDetail_body code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.PostDetail_body pre {
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  line-height: 1.5;
}

/* コードブロックは折り返さず、横スクロールで読む */
.PostDetail_body pre code {
  padding: 0;
  background: none;
  font-size: 0.875rem;
  overflow-wrap: normal;
}

/* 列の多い表は、表だけを横スクロールさせてページ全体をはみ出させない */
.PostDetail_body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  /* 本文の overflow-wrap: anywhere を表には効かせない（列幅が縮んで単語の途中で折れるため） */
  overflow-wrap: normal;
}

.PostDetail_body th,
.PostDetail_body td {
  padding: 6px 12px;
  border: 1px solid var(--border);
}

.PostDetail_body th {
  background: var(--surface);
  font-weight: 600;
}

.PostDetail_body th[align="center"],
.PostDetail_body td[align="center"] {
  text-align: center;
}

.PostDetail_body th[align="right"],
.PostDetail_body td[align="right"] {
  text-align: right;
}

/* styles/TableOfContents.module.css */
/* PC: 本文の右に縦に並べ、スクロールしても残す（sticky は PostDetail.module.css の .aside 側） */
.TableOfContents_toc {
  padding-left: 16px;
  border-left: 1px solid var(--border);
  font-size: 0.8125rem;
}

.TableOfContents_heading {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.6875rem;
}

.TableOfContents_list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.TableOfContents_list a {
  display: block;
  padding: 2px 0;
  color: var(--muted);
  line-height: 1.5;
  text-decoration: none;
}

.TableOfContents_list a:hover {
  color: var(--foreground);
}

/* 現在地は黄 */
.TableOfContents_list a[aria-current] {
  color: var(--yellow);
}

/* 900px 以下: 本文の上に、横に並んだチップとして畳む */
@media (max-width: 900px) {
  .TableOfContents_toc {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }

  .TableOfContents_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .TableOfContents_list a {
    padding: 2px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--background-2);
  }

  .TableOfContents_list a[aria-current] {
    border-color: var(--yellow);
  }
}

/* styles/MarpDeck.module.css */
.MarpDeck_deck {
  margin-bottom: 48px;
}

/* スライドは 16:9 の SVG。横幅いっぱいに縮めて、縦に並べる */
.MarpDeck_deck div.marpit > svg {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* styles/HomeCard.module.css */
.HomeCard_card {
  position: relative;
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}

.HomeCard_card:hover {
  border-color: var(--green-2);
  transform: translateY(-2px);
}

/* 上辺の色（カードの種類） */
.HomeCard_yellow {
  border-top: 3px solid var(--yellow);
}

.HomeCard_green {
  border-top: 3px solid var(--green-2);
}

.HomeCard_red {
  border-top: 3px solid var(--red);
}

.HomeCard_label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.HomeCard_heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  margin: 0 0 8px;
}

.HomeCard_title {
  margin: 0;
  font-size: 1.0625rem;
}

.HomeCard_titleNote {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.HomeCard_body {
  /* 右下の矢印と重ならない余白 */
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.HomeCard_body p {
  margin: 0;
}

.HomeCard_arrow {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: var(--yellow);
  font-size: 0.875rem;
  font-weight: 500;
}

/* styles/SkillTags.module.css */
.SkillTags_wrapper {
  display: grid;
  gap: 8px;
}

.SkillTags_tags,
.SkillTags_legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.SkillTags_tag {
  padding: 2px 10px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  background: var(--tag-background);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* 区分ごとの色。実務は緑、個人開発は黄、学習中は灰 */
.SkillTags_work {
  --tag-border: var(--green-2);
  --tag-background: var(--green-dim);
}

.SkillTags_personal {
  --tag-border: var(--yellow);
  --tag-background: var(--yellow-dim);
}

.SkillTags_learning {
  --tag-border: var(--border);
  --tag-background: var(--surface);
}

.SkillTags_legend {
  gap: 4px 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.SkillTags_legendItem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.SkillTags_swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--tag-border);
  border-radius: 2px;
  background: var(--tag-border);
}

.SkillTags_learning.SkillTags_swatch {
  background: transparent;
  border-color: var(--muted);
}

/* 色が見えない環境のために、区分を読み上げ用のテキストとして残す */
.SkillTags_visuallyHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* styles/WorkBadge.module.css */
.WorkBadge_badge {
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

/* PLAY は黄地に黒字、LIVE は緑枠、OSS は灰枠 */
.WorkBadge_play {
  background: var(--yellow);
  color: #111;
}

.WorkBadge_live {
  border: 1px solid var(--green-2);
  color: #9cf0bd;
}

.WorkBadge_oss {
  border: 1px solid var(--border);
  color: var(--muted);
}

/* styles/Game2048.module.css */
/* 色は globals.css の変数だけから作る（ダーク固定、黄・緑・緑2 の 3 色） */
.Game2048_loading {
  color: var(--muted);
}

.Game2048_game {
  max-width: 440px;
  container-type: inline-size;
}

.Game2048_status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 16px;
}

.Game2048_stat {
  margin: 0;
}

.Game2048_statLabel {
  color: var(--muted);
  font-size: 0.875rem;
}

.Game2048_statValue {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/*
 * 黄地に黒字（WorkBadge の PLAY と同じ組み合わせ）。.button は操作の行の右端に置く大きいボタン、
 * .buttonInline は行の中に置くボタン。配色と大きさは共通で、違いは右寄せと disabled の見た目だけ
 */
.Game2048_button,
.Game2048_buttonInline {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.Game2048_button {
  margin-left: auto;
}

.Game2048_button:hover,
.Game2048_buttonInline:hover:not(:disabled) {
  background: color-mix(in srgb, var(--yellow) 85%, white);
}

/* 狭い幅では新しいゲームを常に次の行へ置く。得点の桁が増えて途中で折り返し、盤面が下がるのを防ぐ */
@container (max-width: 420px) {
  .Game2048_button {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* 盤面の上のスワイプでページをスクロールさせない（盤面の外はこれまでどおりスクロールできる） */
.Game2048_board {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5cqw;
  padding: 2.5cqw;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background-2);
  aspect-ratio: 1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.Game2048_cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--background);
  border: 1px solid var(--border);
  overflow: hidden;
}

.Game2048_tile {
  --tile-bg: var(--surface);
  --tile-fg: var(--foreground);
  border-color: transparent;
  background: var(--tile-bg);
  color: var(--tile-fg);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* 桁が増えたら文字を小さくして、タイルからはみ出さないようにする */
.Game2048_digits2 {
  font-size: 9cqw;
}

.Game2048_digits3 {
  font-size: 7.5cqw;
}

.Game2048_digits4 {
  font-size: 6cqw;
}

.Game2048_digits5 {
  font-size: 4.5cqw;
}

/* 緑の薄い色から、緑、緑2、黄へ。色だけに頼らず、タイルには数字を出している */
.Game2048_tile[data-level="1"] {
  --tile-bg: color-mix(in srgb, var(--green) 14%, var(--surface));
}

.Game2048_tile[data-level="2"] {
  --tile-bg: color-mix(in srgb, var(--green) 30%, var(--surface));
}

.Game2048_tile[data-level="3"] {
  --tile-bg: color-mix(in srgb, var(--green) 55%, var(--surface));
}

.Game2048_tile[data-level="4"] {
  --tile-bg: var(--green);
  --tile-fg: var(--background);
}

.Game2048_tile[data-level="5"] {
  --tile-bg: color-mix(in srgb, var(--green-2) 60%, var(--green));
  --tile-fg: var(--background);
}

.Game2048_tile[data-level="6"] {
  --tile-bg: var(--green-2);
  --tile-fg: var(--background);
}

.Game2048_tile[data-level="7"] {
  --tile-bg: color-mix(in srgb, var(--yellow) 35%, var(--green-2));
  --tile-fg: var(--background);
}

.Game2048_tile[data-level="8"] {
  --tile-bg: color-mix(in srgb, var(--yellow) 55%, var(--green-2));
  --tile-fg: var(--background);
}

.Game2048_tile[data-level="9"] {
  --tile-bg: color-mix(in srgb, var(--yellow) 78%, var(--green-2));
  --tile-fg: var(--background);
}

.Game2048_tile[data-level="10"],
.Game2048_tile[data-level="11"],
.Game2048_tile[data-level="12"] {
  --tile-bg: var(--yellow);
  --tile-fg: var(--background);
}

.Game2048_tile[data-level="11"],
.Game2048_tile[data-level="12"] {
  box-shadow: inset 0 0 0 3px var(--background);
}

.Game2048_over {
  min-height: 1.7em;
  margin: 16px 0 0;
  font-weight: 700;
  color: var(--yellow);
}

.Game2048_hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ランキングへの登録、結果、名前の変更 */
.Game2048_panel,
.Game2048_ranking {
  margin: 24px 0 0;
}

.Game2048_panelTitle {
  margin: 0 0 8px;
  font-size: 1.125rem;
}

.Game2048_form {
  margin: 0;
}

.Game2048_label {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.Game2048_formRow {
  display: flex;
  gap: 8px;
}

.Game2048_input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background);
  color: var(--foreground);
  font: inherit;
}

.Game2048_buttonInline:disabled {
  opacity: 0.6;
  cursor: default;
}

.Game2048_quitRow {
  margin: 12px 0 0;
}

.Game2048_result {
  margin: 0 0 12px;
  font-weight: 700;
}

/*
 * プレイヤー名の表示（結果の文とランキングの表）。名前は <bdi> で囲んでいる。
 * 結合記号（Mn、Me）はサーバー（PlayerNameValidator）とクライアント（lib/game-2048/player-name.ts）の検査で断っているので、
 * 字の上下に記号を積み重ねた名前（Zalgo）は来ない前提で、縦のはみ出しは扱わない。扱うのは横の幅：長い名前と幅の広い字（U+FDFD など）。
 */

/* 結果の文の名前：1 行に収め、文の幅を超える分は「…」で省略する（「さんのスコアは」以降は次の行へ回る） */
.Game2048_resultName {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.Game2048_error {
  min-height: 1.5em;
  margin: 8px 0 0;
  color: var(--yellow);
}

.Game2048_notice {
  margin: 8px 0 0;
  color: var(--muted);
}

/* 列の幅を見出しの行で決め（fixed）、名前の中身（幅の広い字など）で表が親の幅を超えて広がらないようにする */
.Game2048_table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

/* 名前の列は、残りの幅を使う。数の列は、スコア 7 桁、最大のタイル 6 桁が収まる幅 */
.Game2048_rankCol {
  width: 3.5em;
}

.Game2048_scoreCol {
  width: 6em;
}

.Game2048_tileCol {
  width: 5.5em;
}

.Game2048_table th,
.Game2048_table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.Game2048_table th {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.Game2048_table .Game2048_num {
  text-align: right;
}

.Game2048_nameCell {
  overflow-wrap: anywhere;
}

/* 表の名前：どこでも折り返して 2 行まで出し、超える分は「…」で省略する。1 字で列の幅を超える字は、はみ出す分を隠す */
.Game2048_name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 自分の行：色だけに頼らず、太字と「（あなた）」の文字でも示す */
.Game2048_ownRow {
  background: color-mix(in srgb, var(--yellow) 18%, transparent);
  font-weight: 700;
}

.Game2048_ownMark {
  margin-left: 4px;
  font-size: 0.875rem;
}

/* styles/StellasoraGuide.module.css */
/*
 * 色は globals.css の変数から作る。性格の 3 軸だけは、ゲームの選択肢のカードの色（直感＝橙、分析＝青、混沌＝紫）に
 * 合わせた専用の色にする（サイトの 3 色に置き換えると、ゲームの画面と見比べたときに軸を取り違える）
 */
.StellasoraGuide_guide {
  --intuition: #f0a93b;
  --analysis: #6fa4ff;
  --chaos: #c08ef0;
  display: grid;
  gap: 20px;
}

.StellasoraGuide_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}

.StellasoraGuide_tab {
  font: inherit;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 8px 14px;
  cursor: pointer;
}

.StellasoraGuide_tab[aria-selected="true"] {
  color: var(--foreground);
  border-bottom-color: var(--yellow);
}

.StellasoraGuide_panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.StellasoraGuide_muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.StellasoraGuide_note {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

.StellasoraGuide_intuition {
  color: var(--intuition);
}

.StellasoraGuide_analysis {
  color: var(--analysis);
}

.StellasoraGuide_chaos {
  color: var(--chaos);
}

.StellasoraGuide_dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.StellasoraGuide_axis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-width: 3.4em;
  font-size: 0.875rem;
}

.StellasoraGuide_toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.StellasoraGuide_chip {
  font: inherit;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.StellasoraGuide_chip[aria-pressed="true"] {
  border-color: currentColor;
  background: var(--background-2);
}

.StellasoraGuide_tableWrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background-2);
}

.StellasoraGuide_table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.StellasoraGuide_table th,
.StellasoraGuide_table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.StellasoraGuide_table th {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.StellasoraGuide_table tr:last-child td {
  border-bottom: 0;
}

.StellasoraGuide_where {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.StellasoraGuide_episodeTitle {
  display: block;
  max-width: 14em;
  white-space: normal;
  color: var(--muted);
  font-size: 0.8125rem;
}

.StellasoraGuide_options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.StellasoraGuide_options li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.StellasoraGuide_dim {
  opacity: 0.35;
}

.StellasoraGuide_columns {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.StellasoraGuide_index {
  display: grid;
  gap: 2px;
  position: sticky;
  top: 12px;
}

.StellasoraGuide_indexItem {
  font: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: 4em 1fr;
  gap: 4px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.StellasoraGuide_indexItem[aria-current="true"] {
  background: var(--surface);
  color: var(--foreground);
}

.StellasoraGuide_indexNo {
  font-size: 0.8125rem;
  padding-top: 2px;
}

.StellasoraGuide_chapter {
  min-width: 0;
}

.StellasoraGuide_eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.StellasoraGuide_chapterTitle {
  margin: 0 0 4px;
  font-size: 1.375rem;
  text-wrap: balance;
}

.StellasoraGuide_stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.StellasoraGuide_episodes {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.StellasoraGuide_episode {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
}

.StellasoraGuide_episodeNo {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--yellow);
}

.StellasoraGuide_battle {
  color: var(--green-2);
}

.StellasoraGuide_episodeBody {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.StellasoraGuide_episodeName {
  font-weight: 700;
}

.StellasoraGuide_cast {
  color: var(--muted);
  font-size: 0.875rem;
}

/* 章と話の一覧の中の性格の選択肢（性格の選択肢の表と同じ並びを、少し小さく） */
.StellasoraGuide_episodeOptions {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--background-2);
  font-size: 0.875rem;
}

.StellasoraGuide_branch {
  font-size: 0.8125rem;
  color: var(--green-2);
}

.StellasoraGuide_search {
  display: grid;
  gap: 4px;
  max-width: 360px;
}

.StellasoraGuide_search input {
  font: inherit;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
}

.StellasoraGuide_names {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.StellasoraGuide_name {
  font: inherit;
  font-size: 0.875rem;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--foreground);
  cursor: pointer;
}

.StellasoraGuide_name[aria-pressed="true"] {
  border-color: var(--yellow);
  color: var(--yellow);
}

.StellasoraGuide_nameCount {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.StellasoraGuide_result {
  display: grid;
  gap: 10px;
}

.StellasoraGuide_resultTitle {
  margin: 0;
  font-size: 1.25rem;
}

.StellasoraGuide_group {
  display: grid;
  gap: 4px;
}

.StellasoraGuide_group p {
  margin: 0;
}

.StellasoraGuide_groupList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.StellasoraGuide_groupList li {
  font-size: 0.875rem;
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--background-2);
}

.StellasoraGuide_groupNo {
  margin-right: 6px;
  color: var(--yellow);
  font-weight: 700;
}

@media (max-width: 760px) {
  .StellasoraGuide_columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .StellasoraGuide_index {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }

  .StellasoraGuide_indexItem {
    white-space: nowrap;
    grid-template-columns: auto auto;
  }
}

/* styles/pages/HomePage.module.css */
/* 6 列のベント型。プロフィールと作品が上段 3 列ずつ、下段は 2 列ずつ */
.HomePage_grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: start;
}

.HomePage_profile,
.HomePage_works {
  grid-column: span 3;
}

.HomePage_grid > :nth-child(n + 3) {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .HomePage_grid {
    grid-template-columns: 1fr;
  }

  .HomePage_profile,
  .HomePage_works,
  .HomePage_grid > :nth-child(n + 3) {
    grid-column: span 1;
  }
}

/* ブログの新着。フィードから取れたときだけ出す、下段の全幅の区画（見た目は HomeCard にそろえる） */
.HomePage_latest {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.HomePage_grid > .HomePage_latest {
  grid-column: 1 / -1;
  border-top: 3px solid var(--green-2);
}

.HomePage_latestLabel {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.HomePage_latestTitle {
  margin: 0 0 12px;
  font-size: 1.0625rem;
}

/* プロフィール */
.HomePage_mark {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 8px;
  object-fit: cover;
}

/* HomeCard の .body p（margin: 0）より強くする */
.HomePage_profile .HomePage_intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* 作品のリスト */
.HomePage_workList {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.HomePage_workList li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.HomePage_workList li:first-child {
  padding-top: 0;
  border-top: 0;
}

.HomePage_workList b {
  display: block;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
}

.HomePage_workList small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

/* ブログの新着のリスト */
.HomePage_postList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.HomePage_postList li {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--green-2);
  line-height: 1.5;
}

.HomePage_postList li:first-child {
  margin-top: 0;
}

.HomePage_postList a {
  display: block;
  color: var(--foreground);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.HomePage_postList a:hover {
  text-decoration: underline;
}

.HomePage_postList time {
  color: var(--muted);
  font-size: 0.75rem;
}

/* GitHub のリスト */
.HomePage_repoList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.HomePage_repoList li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.HomePage_repoList li:last-child {
  border-bottom: 0;
}

.HomePage_repoList span {
  color: var(--foreground);
}

.HomePage_repoList em {
  margin-left: 6px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-style: normal;
}

.HomePage_repoList small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* styles/pages/AboutPage.module.css */
.AboutPage_heading {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.AboutPage_attributes {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.AboutPage_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.AboutPage_full {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .AboutPage_grid {
    grid-template-columns: 1fr;
  }

  .AboutPage_full {
    grid-column: span 1;
  }
}

.AboutPage_card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.AboutPage_card h2 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
}

/* SkillTags の中の ul / li には効かせない（直下の要素だけ） */
.AboutPage_card > p,
.AboutPage_card > ul > li {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.AboutPage_card > ul {
  margin: 0;
  padding-left: 1.2em;
}

.AboutPage_mark {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 8px;
  object-fit: cover;
}

.AboutPage_full p {
  margin-bottom: 16px;
}

.AboutPage_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 18px;
  border: 1.5px solid var(--green-2);
  border-radius: 8px;
  color: #e9ffe9;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.AboutPage_button:hover {
  background: var(--green-dim);
}

/* styles/pages/AboutSitePage.module.css */
/*
 * 文章だけのページの本文の様式。見出しの下線、節の間隔、コード片、リンク。
 * /about/api/、/privacy/ も同じ値を持つ（CSS を 1 本に結合する方式では composes を使えないため。変えるときは 3 つとも直す）
 */
.AboutSitePage_lead {
  margin: 0 0 40px;
  color: var(--muted);
}

.AboutSitePage_section + .AboutSitePage_section {
  margin-top: 48px;
}

.AboutSitePage_section h2 {
  margin: 0 0 16px;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
  font-size: 1.375rem;
}

.AboutSitePage_section p,
.AboutSitePage_section ul {
  margin: 0 0 1em;
}

.AboutSitePage_section ul {
  padding-left: 1.5em;
}

.AboutSitePage_section li + li {
  margin-top: 0.25em;
}

.AboutSitePage_section code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.AboutSitePage_section a {
  color: var(--yellow);
  text-underline-offset: 0.2em;
}

.AboutSitePage_section h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.125rem;
}

/*
 * 構成図（draw.io の SVG）。本文の幅に収めると図の文字が小さくなるので、本文の幅を越えて
 * 画面の幅（左右に 16px ずつ残し、最大 1440px）まで広げる。狭い画面では画面の幅に収まる
 */
.AboutSitePage_diagram {
  position: relative;
  left: 50%;
  width: min(calc(100vw - 32px), 1440px);
  margin: 0 0 1em;
  padding: 12px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

/* 技術の一覧。項目名と内容の 2 列 */
.AboutSitePage_stack {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 0 0 1em;
}

.AboutSitePage_stack dt {
  font-weight: 600;
}

.AboutSitePage_stack dd {
  margin: 0;
}

@media (max-width: 480px) {
  .AboutSitePage_stack {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }

  .AboutSitePage_stack dd {
    margin-bottom: 8px;
  }
}

/* styles/pages/AboutApiPage.module.css */
/*
 * 文章だけのページの本文の様式。見出しの下線、節の間隔、コード片、リンク。
 * /about/site/、/privacy/ も同じ値を持つ（CSS を 1 本に結合する方式では composes を使えないため。変えるときは 3 つとも直す）
 */
.AboutApiPage_lead {
  margin: 0 0 40px;
  color: var(--muted);
}

.AboutApiPage_section + .AboutApiPage_section {
  margin-top: 48px;
}

.AboutApiPage_section h2 {
  margin: 0 0 16px;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
  font-size: 1.375rem;
}

.AboutApiPage_section p,
.AboutApiPage_section ul {
  margin: 0 0 1em;
}

.AboutApiPage_section ul {
  padding-left: 1.5em;
}

.AboutApiPage_section li + li {
  margin-top: 0.25em;
}

.AboutApiPage_section code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.AboutApiPage_section a {
  color: var(--yellow);
  text-underline-offset: 0.2em;
}

/* 1 つの操作、1 つの型 */
.AboutApiPage_operation {
  margin: 32px 0 0;
}

.AboutApiPage_operation h3 {
  margin: 0 0 0.5em;
  font-size: 1.125rem;
  /* 長いパスでスマホ幅から横にはみ出さないようにする */
  overflow-wrap: anywhere;
  /* ページの中のリンクで飛んだときに、見出しが画面の端に貼り付かないようにする */
  scroll-margin-top: 24px;
}

.AboutApiPage_method {
  margin-right: 0.25em;
  color: var(--yellow);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

/* 列の多い表は、表だけを横スクロールさせてページ全体をはみ出させない */
.AboutApiPage_tableWrap {
  margin: 0 0 1em;
  overflow-x: auto;
}

.AboutApiPage_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.AboutApiPage_table caption {
  padding-bottom: 4px;
  color: var(--muted);
  text-align: left;
}

.AboutApiPage_table th,
.AboutApiPage_table td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.AboutApiPage_table thead th {
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
}

.AboutApiPage_table tbody th {
  font-weight: 400;
  white-space: nowrap;
}

/* styles/pages/ContactPage.module.css */
.ContactPage_lead {
  color: var(--muted);
}

.ContactPage_link {
  color: var(--yellow);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

/* styles/pages/PrivacyPage.module.css */
/*
 * 文章だけのページの本文の様式。見出しの下線、節の間隔、コード片、リンク。
 * /about/api/、/about/site/ も同じ値を持つ（CSS を 1 本に結合する方式では composes を使えないため。変えるときは 3 つとも直す）
 */
.PrivacyPage_lead {
  margin: 0 0 40px;
  color: var(--muted);
}

.PrivacyPage_section + .PrivacyPage_section {
  margin-top: 48px;
}

.PrivacyPage_section h2 {
  margin: 0 0 16px;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
  font-size: 1.375rem;
}

.PrivacyPage_section p,
.PrivacyPage_section ul {
  margin: 0 0 1em;
}

.PrivacyPage_section ul {
  padding-left: 1.5em;
}

.PrivacyPage_section li + li {
  margin-top: 0.25em;
}

.PrivacyPage_section code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

.PrivacyPage_section a {
  color: var(--yellow);
  text-underline-offset: 0.2em;
}

/* 節の中の小見出し（/about/site/ と同じ大きさ） */
.PrivacyPage_section h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.125rem;
}

/* 狭い幅でヘッダー名などの長い文字列がはみ出さないよう折り返す */
.PrivacyPage_section code {
  overflow-wrap: anywhere;
}
