/*
  クリップこよみ  site.css
  暦の紙と品番の札。並べ方の決まり: 置き方 → 大きさと余白 → 線と地 → 文字。
  余白は em（その場の文字の大きさが基準）、線は px、幅は文字数（em）で決める。外のフォント・画像は読まない。
*/
:root {
  --paper: #f3f6f4;       /* 地 */
  --sheet: #ffffff;       /* 欄の地 */
  --text: #17211d;        /* 文字（地との比 15.2） */
  --textMuted: #44514b;   /* 添えの文字（地との比 7.7） */
  --accent: #0b5e52;      /* 青緑・リンク（地との比 7.1） */
  --accentDeep: #073f37;
  --mark: #8a4b00;        /* 琥珀・目盛りと番号（地との比 6.3） */
  --rule: #9aa8a1;        /* 罫線（飾りだけ・文字に使わない） */
  --band: #e1ebe6;        /* 帯の地 */
  --measure: 40em;
  --sans: "Noto Sans JP", "BIZ UDPGothic", "Meiryo", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "BIZ UDGothic", monospace;
}

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

html {
  box-sizing: border-box;
  background: var(--paper);
  color: var(--text);
  font: 106.25%/1.8 var(--sans);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; line-break: strict; word-break: normal; overflow-wrap: break-word; }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.3em;
}
a:hover { color: var(--accentDeep); text-decoration-color: currentColor; }
a:focus-visible { outline: 0.15em solid var(--mark); outline-offset: 0.15em; }

/* 本文へ移る */
.skipLink { position: absolute; top: -5em; left: 0.75em; z-index: 5; padding: 0.4em 0.9em; background: var(--accentDeep); color: var(--sheet); }
.skipLink:focus { top: 0.75em; }

/* 年齢の帯（本文を隠さない） */
.ageNotice {
  margin: 0;
  padding: 0.45em 1em;
  border-bottom: 1px solid var(--rule);
  background: var(--band);
  color: var(--text);
  font-size: 0.95em; line-height: 1.6; text-align: left;
}

/* 頭＝暦の綴じ口 */
.siteHeader { border-bottom: 4px solid var(--accent); background: var(--sheet); }
.headerInner {
  display: flex; flex-flow: row wrap; align-items: baseline; column-gap: 1.2em; row-gap: 0.2em;
  max-width: var(--measure); margin-inline: auto; padding: 0.9em 1em 0.3em;
}
.siteTitle { margin: 0; font-size: 1.4em; font-weight: 800; letter-spacing: 0.04em; line-height: 1.35; }
.titleLink { display: inline-flex; align-items: center; column-gap: 0.35em; color: var(--text); text-decoration-line: none; }
.titleLink:hover { text-decoration-line: underline; }
.titleIcon { display: inline-flex; color: var(--mark); }
.siteLead { margin: 0; color: var(--textMuted); font-size: 0.95em; }

.siteNav { max-width: var(--measure); margin-inline: auto; padding: 0 1em 0.4em; }
.navList { display: flex; flex-flow: row wrap; column-gap: 1.4em; margin: 0; padding: 0; list-style: none; }
.navItem a { display: inline-block; padding-block: 0.45em; font-weight: 600; }

/* 広告の表記の札 */
.prNotice {
  max-width: calc(var(--measure) - 2em);
  margin: 0.8em 1em 0; padding: 0.3em 0.7em;
  border: 1px solid var(--rule); border-radius: 0.3em;
  background: var(--sheet); color: var(--textMuted);
  font-size: 0.95em;
}
@media (min-width: 42em) { .prNotice { margin-inline: auto; } }

/* 本紙 */
.mainSheet { max-width: var(--measure); margin-inline: auto; padding: 1em 1em 3.5em; }

/* 見出しの台＝暦の日付の欄 */
.pageHead {
  margin-block: 1em 2em; padding: 1.1em 1em 1em;
  border: 1px solid var(--rule); border-top-width: 0.4em; border-top-color: var(--mark);
  background: var(--sheet);
}
.pageKind {
  display: inline-block; margin: 0 0 0.3em; padding: 0.05em 0.6em;
  border-radius: 1em; background: var(--accent); color: var(--sheet);
  font-size: 0.9em; letter-spacing: 0.08em; line-height: 1.6;
}
.pageTitle { margin: 0; font-size: 1.65em; font-weight: 800; line-height: 1.4; }
.pageLead { margin: 0.5em 0 0; color: var(--accent); font-weight: 600; }
.pageSummary { margin: 0.5em 0 0; color: var(--textMuted); }
.updatedStamp { margin: 0.8em 0 0; color: var(--textMuted); font-family: var(--mono); font-size: 0.9em; }

