#page_weekly,
#page_daily {
  height: calc(100vh - 3px);
}

#page_weekly .weekly-page-container,
#page_daily .weekly-page-container {
  max-width: none !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 0 !important;
}

#page_weekly .ui.main.container,
#page_daily .ui.main.container {
  margin-right: 0.5em !important;
}

#page_weekly .ui.main.container > h2.ui.dividing.header.todayswork,
#page_daily .ui.main.container > h2.ui.dividing.header.todayswork {
  margin-bottom: 1rem;
}

#page_weekly .weekly-page-container > main,
#page_daily .weekly-page-container > main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

#page_weekly .weekly-calendar-layout,
#page_daily .weekly-calendar-layout {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

#page_weekly .weekly-side-panel,
#page_daily .weekly-side-panel {
  flex: 0 0 240px;
  max-width: 240px;
  padding-right: 0.5rem;
  background: rgb(249, 250, 252);
}

#page_weekly .weekly-sub-calendar-wrap,
#page_daily .weekly-sub-calendar-wrap {
  margin-bottom: 1rem;
}

#page_weekly .weekly-sub-calendar,
#page_daily .weekly-sub-calendar {
  margin-bottom: 0;
}

#page_weekly .weekly-sub-calendar-divider,
#page_daily .weekly-sub-calendar-divider {
  height: 1px;
  margin-top: 0.65rem;
  background: #e4e8ed;
}

#page_weekly .weekly-side-block--dept,
#page_daily .weekly-side-block--dept {
  margin-bottom: 0.85rem;
}

#page_weekly .weekly-dept-link,
#page_daily .weekly-dept-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.45rem 0.5rem 0.45rem;
  margin: 0 -0.2rem;
  border-radius: 4px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.78);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  transition: background-color 0.15s ease;
}

#page_weekly .weekly-dept-link:hover:not(.weekly-dept-link--disabled):not(.is-selected),
#page_daily .weekly-dept-link:hover:not(.weekly-dept-link--disabled):not(.is-selected) {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.88);
}

#page_weekly .weekly-dept-link.is-selected,
#page_daily .weekly-dept-link.is-selected {
  background: rgba(33, 133, 208, 0.1);
}

#page_weekly .weekly-dept-link.is-selected:hover,
#page_daily .weekly-dept-link.is-selected:hover {
  background: rgba(33, 133, 208, 0.14);
  color: rgba(0, 0, 0, 0.88);
}

#page_weekly .weekly-dept-link__icon,
#page_daily .weekly-dept-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: rgba(0, 0, 0, 0.55);
  font-size: 1.05rem;
  line-height: 1;
}

#page_weekly .weekly-dept-link:hover .weekly-dept-link__icon,
#page_daily .weekly-dept-link:hover .weekly-dept-link__icon {
  color: rgba(0, 0, 0, 0.65);
}

#page_weekly .weekly-dept-link__label,
#page_daily .weekly-dept-link__label {
  flex: 1 1 auto;
  min-width: 0;
}

#page_weekly .weekly-dept-link--disabled,
#page_daily .weekly-dept-link--disabled {
  cursor: default;
  opacity: 0.6;
}

#page_weekly .weekly-dept-link--disabled:hover,
#page_daily .weekly-dept-link--disabled:hover {
  background: transparent;
  color: rgba(0, 0, 0, 0.78);
}

#page_weekly .weekly-main-panel,
#page_daily .weekly-main-panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#page_weekly .weekly-toolbar,
#page_daily .weekly-toolbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

#page_weekly .weekly-current-label,
#page_daily .weekly-current-label {
  margin-left: 0.5rem;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
}

#page_weekly .weekly-main-calendar,
#page_daily .weekly-main-calendar {
  flex: 1 1 auto;
  min-height: 0;
}

#page_weekly .weekly-sub-calendar.fc,
#page_daily .weekly-sub-calendar.fc {
  --fc-border-color: #edf1f5;
  --fc-today-bg-color: rgba(5, 64, 182, 0.05);
  --fc-page-bg-color: #fff;
}

#page_weekly .weekly-sub-calendar.fc .fc-col-header-cell-cushion,
#page_daily .weekly-sub-calendar.fc .fc-col-header-cell-cushion {
  font-size: 0.75rem;
  padding: 0.15em 0;
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day-number,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day-number {
  font-size: 0.82rem;
  line-height: 1;
  padding: 0.02em 0.2em 0 0.2em;
}

#page_weekly .weekly-sub-calendar.fc .fc-day-sun .fc-daygrid-day-number,
#page_daily .weekly-sub-calendar.fc .fc-day-sun .fc-daygrid-day-number,
#page_weekly .weekly-sub-calendar.fc .fc-col-header-cell.fc-day-sun .fc-col-header-cell-cushion,
#page_daily .weekly-sub-calendar.fc .fc-col-header-cell.fc-day-sun .fc-col-header-cell-cushion {
  color: #ff4f4f;
}

#page_weekly .weekly-sub-calendar.fc .fc-day-sat .fc-daygrid-day-number,
#page_daily .weekly-sub-calendar.fc .fc-day-sat .fc-daygrid-day-number {
  color: rgba(0, 0, 0, 0.72);
}

/* サブカレンダー：祝日は日付数字のみ赤（名称は出さない） */
#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day.is-holiday .fc-daygrid-day-number,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day.is-holiday .fc-daygrid-day-number {
  color: #ff4f4f;
}

#page_weekly .weekly-sub-calendar.fc .fc-toolbar.fc-header-toolbar,
#page_daily .weekly-sub-calendar.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 0.25rem;
}

#page_weekly .weekly-sub-calendar.fc .fc-toolbar-title,
#page_daily .weekly-sub-calendar.fc .fc-toolbar-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

#page_weekly .weekly-sub-calendar.fc .fc-button,
#page_daily .weekly-sub-calendar.fc .fc-button {
  background: #fff;
  color: rgba(0, 0, 0, 0.58);
  border: 1px solid #e4e8ed;
  box-shadow: none;
  padding: 0.2em 0.45em;
}

#page_weekly .weekly-sub-calendar.fc .fc-button:hover,
#page_daily .weekly-sub-calendar.fc .fc-button:hover {
  background: #f8fafc;
  color: rgba(0, 0, 0, 0.72);
}

