@charset "UTF-8";

/* ============================================================
   Wiki形式・ビジネス・1列
   先頭の「色・文字・形の設定」を書き換えると、全体の見た目をまとめて変えられます。
   ============================================================ */

/* ------------------------------------------------------------
   色・文字・形の設定（ビジネス）
   ここの値を書き換えると、サイト全体の見た目がまとめて変わります。
   ------------------------------------------------------------ */
:root {
  --color-bg: #ffffff;
  --color-surface: #f2f5f9;
  --color-surface-alt: #e6edf5;
  --color-card-bg: #ffffff;
  --color-border: #d6dee8;
  --color-text: #1e2a38;
  --color-muted: #55606e;
  --color-heading: #0f2f57;
  --color-link: #0b4f9c;
  --color-link-hover: #083a73;
  --color-button-bg: #0f3a6b;
  --color-button-text: #ffffff;
  --color-button-hover-bg: #0a2848;
  --color-header-bg: #0f2f57;
  --color-header-text: #ffffff;
  --color-header-muted: #c9d6e6;
  --color-header-border: #0f2f57;
  --color-nav-marker: #f0b54a;
  --color-footer-bg: #0c2440;
  --color-footer-text: #d5dfeb;
  --color-footer-link: #ffffff;
  --color-label-bg: #e6edf5;
  --color-label-text: #0f3a6b;
  --color-note-bg: #f2f5f9;
  --color-note-border: #0f3a6b;
  --color-warn-bg: #fdf1e8;
  --color-warn-border: #b5471a;
  --color-cta-bg: #b5471a;
  --color-cta-text: #ffffff;
  --color-focus: #f0b54a;
  --font-body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-heading: var(--font-body);
  --heading-letter-spacing: 0.04em;
  --radius: 2px;
  --radius-small: 2px;
  --radius-button: 2px;
  --header-border-bottom: 0;
  --header-shadow: none;
  --nav-font-size: 1rem;
  --nav-letter-spacing: 0.04em;
  --widget-border: 1px solid #d6dee8;
  --widget-border-top: 3px solid #0f3a6b;
  --shadow: 0 4px 16px rgb(15 47 87 / 14%);

  /* 横幅（ヘッダー・フッターの幅と、本文を含む段組みの幅） */
  --container-width: 60rem;
  --layout-width: 60rem;
}
/* ------------------------------------------------------------
   基本
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

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

a {
  color: var(--color-link);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-link-hover);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75em;
  color: var(--color-heading);
  font-family: var(--font-heading);
  line-height: 1.45;
  letter-spacing: var(--heading-letter-spacing);
}

h1 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
}

h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

h3 {
  font-size: 1.1875rem;
}

p,
ul,
ol,
dl,
figure,
blockquote,
table {
  margin: 0 0 1.25em;
}

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

input,
button,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container-width));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ------------------------------------------------------------
   ヘッダー
   ------------------------------------------------------------ */
.site-header {
  background: var(--color-header-bg);
  color: var(--color-header-text);
  border-bottom: var(--header-border-bottom);
  box-shadow: var(--header-shadow);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.site-branding {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--heading-letter-spacing);
}

.site-title a {
  color: var(--color-header-text);
  text-decoration: none;
}

.site-tagline {
  margin: 0.125rem 0 0;
  color: var(--color-header-muted);
  font-size: 0.8125rem;
}

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-header-text);
  font-size: var(--nav-font-size);
  font-weight: 700;
  letter-spacing: var(--nav-letter-spacing);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  border-bottom-color: var(--color-nav-marker);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.875rem;
  background: transparent;
  color: var(--color-header-text);
  border: 1px solid var(--color-header-text);
  border-radius: var(--radius-small);
  cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentcolor;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}

@media (max-width: 767px) {
  .site-header__inner {
    gap: 0.75rem 1rem;
  }

  .site-branding {
    flex: 1 1 0;
  }

  .site-title {
    font-size: 1.1875rem;
  }

  .js .nav-toggle {
    display: inline-flex;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
  }

  .js .global-nav {
    display: none;
    width: 100%;
  }

  .js .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .global-nav li + li {
    border-top: 1px solid var(--color-header-border);
  }

  .global-nav a {
    padding: 0.75rem 0.25rem;
  }
}

