/* 祝日カレンダー */
.hc__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--az-space-3); }
.hc__year { display: flex; align-items: center; gap: var(--az-space-1); }
.hc__year .az-select { font-size: var(--az-text-lg); font-weight: var(--az-font-weight-bold); }
.hc__actions { display: flex; flex-wrap: wrap; gap: var(--az-space-2); }
.hc__opts { margin-top: var(--az-space-4); border: 1px solid var(--az-color-border-subtle); border-radius: var(--az-radius-md); }
.hc__opts > summary { padding: var(--az-space-3) var(--az-space-4); cursor: pointer; font-size: var(--az-text-sm); font-weight: var(--az-font-weight-medium); color: var(--az-color-text-default); }
.hc__opts-body { display: grid; gap: var(--az-space-4); padding: 0 var(--az-space-4) var(--az-space-4); }
.hc__switches { display: flex; flex-wrap: wrap; gap: var(--az-space-3) var(--az-space-5); }
.hc__warn { margin-top: var(--az-space-3); white-space: normal; }
.hc__print-title { display: none; }

.hc__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--az-space-2); margin-top: var(--az-space-4); }
.hc__stats .az-stat { padding: var(--az-space-3) var(--az-space-4); }
.hc__stats .az-stat__value { font-variant-numeric: tabular-nums; }

.hc__cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--az-space-4); margin-top: var(--az-space-5); }
.hc__month { min-width: 0; padding: var(--az-space-3); border: 1px solid var(--az-color-border-subtle); border-radius: var(--az-radius-md); background: var(--az-color-bg-surface); break-inside: avoid; }
.hc__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.hc__mhead { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--az-space-1) var(--az-space-2); }
.hc__mhead span { font-size: var(--az-text-lg); font-weight: var(--az-font-weight-bold); color: var(--az-color-text-strong); }
.hc__mhead small { font-size: var(--az-text-xs); color: var(--az-color-text-secondary); }
.hc__table th { padding: var(--az-space-1) 0; font-size: var(--az-text-xs); font-weight: var(--az-font-weight-medium); color: var(--az-color-text-secondary); text-align: center; }
.hc__table td { padding: 2px; text-align: center; font-size: var(--az-text-sm); color: var(--az-color-text-default); }
.hc__d > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 2em; height: 2em; border-radius: var(--az-radius-full); }
.hc__table .hc__w0, .hc__list .hc__w0 { color: var(--az-color-danger-text); }
.hc__table .hc__w6, .hc__list .hc__w6 { color: var(--az-color-info-text); }
.hc__d.is-holiday { color: var(--az-color-danger-text); font-weight: var(--az-font-weight-bold); }
.hc__d.is-holiday > span:first-child { background: var(--az-color-danger-bg); }
.hc__d.is-company > span:first-child, .hc__d.is-company-weekend > span:first-child { box-shadow: inset 0 0 0 1.5px var(--az-color-warning-solid); }
.hc__d.is-company > span:first-child { background: var(--az-color-warning-bg); color: var(--az-color-warning-text); }
.hc__notes { margin: var(--az-space-2) 0 0; padding: var(--az-space-2) var(--az-space-1) 0; list-style: none; border-top: 1px solid var(--az-color-border-divider); font-size: var(--az-text-xs); color: var(--az-color-text-secondary); }
.hc__notes li { display: flex; gap: var(--az-space-2); }
.hc__notes b { flex: none; min-width: 2.5em; color: var(--az-color-danger-text); font-weight: var(--az-font-weight-medium); }

.hc__legend { display: flex; flex-wrap: wrap; gap: var(--az-space-2) var(--az-space-4); margin: var(--az-space-3) 0 0; font-size: var(--az-text-xs); color: var(--az-color-text-secondary); }
.hc__key { display: inline-flex; align-items: center; gap: var(--az-space-1); }
.hc__key::before { content: ""; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--az-color-bg-muted); }
.hc__key.is-holiday::before { background: var(--az-color-danger-bg); box-shadow: inset 0 0 0 1px var(--az-color-danger-text); }
.hc__key--sat::before { background: var(--az-color-info-text); }
.hc__key--sun::before { background: var(--az-color-danger-text); }
.hc__key.is-company::before { background: var(--az-color-warning-bg); box-shadow: inset 0 0 0 1.5px var(--az-color-warning-solid); }