#page_weekly .weekly-sub-calendar.fc .fc-button .fc-icon,
#page_daily .weekly-sub-calendar.fc .fc-button .fc-icon {
  font-size: 1rem;
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day.fc-day-selected,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day.fc-day-selected {
  background: rgba(33, 133, 208, 0.16);
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day:hover,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day:hover {
  cursor: pointer;
  background-color: rgba(33, 133, 208, 0.1);
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day.fc-day-selected:hover,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day.fc-day-selected:hover {
  background-color: rgba(33, 133, 208, 0.22);
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day {
  padding: 0;
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day-top,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day-top {
  min-height: 0;
  padding-bottom: 0;
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day-events,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day-events {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day-frame,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day-frame {
  min-height: 0;
  padding: 0.1em 0.05em;
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-body-natural .fc-daygrid-day-events,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-body-natural .fc-daygrid-day-events {
  margin-bottom: 0 !important;
}

/* サブカレンダー：週行の高さを抑える（FullCalendar は週内で最大高さに揃えるため、行ごとに上限をかける） */
#page_weekly .weekly-sub-calendar.fc .fc-scrollgrid-sync-table tbody tr,
#page_daily .weekly-sub-calendar.fc .fc-scrollgrid-sync-table tbody tr {
  height: 1.9em;
}

#page_weekly .weekly-sub-calendar.fc .fc-scrollgrid-sync-table tbody tr td,
#page_daily .weekly-sub-calendar.fc .fc-scrollgrid-sync-table tbody tr td {
  vertical-align: top;
}

#page_weekly .weekly-sub-calendar.fc .fc-daygrid-day-bottom,
#page_daily .weekly-sub-calendar.fc .fc-daygrid-day-bottom {
  display: none;
}

#page_weekly .weekly-side-block,
#page_daily .weekly-side-block {
  margin-bottom: 0.75rem;
}

#page_weekly .weekly-side-title,
#page_daily .weekly-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.72);
  margin-bottom: 0.4rem;
}

#page_weekly .weekly-side-title > span:first-child,
#page_daily .weekly-side-title > span:first-child {
  position: relative;
  top: 2px;
}

#page_weekly .weekly-side-block--dept-settings,
#page_daily .weekly-side-block--dept-settings {
  margin-top: 1.5rem;
}

#page_weekly .weekly-dept-settings-link,
#page_daily .weekly-dept-settings-link {
  display: block;
  width: 100%;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

#page_weekly .weekly-dept-settings-link:hover,
#page_daily .weekly-dept-settings-link:hover,
#page_weekly .weekly-dept-settings-link:focus-visible,
#page_daily .weekly-dept-settings-link:focus-visible {
  color: #2185d0;
}

#page_weekly .weekly-side-add,
#page_daily .weekly-side-add {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: #2185d0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
  top: -1px;
}

#page_weekly .weekly-side-add:hover,
#page_daily .weekly-side-add:hover {
  background: rgba(33, 133, 208, 0.1);
  color: #1678c2;
}

#page_weekly .weekly-side-list,
#page_daily .weekly-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#page_weekly .weekly-side-list-item,
#page_daily .weekly-side-list-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
  padding: 0.45rem 0.3rem;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

#page_weekly .weekly-side-list-item:hover:not(.is-selected),
#page_daily .weekly-side-list-item:hover:not(.is-selected) {
  background: rgba(0, 0, 0, 0.06);
}

#page_weekly .weekly-side-list-item.is-selected,
#page_daily .weekly-side-list-item.is-selected {
  background: rgba(33, 133, 208, 0.1);
}

#page_weekly .weekly-side-list-item.is-selected:hover,
#page_daily .weekly-side-list-item.is-selected:hover {
  background: rgba(33, 133, 208, 0.14);
}

#page_weekly .weekly-side-item-icon,
#page_daily .weekly-side-item-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  margin-left: 0.1rem;
  color: rgba(0, 0, 0, 0.38);
  font-size: 14px;
  line-height: 1;
}

#page_weekly .weekly-side-item-icon .icon,
#page_daily .weekly-side-item-icon .icon {
  margin: 0;
}

#page_weekly .weekly-list-icon-menu,
#page_daily .weekly-list-icon-menu {
  display: none;
  position: fixed;
  z-index: 1200;
  min-width: 5.5rem;
  padding: 0.2rem 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.06);
}

#page_weekly .weekly-list-icon-menu.is-open,
#page_daily .weekly-list-icon-menu.is-open {
  display: flex;
  flex-direction: column;
}

#page_weekly .weekly-list-icon-menu__item,
#page_daily .weekly-list-icon-menu__item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.82);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

#page_weekly .weekly-list-icon-menu__item:hover,
#page_daily .weekly-list-icon-menu__item:hover {
  background: rgba(33, 133, 208, 0.1);
}

#page_weekly .weekly-list-icon-menu__item:focus-visible,
#page_daily .weekly-list-icon-menu__item:focus-visible {
  outline: 2px solid rgba(33, 133, 208, 0.45);
  outline-offset: -2px;
}

#page_weekly .weekly-side-item,
#page_daily .weekly-side-item {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  text-align: left;
  background: transparent;
  color: rgba(0, 0, 0, 0.82);
  font-weight: 400;
  font-size: 14px;
  border-radius: 4px;
  padding: 0.15rem 0.25rem 0.15rem 0;
  cursor: pointer;
  line-height: 1.35;
}

#page_weekly .weekly-side-item:hover,
#page_daily .weekly-side-item:hover {
  color: rgba(0, 0, 0, 0.92);
}

#page_weekly .weekly-side-item-label,
#page_daily .weekly-side-item-label {
  display: block;
  min-width: 0;
}

#page_weekly .weekly-side-item-kebab,
#page_daily .weekly-side-item-kebab {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  margin-right: 0.15rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.12s ease;
}

#page_weekly .weekly-side-list-item:hover .weekly-side-item-kebab,
#page_daily .weekly-side-list-item:hover .weekly-side-item-kebab,
#page_weekly .weekly-side-list-item:focus-within .weekly-side-item-kebab,
#page_daily .weekly-side-list-item:focus-within .weekly-side-item-kebab,
#page_weekly .weekly-side-list-item--menu-open .weekly-side-item-kebab,
#page_daily .weekly-side-list-item--menu-open .weekly-side-item-kebab {
  opacity: 1;
}

/* 縦3点：描画領域の高さを確保して中央揃え、ドットはやや太め（約5px） */
#page_weekly .weekly-side-item-kebab::before,
#page_daily .weekly-side-item-kebab::before {
  content: "";
  display: block;
  width: 6px;
  height: 20px;
  flex-shrink: 0;
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.52) 42%, transparent 44%) center 2px / 5px 5px no-repeat,
    radial-gradient(circle, rgba(0, 0, 0, 0.52) 42%, transparent 44%) center 50% / 5px 5px no-repeat,
    radial-gradient(circle, rgba(0, 0, 0, 0.52) 42%, transparent 44%) center calc(100% - 2px) / 5px 5px no-repeat;
}