/* ------------------------------------------------------------
   パンくずリスト
   ------------------------------------------------------------ */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: 0.5rem;
  content: "/";
}

/* ------------------------------------------------------------
   ボタン・ラベル
   ------------------------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.875rem;
  padding: 0.625rem 1.5rem;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: 2px solid var(--color-button-bg);
  border-radius: var(--radius-button);
}

.button:hover {
  background: var(--color-button-hover-bg);
  color: var(--color-button-text);
  border-color: var(--color-button-hover-bg);
}

.button--outline {
  background: transparent;
  color: var(--color-link);
  border-color: currentcolor;
}

.button--outline:hover {
  background: var(--color-surface);
  color: var(--color-link-hover);
  border-color: currentcolor;
}

.label {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  background: var(--color-label-bg);
  color: var(--color-label-text);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  border-radius: var(--radius-small);
}

/* ------------------------------------------------------------
   見出し・本文の部品
   ------------------------------------------------------------ */
.section {
  margin-bottom: 3.5rem;
}

.lead {
  font-size: 1.0625rem;
}

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

.table-wrap {
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table caption {
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: left;
}

.table th,
.table td {
  padding: 0.625rem 0.875rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--color-border);
}

.table thead th,
.table tbody th {
  background: var(--color-surface);
  color: var(--color-heading);
}

.note {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-note-bg);
  border-left: 4px solid var(--color-note-border);
  border-radius: var(--radius-small);
}

.note__title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.note p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   サイドバーの部品
   ------------------------------------------------------------ */
.widget {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: var(--widget-border);
  border-top: var(--widget-border-top);
  border-radius: var(--radius);
}

.widget-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-list li + li {
  border-top: 1px solid var(--color-border);
}

.widget-list a {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  text-decoration: none;
}

.widget-list a:hover {
  text-decoration: underline;
}

.widget-list .count {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------
   フッター
   ------------------------------------------------------------ */
.site-footer {
  padding-block: 2.5rem;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--color-footer-link);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.copyright {
  margin: 0;
}

/* ------------------------------------------------------------
   ページの先頭へ戻るボタン
   ------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-button);
  box-shadow: var(--shadow);
  transition: opacity 0.2s, visibility 0.2s;
}

.back-to-top:hover {
  background: var(--color-button-hover-bg);
  color: var(--color-button-text);
}

.js .back-to-top:not(.is-visible) {
  visibility: hidden;
  opacity: 0;
}
/* ------------------------------------------------------------
   目次
   ------------------------------------------------------------ */
.toc {
  display: flow-root;
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  border: var(--widget-border);
  border-top: var(--widget-border-top);
  border-radius: var(--radius);
}

.toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

/* 本文の見出し（.article-body h2 など）の飾りを受けないよう、.toc の中に絞って書く */
.toc .toc__title {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  border: 0;
}

.toc__toggle {
  min-height: 2rem;
  padding: 0.125rem 0.75rem;
  background: transparent;
  color: var(--color-link);
  font-size: 0.8125rem;
  border: 1px solid currentcolor;
  border-radius: var(--radius-small);
  cursor: pointer;
}

.toc__list,
.toc__list ol {
  margin: 0;
  padding-left: 1.5em;
}

.toc__list a {
  text-decoration: none;
}

.toc__list a:hover,
.toc__list a.is-active {
  text-decoration: underline;
}

.toc__list a.is-active {
  font-weight: 700;
}

.toc--sticky {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}
/* ------------------------------------------------------------
   検索窓
   ------------------------------------------------------------ */
.site-search {
  display: flex;
  width: min(100%, 20rem);
  margin: 0;
}

.site-search input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-right: 0;
  border-radius: var(--radius-small) 0 0 var(--radius-small);
}

.site-search button {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  font-weight: 700;
  border: 1px solid var(--color-button-bg);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  cursor: pointer;
}

