:root {
  color-scheme: light;
  font-family: "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  color: #17382d;
  background: #f4f6f2;
  --ink: #17382d;
  --muted: #4f665c;
  --green: #105c40;
  --dark: #133e30;
  --mint: #e7f0e9;
  --line: #dbe5dc;
  --surface: #fff;
  --shadow: 0 8px 24px #2447330a;
  --radius: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
body { min-width: 0; margin: 0; font-size: 1rem; line-height: 1.65; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
a { color: var(--green); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #41895f;
  outline-offset: 3px;
}
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.35; overflow-wrap: anywhere; }
img { max-width: 100%; }
.shell { width: min(calc(100% - 48px), 1100px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 20; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: white; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 76px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-mark { display: block; border-radius: 13px; }
.brand strong, .brand small { display: block; line-height: 1.35; }
.brand strong { font-size: 1.05rem; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  text-decoration: none; color: var(--muted); display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 12px; gap: 7px; border-radius: 10px; white-space: nowrap;
  font-weight: 750; font-size: .875rem;
}
.main-nav a:hover { background: #f0f5ef; color: var(--ink); }
.main-nav [aria-current="page"] { background: var(--mint); color: var(--green); }
.main-nav[hidden] { display: none; }
.header-selection { flex-shrink: 0; }
.selection-button {
  min-height: 42px; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px; background: #f7faf6; padding: 6px 13px;
  color: var(--green); font-size: .875rem; font-weight: 750; 
}
.selection-button:hover { background: var(--mint); }
.selection-button::after {
  content: ""; width: 7px; height: 7px; margin: -4px 1px 0 3px; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.main-content { padding-top: 24px; padding-bottom: 42px; outline: none; }
.status-stack { display: grid; gap: 8px; }
.status-stack:empty { display: none; }
.status-stack > :first-child { margin-top: 16px; }
.status {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-radius: 12px;
  font-size: .875rem; background: var(--mint); border: 1px solid #d4e6d8;
}
.status > div { flex: 1; }
.status strong { font-weight: 800; }
.status p { margin-top: 2px; }
.status.demo, .status.offline { background: #fff6dc; border-color: #ead69b; color: #5b4618; }
.status.urgent { background: #fff2ed; border-color: #e9c2b1; color: #782711; }
.status .icon { margin-top: 4px; flex-shrink: 0; }
.status .text-link { align-self: center; white-space: nowrap; color: inherit; }
.hero {
  color: white; background: #123e2e; overflow: hidden; position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 35px 42px; min-height: 212px; border-radius: 25px;
  box-shadow: 0 9px 24px #103a2420;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 660px; height: 320px;
  right: -165px; top: -90px; 
  background: repeating-radial-gradient(ellipse at 74% 56%, transparent 0 24px, #c1e9ca1e 25px 26px, transparent 27px 42px);
  transform: rotate(-19deg);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, #123e2e 20%, transparent 84%);
}
.hero .eyebrow { color: #bfe3c9; font-weight: 800; font-size: .9rem; letter-spacing: .055em; }
.hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: .045em; margin-top: 5px; }
.hero-description { max-width: 34rem; color: #e3efe6; margin-top: 12px; line-height: 1.62; }
.hero-date {
  flex: 0 0 auto; display: grid; place-items: center; gap: 5px; min-width: 150px;
  padding: 13px 17px; border-radius: 18px; background: #ffffff10; border: 1px solid #c0dfc350;
  font-variant-numeric: tabular-nums; line-height: 1.25;
}
.hero-date .year { color: #d7eadb; font-size: .875rem; font-weight: 700; }
.hero-date .date { font-size: 2.5rem; font-weight: 800; color: #fae09a; letter-spacing: -.035em; white-space: nowrap; }
.hero-date .weekday { color: #e4eee6; font-weight: 750; font-size: .875rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 24px; }
.home-grid, .content-grid { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.home-grid.active { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.head-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.head-row h2, .panel h2 { font-size: clamp(1.12rem, 2vw, 1.38rem); }
.hint, .updated, .subtle { color: var(--muted); }
.hint { font-size: .875rem; }
.page-heading { margin-bottom: 16px; }
.page-heading h1 { font-size: clamp(1.65rem, 3vw, 2.15rem); margin-bottom: 5px; }
.page-heading p { color: var(--muted); max-width: 45rem; }
.dept-group + .dept-group { margin-top: 14px; }
.dept-group h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: .875rem; color: #3c584b; }
.group-pebble { width: 8px; height: 8px; background: #4a8860; display: inline-block; border-radius: 50%; }
.group-pebble.pm { background: #8b6a29; }
.dept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.dept {
  text-align: left; min-height: 49px; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 10px; background: #f8faf7; font-size: .91rem; font-weight: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.dept:hover, .dept[aria-pressed="true"] { background: var(--mint); border-color: #91b5a0; color: var(--green); }
.choice-mark { width: 14px; height: 14px; flex: 0 0 14px; border: 1.5px solid #95aa9c; border-radius: 50%; }
.dept[aria-pressed="true"] .choice-mark { background: var(--green); border: 4px solid #bcdbc7; }
.dept-caption { margin-top: 14px; }
.overview-list, .timeline { list-style: none; padding: 0; margin: 0; }
.overview-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #e9eee9;
}
.overview-list li:first-child { padding-top: 2px; }
.overview-list li:last-child { border-bottom: 0; }
.overview-list strong { font-size: .96rem; }
.overview-list small { display: block; color: var(--muted); font-size: .825rem; font-weight: 500; }
.time-pair { color: var(--green); font-weight: 800; font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.button, .text-link { display: inline-flex; gap: 7px; align-items: center; justify-content: center; font-weight: 800; }
.button {
  min-height: 45px; border: 1px solid transparent; border-radius: 10px; text-decoration: none;
  padding: 8px 14px; line-height: 1.35; background: var(--green); color: white; font-size: .95rem;
}
.button:hover { background: #0b4832; }
.button.secondary { background: #f2f7f2; color: var(--green); border-color: var(--line); }
.button.secondary:hover { background: var(--mint); }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.text-link { background: none; border: 0; text-decoration: underline; color: var(--green); padding: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  background: var(--mint); color: var(--green); font-size: .875rem; font-weight: 800;
}
.badge.pm { background: #fbf1d9; color: #654912; }
.next-card { padding: 23px; border-top: 4px solid #3e835c; }
.next-card .head-row { margin-bottom: 10px; }
.next-card h2 { color: var(--green); font-size: 1rem; }
.next-title { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 5px 0 10px; }
.next-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 8px; color: var(--green); font-weight: 800; }
.next-meta span { display: inline-flex; align-items: center; gap: 6px; }
.next-card p { color: var(--muted); }
.next-card .late-link { display: inline-block; margin-top: 12px; }
.quick-links { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick-links a {
  padding: 15px 17px; min-height: 63px; display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--green); font-weight: 800;
}
.quick-links a:hover { background: #edf5ed; }
.demo-clock { margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.demo-clock select {
  appearance: none; padding: 6px 29px 6px 9px; min-height: 40px; max-width: 100%; 
  color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background-color: white;
  background-image: linear-gradient(45deg, transparent 50%, #345a47 50%), linear-gradient(135deg, #345a47 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.timeline li { display: grid; grid-template-columns: 6.7rem minmax(0, 1fr); gap: 6px 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.timeline h3 { font-size: 1rem; }
.timeline p { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.timeline a { display: inline-block; margin-top: 4px; font-size: .875rem; font-weight: 750; }
.timeline time { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; font-size: .9rem; }
.timeline .current { padding-inline: 10px; border-radius: 9px; background: #edf5ed; border-bottom-color: transparent; }
.flow-panel + .flow-panel { margin-top: 14px; }
.flow-panel > .badge { margin-bottom: 6px; }
.stack { display: grid; gap: 14px; }
.check-items, .detail-list { list-style: none; margin: 0; padding: 0; }
.check-items li + li, .detail-list li + li { border-top: 1px solid var(--line); }
.check-items label {
  display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 9px; align-items: start;
  min-height: 46px; padding: 9px 0; cursor: pointer;
}
.check-items input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--green); }
.check-items strong, .detail-list strong { font-size: .95rem; }
.check-items small, .detail-list p { display: block; margin-top: 2px; color: var(--muted); font-size: .875rem; }
.check-items input:checked + span strong { color: var(--green); }
.detail-list li { padding: 10px 0; }
.detail-list li:last-child { padding-bottom: 0; }
.detail-list .badge { margin-right: 5px; font-size: .78rem; }
.supply-locations { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: .875rem; }
.supply-locations a { display: inline-flex; align-items: center; min-height: 44px; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 15px; margin-top: 15px; align-items: start; }
.map-target { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #f6faf5; margin-bottom: 13px; scroll-margin-top: 12px; }
.map-target p { color: var(--muted); margin-top: 4px; }
.place-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 9px 0 0; }
.place-options summary { cursor: pointer; min-height: 44px; padding-block: 8px; color: var(--green); font-size: .9rem; font-weight: 750; }
.place-list button, .route-list button {
  text-align: left; background: #f8faf7; min-height: 44px; border: 1px solid var(--line);
  border-radius: 9px; padding: 6px 9px; font-weight: 750; font-size: .875rem;
}
.place-list button:hover, .route-list button:hover,
.place-list button[aria-pressed="true"], .route-list button[aria-pressed="true"] {
  background: var(--mint); border-color: #88a994; color: var(--green);
}
.route-block { margin-top: 14px; }
.route-block h3 { font-size: 1rem; margin-bottom: 5px; }
.route-list { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0; padding: 0; list-style: none; }
.route-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.route-list .route-order { font-weight: 800; color: var(--green); margin-right: 4px; }
.help-list { display: grid; gap: 9px; }
.help-list details { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #f8faf7; }
.help-list summary { cursor: pointer; padding: 10px 0; min-height: 46px; font-weight: 800; }
.help-list details p { color: var(--muted); padding: 0 0 12px; }
.help-list details a { display: inline-block; margin-bottom: 10px; }
.placeholder { max-width: 790px; margin: 14px auto; padding: clamp(20px, 5vw, 44px); }
.placeholder h1 { margin-bottom: 12px; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.placeholder p + p { margin-top: 10px; }
.loading { padding: 20px; }
.dialog { max-width: min(460px, calc(100% - 30px)); width: 100%; max-height: 90vh; margin: auto; color: var(--ink); padding: 20px; border: 1px solid var(--line); border-radius: 17px; }
.dialog::backdrop { background: #122b22a8; }
.dialog-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dialog-head h2 { font-size: 1.2rem; }
.close { background: #f1f6f1; border: 1px solid var(--line); border-radius: 10px; min-height: 44px; min-width: 44px; font-size: 1.35rem; }
.site-footer { border-top: 1px solid var(--line); padding: 14px 0 22px; font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; }
.icon { display: inline-block; position: relative; width: 18px; height: 18px; flex: 0 0 18px; vertical-align: -.17em; }
.icon::before, .icon::after { content: ""; position: absolute; box-sizing: border-box; }
.i-home::before { inset: 6px 3px 1px; border: 1.6px solid currentColor; border-top: 0; border-radius: 2px; }
.i-home::after { width: 10px; height: 10px; border: solid currentColor; border-width: 1.6px 0 0 1.6px; transform: rotate(45deg); left: 4px; top: 2px; }
.i-clock::before { inset: 1px; border: 1.6px solid currentColor; border-radius: 50%; }
.i-clock::after { width: 4px; height: 6px; left: 8px; top: 4px; border: solid currentColor; border-width: 0 0 1.6px 1.6px; }
.i-list::before { inset: 1px 3px; border: 1.6px solid currentColor; border-radius: 2px; }
.i-list::after { width: 6px; height: 1.5px; left: 6px; top: 5px; background: currentColor; box-shadow: 0 3px currentColor, 0 6px currentColor; }
.i-pin::before { width: 12px; height: 12px; top: 2px; left: 3px; border: 1.6px solid currentColor; border-radius: 50% 50% 50% 1px; transform: rotate(-45deg); }
.i-pin::after { width: 3px; height: 3px; background: currentColor; left: 7.5px; top: 6.5px; border-radius: 50%; }
.i-help::before, .i-info::before { inset: 1px; border: 1.6px solid currentColor; border-radius: 50%; }
.i-help::after, .i-info::after { content: "?"; inset: 0; text-align: center; line-height: 18px; font-size: 12px; font-style: normal; font-weight: 800; }
.i-info::after { content: "i"; }
.i-bag::before { inset: 5px 2px 1px; border: 1.6px solid currentColor; border-radius: 3px; }
.i-bag::after { inset: 1px 6px auto; height: 5px; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
@media (max-width: 820px) {
  .shell { width: min(calc(100% - 32px), 680px); }
  .header-inner { min-height: 62px; justify-content: space-between; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .brand strong { font-size: .99rem; }
  .brand small { font-size: .72rem; }
  .main-nav {
    position: fixed; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    inset: auto 0 0; background: #fff; border-top: 1px solid var(--line);
    padding: 4px 6px max(5px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px #12382a10;
  }
  .main-nav a { padding: 5px 0; flex-direction: column; gap: 1px; min-height: 51px; font-size: .78rem; }
  .main-nav .icon { width: 18px; height: 18px; }
  .selection-button { max-width: 154px; padding-inline: 9px; }
  .selection-button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main-content { padding-top: 15px; padding-bottom: 24px; }
  .site-footer { padding-bottom: calc(73px + env(safe-area-inset-bottom)); }
  .hero { padding: 24px 23px; min-height: 168px; border-radius: 19px; gap: 14px; }
  .hero-date { min-width: 106px; padding: 9px 10px; border-radius: 13px; }
  .hero-date .date { font-size: 2rem; }
  .home-grid, .content-grid, .home-grid.active, .map-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .map-detail-panel { grid-row: 1; }
  .status-stack > :first-child { margin-top: 10px; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 24px); }
  .panel-pad, .next-card { padding: 15px; }
  .hero { padding: 18px 14px; min-height: 147px; gap: 8px; }
  .hero h1 { font-size: clamp(1.42rem, 7.2vw, 2rem); letter-spacing: 0; }
  .hero .eyebrow { font-size: .8rem; letter-spacing: .01em; }
  .hero-description { font-size: .875rem; margin-top: 7px; }
  .hero-date { min-width: 86px; padding: 7px 6px; gap: 3px; }
  .hero-date .date { font-size: 1.7rem; }
  .hero-date .year, .hero-date .weekday { font-size: .8rem; }
  .hero::before { right: -295px; }
  .status { gap: 6px; padding: 8px 9px; }
  .status .text-link { white-space: normal; font-size: .8rem; }
  .quick-links { margin-top: 12px; gap: 6px; }
  .quick-links a { flex-direction: column; justify-content: center; gap: 3px; padding: 7px 4px; min-height: 58px; font-size: .85rem; }
  .timeline li { grid-template-columns: 5.85rem minmax(0, 1fr); gap: 5px 6px; }
  .timeline time { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