#page_weekly .weekly-grid,
#page_daily .weekly-grid {
  overflow: auto;
}

#page_weekly .weekly-grid-table,
#page_daily .weekly-grid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

#page_weekly .weekly-grid-table th,
#page_daily .weekly-grid-table th,
#page_weekly .weekly-grid-table td,
#page_daily .weekly-grid-table td {
  border: 1px solid #edf1f5;
  vertical-align: top;
}

#page_weekly .weekly-grid-table thead th,
#page_daily .weekly-grid-table thead th {
  min-height: 34px;
  padding: 0.35rem 0.4rem;
  text-align: left;
  color: rgba(0, 0, 0, 0.6);
  background: #fff;
  vertical-align: middle;
}

#page_weekly .weekly-grid-member-head,
#page_daily .weekly-grid-member-head {
  width: 140px;
}

#page_weekly .weekly-grid-day-head,
#page_daily .weekly-grid-day-head {
  color: rgba(0, 0, 0, 0.62);
}

#page_weekly .weekly-grid-day-head-inner,
#page_daily .weekly-grid-day-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  min-height: 1.35em;
  line-height: 1.35;
}

#page_weekly .weekly-grid-day-head-date,
#page_daily .weekly-grid-day-head-date {
  flex: 0 0 auto;
  color: rgba(0, 0, 0, 0.62);
  font-weight: 700;
}

#page_weekly .weekly-grid-holiday-name,
#page_daily .weekly-grid-holiday-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: #ff4f4f;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#page_weekly .weekly-grid-day-head.is-sun .weekly-grid-day-head-date,
#page_daily .weekly-grid-day-head.is-sun .weekly-grid-day-head-date {
  color: #ff4f4f;
}

/* 今日列（非祝日）：日曜の赤と祝日と区別するため背景のみ・日付は通常色 */
#page_weekly .weekly-grid-day-head.is-today,
#page_daily .weekly-grid-day-head.is-today {
  background: rgba(33, 133, 208, 0.14);
  font-weight: 700;
}

#page_weekly .weekly-grid-day-head.is-today:not(.is-holiday) .weekly-grid-day-head-date,
#page_daily .weekly-grid-day-head.is-today:not(.is-holiday) .weekly-grid-day-head-date {
  color: rgba(0, 0, 0, 0.72);
}

#page_weekly .weekly-grid-day-head.is-holiday .weekly-grid-day-head-date,
#page_daily .weekly-grid-day-head.is-holiday .weekly-grid-day-head-date {
  color: #ff4f4f;
}

#page_weekly .weekly-grid-member-cell,
#page_daily .weekly-grid-member-cell {
  width: 140px;
  padding: 0.7rem 0.5rem;
}

/* メンバー列・参加者リスト共通のサムネ（写真 or イニシャル） */
#page_weekly .weekly-member-avatar,
#page_daily .weekly-member-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin: 0 auto 0.4rem;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#page_weekly .weekly-member-avatar--initial,
#page_daily .weekly-member-avatar--initial {
  background: #64748b;
  color: #fff;
  font-weight: 700;
}

#page_weekly .weekly-member-avatar--photo,
#page_daily .weekly-member-avatar--photo {
  background: #e2e8f0;
  padding: 0;
}

/* メンバー列: 常に img + span。イニシャル時は img 非表示、写真時は文字 span 非表示（参加者と同じ考え方） */
#page_weekly .weekly-member-avatar--initial .weekly-member-avatar__img,
#page_daily .weekly-member-avatar--initial .weekly-member-avatar__img {
  display: none !important;
}

#page_weekly .weekly-member-avatar--photo .weekly-member-avatar__img,
#page_daily .weekly-member-avatar--photo .weekly-member-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#page_weekly .weekly-member-avatar--photo .weekly-member-avatar__letter,
#page_daily .weekly-member-avatar--photo .weekly-member-avatar__letter {
  display: none !important;
}

#page_weekly .weekly-member-avatar__letter,
#page_daily .weekly-member-avatar__letter {
  font-size: 1.05rem;
  line-height: 1;
}

#page_weekly .weekly-member-name,
#page_daily .weekly-member-name {
  text-align: center;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

#page_weekly .weekly-member-dept,
#page_daily .weekly-member-dept {
  text-align: center;
  color: rgba(0, 0, 0, 0.58);
  margin-bottom: 0.25rem;
}

#page_weekly .weekly-member-link,
#page_daily .weekly-member-link {
  display: block;
  text-align: center;
  color: #2185d0;
}

#page_weekly .weekly-grid-day-cell,
#page_daily .weekly-grid-day-cell {
  min-height: 120px;
  height: 140px;
  padding: 0.2rem;
  background: #fff;
}

#page_weekly .weekly-event-card,
#page_daily .weekly-event-card {
  margin-bottom: 0.2rem;
  padding: 0.18rem 0.3rem;
  line-height: 1.35;
  border-radius: 2px;
  border: 1px solid #f0f1f3;
  background: rgba(242, 243, 246, 0.8);
  color: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

#page_weekly .weekly-event-card.status-unapproved,
#page_daily .weekly-event-card.status-unapproved {
  background-color: rgba(242, 243, 246, 0.8);
  background-image: repeating-linear-gradient(-45deg, #e2e4e8, #e2e4e8 1px, rgba(242, 243, 246, 0.8) 0, rgba(242, 243, 246, 0.8) 4px);
}

#page_weekly .weekly-event-card.status-declined,
#page_daily .weekly-event-card.status-declined {
  text-decoration: line-through;
}

#page_weekly .weekly-event-time-row,
#page_daily .weekly-event-time-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  font-weight: 700;
  line-height: inherit;
}

#page_weekly .weekly-event-time,
#page_daily .weekly-event-time {
  font-weight: inherit;
  flex: 0 1 auto;
  min-width: 0;
  line-height: inherit;
}

#page_weekly .weekly-event-time-icons,
#page_daily .weekly-event-time-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
}

#page_weekly .weekly-event-time-icon,
#page_daily .weekly-event-time-icon {
  margin: 0 !important;
  font-size: 0.85em;
  opacity: 0.72;
  line-height: 1;
}