.site-search input::placeholder,
.menu-filter input::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

@media (max-width: 767px) {
  .site-search {
    order: 3;
    width: 100%;
  }

  .global-nav {
    order: 4;
  }
}

/* ------------------------------------------------------------
   メニュー（絞り込み検索つき）
   ------------------------------------------------------------ */
.menu-filter {
  display: none;
  margin-bottom: 1rem;
}

.js .menu-filter {
  display: block;
}

.menu-filter label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
}

.menu-filter input {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.375rem 0.75rem;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
}

.wiki-menu__group + .wiki-menu__group {
  margin-top: 1rem;
}

.wiki-menu__heading {
  margin: 0 0 0.25rem;
  color: var(--color-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.wiki-menu a[aria-current="page"] {
  font-weight: 700;
}

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

/* ------------------------------------------------------------
   メインページ
   ------------------------------------------------------------ */
.welcome {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--color-surface);
  border: var(--widget-border);
  border-top: var(--widget-border-top);
  border-radius: var(--radius);
}

.welcome__title {
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2rem);
}

.welcome__image {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.stats div {
  display: flex;
  gap: 0.5rem;
}

.stats dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-grid a {
  display: block;
  height: 100%;
  padding: 1rem 1.25rem;
  background: var(--color-card-bg);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.category-grid a:hover {
  box-shadow: var(--shadow);
}

.category-grid__name {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.category-grid__desc {
  display: block;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 1rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
}

.update-list time {
  min-width: 7.5em;
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------
   記事ページ
   ------------------------------------------------------------ */
.article-header {
  margin: 1.25rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.article-title {
  margin-bottom: 0.25rem;
}

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

.wiki-body h2 {
  display: flow-root;
  margin-top: 2.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--color-border);
}

.wiki-body h3 {
  margin-top: 1.75rem;
}

.infobox {
  width: 100%;
  margin: 0 0 1.5rem;
  background: var(--color-surface);
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
  border-collapse: collapse;
}

/* 本文の幅が 36rem 以上あるときだけ、情報ボックスを右に回り込ませる（画面の幅ではなく本文の幅で決める） */
.wiki-body {
  container-type: inline-size;
}

@container (min-width: 36rem) {
  .infobox {
    float: right;
    width: 18rem;
    margin: 0 0 1.5rem 1.5rem;
  }
}

.infobox caption {
  padding: 0.5rem;
  background: var(--color-button-bg);
  color: var(--color-button-text);
  font-weight: 700;
}

.infobox th,
.infobox td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--color-border);
}

.infobox th {
  width: 7em;
  color: var(--color-heading);
  white-space: nowrap;
}

.infobox .infobox__image {
  padding: 0;
}

.infobox__image img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.note--warn {
  background: var(--color-warn-bg);
  border-left-color: var(--color-warn-border);
}

.footnotes {
  margin-top: 2.5rem;
  font-size: 0.875rem;
}

.footnotes ol {
  margin: 0;
}

/* ------------------------------------------------------------
   並べ替えできる表
   ------------------------------------------------------------ */
.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.sort-button::after {
  color: var(--color-muted);
  font-size: 0.8em;
  content: "\2195";
  content: "\2195" / "";
}

th[aria-sort="ascending"] .sort-button::after {
  content: "\25B2";
  content: "\25B2" / "";
}

th[aria-sort="descending"] .sort-button::after {
  content: "\25BC";
  content: "\25BC" / "";
}
/* ------------------------------------------------------------
   レイアウト（1列）
   ------------------------------------------------------------ */
.layout {
  display: grid;
  gap: 2.5rem;
  width: min(100% - 2rem, var(--layout-width));
  margin-inline: auto;
  padding-block: 2.5rem 4rem;
}

.layout > * {
  min-width: 0;
}
/* ------------------------------------------------------------
   飾り（ビジネス）
   ------------------------------------------------------------ */
.section-title {
  margin-bottom: 1.5rem;
  padding: 0.25rem 0 0.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  border-left: 5px solid var(--color-button-bg);
}

.widget__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}
