:root {
  --bg: #f6f6f7;
  --surface: #fff;
  --ink: #25272d;
  --muted: #72747e;
  --line: #e9e9ec;
  --brand: #245c91;
  --brand-soft: #eaf1f8;
  --green: #316b58;
  --radius: 14px;
  --shadow: 0 4px 8px #25272d08;
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #245c9180;
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
.app {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  padding: 34px 22px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand-mark {
  font-size: 38px;
  color: var(--brand);
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 3px;
}
nav {
  display: flex;
}
.sidebar nav {
  flex-direction: column;
  gap: 8px;
  margin-top: 52px;
}
.nav-item {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 49px;
  padding: 12px 16px;
  color: #73747d;
  border-radius: 10px;
  font-weight: 600;
  position: relative;
}
.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.nav-item:hover:not(.active) {
  background: var(--bg);
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.count {
  margin-left: auto;
  background: var(--brand);
  color: white;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.side-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.semester {
  padding: 20px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.tiny-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  letter-spacing: 0.04em;
}
.semester strong {
  display: block;
  font-size: 15px;
  margin: 6px 0;
}
.semester small {
  font-size: 11px;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #589780;
  vertical-align: middle;
  margin-left: 8px;
}
.profile {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 10px;
  width: 100%;
  border-radius: 10px;
}
.profile:hover {
  background: var(--bg);
}
.avatar {
  height: 35px;
  width: 35px;
  flex: none;
  background: #eae5d8;
  color: #6b6558;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.profile-arrow {
  margin-left: auto;
  color: var(--muted);
}
.workspace {
  margin-left: 240px;
  width: calc(100% - 240px);
}
.topbar {
  height: 79px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: #ffffff99;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb span {
  margin: 0 13px;
  color: #c1c2c8;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.demo-label {
  color: #7e7580;
  font-size: 10px;
  padding: 4px 9px;
  background: #eeecef;
  border-radius: 5px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  position: relative;
}
.icon-button:hover {
  background: #eeeef0;
}
.notification-dot {
  position: absolute;
  right: 11px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border: 1px solid white;
  border-radius: 50%;
}
.mobile-brand,
.mobile-avatar,
.mobile-nav {
  display: none;
}
main {
  max-width: 1240px;
  padding: 38px 44px 18px;
  margin: auto;
  min-height: calc(100vh - 132px);
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.date-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.term-tag {
  font-size: 10px;
  padding: 2px 7px;
  background: #ebecef;
  border-radius: 4px;
  color: #646670;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.055em;
  margin: 0;
  line-height: 1.5;
  font-weight: 700;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  margin: 0;
}
p {
  margin: 0;
}
.subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid #e3e3e8;
  white-space: nowrap;
}
.button:hover {
  background: #f0f0f3;
}
.button.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.button.primary:hover {
  background: #174b7d;
}
.button.soft {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand);
}
.button .icon {
  width: 17px;
  height: 17px;
}
.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  padding: 0 2px;
}
.text-button .icon {
  width: 15px;
}
.text-button:hover {
  color: var(--brand);
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
  gap: 25px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.next-class {
  background: var(--brand);
  color: white;
  padding: 26px 28px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 215px;
}
.next-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.next-top span:first-child {
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.next-top .icon {
  width: 17px;
}
.next-tag {
  background: #ffffff18;
  border: 1px solid #ffffff25;
  border-radius: 6px;
  font-size: 10px;
  padding: 4px 9px;
}
.next-class h2 {
  font-size: 26px;
  margin: 17px 0 5px;
  letter-spacing: -0.035em;
}
.class-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: #edf4fc;
}
.class-meta span {
  display: flex;
  gap: 6px;
  align-items: center;
}
.class-meta .icon {
  width: 14px;
  height: 14px;
}
.next-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.next-bottom small {
  font-size: 11px;
  color: #d5e4f3;
}
.next-bottom .button {
  min-height: 36px;
  padding: 7px 12px;
  color: var(--brand);
  border: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.section-heading .text-button {
  min-height: 24px;
}
.notice-preview {
  display: flex;
  gap: 13px;
  align-items: start;
  padding: 16px;
  background: #faf8f4;
  border: 1px solid #eee9df;
  border-radius: 10px;
}
.notice-preview > .icon {
  color: #9f7d46;
  width: 18px;
  margin-top: 2px;
}
.notice-preview h3 {
  font-size: 12px;
  line-height: 1.7;
}
.notice-preview p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.notice-preview button {
  text-align: left;
}
.mini-map {
  height: 160px;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  background: #edf0e7;
}
.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mini-map .map-svg {
  transform: scale(1.1);
}
.map-caption {
  position: absolute;
  left: 9px;
  bottom: 8px;
  color: #667462;
  background: #ffffffdd;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
}
.shortcut-grid {
  display: flex;
  gap: 8px;
}
.shortcut {
  flex: 1;
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  font-size: 11px;
}
.shortcut .icon {
  width: 15px;
  color: var(--brand);
}
.shortcut:hover {
  background: var(--brand-soft);
}
.store-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  text-align: left;
}
.store-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.store-row:first-of-type {
  padding-top: 6px;
}
.store-row h3 {
  font-size: 13px;
  font-weight: 550;
}
.store-row small {
  font-size: 10px;
  color: var(--muted);
}
.open-state {
  font-size: 10px;
  color: var(--green);
  background: #eef6f1;
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}
.open-state.closed {
  color: #7b7d83;
  background: #f0f0f2;
}
.store-icon {
  width: 35px;
  height: 35px;
  background: #f7f4ee;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #9a825e;
}
.store-icon .icon {
  width: 18px;
}
.store-name {
  margin-right: auto;
}
.preview-footer {
  font-size: 10px;
  color: #92929a;
  text-align: center;
  padding: 18px 25px 26px;
}
.segmented {
  display: inline-flex;
  background: #eaeaee;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.segmented button {
  min-height: 34px;
  padding: 6px 17px;
  color: var(--muted);
  font-size: 12px;
  border-radius: 6px;
}
.segmented button.selected {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 3px #00000009;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.toolbar-group {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.table-card {
  padding: 0;
  overflow: hidden;
}
.timetable {
  display: grid;
  grid-template-columns: 49px repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 20px;
}
.day-head {
  height: 35px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.day-head.today {
  color: var(--brand);
  font-weight: 700;
}
.period-label {
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
  text-align: center;
}
.period-label small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.course-cell {
  background: #f8f8fa;
  border-radius: 8px;
  min-height: 106px;
  padding: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
.course-cell:hover {
  filter: brightness(0.97);
}
.course-cell strong {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 550;
}
.course-cell small {
  font-size: 10px;
  margin-top: auto;
  padding-top: 9px;
  opacity: 0.78;
}
.course-cell.empty {
  border: 1px dashed #e6e6ec;
  background: transparent;
  color: #b1b1bb;
  align-items: center;
  justify-content: center;
}
.course-cell.empty .icon {
  width: 15px;
}
.lavender {
  background: #eee9f7;
  color: #6a5688;
}
.blue {
  background: #e7eef8;
  color: #4a6387;
}
.mint {
  background: #e5f1eb;
  color: #446c57;
}
.peach {
  background: #f7eadd;
  color: #956740;
}
.pink {
  background: #f8e8ed;
  color: #97586a;
}
.table-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px;
  align-items: center;
}
.table-bottom p {
  font-size: 11px;
  color: var(--muted);
}
.table-bottom strong {
  font-size: 19px;
  color: var(--ink);
  margin-right: 3px;
}
.info-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.info-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
}
.friend-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.friend {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 30px;
  padding: 6px 13px 6px 6px;
  font-size: 12px;
  min-height: 44px;
}
.friend.selected {
  border-color: var(--brand);
  color: var(--brand);
}
.friend .avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 24px;
  font-size: 12px;
  padding: 9px 14px;
  min-height: 40px;
  white-space: nowrap;
}
.chip.selected {
  background: var(--brand-soft);
  border-color: #aec9e2;
  color: var(--brand);
}
.chip .icon {
  width: 15px;
  height: 15px;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  margin-top: 20px;
}
.map-large {
  height: 510px;
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: #eaf0e7;
}
.map-large .map-svg {
  position: absolute;
  inset: 0;
}
.map-controls {
  position: absolute;
  right: 16px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border-radius: 9px;
  box-shadow: var(--shadow);
  padding: 3px;
}
.map-controls button {
  width: 36px;
  height: 36px;
  font-size: 22px;
}
.map-pin {
  position: absolute;
  width: 35px;
  height: 35px;
  background: white;
  border: 2px solid white;
  border-radius: 50% 50% 50% 6px;
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 2px 6px #53635125;
  display: grid;
  place-items: center;
  color: #4a7c99;
  z-index: 2;
}
.map-pin .icon {
  transform: rotate(45deg);
  width: 18px;
  height: 18px;
}
.map-pin.selected {
  background: var(--brand);
  color: white;
  border-color: white;
  width: 40px;
  height: 40px;
  z-index: 3;
}
.location-detail .location-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 20px;
}
.location-detail h2 {
  font-size: 18px;
}
.location-detail .subtitle {
  margin-top: 3px;
}
.detail-line {
  display: flex;
  gap: 10px;
  align-items: start;
  margin: 24px 0;
  color: #676a74;
  font-size: 12px;
}
.detail-line .icon {
  width: 17px;
}
.location-detail .button {
  width: 100%;
  margin-top: 10px;
}
.location-list {
  margin-top: 19px;
}
.location-item {
  width: 100%;
  text-align: left;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.location-item .icon {
  width: 17px;
  color: var(--muted);
}
.location-item.selected {
  color: var(--brand);
}
.food-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.food-stores {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.food-store {
  padding: 18px;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 100%;
}
.food-store.selected {
  border-color: #8bb0d2;
  background: #f8fbfe;
}
.food-store > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.food-store h3 {
  font-size: 14px;
  margin: 12px 0 3px;
}
.food-store p {
  font-size: 11px;
  color: var(--muted);
}
.food-store .icon {
  color: #9a825e;
  width: 19px;
}
.menu-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.menu-header h2 {
  font-size: 20px;
}
.menu-category {
  font-size: 12px;
  color: var(--muted);
  padding: 18px 0 7px;
}
.menu-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.menu-item:last-child {
  border-bottom: 0;
}
.menu-item > div:first-child {
  flex: 1;
}
.menu-item h3 {
  font-size: 14px;
  font-weight: 550;
}
.menu-item small {
  font-size: 10px;
  color: var(--muted);
}
.price {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}
.quantity button {
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--brand);
}
.quantity span {
  min-width: 12px;
  text-align: center;
  font-size: 12px;
}
.cart {
  position: sticky;
  bottom: 20px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 12px;
}
.cart small {
  color: #d0d1d6;
}
.cart strong {
  font-size: 19px;
}
.cart button {
  font-size: 12px;
  color: white;
  text-decoration: underline;
  min-height: 36px;
}
.notice-layout {
  max-width: 850px;
}
.notice-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.notice-row:last-child {
  border-bottom: 0;
}
.notice-indicator {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  margin-top: 10px;
  flex: none;
}
.notice-indicator.read {
  background: transparent;
}
.notice-row-content {
  flex: 1;
  min-width: 0;
}
.notice-row h3 {
  font-size: 14px;
  font-weight: 550;
  margin: 7px 0 8px;
  line-height: 1.8;
}
.notice-row p {
  font-size: 11px;
  color: var(--muted);
}
.notice-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.tag-important {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 2px 7px;
  border-radius: 4px;
}
.tag-neutral {
  background: #f0f0f3;
  color: #696b75;
  padding: 2px 7px;
  border-radius: 4px;
}
.notice-arrow {
  color: #a4a5ad;
  align-self: center;
}
.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  background: #f6f6f8;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 45px;
}
.search-box input {
  border: 0;
  outline: none;
  background: none;
  width: 100%;
  min-width: 0;
  color: var(--ink);
}
.search-box .icon {
  color: var(--muted);
  width: 18px;
}
.search-box:focus-within {
  border-color: var(--brand);
}
dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: 85vh;
  border: 0;
  border-radius: 16px;
  background: white;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 16px 60px #26212925;
}
dialog::backdrop {
  background: #25232d60;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 24px 13px;
}
.dialog-head h2 {
  font-size: 19px;
}
.dialog-body {
  padding: 0 24px 26px;
}
.dialog-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.dialog-body .button {
  margin-top: 16px;
}
.detail-data {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 13px;
}
.detail-data dt {
  color: var(--muted);
}
.detail-data dd {
  margin: 0;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.course-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.course-option strong {
  font-size: 13px;
}
.course-option small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.course-option .icon {
  color: var(--brand);
  width: 18px;
}
.form-row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.form-row select {
  max-width: 150px;
  padding: 7px;
  background: #f8f8fa;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
}
.switch {
  appearance: none;
  width: 40px;
  height: 24px;
  border-radius: 20px;
  background: #d4d4da;
  position: relative;
  cursor: pointer;
  flex: none;
}
.switch:checked {
  background: var(--brand);
}
.switch:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.16s;
}
.switch:checked:before {
  transform: translateX(16px);
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: #29282e;
  color: white;
  border-radius: 9px;
  padding: 12px 20px;
  z-index: 100;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.15s,
    transform 0.15s;
  max-width: calc(100vw - 32px);
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
main {
  animation: appear 0.2s ease-out;
}
@keyframes appear {
  from {
    opacity: 0.7;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1450px) {
  main {
    padding-top: 46px;
  }
  .dashboard {
    gap: 30px;
  }
  .next-class {
    min-height: 238px;
    padding: 30px;
  }
  .next-class h2 {
    margin-top: 21px;
  }
  .next-bottom {
    margin-top: 30px;
  }
  .panel {
    padding: 25px;
  }
  .mini-map {
    height: 187px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 16px;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand-mark {
    font-size: 33px;
  }
  .brand small {
    font-size: 8px;
  }
  .workspace {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  main {
    padding: 30px 26px 18px;
  }
  .topbar {
    padding: 0 26px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 1fr);
    gap: 18px;
  }
  .panel {
    padding: 19px;
  }
  .next-class {
    padding: 23px;
  }
  .map-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .food-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .course-cell {
    padding: 9px;
    min-height: 104px;
  }
  .course-cell strong {
    font-size: 11px;
  }
  .timetable {
    gap: 5px;
    padding: 14px;
  }
  .class-meta {
    gap: 9px;
  }
  .class-meta span {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
  .dashboard > .stack:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .dashboard > .stack:last-child > .panel:last-child {
    grid-column: 1/-1;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-large {
    height: 420px;
  }
  .location-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .location-detail .location-symbol {
    display: none;
  }
  .location-detail .location-list {
    grid-column: 2;
    grid-row: 1/6;
    margin-top: 0;
  }
  .location-detail .detail-line {
    margin: 14px 0;
  }
  .food-layout {
    grid-template-columns: 1fr;
  }
  .food-stores {
    flex-direction: row;
    overflow-x: auto;
  }
  .food-store {
    min-width: 170px;
    flex: 1;
  }
  .food-store h3 {
    margin-top: 9px;
  }
}
@media (max-width: 650px) {
  body {
    font-size: 14px;
  }
  .sidebar,
  .breadcrumb {
    display: none;
  }
  .workspace {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
    background: white;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.06em;
  }
  .mobile-brand .brand-mark {
    font-size: 30px;
  }
  .mobile-avatar {
    display: grid;
    width: 29px;
    height: 29px;
    font-size: 11px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions .demo-label {
    font-size: 8px;
    padding: 3px 6px;
  }
  .top-actions .icon-button {
    width: 37px;
  }
  .notification-dot {
    right: 8px;
  }
  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fffffffa;
    border-top: 1px solid var(--line);
    z-index: 30;
    padding: 6px 8px calc(7px + env(safe-area-inset-bottom));
  }
  .mobile-nav .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 5px 1px;
    font-size: 9px;
    min-height: 51px;
    border-radius: 7px;
    color: #888992;
  }
  .mobile-nav .nav-item.active {
    color: var(--brand);
    background: none;
  }
  .mobile-nav .nav-item.active:before {
    content: "";
    position: absolute;
    top: 1px;
    width: 37px;
    height: 28px;
    background: var(--brand-soft);
    border-radius: 15px;
    z-index: -1;
  }
  .mobile-nav .count {
    position: absolute;
    right: calc(50% - 20px);
    top: 0;
    font-size: 8px;
    min-width: 13px;
    height: 13px;
    border-radius: 5px;
    border: 1px solid white;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  main {
    padding: 26px 20px 14px;
    min-height: calc(100vh - 166px);
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    margin-bottom: 22px;
    align-items: center;
  }
  .date-label {
    font-size: 11px;
  }
  .page-heading > .button {
    padding: 8px 11px;
    min-height: 39px;
    font-size: 11px;
  }
  .page-heading > .button .icon {
    width: 15px;
  }
  .dashboard {
    gap: 20px;
  }
  .stack {
    gap: 20px;
  }
  .dashboard > .stack:last-child {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .next-class {
    padding: 22px;
    min-height: 208px;
  }
  .next-class h2 {
    font-size: 25px;
    margin-top: 18px;
  }
  .next-bottom {
    margin-top: 23px;
  }
  .panel {
    padding: 20px;
  }
  .class-meta {
    gap: 14px;
  }
  .class-meta span {
    font-size: 11px;
  }
  .mini-map {
    height: 170px;
  }
  .preview-footer {
    padding: 12px 25px 90px;
    font-size: 9px;
  }
  .toolbar {
    gap: 8px;
    margin-bottom: 16px;
  }
  .segmented button {
    padding: 6px 12px;
    min-height: 33px;
    font-size: 11px;
  }
  .toolbar .button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .table-card {
    margin: 0 -8px;
  }
  .timetable {
    grid-template-columns: 25px repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 12px 7px;
  }
  .day-head {
    font-size: 10px;
    height: 30px;
  }
  .period-label {
    font-size: 10px;
    padding-top: 13px;
  }
  .period-label small {
    font-size: 7px;
  }
  .course-cell {
    min-height: 101px;
    padding: 7px 5px;
    border-radius: 5px;
  }
  .course-cell strong {
    font-size: 10px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .course-cell small {
    font-size: 8px;
    line-height: 1.5;
  }
  .table-bottom {
    padding: 14px 12px;
  }
  .table-bottom strong {
    font-size: 17px;
  }
  .table-bottom .button {
    padding: 8px 11px;
    font-size: 11px;
  }
  .table-bottom p {
    font-size: 10px;
  }
  .friend-strip {
    gap: 7px;
  }
  .friend {
    font-size: 11px;
    padding-right: 10px;
  }
  .chips {
    gap: 7px;
  }
  .chip {
    font-size: 11px;
    padding: 8px 12px;
    min-height: 38px;
  }
  .map-layout {
    margin-top: 16px;
    gap: 14px;
  }
  .map-large {
    height: 340px;
  }
  .location-detail {
    display: block;
    padding: 20px;
  }
  .location-detail .location-symbol {
    display: none;
  }
  .location-detail h2 {
    font-size: 18px;
  }
  .location-detail .location-list {
    display: none;
  }
  .location-detail .button {
    width: auto;
    margin-right: 6px;
  }
  .location-detail .detail-line {
    margin: 12px 0;
  }
  .food-layout {
    margin-top: 17px;
    gap: 16px;
  }
  .food-stores {
    margin-right: -20px;
    padding-right: 20px;
    padding-bottom: 4px;
    gap: 10px;
  }
  .food-store {
    min-width: 160px;
    padding: 15px;
  }
  .food-store h3 {
    font-size: 13px;
  }
  .food-store p {
    font-size: 10px;
  }
  .menu-header {
    margin-bottom: 13px;
  }
  .menu-header h2 {
    font-size: 19px;
  }
  .menu-item {
    gap: 10px;
  }
  .menu-item h3 {
    font-size: 13px;
  }
  .price {
    font-size: 14px;
  }
  .quantity {
    gap: 5px;
  }
  .quantity button {
    width: 31px;
    height: 38px;
  }
  .cart {
    bottom: 80px;
    margin-top: 15px;
    padding: 13px 16px;
  }
  .notice-row {
    padding: 20px 0;
    gap: 10px;
  }
  .notice-row h3 {
    font-size: 13px;
  }
  .notice-tags {
    font-size: 9px;
  }
  .notice-row p {
    font-size: 10px;
  }
  .notice-layout > .panel {
    padding: 0 18px;
  }
  .notice-layout .toolbar {
    flex-wrap: wrap;
  }
  .dialog-head {
    padding: 17px 20px 12px;
  }
  .dialog-body {
    padding: 0 20px 22px;
  }
  #toast {
    bottom: 88px;
  }
  .text-button {
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  main {
    padding: 22px 15px 12px;
  }
  .topbar {
    padding: 0 15px;
  }
  .mobile-brand {
    font-size: 17px;
  }
  .demo-label {
    display: none;
  }
  .next-class {
    padding: 19px;
  }
  .next-class h2 {
    font-size: 24px;
  }
  .next-top {
    gap: 5px;
  }
  .next-tag {
    font-size: 9px;
  }
  .class-meta {
    gap: 8px;
  }
  .class-meta span {
    font-size: 10px;
  }
  .panel {
    padding: 17px;
  }
  .timetable {
    gap: 3px;
    padding: 10px 5px;
    grid-template-columns: 22px repeat(5, minmax(0, 1fr));
  }
  .course-cell {
    padding: 6px 4px;
    min-height: 105px;
  }
  .course-cell strong {
    font-size: 9px;
  }
  .course-cell small {
    font-size: 7px;
  }
  .table-bottom {
    gap: 7px;
  }
  .table-bottom .button {
    font-size: 10px;
    padding: 7px;
  }
  .quantity button {
    width: 28px;
  }
  .menu-item {
    gap: 7px;
  }
  .menu-item h3 {
    font-size: 12px;
  }
  .toolbar .text-button {
    font-size: 10px;
  }
  .page-heading {
    gap: 7px;
  }
  h1 {
    font-size: 23px;
  }
  .page-heading > .button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .food-stores {
    margin-right: -15px;
    padding-right: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 小さい画面での可読性とタッチ操作 */
@media (max-width: 650px) {
  .course-cell strong {
    font-size: 11.5px;
  }
  .course-cell small {
    font-size: 9px;
  }
  .course-cell {
    min-height: 114px;
  }
  .quantity button {
    min-width: 38px;
    min-height: 44px;
  }
  .map-pin {
    min-width: 44px;
    min-height: 44px;
  }
  .shortcut {
    min-height: 44px;
  }
  .chip {
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  .course-cell strong {
    font-size: 10.5px;
  }
  .course-cell small {
    font-size: 8px;
  }
  .quantity button {
    min-width: 34px;
  }
  .menu-item small {
    font-size: 9px;
  }
}
/* 時間割の外枠では通常パネルの余白を付けない */
.panel.table-card {
  padding: 0;
}

.display-toolbar {
  margin-top: -5px;
}
.day-schedule {
  padding: 20px;
}
.day-picker {
  display: flex;
  margin-bottom: 20px;
}
.day-picker button {
  flex: 1;
  min-height: 40px;
}
.day-course {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}
.day-period {
  width: 42px;
  font-size: 13px;
  padding-top: 13px;
  color: var(--muted);
  flex: none;
}
.day-period small {
  display: block;
  font-size: 11px;
}
.day-course > button {
  flex: 1;
  text-align: left;
  padding: 15px 18px;
  border-radius: 9px;
  min-height: 85px;
}
.day-course strong {
  display: block;
  font-size: 16px;
  font-weight: 550;
}
.day-course small {
  display: block;
  font-size: 12px;
  margin-top: 6px;
}
.day-empty {
  border: 1px dashed var(--line);
  color: var(--muted);
}
@media (max-width: 650px) {
  .cart {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  #toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .preview-footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .day-schedule {
    padding: 15px;
  }
}

/* 駒場ポケット：ブルーと整った時間割の表 */
:root {
  --brand: #245c91;
  --brand-soft: #eaf1f8;
  --bg: #f5f7fa;
  --ink: #243347;
  --muted: #657286;
  --line: #e3e9f0;
}
.brand {
  font-size: 21px;
  letter-spacing: -0.06em;
}
.brand small {
  font-size: 9px;
  letter-spacing: 0;
}
.brand-mark {
  display: flex;
  width: 30px;
  height: 36px;
  flex: none;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-brand .brand-mark {
  width: 25px;
  height: 29px;
}
.avatar {
  background: #e1eaf3;
  color: #426380;
}
.current-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #e6eef7;
  border-radius: 12px;
  padding: 25px 28px;
  color: #224d79;
}
.summary-label {
  font-size: 11px;
  font-weight: 600;
}
.summary-main h2 {
  font-size: 24px;
  margin: 7px 0 6px;
}
.summary-main p {
  font-size: 12px;
  color: #526b87;
}
.countdown {
  flex: none;
  text-align: right;
}
.countdown strong {
  font-size: 24px;
  display: block;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}
.countdown span {
  display: block;
  font-size: 11px;
  color: #526b87;
  margin-top: 3px;
}
.schedule-panel {
  padding: 22px;
}
.preview-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 11px;
  color: var(--muted);
}
.preview-clock > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.preview-clock .icon {
  width: 15px;
  height: 15px;
}
.preview-clock input,
.preview-clock select {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 9px;
  color: var(--ink);
  font-size: 12px;
  min-height: 36px;
}
.daily-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 7px;
  table-layout: fixed;
}
.daily-table caption {
  text-align: left;
}
.daily-table thead th {
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
  text-align: left;
  padding-bottom: 5px;
}
.daily-table thead th:first-child {
  width: 78px;
}
.daily-table tbody th {
  background: #f3f6f9;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 11px 5px;
  text-align: center;
  font-weight: 400;
}
.daily-table tbody th strong {
  font-size: 20px;
  display: block;
  line-height: 1.2;
  margin-bottom: 6px;
  color: #4a5e74;
}
.daily-table tbody th strong span {
  font-size: 10px;
  margin-left: 3px;
}
.daily-table time {
  display: block;
  font-size: 10px;
  color: #53677c;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.time-separator {
  display: block;
  font-size: 9px;
  line-height: 1.1;
  color: #8896a5;
}
.daily-table td {
  padding: 0;
  vertical-align: stretch;
}
.schedule-cell {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  min-height: 115px;
  border-radius: 0 8px 8px 0;
  padding: 14px 17px;
  gap: 6px;
  border: 1px solid transparent;
}
.schedule-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}
.schedule-kind {
  font-size: 10px;
}
.remaining {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.remaining.current {
  font-weight: 650;
  background: var(--brand);
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
}
.schedule-cell > strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.schedule-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  font-size: 11px;
  opacity: 0.9;
}
.schedule-bottom .icon {
  width: 14px;
  height: 14px;
}
.vacant-cell {
  background: #fff;
  border-color: var(--line);
  color: #627386;
}
.daily-table tr.current th {
  background: #e2edf8;
  border-color: #9cb8d4;
  color: var(--brand);
}
.daily-table tr.current .schedule-cell {
  border-color: #9cb8d4;
}
.daily-table tr.past .schedule-kind,
.daily-table tr.past .remaining {
  color: #6e7a8b;
}
.pink {
  background: #e7eef9;
  color: #3f648b;
}
.lavender {
  background: #eeedf8;
  color: #655c86;
}
.peach {
  background: #f5efdf;
  color: #826c41;
}
.mint {
  background: #e7f2ee;
  color: #446c5d;
}
.blue {
  background: #e8f0f7;
  color: #466984;
}
.period-label small {
  line-height: 1.45;
}
.day-schedule .preview-clock {
  margin: 4px 0 10px;
}
.day-schedule .daily-table {
  margin-top: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1100px) {
  .brand {
    font-size: 18px;
    gap: 7px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand-mark {
    width: 26px;
  }
}
@media (max-width: 650px) {
  .mobile-brand {
    font-size: 19px;
  }
  .current-summary {
    padding: 21px 20px;
    gap: 10px;
  }
  .summary-main h2 {
    font-size: 21px;
  }
  .summary-main p {
    font-size: 11px;
  }
  .countdown strong {
    font-size: 22px;
  }
  .countdown span {
    font-size: 10px;
  }
  .schedule-panel {
    padding: 18px 15px;
  }
  .daily-table thead th:first-child {
    width: 65px;
  }
  .schedule-cell {
    padding: 12px 13px;
    min-height: 111px;
  }
  .schedule-cell > strong {
    font-size: 15px;
  }
  .schedule-bottom {
    font-size: 10px;
  }
  .remaining {
    font-size: 9px;
  }
  .preview-clock {
    margin-bottom: 12px;
  }
  .brand-mark {
    width: 25px;
  }
  .daily-table tr.current .schedule-kind {
    font-size: 9px;
  }
  .daily-table tbody th strong {
    font-size: 19px;
  }
}
@media (max-width: 360px) {
  .mobile-brand {
    font-size: 18px;
  }
  .current-summary {
    padding: 18px 16px;
  }
  .summary-main h2 {
    font-size: 18px;
  }
  .countdown strong {
    font-size: 19px;
  }
  .summary-main p {
    font-size: 10px;
  }
  .schedule-panel {
    padding: 16px 11px;
  }
  .daily-table thead th:first-child {
    width: 54px;
  }
  .schedule-cell {
    padding: 12px 9px;
  }
  .remaining {
    font-size: 8px;
  }
  .schedule-bottom {
    font-size: 9px;
  }
  .schedule-cell > strong {
    font-size: 14px;
  }
}

.empty-label {
  font-size: 9px;
  margin-bottom: 5px;
  color: #8390a0;
  font-weight: 400;
}
.week-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  background: #e6eef7;
  color: var(--brand);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 12px;
}
.week-status strong {
  white-space: nowrap;
}
.week-status + .preview-clock {
  margin-bottom: 16px;
}
.preview-clock select {
  min-width: 84px;
}
@media (max-width: 650px) {
  .empty-label {
    font-size: 8px;
  }
  .week-status {
    font-size: 11px;
  }
  .week-status span {
    max-width: 75%;
  }
}
@media (max-width: 360px) {
  .empty-label {
    font-size: 7px;
  }
}