#page_weekly .weekly-event-title,
#page_daily .weekly-event-title {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#page_weekly .weekly-main-calendar.fc,
#page_daily .weekly-main-calendar.fc,
#page_weekly .weekly-sub-calendar.fc,
#page_daily .weekly-sub-calendar.fc {
  --fc-border-color: #edf1f5;
  --fc-today-bg-color: rgba(5, 64, 182, 0.05);
  --fc-page-bg-color: #fff;
}

#page_weekly .favorite_list_modal_overlay,
#page_daily .favorite_list_modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.18);
  z-index: 1800;
  display: none;
}

#page_weekly .favorite_list_modal_overlay.is-open,
#page_daily .favorite_list_modal_overlay.is-open {
  display: block;
}

#page_weekly .favorite_list_modal,
#page_daily .favorite_list_modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  border-radius: 18px;
  border: 1px solid #e8edf3;
  background: #fff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1810;
  display: none;
}

#page_weekly .favorite_list_modal.is-open,
#page_daily .favorite_list_modal.is-open {
  display: block;
}

#page_weekly .favorite_list_modal__header,
#page_daily .favorite_list_modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 0.55rem;
}

#page_weekly .favorite_list_modal__title,
#page_daily .favorite_list_modal__title {
  margin: 0;
  font-size: calc(1.9rem - 4px);
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

#page_weekly .favorite_list_modal__close,
#page_daily .favorite_list_modal__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

#page_weekly .favorite_list_modal__close::before,
#page_daily .favorite_list_modal__close::before,
#page_weekly .favorite_list_modal__close::after,
#page_daily .favorite_list_modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.2rem;
  height: 2px;
  border-radius: 1px;
  background: #4b5563;
}

#page_weekly .favorite_list_modal__close::before,
#page_daily .favorite_list_modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#page_weekly .favorite_list_modal__close::after,
#page_daily .favorite_list_modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#page_weekly .favorite_list_modal__body,
#page_daily .favorite_list_modal__body {
  padding: 0.45rem 1.5rem 0;
}

#page_weekly .favorite_list_modal__input,
#page_daily .favorite_list_modal__input,
#page_weekly .favorite_list_modal__search-input,
#page_daily .favorite_list_modal__search-input {
  width: 100%;
  height: 3rem;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  padding: 0 0.95rem;
  font-size: 1.1rem;
  color: #111827;
  outline: none;
}

#page_weekly .favorite_list_modal__input::placeholder,
#page_daily .favorite_list_modal__input::placeholder,
#page_weekly .favorite_list_modal__search-input::placeholder,
#page_daily .favorite_list_modal__search-input::placeholder {
  color: #9aa3af;
}

#page_weekly .favorite_list_modal__input,
#page_daily .favorite_list_modal__input {
  margin-bottom: 0.75rem;
}

#page_weekly .favorite_list_modal__search-wrap,
#page_daily .favorite_list_modal__search-wrap {
  position: relative;
  margin-bottom: 0.85rem;
  z-index: 1;
}

#page_weekly .favorite_list_modal__search-input,
#page_daily .favorite_list_modal__search-input {
  padding-right: 4rem;
}

#page_weekly .favorite_list_modal__search-btn,
#page_daily .favorite_list_modal__search-btn {
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-left: 1px solid #d9e0e8;
  background: transparent;
  cursor: pointer;
}

#page_weekly .favorite_list_modal__search-btn::before,
#page_daily .favorite_list_modal__search-btn::before {
  content: "\f002";
  font-family: Icons;
  color: #4b5563;
  font-size: 20px;
  line-height: 1;
}

#page_weekly .favorite_list_modal__suggest,
#page_daily .favorite_list_modal__suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 19rem;
  overflow-y: auto;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 20;
  display: none;
}

#page_weekly .favorite_list_modal__suggest:not([hidden]),
#page_daily .favorite_list_modal__suggest:not([hidden]) {
  display: block;
}

#page_weekly .favorite_list_modal__suggest-item,
#page_daily .favorite_list_modal__suggest-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1rem;
  line-height: 1.45;
  cursor: pointer;
  color: #111827;
}

#page_weekly .favorite_list_modal__suggest-item:hover,
#page_daily .favorite_list_modal__suggest-item:hover,
#page_weekly .favorite_list_modal__suggest-item:focus-visible,
#page_daily .favorite_list_modal__suggest-item:focus-visible {
  background: #f3f4f6;
  outline: none;
}

#page_weekly .favorite_list_hit-name,
#page_daily .favorite_list_hit-name {
  color: #111827;
}

#page_weekly .favorite_list_hit-dept,
#page_daily .favorite_list_hit-dept {
  color: #2563eb;
}

#page_weekly .favorite_list_hit-company,
#page_daily .favorite_list_hit-company {
  color: #6b7280;
}

#page_weekly .favorite_list_modal__preview,
#page_daily .favorite_list_modal__preview {
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  min-height: 25rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#page_weekly .favorite_list_modal__preview--has-items,
#page_daily .favorite_list_modal__preview--has-items {
  align-items: stretch;
  justify-content: flex-start;
}

#page_weekly .favorite_list_modal__preview--has-items .favorite_list_modal__preview-empty,
#page_daily .favorite_list_modal__preview--has-items .favorite_list_modal__preview-empty {
  display: none;
}

#page_weekly .favorite_list_modal__preview-empty,
#page_daily .favorite_list_modal__preview-empty {
  color: #8b95a2;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

#page_weekly .favorite_list_preview__list,
#page_daily .favorite_list_preview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

#page_weekly .favorite_list_preview__row,
#page_daily .favorite_list_preview__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.25rem;
  border-bottom: 1px solid #eef2f6;
}

#page_weekly .favorite_list_preview__row--ghost,
#page_daily .favorite_list_preview__row--ghost {
  opacity: 0.45;
}

#page_weekly .favorite_list_preview__row--chosen,
#page_daily .favorite_list_preview__row--chosen {
  background: #f8fafc;
}

#page_weekly .favorite_list_preview__drag,
#page_daily .favorite_list_preview__drag {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1;
  cursor: grab;
  touch-action: none;
}

#page_weekly .favorite_list_preview__drag:active,
#page_daily .favorite_list_preview__drag:active {
  cursor: grabbing;
}

#page_weekly .favorite_list_preview__row:last-child,
#page_daily .favorite_list_preview__row:last-child {
  border-bottom: 0;
}

#page_weekly .favorite_list_preview__icon,
#page_daily .favorite_list_preview__icon {
  flex: 0 0 auto;
  color: #6b7280;
  font-size: 1.15rem;
  line-height: 1;
}

