:root {
  --content-width: min(1120px, calc(100% - 80px));
  color-scheme: light;
  --paper: #fffbf2;
  --ink: #172f46;
  --muted: #526068;
  --coral: #a93d25;
  --teal: #09645f;
  --rule: #ded9c9;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
p, h1, h2, h3, h4 { margin: 0; }
a { color: inherit; }
input, button, select { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #11766d; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: var(--content-width); margin-inline: auto; }
.skip { position: absolute; z-index: 3; top: 8px; left: 8px; transform: translateY(-150%); background: white; padding: 12px; }
.skip:focus { transform: none; }
.masthead { min-height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: .045em; text-decoration: none; }
.brand strong { color: var(--teal); margin-left: .12em; }
.notebook { display: block; width: 25px; height: 31px; border: 2px solid var(--ink); border-radius: 3px 6px 5px 3px; background: #f9c945; box-shadow: 3px 2px 0 var(--ink); transform: rotate(-9deg); position: relative; }
.notebook::before { content: ""; position: absolute; left: 3px; inset-block: 0; width: 2px; background: var(--ink); }
.notebook::after { content: ""; position: absolute; right: 3px; top: 7px; width: 10px; height: 5px; background: #fff8dc; border: 1px solid var(--ink); }
.source { text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 13px; font-weight: 700; }
.hero { display: grid; grid-template-columns: 42% 58%; overflow: hidden; border-radius: 18px 34px 18px 34px; background: #fbeab0; isolation: isolate; }
.hero-art { grid-area: 1 / 2; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 49% center; }
.hero-copy { position: relative; z-index: 1; align-self: center; min-width: 0; padding: clamp(24px, 3vw, 40px); }
.location { font-size: 12px; font-weight: 770; letter-spacing: .09em; color: #3c524d; }
.location span { color: var(--coral); }
h1 { font-size: clamp(34px, 4.1vw, 60px); line-height: 1.33; letter-spacing: -.045em; margin-top: 10px; font-weight: 900; }
h1 em { font-style: normal; color: var(--teal); position: relative; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; height: .1em; left: 1%; right: 5%; bottom: -.045em; transform: rotate(-1deg); border-radius: 70% 25% 60% 45%; background: #f49b53; }
.intro { font-size: 14px; line-height: 1.75; font-weight: 580; margin-top: 18px; }
.hero-note { display: grid; grid-template-columns: 1em minmax(0, 1fr); gap: .35em; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; text-align: start; }
.note-phrase { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pickup { margin-top: clamp(18px, 2.4vw, 30px); }
.pickup-heading { margin-bottom: 8px; color: var(--teal); font-size: clamp(16px, 1.55vw, 20px); font-weight: 750; }
.pickup-window { --card-width: var(--content-width); --card-gap: clamp(12px, 1.65vw, 26px); overflow: hidden; overflow: clip; touch-action: pan-y pinch-zoom; }
.pickup-track { display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-width); gap: var(--card-gap); padding-block: 5px; }
.pickup-guide {
  position: relative; display: grid; grid-template-columns: 36% minmax(0, 1fr); align-items: center;
  height: 100%; min-height: clamp(200px, 21vw, 242px); overflow: hidden;
  color: var(--ink); background: #fffef9; border: 1px solid var(--rule); border-radius: 14px; text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .pickup-guide:hover h3, .pickup-guide:focus-visible h3 { text-decoration: underline; text-underline-offset: .18em; }
}
.pickup-photo { position: absolute; inset: 0 auto auto 0; width: 36%; height: 100%; object-fit: cover; }
.pickup-copy { grid-column: 2; padding: clamp(14px, 2vw, 25px); }
.pickup-meta { color: var(--teal); font-size: 12px; font-weight: 650; line-height: 1.55; }
.pickup h3 { margin-top: 3px; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; overflow-wrap: anywhere; }
.pickup-blurb { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.pickup-blurb:empty { display: none; }
.calendar { padding-block: 38px 54px; scroll-margin-top: 18px; }
.calendar-head, .results-bar, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
h2 { font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; font-weight: 850; }
.ward-label { position: relative; display: flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 700; }
.ward-label select {
  appearance: none;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid #a6a99c;
  border-radius: 9px;
  min-height: 38px;
  padding: 4px 38px 4px 13px;
}
.ward-label::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.8px 1.8px 0;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.views { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.views button, .more { border: 1px solid #bcb8a7; border-radius: 30px; min-height: 42px; background: #fffdf8; color: var(--ink); padding: 7px 17px; font-size: 14px; font-weight: 720; }
.views button:hover, .more:hover { background: #f7edcf; }
.views button[aria-pressed="true"] { color: #fffdf5; border-color: var(--ink); background: var(--ink); }
.views button[aria-pressed="true"]::before { content: ""; display: inline-block; width: .53em; height: .28em; border-left: 2px solid #ffdb63; border-bottom: 2px solid #ffdb63; transform: translateY(-.2em) rotate(-45deg); margin-right: 7px; }
.results-bar { flex-wrap: wrap; margin-top: 15px; padding: 11px 0 12px; border-block: 1px dashed #bbb8a5; font-size: 13px; color: var(--muted); }
.date-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.date-filter label { font-weight: 700; }
.date-filter input { min-width: 0; max-width: 100%; min-height: 34px; border: 1px solid var(--rule); border-radius: 8px; padding: 3px 8px; color: var(--ink); background: #fffefa; }
.date-filter button { min-height: 34px; border: 0; background: none; padding-inline: 2px; text-decoration: underline; color: var(--teal); }
#result-status { font-weight: 700; }
.check-filters { display: flex; flex-wrap: wrap; gap: 0 18px; }
.check-filters label { display: flex; align-items: center; gap: 5px; min-height: 30px; cursor: pointer; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--teal); }
.empty, .stale { background: #fff0cc; margin: 16px 0; border-radius: 10px; padding: 15px 18px; font-size: 14px; line-height: 1.7; }
.day-group { display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: start; gap: 16px; padding-top: 20px; }
.day-label { display: flex; flex-direction: column; align-items: center; gap: 7px; padding-top: 3px; font-size: 13px; }
.day-stamp { width: 78px; display: flex; flex-direction: column; text-align: center; color: var(--ink); }
.month { border-top: 4px solid currentColor; border-radius: 4px 4px 0 0; padding-top: 4px; font-size: 13px; }
.day-num { font-family: "Arial Rounded MT Bold", "Avenir Next", system-ui, sans-serif; font-size: 42px; font-weight: 850; line-height: 1.08; letter-spacing: -.055em; }
.weekday { font-size: 12px; }
.sat { color: #245e9a; }
.sun { color: var(--coral); }
.day-note { background: #ffe08a; border-radius: 12px; padding: 2px 9px; font-size: 11px; }
.day-events { padding: 0; margin: 0; list-style: none; border: 1px solid var(--rule); border-radius: 15px; background: #fffefa; }
.event { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(135px, 19%); gap: 14px; padding: 17px 19px; align-items: start; }
.day-events > li + li { border-top: 1px dashed var(--rule); }
.period-event > details > summary { width: auto; padding: 11px 15px; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.period-label { color: var(--teal); font-size: 12px; margin-inline: 3px 8px; }
.activity { width: 42px; height: 44px; display: grid; place-items: center; border-radius: 12px 15px 10px 14px; font-size: 22px; }
.coral { --tone-bg: #ffddc9; --tone-ink: #973b23; }
.leaf { --tone-bg: #daf0d7; --tone-ink: #21624a; }
.yellow { --tone-bg: #ffebaa; --tone-ink: #70500b; }
.blue { --tone-bg: #dcebfa; --tone-ink: #345e82; }
.lilac { --tone-bg: #eee2fb; --tone-ink: #674676; }
.activity, .category { color: var(--tone-ink); background: var(--tone-bg); }
.event-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; font-size: 12px; color: var(--muted); font-weight: 670; }
.category { padding: 2px 7px; border-radius: 6px; }
h4 { margin-top: 5px; font-size: clamp(16px, 1.55vw, 20px); line-height: 1.5; overflow-wrap: anywhere; }
.facts, .description, .labels { font-size: 13px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
.facts, .description { margin-top: 4px; }
.event-actions { font-size: 12px; line-height: 1.65; }
.labels { font-size: 12px; color: var(--teal); font-weight: 700; }
details { margin-top: 5px; }
summary { width: fit-content; padding-block: 3px; font-weight: 700; }
details dl { margin: 4px 0; }
dt { font-weight: 700; }
dd { margin: 0 0 6px; overflow-wrap: anywhere; color: var(--muted); }
.source { color: var(--teal); display: inline-block; padding-block: 4px; }
.more { display: block; margin: 22px auto 0; }
footer { border-top: 1px solid var(--rule); background: #f3efdf; }
.footer-inner { align-items: flex-start; padding-block: 22px; }
.footer-brand { flex-shrink: 0; }
.footer-notes { flex: 0 1 31rem; max-width: 100%; color: var(--muted); }
.footer-notes details { margin: 0; }
.footer-notes summary { padding-block: 6px; font-size: 13px; }
.footer-notes details[open] { padding-bottom: 8px; }
.footer-notes p + p { margin-top: 6px; }
.footer-inner p { font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (max-width: 800px) {
  :root { --content-width: calc(100% - 40px); }
  .hero { grid-template-columns: 47% 53%; }
  .hero-copy { padding: 21px; }
  .intro { font-size: 13px; }
  .results-bar { align-items: start; flex-direction: column; gap: 3px; }
  .day-group { grid-template-columns: 70px minmax(0,1fr); gap: 10px; }
  .day-stamp { width: 64px; }
  .event { grid-template-columns: minmax(0,1fr) minmax(118px,21%); gap: 10px; padding: 14px; }
  .activity { display: none; }
}
@media (max-width: 600px) {
  :root { --content-width: calc(100% - 30px); }
  .masthead { min-height: 57px; }
  .brand { font-size: 18px; gap: 10px; }
  .notebook { width: 20px; height: 25px; }
  .hero { grid-template-columns: 1fr; border-radius: 14px 23px 14px 23px; }
  .hero-copy { padding: 20px 18px 16px; text-align: center; }
  .hero-note { width: fit-content; max-width: 100%; margin-inline: auto; }
  h1 { font-size: clamp(33px, 8vw, 42px); line-height: 1.16; margin-top: 8px; }
  .intro { margin-top: 10px; line-height: 1.55; }
  .hero-art { grid-area: auto; height: clamp(128px, 34vw, 192px); object-position: center 57%; }
  .pickup { margin-top: 18px; }
  .pickup-heading { margin-bottom: 5px; font-size: 15px; }
  .pickup-window { --card-gap: 8px; --photo-height: clamp(108px, 31vw, 152px); }
  .pickup-guide { grid-template-columns: 1fr; grid-template-rows: var(--photo-height) 1fr; min-height: calc(var(--photo-height) + 158px); }
  .pickup-photo { width: 100%; height: var(--photo-height); }
  .pickup-copy { grid-area: 2 / 1; padding: 12px 15px; }
  .pickup-meta { font-size: 11px; }
  .pickup h3 { font-size: 18px; }
  .pickup-blurb { margin-top: 3px; font-size: 12px; }
  .calendar { padding-block: 24px 35px; }
  .calendar-head { flex-wrap: wrap; gap: 6px 10px; }
  h2 { font-size: clamp(21px, 5.3vw, 28px); }
  .ward-label { font-size: 12px; gap: 4px; }
  .ward-label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .views { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin-top: 12px; }
  .views button { min-height: 40px; font-size: 13px; padding: 5px 2px; }
  .results-bar { margin-top: 12px; font-size: 12px; padding: 7px 0; }
  .check-filters { gap: 0 10px; }
  .check-filters label { gap: 3px; }
  .day-group { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .day-label, .day-stamp { width: auto; flex-direction: row; gap: 5px; align-items: baseline; justify-content: flex-start; }
  .day-label { gap: 9px; }
  .month { border: 0; padding: 0; }
  .day-num { font-size: 28px; }
  .day-num::after { content: "日"; font-size: 12px; margin-left: 2px; }
  .event { display: block; padding: 12px 14px; }
  .event-actions { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
  .event-actions details { margin-top: 0; }
  .event-actions details[open] { width: 100%; }
  .footer-inner { align-items: start; flex-direction: column; gap: 5px; }
  .footer-notes { flex-basis: auto; }
}

.month-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-block: 12px; font-size: 14px; }
.month-links strong { font-size: 13px; color: var(--muted); }
.month-links a { padding-block: 5px; color: var(--teal); text-underline-offset: 4px; }
.month-links [aria-current] { color: var(--ink); font-weight: 800; text-decoration: none; }
.month-page { padding-bottom: 40px; }
.month-head { padding: clamp(18px, 3vw, 38px); background: #fbeab0; border-radius: 15px 28px; }
.month-head h1 { font-size: clamp(25px, 4vw, 44px); overflow-wrap: anywhere; }
.month-notice { margin-top: 12px; font-size: 13px; line-height: 1.65; }
.month-head .source { margin-top: 12px; }
.month-event { padding-block: 16px; border-top: 1px solid var(--rule); overflow-wrap: anywhere; }
.month-date { color: var(--teal); font-size: 13px; font-weight: 700; }
.month-status { margin-inline-start: .5em; color: var(--coral); }
.month-event h2 { margin-top: 4px; font-size: clamp(18px, 2vw, 24px); line-height: 1.45; }
.month-blurb { margin-block: 5px; font-size: 15px; line-height: 1.65; max-width: 55em; }
.month-event details { font-size: 13px; }
.month-routine { border-top: 1px dashed var(--rule); padding-block: 10px; }
.month-routine > summary { color: var(--teal); padding-block: 8px; }
.month-footer { padding-block: 18px; }
@media (scripting: none) {
  .calendar .views, .calendar .ward-label, .calendar .results-bar { display: none; }
}
