/* 店主陪審 — 広報紙の募集欄の型。値の理由は design/DESIGN.md */
:root {
  --paper: #ffffff;
  --ink: #222222;
  --rule: #8c8c8c;
  --ami: #f0f0f0;
  --shu: #b3321b;
}
html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
  text-autospace: no-autospace; /* 画面のページ。和欧間のアキは空白に見えるので入れない（DESIGN.md） */
  line-break: strict;
  font-variant-numeric: tabular-nums;
}
body {
  margin: 0;
  background: var(--paper);
  border-top: 4px solid var(--ink);
}
.page {
  padding: 0 16px 48px;
}
.col {
  max-width: 34em;
}
.hashira {
  display: none;
}
a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}
.kicker {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.kicker .by {
  font-weight: 400;
  font-size: 13px;
}
h1 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 700;
  word-break: auto-phrase;
}
h2 {
  margin: 40px 0 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ink);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  word-break: auto-phrase;
}
h3 {
  word-break: auto-phrase;
  margin: 24px 0 6px;
  padding: 6px 10px;
  background: var(--ami);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 700;
}
p {
  margin: 0 0 12px;
  text-wrap: pretty; /* 最終行に1字だけ残る「い。」を防ぐ */
}
ul, ol {
  margin: 0 0 12px;
  padding-left: 1.4em;
}
ul {
  list-style-type: "・";
  padding-left: 1em;
}
li {
  margin: 2px 0;
}

/* 要点欄: 広報紙の白抜きの見出し語 */
.youten {
  display: grid;
  grid-template-columns: 4.6em 1fr;
  margin: 22px 0 36px;
  border-top: 4px solid var(--ink);
}
.youten dt, .youten dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}
.youten dt {
  padding-top: 12px;
}
.youten dt span {
  display: inline-block;
  width: 4.2em;
  padding: 1px 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.youten dd {
  padding-left: 12px;
}
.youten .go {
  color: var(--shu);
  font-weight: 700;
}

/* 日程表 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}
th, td {
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
thead th {
  background: var(--ami);
  font-weight: 700;
  font-size: 14px;
}
.nittei td:first-child {
  white-space: nowrap;
  font-weight: 700;
  width: 6em;
}

/* 申し込み・応募のボタン（朱はここだけ） */
.act {
  margin: 24px 0;
}
.btn {
  display: block;
  padding: 14px 16px;
  background: var(--shu);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 2px;
}

.btn.off {
  background: var(--ami);
  color: var(--ink);
}

footer {
  margin-top: 48px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.9;
}
footer p {
  margin: 0;
}
footer a {
  display: inline-block; /* リンクの語を行の途中で割らない */
}
footer .lab {
  display: inline-block;
  min-width: 6.5em;
  font-weight: 700;
}

.legal table th:first-child, .legal table td:first-child {
  width: 9em;
  font-weight: 700;
}

/* 公開前に埋める仮置き */
.todo {
  outline: 1px dashed var(--shu);
  outline-offset: 1px;
}

@media (min-width: 900px) {
  .page {
    display: grid;
    grid-template-columns: 11em minmax(0, 34em);
    column-gap: 48px;
    max-width: calc(45em + 48px);
    margin: 0 auto;
    padding: 0 32px 64px;
  }
  .hashira {
    display: block;
    position: sticky;
    top: 0;
    align-self: start;
    padding-top: 22px;
    font-size: 13px;
    line-height: 1.7;
  }
  .hashira .run {
    margin: 0 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ink);
    font-weight: 700;
    letter-spacing: 0.08em;
  }
  .toc {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .toc li {
    margin: 0 0 6px;
  }
  .toc a {
    text-decoration: none;
  }
  h1 {
    font-size: 28px;
  }
  .btn {
    display: inline-block;
    min-width: 18em;
  }
}