#page_weekly .favorite_list_preview__label,
#page_daily .favorite_list_preview__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.45;
}

#page_weekly .favorite_list_preview__remove,
#page_daily .favorite_list_preview__remove {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

#page_weekly .favorite_list_preview__remove:hover,
#page_daily .favorite_list_preview__remove:hover,
#page_weekly .favorite_list_preview__remove:focus-visible,
#page_daily .favorite_list_preview__remove:focus-visible {
  background: #f3f4f6;
  color: #374151;
  outline: none;
}

#page_weekly .favorite_list_modal__footer,
#page_daily .favorite_list_modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
}

#page_weekly .favorite_list_modal__btn,
#page_daily .favorite_list_modal__btn {
  min-width: 7.1rem;
  height: 2.7rem;
  border-radius: 12px;
  border: 1px solid #dce3eb;
  background: #fff;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

/* 有効時は .btn.scheduleadd_btn（予定登録）と同色 */
#page_weekly .favorite_list_modal__btn--save,
#page_daily .favorite_list_modal__btn--save {
  border-color: #2185d0;
  background: #2185d0;
  color: #fff;
}

#page_weekly .favorite_list_modal__btn--save:hover:not(:disabled),
#page_daily .favorite_list_modal__btn--save:hover:not(:disabled) {
  border-color: #1a69a4;
  background: #1a69a4;
  color: #fff;
}

#page_weekly .favorite_list_modal__btn--save:focus-visible:not(:disabled),
#page_daily .favorite_list_modal__btn--save:focus-visible:not(:disabled) {
  border-color: #1a69a4;
  background: #1a69a4;
  color: #fff;
  outline: 2px solid rgba(33, 133, 208, 0.45);
  outline-offset: 2px;
}

#page_weekly .favorite_list_modal__btn--save:disabled,
#page_daily .favorite_list_modal__btn--save:disabled {
  border-color: #e8edf3;
  background: #eef1f5;
  color: #b4bcc6;
  cursor: not-allowed;
}

/* 部署設定（管理者のみ・日次 / 週次） */
#page_weekly .dept_settings_modal_overlay,
#page_daily .dept_settings_modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.18);
  z-index: 1810;
  display: none;
}

#page_weekly .dept_settings_modal_overlay.is-open,
#page_daily .dept_settings_modal_overlay.is-open {
  display: block;
}

#page_weekly .dept_settings_modal,
#page_daily .dept_settings_modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 480px);
  border-radius: 12px;
  border: 1px solid #e4e9f0;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 1815;
  display: none;
  flex-direction: column;
  overflow: visible;
}

#page_weekly .dept_settings_modal.is-open,
#page_daily .dept_settings_modal.is-open {
  display: flex;
}

#page_weekly .dept_settings_modal__header,
#page_daily .dept_settings_modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid #edf1f5;
}

#page_weekly .dept_settings_modal__title,
#page_daily .dept_settings_modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
}

#page_weekly .dept_settings_modal__close,
#page_daily .dept_settings_modal__close {
  position: relative;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#page_weekly .dept_settings_modal__close::before,
#page_daily .dept_settings_modal__close::before,
#page_weekly .dept_settings_modal__close::after,
#page_daily .dept_settings_modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 2px;
  background: #6b7280;
}

#page_weekly .dept_settings_modal__close::before,
#page_daily .dept_settings_modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#page_weekly .dept_settings_modal__close::after,
#page_daily .dept_settings_modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#page_weekly .dept_settings_modal__body,
#page_daily .dept_settings_modal__body {
  position: relative;
  flex: 0 0 auto;
  overflow: visible;
  padding: 0.75rem 1.1rem;
}

#page_weekly .dept_settings_list,
#page_daily .dept_settings_list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}

#page_weekly .dept_settings_row,
#page_daily .dept_settings_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f3f7;
}

#page_weekly .dept_settings_row:last-child,
#page_daily .dept_settings_row:last-child {
  border-bottom: 0;
}

#page_weekly .dept_settings_row--empty,
#page_daily .dept_settings_row--empty {
  justify-content: center;
  color: #9aa3ad;
  font-size: 0.92rem;
}

#page_weekly .dept_settings_row__name,
#page_daily .dept_settings_row__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.1rem;
  color: #374151;
  word-break: break-word;
}

#page_weekly .dept_settings_row__color,
#page_daily .dept_settings_row__color {
  flex: 0 0 1.65rem;
  width: 1.65rem;
  height: 1.65rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}

#page_weekly .dept_settings_color_picker,
#page_daily .dept_settings_color_picker {
  position: absolute;
  z-index: 20;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#page_weekly .dept_settings_color_picker_grid,
#page_daily .dept_settings_color_picker_grid {
  display: grid;
  grid-template-columns: repeat(5, 24px);
  gap: 10px;
}

#page_weekly .dept_settings_picker_color_btn,
#page_daily .dept_settings_picker_color_btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  position: relative;
}

#page_weekly .dept_settings_picker_color_btn.selected,
#page_daily .dept_settings_picker_color_btn.selected {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #2185d0;
}

#page_weekly .dept_settings_picker_color_btn.selected::after,
#page_daily .dept_settings_picker_color_btn.selected::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 9px;
  border: solid #374151;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -62%) rotate(45deg);
}

#page_weekly .dept_settings_modal__footer,
#page_daily .dept_settings_modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid #edf1f5;
}

#page_weekly .dept_settings_modal__btn,
#page_daily .dept_settings_modal__btn {
  min-width: 5.5rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.92rem;
  cursor: pointer;
}

#page_weekly .dept_settings_modal__btn--cancel,
#page_daily .dept_settings_modal__btn--cancel {
  border: 1px solid #d6dbe3;
  background: #fff;
  color: #4b5563;
}

#page_weekly .dept_settings_modal__btn--save,
#page_daily .dept_settings_modal__btn--save {
  border: 1px solid #2185d0;
  background: #2185d0;
  color: #fff;
}

#page_weekly .dept_settings_modal__btn--save:hover:not(:disabled),
#page_daily .dept_settings_modal__btn--save:hover:not(:disabled) {
  background: #1678c2;
  border-color: #1678c2;
}

/* 予定概要・参加者ポップアップ（週次 / 月間 / タイムスケジュール共通） */
#page_weekly .weekly-sch-detail-overlay,
#page_monthly .weekly-sch-detail-overlay,
#page_daily .weekly-sch-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.18);
  z-index: 1820;
  display: none;
}

