/* アカミエ 公式サイト。ライトだけ・端末の日本語フォントだけ・script なし（CSP は default-src 'self'） */
:root {
  color-scheme: light;
  --paper: #f5f6f3; /* 紙 */
  --sheet: #ffffff; /* 台帳の面 */
  --ink: #1d2226; /* 墨 */
  --ink-sub: #555d63; /* 補助の文字（紙の上で 6:1 前後） */
  --verdigris: #22675c; /* 緑青。リンクと台帳の罫 */
  --rule: #c5cbc6; /* 細い罫 */
  --pending: #8a4b00; /* 公開の前に埋める箇所の印（紙の上で 5:1 以上） */
  --measure: 40rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  line-break: strict;
  text-align: start;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--verdigris);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* 本文へ飛ぶリンク（キーボードで最初に止まる所だけ見える） */
.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -10rem;
  padding: 0.5rem 1rem;
  background: var(--sheet);
  color: var(--ink);
}

.skip:focus-visible {
  inset-block-start: 0.5rem;
}

.wrap {
  inline-size: 100%;
  max-inline-size: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ヘッダー：文字だけの名前と、4ページへのリンク */
.site-header {
  border-block-end: 1px solid var(--rule);
  background: var(--sheet);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.875rem;
}

.wordmark {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-nav ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer a {
  display: inline-block;
  padding-block: 0.25rem;
  font-size: 0.9375rem;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-block-end: 2px solid var(--verdigris);
}

main {
  flex: 1;
  padding-block: clamp(2rem, 1rem + 4vw, 4rem);
}

/* 見出しと本文 */
h1,
h2,
h3 {
  line-height: 1.4;
  text-wrap: balance;
  font-feature-settings: "palt";
}

h1 {
  margin-block: 0 1.25rem;
  font-size: clamp(1.625rem, 1.1rem + 2.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

h2 {
  margin-block: 3rem 1rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  padding-block-end: 0.375rem;
  border-block-end: 1px solid var(--rule);
}

h3 {
  margin-block: 1.75rem 0.5rem;
  font-size: 1.0625rem;
}

p,
ul,
ol,
dl,
table {
  margin-block: 0 1rem;
}

p,
li,
dd {
  text-wrap: pretty;
}

ul,
ol {
  padding-inline-start: 1.5em;
}

li + li {
  margin-block-start: 0.25rem;
}

.lead {
  font-size: 1.125rem;
}

.note {
  color: var(--ink-sub);
  font-size: 0.9375rem;
}

/* 開発中であることの知らせ */
.status {
  margin-block: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-inline-start: 4px solid var(--verdigris);
  background: var(--sheet);
}

/* 台帳：記録するもの・しないもの（帳簿の二重罫） */
.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 0;
  margin-block: 1.5rem 1rem;
  background: var(--sheet);
  border-block: 4px double var(--verdigris);
}

.ledger > section {
  padding: 1rem 1.25rem 0.5rem;
}

.ledger > section + section {
  border-block-start: 1px solid var(--rule);
}

@media (min-width: 40rem) {
  .ledger > section + section {
    border-block-start: 0;
    border-inline-start: 1px solid var(--rule);
  }
}

.ledger h3 {
  margin-block: 0 0.5rem;
}

.ledger ul {
  padding-inline-start: 1.25em;
}

/* 項目と値の表（運営者情報など） */
.facts {
  display: grid;
  grid-template-columns: minmax(6.5rem, max-content) 1fr;
  gap: 0;
  background: var(--sheet);
  border-block: 4px double var(--verdigris);
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 0.75rem 1rem;
  border-block-end: 1px solid var(--rule);
}

.facts dt {
  font-weight: 700;
}

.facts dt:last-of-type,
.facts dd:last-of-type {
  border-block-end: 0;
}

@media (max-width: 30rem) {
  .facts {
    grid-template-columns: 1fr;
  }

  .facts dt {
    padding-block-end: 0;
    border-block-end: 0;
  }
}

/* 公開の前に埋める箇所の印 */
.pending {
  color: var(--pending);
  font-weight: 700;
}

/* プライバシーポリシーの表 */
.table-scroll {
  overflow-x: auto;
  margin-block: 0 1rem;
}

table {
  inline-size: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  font-size: 0.9375rem;
}

caption {
  text-align: start;
  font-weight: 700;
  padding-block-end: 0.5rem;
}

th,
td {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}

thead th {
  background: var(--paper);
}

tbody th {
  inline-size: 6.5em; /* 狭い幅で見出しが1文字ずつ折れないように */
}

.mail {
  font-size: 1.25rem;
  font-weight: 700;
}

/* フッター */
.site-footer {
  border-block-start: 1px solid var(--rule);
  background: var(--sheet);
  padding-block: 1.5rem 2rem;
  font-size: 0.9375rem;
}

.site-footer p {
  margin-block: 0.75rem 0;
  color: var(--ink-sub);
}

@media (forced-colors: active) {
  .ledger,
  .facts {
    border-color: CanvasText;
  }

  .site-nav a[aria-current="page"] {
    border-color: LinkText;
  }
}