.hc__tables { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--az-space-5); margin-top: var(--az-space-6); align-items: start; }
.hc__tables caption { padding-bottom: var(--az-space-2); font-size: var(--az-text-sm); }
.hc__list td:first-child { white-space: nowrap; }
.hc__mt tbody th { font-weight: var(--az-font-weight-medium); background: transparent; color: var(--az-color-text-default); }
.az-table .hc__total th, .az-table .hc__total td { font-weight: var(--az-font-weight-bold); background: var(--az-color-bg-subtle); }
.hc__copy { margin-top: var(--az-space-3); }

@media (max-width: 900px) {
  .hc__tables { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hc__stats { grid-template-columns: 1fr; }
  .hc__stats .az-stat { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .hc__mt th, .hc__mt td { padding-inline: var(--az-space-2); }
}

/* 印刷: カレンダーと表だけを A4 縦に */
@media print {
  .az-sidebar, .az-topbar, .site-footer, .hc__noprint, .hc__warn:empty, .az-shell__scrim { display: none !important; }
  .site-content > :not(:has(.hc)):not(.hc) { display: none !important; }
  .tool-frame.hc { border: 0; padding: 0; box-shadow: none; background: none; }
  .hc__print-title { display: block; margin: 0 0 var(--az-space-2); font-size: 16pt; }
  .hc__stats { display: none; }
  .hc__cal { grid-template-columns: repeat(3, 1fr); gap: 6pt; margin-top: 0; }
  .hc__month { padding: 4pt; border-color: var(--az-color-border-strong); }
  .hc__table td, .hc__table th { font-size: 8.5pt; padding: 0; }
  .hc__d > span:first-child { width: 1.7em; height: 1.7em; }
  .hc__notes { font-size: 7pt; }
  .hc__tables { grid-template-columns: 1fr 1fr; break-before: page; }
  .az-table-wrap { overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 年別ページ（pages.mjs が作る静的な部分） */
.hcy { min-width: 0; }
.hcy__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--az-space-2); }
.hcy__stats .az-stat { padding: var(--az-space-3) var(--az-space-4); }
.hcy__stats .az-stat__value { font-variant-numeric: tabular-nums; }
.hcy__note { margin-top: var(--az-space-3); white-space: normal; }
.hcy__src { margin: var(--az-space-3) 0 0; font-size: var(--az-text-xs); color: var(--az-color-text-secondary); }
.hcy__h2 { margin: var(--az-space-6) 0 var(--az-space-3); font-size: var(--az-text-xl); color: var(--az-color-text-strong); }
.hcy__h3 { margin: var(--az-space-5) 0 var(--az-space-2); font-size: var(--az-text-base); color: var(--az-color-text-strong); }
.hcy__table td { vertical-align: top; }
.hcy__renkyu td:first-child { white-space: nowrap; }
.hcy__renkyu td:nth-child(2) { white-space: nowrap; }
.hcy__renkyu td:nth-child(3) { min-width: 8em; }
.hcy__sub { display: block; font-size: var(--az-text-xs); color: var(--az-color-text-secondary); }
.hcy__text { margin: var(--az-space-2) 0 var(--az-space-3); font-size: var(--az-text-sm); color: var(--az-color-text-secondary); line-height: 1.7; }
.hcy__bridges, .hcy__about { margin: 0; padding-left: 1.25em; font-size: var(--az-text-sm); color: var(--az-color-text-default); line-height: 1.8; }
.hcy__nav { display: flex; justify-content: space-between; gap: var(--az-space-2); margin-top: var(--az-space-5); }
@media (max-width: 600px) {
  /* 連休の表は1件ずつのカードに */
  .hcy__renkyu, .hcy__renkyu tbody { display: block; }
  .hcy__renkyu thead { display: none; }
  .hcy__renkyu tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--az-space-1) var(--az-space-3); padding: var(--az-space-3); border-bottom: 1px solid var(--az-color-border-divider); }
  .az-table.hcy__renkyu td { display: block; height: auto; padding: 0; border: 0; min-width: 0; }
  .az-table.hcy__renkyu td:first-child { grid-column: 1 / -1; white-space: normal; font-weight: var(--az-font-weight-medium); color: var(--az-color-text-strong); }
  .az-table.hcy__renkyu td:nth-child(4) { grid-column: 1 / -1; font-size: var(--az-text-xs); color: var(--az-color-text-secondary); }
  .az-table.hcy__renkyu td.is-empty { display: none; }
}
@media (max-width: 480px) {
  .hcy__stats { grid-template-columns: 1fr; }
  .hcy__stats .az-stat { display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; }
}