#page_weekly .weekly-sch-detail-overlay.is-open,
#page_monthly .weekly-sch-detail-overlay.is-open,
#page_daily .weekly-sch-detail-overlay.is-open {
  display: block;
}

#page_weekly .weekly-sch-detail,
#page_monthly .weekly-sch-detail,
#page_daily .weekly-sch-detail {
  position: fixed;
  top: 0;
  left: 0;
  transform: none;
  width: min(92vw, 520px);
  max-height: min(88vh, 760px);
  border-radius: 16px;
  border: 1px solid #e4e9f0;
  background: #fff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 1830;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#page_weekly .weekly-sch-detail.is-open,
#page_monthly .weekly-sch-detail.is-open,
#page_daily .weekly-sch-detail.is-open {
  display: flex;
}

#page_weekly .weekly-sch-detail__shell,
#page_monthly .weekly-sch-detail__shell,
#page_daily .weekly-sch-detail__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

#page_weekly .weekly-sch-detail__close,
#page_monthly .weekly-sch-detail__close,
#page_daily .weekly-sch-detail__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

#page_weekly .weekly-sch-detail__close::before,
#page_monthly .weekly-sch-detail__close::before,
#page_daily .weekly-sch-detail__close::before,
#page_weekly .weekly-sch-detail__close::after,
#page_monthly .weekly-sch-detail__close::after,
#page_daily .weekly-sch-detail__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: #4b5563;
}

#page_weekly .weekly-sch-detail__close::before,
#page_monthly .weekly-sch-detail__close::before,
#page_daily .weekly-sch-detail__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#page_weekly .weekly-sch-detail__close::after,
#page_monthly .weekly-sch-detail__close::after,
#page_daily .weekly-sch-detail__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#page_weekly .weekly-sch-detail__inner,
#page_monthly .weekly-sch-detail__inner,
#page_daily .weekly-sch-detail__inner {
  padding: 1.5rem 1.55rem 1.35rem;
  overflow-y: auto;
  min-height: 0;
}

#page_weekly .weekly-sch-detail__title,
#page_monthly .weekly-sch-detail__title,
#page_daily .weekly-sch-detail__title {
  margin: 0 2.25rem 0.85rem 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

#page_weekly .weekly-sch-detail__title-link,
#page_monthly .weekly-sch-detail__title-link,
#page_daily .weekly-sch-detail__title-link {
  color: inherit;
  text-decoration: none;
}

#page_weekly .weekly-sch-detail__title-link:hover,
#page_monthly .weekly-sch-detail__title-link:hover,
#page_daily .weekly-sch-detail__title-link:hover {
  text-decoration: underline;
}

#page_weekly .weekly-sch-detail__title-text,
#page_monthly .weekly-sch-detail__title-text,
#page_daily .weekly-sch-detail__title-text {
  color: inherit;
}

#page_weekly .weekly-sch-detail__row,
#page_monthly .weekly-sch-detail__row,
#page_daily .weekly-sch-detail__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.82);
}

#page_weekly .weekly-sch-detail__row:last-child,
#page_monthly .weekly-sch-detail__row:last-child,
#page_daily .weekly-sch-detail__row:last-child {
  margin-bottom: 0;
}

#page_weekly .weekly-sch-detail__icon,
#page_monthly .weekly-sch-detail__icon,
#page_daily .weekly-sch-detail__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  min-height: 1.35rem;
  color: rgba(0, 0, 0, 0.45);
}

#page_weekly .weekly-sch-detail__row--member,
#page_monthly .weekly-sch-detail__row--member,
#page_daily .weekly-sch-detail__row--member,
#page_weekly .weekly-sch-detail__row--memo,
#page_monthly .weekly-sch-detail__row--memo,
#page_daily .weekly-sch-detail__row--memo {
  align-items: flex-start;
}

#page_weekly .weekly-sch-detail__row--member .weekly-sch-detail__icon,
#page_monthly .weekly-sch-detail__row--member .weekly-sch-detail__icon,
#page_daily .weekly-sch-detail__row--member .weekly-sch-detail__icon {
  align-self: flex-start;
  margin-top: 0.18em;
}

#page_weekly .weekly-sch-detail__row--memo .weekly-sch-detail__icon,
#page_monthly .weekly-sch-detail__row--memo .weekly-sch-detail__icon,
#page_daily .weekly-sch-detail__row--memo .weekly-sch-detail__icon {
  align-self: flex-start;
  margin-top: 0.12em;
}

#page_weekly .weekly-sch-detail__icon .icon,
#page_monthly .weekly-sch-detail__icon .icon,
#page_daily .weekly-sch-detail__icon .icon {
  margin: 0 !important;
  font-size: 1rem;
  line-height: 1;
  vertical-align: middle;
}

#page_weekly .weekly-sch-detail__row-body,
#page_monthly .weekly-sch-detail__row-body,
#page_daily .weekly-sch-detail__row-body {
  flex: 1 1 auto;
  min-width: 0;
}

#page_weekly .weekly-sch-detail__memo-wrap,
#page_monthly .weekly-sch-detail__memo-wrap,
#page_daily .weekly-sch-detail__memo-wrap {
  width: 100%;
}

#page_weekly .weekly-sch-detail__memo-inner,
#page_monthly .weekly-sch-detail__memo-inner,
#page_daily .weekly-sch-detail__memo-inner {
  max-height: 9.5rem;
  overflow-y: auto;
  padding: 0 0.15rem 0 0;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
}

#page_weekly .weekly-sch-detail__memo-inner a,
#page_monthly .weekly-sch-detail__memo-inner a,
#page_daily .weekly-sch-detail__memo-inner a {
  color: #2185d0;
  text-decoration: underline;
  word-break: break-all;
}

#page_weekly .weekly-sch-detail__placeholder,
#page_monthly .weekly-sch-detail__placeholder,
#page_daily .weekly-sch-detail__placeholder {
  color: rgba(0, 0, 0, 0.38);
}

#page_weekly .weekly-sch-detail__member-block,
#page_monthly .weekly-sch-detail__member-block,
#page_daily .weekly-sch-detail__member-block {
  width: 100%;
  line-height: 1.5;
}

#page_weekly .weekly-sch-detail__member-primary,
#page_monthly .weekly-sch-detail__member-primary,
#page_daily .weekly-sch-detail__member-primary {
  width: 100%;
}

