/* 年間行事カレンダー */
.nenkan-fy { display: inline-flex; align-items: center; gap: 4px; }
.nenkan-fy b { font-family: var(--head); font-size: 20px; padding: 0 4px; }
.nenkan-banner { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nenkan-sum { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 10px; }
.nenkan-big { border: 2px solid var(--line); border-radius: 14px; background: var(--yellow); color: #1d2433; padding: 6px 14px; display: flex; align-items: baseline; gap: 6px; box-shadow: var(--sh-sm); }
.nenkan-big small { font-size: 12px; font-weight: 800; }
.nenkan-big b { font-family: var(--head); font-size: 30px; line-height: 1.1; }
.nenkan-big span { font-weight: 800; }
.nenkan-big.sm { background: var(--card); color: var(--ink); }
.nenkan-big.sm b { font-size: 22px; }
.nenkan-wdsum { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nenkan-wdsum span { display: grid; place-items: center; min-width: 44px; padding: 3px 6px; border: 2px solid var(--line-soft); border-radius: 10px; background: var(--card); line-height: 1.2; }
.nenkan-wdsum small { font-size: 11px; font-weight: 800; color: var(--ink2); }
.nenkan-wdsum b { font-size: 17px; }
.nenkan-wdsum .sat small { color: var(--blue); }
.nenkan-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink2); margin-bottom: 8px; }
.nenkan-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nenkan-legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.nenkan-legend i.hol { background: color-mix(in srgb, var(--coral) 30%, var(--card)); }
.nenkan-legend i.off { background: repeating-linear-gradient(135deg, var(--line-soft) 0 2px, var(--card) 2px 5px); }
.nenkan-hint { margin: 0 0 8px; }

/* 12か月 */
.nenkan-months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .nenkan-months { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .nenkan-months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nenkan-months { grid-template-columns: 1fr; } }
.nenkan-month { border: 2px solid var(--line); border-radius: 14px; background: var(--card); padding: 8px; min-width: 0; }
.nenkan-month header { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.nenkan-month header b { font-family: var(--head); font-size: 20px; }
.nenkan-month header small { color: var(--ink2); font-size: 11px; }
.nenkan-month header .badge { margin-left: auto; background: var(--yellow); color: #1d2433; }
.nenkan-wk, .nenkan-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.nenkan-wk span { text-align: center; font-size: 11px; font-weight: 800; color: var(--ink2); }
.nenkan-wk .sun { color: var(--bad); } .nenkan-wk .sat { color: var(--blue); }
.nenkan-d { position: relative; min-height: 44px; border: 1.5px solid var(--line-soft); border-radius: 7px; background: var(--card); padding: 1px 2px 2px; text-align: left; display: flex; flex-direction: column; overflow: hidden; font: inherit; color: var(--ink); cursor: pointer; }
.nenkan-d.blank { border: 0; background: none; cursor: default; }
.nenkan-d b { font-size: 12px; line-height: 1.2; }
.nenkan-d.sun b { color: var(--bad); } .nenkan-d.sat b { color: var(--blue); }
.nenkan-d.sun { background: color-mix(in srgb, var(--coral) 10%, var(--card)); }
.nenkan-d.off { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink3) 18%, transparent) 0 2px, transparent 2px 6px); }
.nenkan-d.today { outline: 2.5px solid var(--ink); outline-offset: -1px; }
.nenkan-d i { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.nenkan-d i.k { height: 100%; opacity: .14; }
.nenkan-d em { font-style: normal; font-size: 9.5px; line-height: 1.15; font-weight: 700; color: var(--ink2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-all; }
.nenkan-d:hover { border-color: var(--ink); }
.nenkan-month footer { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 11.5px; color: var(--ink2); margin-top: 5px; font-weight: 700; }
.nenkan-month footer .sat { color: var(--blue); } .nenkan-month footer .sun { color: var(--bad); }
@media (max-width: 560px) { .nenkan-d { min-height: 50px; } .nenkan-d b { font-size: 14px; } .nenkan-d em { font-size: 10px; } }

/* 年間表 */
.nenkan-year { border-collapse: collapse; font-size: 11px; min-width: 1100px; table-layout: fixed; }
.nenkan-year th, .nenkan-year td { border: 1px solid var(--line-soft); padding: 1px 3px; height: 26px; }
.nenkan-year thead th { background: var(--ink); color: var(--bg); font-size: 13px; position: sticky; top: 0; z-index: 1; }
.nenkan-year th.dn { width: 26px; background: var(--bg2); color: var(--ink); text-align: center; }
.nenkan-year td.w { width: 20px; text-align: center; font-weight: 800; }
.nenkan-year td.e { cursor: pointer; line-height: 1.15; overflow: hidden; }
.nenkan-year td.e:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.nenkan-year td.sun { background: color-mix(in srgb, var(--coral) 14%, var(--card)); color: var(--bad); }
.nenkan-year td.sat { background: color-mix(in srgb, var(--blue) 12%, var(--card)); color: var(--blue); }
.nenkan-year td.off { background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink3) 16%, transparent) 0 2px, transparent 2px 6px); }
.nenkan-year td.na { background: var(--bg2); }
.nenkan-year td.e span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-weight: 700; }
.nenkan-year td.e span[class^='t-'] { border-left: 4px solid var(--c); padding-left: 3px; }
.nenkan-year td.e span.hol { color: var(--bad); }
.nenkan-year td.e span.cont { border-left: 4px solid var(--c); padding-left: 3px; color: var(--ink3); font-weight: 400; }
.nenkan-year tr.tot td { text-align: center; background: color-mix(in srgb, var(--yellow) 20%, var(--card)); height: 40px; }
.nenkan-year tr.tot td b { display: block; font-size: 13px; }
.nenkan-year tr.tot td small { font-size: 10px; color: var(--ink2); }

/* 一覧・集計 */
.nenkan-list .input { min-height: 34px; padding: 3px 6px; font-size: 13.5px; }
.nenkan-list td.c { text-align: center; }
.nenkan-wdc { font-size: 12px; white-space: nowrap; }
.nenkan-stat td.n { text-align: center; }
.nenkan-stat th.sat { color: var(--blue); }
.nenkan-stat tr.term th, .nenkan-stat tr.term td { background: color-mix(in srgb, var(--blue) 8%, var(--card)); }
.nenkan-stat tr.total th, .nenkan-stat tr.total td { background: color-mix(in srgb, var(--yellow) 30%, var(--card)); font-weight: 900; }
.nenkan-statgrid { align-items: start; }
.nenkan-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; height: 170px; align-items: end; }
.nenkan-bars > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.nenkan-bars span { width: 100%; background: var(--yellow); border: 2px solid var(--line); border-radius: 6px 6px 2px 2px; display: flex; justify-content: center; min-height: 18px; }
.nenkan-bars b { font-size: 11px; color: #1d2433; }
.nenkan-bars small { font-size: 10px; color: var(--ink2); margin-top: 2px; }
.nenkan-evrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; border: 2px solid var(--line-soft); border-left: 8px solid var(--c); border-radius: 10px; padding: 6px 10px; }
.nenkan-evrow b { flex: 1 1 140px; }
.nenkan-evrow small { color: var(--ink2); flex-basis: 100%; order: 3; }
.nenkan-tpl { max-height: 150px; overflow-y: auto; }
.nenkan-tpl .chip { font-size: 12.5px; padding: 3px 10px; border-left: 6px solid var(--c); }