/* 区切りと見出し＝左の琥珀の角＋下の細い罫 */
.sheetSection { margin-top: 2.6em; }
.sectionTitle {
  display: flex; align-items: center; column-gap: 0.5em;
  margin: 0 0 0.9em; padding-bottom: 0.35em;
  border-bottom: 2px dotted var(--rule);
  font-size: 1.3em; font-weight: 800; line-height: 1.5;
}
.sectionMark { flex: 0 0 auto; width: 0.6em; height: 1.1em; border-radius: 0.1em; background: var(--mark); }

/* 分かる事＝日めくりのコマ */
.featureGrid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.8em; column-gap: 0.8em; margin: 0; padding: 0; list-style: none; }
.featureCell { padding: 0.8em 1em; border: 1px solid var(--rule); border-top: 3px solid var(--accent); background: var(--sheet); }
.featureName { margin: 0; font-weight: 800; }
.featureText { margin: 0.3em 0 0; color: var(--textMuted); }

/* 案内の一覧＝年表の縦の目盛り（番号は CSS で振る） */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: entry; }
.timeline::before { position: absolute; top: 0.4em; bottom: 0.4em; left: 1.2em; border-left: 1px dashed var(--mark); content: ""; }
.timelineEntry { position: relative; min-height: 2.4em; padding: 0 0 1.2em 3.4em; counter-increment: entry; }
.timelineEntry::before {
  position: absolute; top: 0; left: 0;
  width: 2.4em; height: 2.4em;
  border: 1px solid var(--mark); border-radius: 50%;
  background: var(--paper); color: var(--mark);
  font-family: var(--mono); font-size: 1em; font-weight: 700; line-height: 2.4em; text-align: center;
  content: counter(entry, decimal-leading-zero);
}
.entryLink { display: inline-block; padding-top: 0.3em; font-weight: 700; }
.entryNote { margin: 0.25em 0 0; color: var(--textMuted); }
.timelineDense .timelineEntry { padding-bottom: 0.7em; }

/* 案内の目次 */
.pageToc { margin: 0 0 2em; padding: 0.8em 1em; border-left: 4px solid var(--accent); background: var(--band); }
.tocTitle { margin: 0 0 0.3em; font-weight: 800; }
.tocList { margin: 0; padding-left: 1.6em; }
.tocList li { padding-block: 0.1em; }

/* 本文 */
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 2.3em 0 0.8em; padding: 0.25em 0.6em;
  border-left: 0.3em solid var(--mark); background: var(--band);
  font-size: 1.3em; font-weight: 800; line-height: 1.5;
  scroll-margin-top: 1em;
}
.prose h3 { margin: 1.8em 0 0.5em; padding-bottom: 0.15em; border-bottom: 1px solid var(--rule); font-size: 1.1em; font-weight: 800; line-height: 1.5; }
.prose p { margin-block: 0 1.05em; }
.prose ul, .prose ol { margin-block: 0 1.05em; padding-inline-start: 1.6em; }
.prose li { margin-block: 0.25em; }
.prose strong { font-weight: 800; color: var(--accentDeep); }

.methodNote { margin-top: 1.3em; }

/* 運営者の札 */
.operatorCard { margin: 0; border: 1px solid var(--rule); background: var(--sheet); }
.cardKey { margin: 0; padding: 0.6em 1em 0; color: var(--mark); font-size: 0.95em; font-weight: 800; }
.cardValue { margin: 0; padding: 0.15em 1em 0.8em; }
.cardValue + .cardKey { border-top: 1px dashed var(--rule); }
.operatorNote { margin: 0.8em 0 0; color: var(--textMuted); }

/* 足＝暦の仕舞い */
.siteFooter { border-top: 1px solid var(--rule); background: var(--band); color: var(--text); }
.footerInner { max-width: var(--measure); margin-inline: auto; padding: 1.4em 1em 2.2em; font-size: 0.95em; }
.footerLinks { display: flex; flex-flow: column nowrap; row-gap: 0.1em; margin: 0 0 0.9em; padding: 0; list-style: none; }
.footerLinks a { display: inline-block; padding-block: 0.35em; font-weight: 600; }
.footerOperator { margin: 0 0 0.3em; }
.footerCopy { margin: 0; color: var(--textMuted); font-family: var(--mono); }

@media (min-width: 48em) {
  .featureGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pageTitle { font-size: 1.9em; }
  .footerLinks { flex-flow: row wrap; column-gap: 1.6em; }
}

@media print {
  .ageNotice, .siteNav, .skipLink { display: none; }
  html { background: #fff; }
}