#page_weekly .weekly-sch-detail__member-nowrap,
#page_monthly .weekly-sch-detail__member-nowrap,
#page_daily .weekly-sch-detail__member-nowrap {
  white-space: nowrap;
  flex-shrink: 0;
}

#page_weekly .weekly-sch-detail__member-creator-line,
#page_monthly .weekly-sch-detail__member-creator-line,
#page_daily .weekly-sch-detail__member-creator-line {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  color: rgba(0, 0, 0, 0.42);
  font-size: 13px;
  line-height: 1.45;
}

#page_weekly .weekly-sch-detail__member-total-link,
#page_monthly .weekly-sch-detail__member-total-link,
#page_daily .weekly-sch-detail__member-total-link {
  color: #2185d0;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-weight: inherit;
}

#page_weekly .weekly-sch-detail__member-total-link:hover,
#page_monthly .weekly-sch-detail__member-total-link:hover,
#page_daily .weekly-sch-detail__member-total-link:hover {
  color: #1678c2;
}

#page_weekly .weekly-sch-detail__member-sub,
#page_monthly .weekly-sch-detail__member-sub,
#page_daily .weekly-sch-detail__member-sub {
  color: rgba(0, 0, 0, 0.42);
}

#page_weekly .weekly-sch-detail__member-num,
#page_monthly .weekly-sch-detail__member-num,
#page_daily .weekly-sch-detail__member-num {
  color: #2185d0;
}

#page_weekly .weekly-sch-detail__footer,
#page_monthly .weekly-sch-detail__footer,
#page_daily .weekly-sch-detail__footer {
  margin-top: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid #edf1f5;
}

#page_weekly .weekly-sch-detail__footer-row,
#page_monthly .weekly-sch-detail__footer-row,
#page_daily .weekly-sch-detail__footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

#page_weekly .weekly-sch-detail__footer-left,
#page_monthly .weekly-sch-detail__footer-left,
#page_daily .weekly-sch-detail__footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

#page_weekly .weekly-sch-detail__footer-right,
#page_monthly .weekly-sch-detail__footer-right,
#page_daily .weekly-sch-detail__footer-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

#page_weekly .weekly-sch-detail__invite-row,
#page_monthly .weekly-sch-detail__invite-row,
#page_daily .weekly-sch-detail__invite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

#page_weekly .weekly-sch-detail__invite-btn,
#page_monthly .weekly-sch-detail__invite-btn,
#page_daily .weekly-sch-detail__invite-btn {
  padding: 0.38rem 0.95rem;
  border-radius: 8px;
  border: 1px solid #8ec5f2;
  background: #fff;
  color: #2185d0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#page_weekly .weekly-sch-detail__invite-btn:hover,
#page_monthly .weekly-sch-detail__invite-btn:hover,
#page_daily .weekly-sch-detail__invite-btn:hover {
  background: rgba(33, 133, 208, 0.06);
  border-color: #2185d0;
}

#page_weekly .weekly-sch-detail__invite-btn--selected,
#page_monthly .weekly-sch-detail__invite-btn--selected,
#page_daily .weekly-sch-detail__invite-btn--selected {
  border-color: #2185d0;
  background: #2185d0;
  color: #fff;
}

#page_weekly .weekly-sch-detail__invite-btn--selected:hover,
#page_monthly .weekly-sch-detail__invite-btn--selected:hover,
#page_daily .weekly-sch-detail__invite-btn--selected:hover {
  border-color: #1678c2;
  background: #1678c2;
  color: #fff;
}

#page_weekly .weekly-sch-detail__link-detail,
#page_monthly .weekly-sch-detail__link-detail,
#page_daily .weekly-sch-detail__link-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 1.05rem;
  border-radius: 8px;
  border: 1px solid #2185d0;
  background: #fff;
  color: #2185d0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#page_weekly .weekly-sch-detail__link-detail:hover,
#page_monthly .weekly-sch-detail__link-detail:hover,
#page_daily .weekly-sch-detail__link-detail:hover {
  background: rgba(33, 133, 208, 0.1);
  text-decoration: none;
}

#page_weekly .weekly-sch-detail--other-multi .weekly-sch-detail__row--member .weekly-sch-detail__row-body,
#page_monthly .weekly-sch-detail--other-multi .weekly-sch-detail__row--member .weekly-sch-detail__row-body,
#page_daily .weekly-sch-detail--other-multi .weekly-sch-detail__row--member .weekly-sch-detail__row-body,
#page_weekly .weekly-sch-detail--self-multi .weekly-sch-detail__row--member .weekly-sch-detail__row-body,
#page_monthly .weekly-sch-detail--self-multi .weekly-sch-detail__row--member .weekly-sch-detail__row-body,
#page_daily .weekly-sch-detail--self-multi .weekly-sch-detail__row--member .weekly-sch-detail__row-body {
  font-weight: 500;
}

/* 参加者一覧（合計N人リンク）— docs/参加者一覧.png 参考 */
#page_weekly .weekly-participants-overlay,
#page_monthly .weekly-participants-overlay,
#page_daily .weekly-participants-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.22);
  z-index: 1860;
  display: none;
}

#page_weekly .weekly-participants-overlay.is-open,
#page_monthly .weekly-participants-overlay.is-open,
#page_daily .weekly-participants-overlay.is-open {
  display: block;
}

#page_weekly .weekly-participants,
#page_monthly .weekly-participants,
#page_daily .weekly-participants {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(94vw, 480px);
  max-height: min(88vh, 640px);
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.06);
  z-index: 1870;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

#page_weekly .weekly-participants.is-open,
#page_monthly .weekly-participants.is-open,
#page_daily .weekly-participants.is-open {
  display: flex;
}

#page_weekly .weekly-participants__shell,
#page_monthly .weekly-participants__shell,
#page_daily .weekly-participants__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.35rem 1.1rem;
  min-height: 0;
  flex: 1 1 auto;
}

#page_weekly .weekly-participants__close,
#page_monthly .weekly-participants__close,
#page_daily .weekly-participants__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

#page_weekly .weekly-participants__close::before,
#page_monthly .weekly-participants__close::before,
#page_daily .weekly-participants__close::before,
#page_weekly .weekly-participants__close::after,
#page_monthly .weekly-participants__close::after,
#page_daily .weekly-participants__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: #4b5563;
}

#page_weekly .weekly-participants__close::before,
#page_monthly .weekly-participants__close::before,
#page_daily .weekly-participants__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#page_weekly .weekly-participants__close::after,
#page_monthly .weekly-participants__close::after,
#page_daily .weekly-participants__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

#page_weekly .weekly-participants__title,
#page_monthly .weekly-participants__title,
#page_daily .weekly-participants__title {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

#page_weekly .weekly-participants__summary,
#page_monthly .weekly-participants__summary,
#page_daily .weekly-participants__summary {
  margin: 0 0 0.85rem;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.62);
}

#page_weekly .weekly-participants__summary-num,
#page_monthly .weekly-participants__summary-num,
#page_daily .weekly-participants__summary-num {
  color: #2185d0;
  font-weight: 600;
}

#page_weekly .weekly-participants__list-wrap,
#page_monthly .weekly-participants__list-wrap,
#page_daily .weekly-participants__list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e8ecf1;
  border-radius: 10px;
  background: #fafbfc;
  padding: 0.35rem 0;
}

#page_weekly .weekly-participants__list,
#page_monthly .weekly-participants__list,
#page_daily .weekly-participants__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

#page_weekly .weekly-participants__row,
#page_monthly .weekly-participants__row,
#page_daily .weekly-participants__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
}

#page_weekly .weekly-participants__row:last-child,
#page_monthly .weekly-participants__row:last-child,
#page_daily .weekly-participants__row:last-child {
  border-bottom: 0;
}

#page_weekly .weekly-participants__cell--status,
#page_monthly .weekly-participants__cell--status,
#page_daily .weekly-participants__cell--status {
  flex: 0 0 1.9rem;
  width: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

#page_weekly .weekly-participants__status,
#page_monthly .weekly-participants__status,
#page_daily .weekly-participants__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 1;
}

#page_weekly .weekly-participants__status .icon,
#page_monthly .weekly-participants__status .icon,
#page_daily .weekly-participants__status .icon {
  margin: 0 !important;
  font-size: 1.22rem !important;
  line-height: 1 !important;
  width: 1em;
  height: 1em;
}

#page_weekly .weekly-participants__status--approved,
#page_monthly .weekly-participants__status--approved,
#page_daily .weekly-participants__status--approved {
  color: #2185d0;
}

#page_weekly .weekly-participants__status--declined,
#page_monthly .weekly-participants__status--declined,
#page_daily .weekly-participants__status--declined {
  color: #db2828;
}

#page_weekly .weekly-participants__status--pending,
#page_monthly .weekly-participants__status--pending,
#page_daily .weekly-participants__status--pending {
  color: rgba(0, 0, 0, 0.42);
}

#page_weekly .weekly-participants__avatar,
#page_monthly .weekly-participants__avatar,
#page_daily .weekly-participants__avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#page_weekly .weekly-participants__avatar--initial,
#page_monthly .weekly-participants__avatar--initial,
#page_daily .weekly-participants__avatar--initial {
  background: #64748b;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1;
}

#page_weekly .weekly-participants__avatar--photo,
#page_monthly .weekly-participants__avatar--photo,
#page_daily .weekly-participants__avatar--photo {
  background: #e2e8f0;
  padding: 0;
}

/* img は URL があるときだけ表示（空 src でもグローバル __img ルールで出ないよう参加者内は既定で非表示） */
#page_weekly .weekly-participants__avatar .weekly-member-avatar__img,
#page_monthly .weekly-participants__avatar .weekly-member-avatar__img,
#page_daily .weekly-participants__avatar .weekly-member-avatar__img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#page_weekly .weekly-participants__avatar--photo .weekly-member-avatar__img,
#page_monthly .weekly-participants__avatar--photo .weekly-member-avatar__img,
#page_daily .weekly-participants__avatar--photo .weekly-member-avatar__img {
  display: block;
}

#page_weekly .weekly-participants__info,
#page_monthly .weekly-participants__info,
#page_daily .weekly-participants__info {
  flex: 1 1 auto;
  min-width: 0;
}

#page_weekly .weekly-participants__name,
#page_monthly .weekly-participants__name,
#page_daily .weekly-participants__name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page_weekly .weekly-participants__affiliation,
#page_monthly .weekly-participants__affiliation,
#page_daily .weekly-participants__affiliation {
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#page_weekly .weekly-participants__member-type,
#page_monthly .weekly-participants__member-type,
#page_daily .weekly-participants__member-type {
  color: #2185d0;
  font-weight: 500;
}

#page_weekly .weekly-participants__affiliation-sub,
#page_monthly .weekly-participants__affiliation-sub,
#page_daily .weekly-participants__affiliation-sub {
  color: rgba(0, 0, 0, 0.48);
  font-weight: 400;
}

@media only screen and (max-width: 500px) {
  #page_weekly .weekly-calendar-layout,
  #page_daily .weekly-calendar-layout {
    flex-direction: column;
  }
  #page_weekly .weekly-side-panel,
  #page_daily .weekly-side-panel {
    flex: 0 0 auto;
    max-width: none;
    padding-right: 0;
    order: 2;
  }
  /* 予定を先に見せ、部署・よく使うリストは下に回す */
  #page_weekly .weekly-main-panel,
  #page_daily .weekly-main-panel {
    order: 1;
    min-width: 0;
  }
  /* 日次は本体が短いと下に余白ができるので、高さを内容ぶんに詰める */
  #page_daily .weekly-calendar-layout {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #page_daily .weekly-main-panel {
    flex: 0 0 auto;
  }
  #page_daily .daily-main-scroll {
    overflow-y: visible;
  }
  /* 日付列が潰れると予定が読めないので、列幅を保って横スクロール。
     親を押し広げないよう、経路上の要素すべてで min-width: auto を打ち消す */
  #page_weekly .weekly-page-container,
  #page_weekly .weekly-page-container > main,
  #page_weekly .weekly-calendar-layout {
    max-width: 100%;
    min-width: 0;
  }
  #page_weekly .weekly-main-panel {
    max-width: 100%;
  }
  /* 高さは固定せず全メンバーを出し、縦はレイアウト側でスクロールする */
  #page_weekly .weekly-calendar-layout {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #page_weekly .weekly-main-panel {
    flex: 0 0 auto;
  }
  #page_weekly .weekly-main-calendar {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #page_weekly .weekly-grid-table {
    min-width: 820px;
  }
  #page_weekly .weekly-grid-member-head,
  #page_weekly .weekly-grid-member-cell {
    width: 96px;
  }
  /* よく使うリストは参照のみ。追加・修正・削除は PC 幅で行う */
  #page_weekly .weekly-side-add,
  #page_daily .weekly-side-add,
  #page_weekly .weekly-side-item-kebab,
  #page_daily .weekly-side-item-kebab {
    display: none;
  }
}

