:root {
	--bg: #0f1419;
    --surface: #fff;
    --surface-2: #2fbda8;
    --border: #2fbda8;
    --text: #2fbda8;
    --text-dim: #fff;
    --accent: #58a6ff;
	--dept-hiroo: rgba(108, 175, 103, 0.2);
	--dept-itabashi: rgba(236,151,88,0.2);
	--dept-ebara:rgba(215, 95, 123, 0.2);
	--dept-fuchu:rgba(104, 182, 215, 0.2);
	--dept-kitatama:rgba(158, 102, 192, 0.2);
	--dept-ome:rgba(161, 192, 71, 0.2);
	--dept-mtamakan:rgba(233, 127, 188, 0.2);
	--dept-gp-hiroo: #6caf67;
	--dept-gp-itabashi: #ec9758;
	--dept-gp-ebara:#d75f7b;
	--dept-gp-fuchu:#68b6d7;
	--dept-gp-kitatama:#9e66c0;
	--dept-gp-ome:#a1c047;
	--dept-gp-mtamakan:#e97fbc;
}



@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
}

.sidebar {
  background: var(--surface);
  border-radius: 2vw;
  padding: 20px;
  height: fit-content;
}

.sidebar h2 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-txt {
	text-align: center;
	margin: 10px auto 20px;
	@media screen and (max-width:767px){
	text-align: left;	
  }
}

.dept-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap:10px;
}

.dept-item {
  width: 75%;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
  @media screen and (max-width:767px){
	width: 75%;
	padding-left: 0;
  }
}
.dept-oc {
	width: calc(100% - 75% - 20px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	@media screen and (max-width:767px){
		width: 20%;	
  	}
}

.dept-oc a {
	width: 100%;
	display: block;
    padding: 0.2em 0;
    background-color: #fff;
    color: currentColor;
    text-align: center;
    font-weight: 500;
    font-size: clamp(1.14rem, 1.11vw, 2.13rem);
	border:2px solid;
	border-radius: 20vw;
	@media screen and (max-width:767px){
    	font-size: 13px;
		border-radius: 2vw;
		line-height: 140%;
  	}
}
.dept-oc a.group01 {
	color: var(--dept-gp-hiroo);
	background-color:var(--dept-hiroo); 
}
.dept-oc a.group02 {
	color: var(--dept-gp-ome);
	background-color:var(--dept-ome); 
}
.dept-oc a.group03 {
	color: var(--dept-gp-itabashi);
	background-color:var(--dept-itabashi); 
}
.dept-oc a.group04 {
	color: var(--dept-gp-kitatama);
	background-color:var(--dept-kitatama); 
}
.dept-oc a.group05 {
	color: var(--dept-gp-ebara);
	background-color:var(--dept-ebara); 
}
.dept-oc a.group06 {
	color: var(--dept-gp-mtamakan);
	background-color:var(--dept-mtamakan); 
}
.dept-oc a.group07 {
	color: var(--dept-gp-fuchu);
	background-color:var(--dept-fuchu); 
}

.dept-item:hover { background: var(--surface-2); }

.dept-item input[type="checkbox"] {
  margin-right: 12px;
  accent-color: var(--accent);
  cursor: pointer;
}

.dept-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  @media screen and (max-width:767px){
	display: none;
  }
}

.dept-name { flex: 1; font-size: clamp(1.14rem, 1.11vw, 2.13rem); }
.dept-count {
  font-size: 12px;
  color: var(--text-dim);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 10px;
}

.quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-actions button {
  flex: 1;
  padding: 6px 10px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: clamp(1.14rem, 1.11vw, 2.13rem);
  cursor: pointer;
  transition: border-color 0.15s;
}

.quick-actions button:hover { border-color: var(--accent); }

.main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  min-height: 700px;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top:30px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.main-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1.4vw, 3.3rem);
  font-weight: 600;
}

.main-header .status {
  font-size: clamp(1.2rem,2.1vh,1.6rem);
  color: var(--text);
}

/* FullCalendarダークテーマ上書き */
.fc { --fc-border-color: var(--border); --fc-page-bg-color: transparent; }
.fc .fc-toolbar-title { font-size: 18px; font-weight:bold; color: var(--text); }
.fc .fc-button {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-dim);
  font-size: 13px;
  padding: 6px 12px;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f1419;
}
.fc .fc-daygrid-day-number {
  color: var(--text);
  text-decoration: none;
}
.fc .fc-col-header-cell-cushion {
  color: var(--text-dim);
  text-decoration: none;
}
.fc .fc-day-today { background: rgba(88, 166, 255, 0.08) !important; }
.fc-event {
  border: none !important;
  padding: 2px 6px !important;
  font-size: 12px;
  cursor: pointer;
}

.fc-media-screen {
	margin-bottom:50px;
}
.fc-scrollgrid-section-header {
	background-color: var(--surface-2);
}
.fc-scrollgrid-sync-table {
	background-color: #fff;
}

.fc .fc-view-harness {
	z-index: 0;
}


/* ------------------------------
カレンダーポップアップ
-------------------------------*/
#calendar {
  max-width: 100%;
}

.event-dialog {
  width: min(700px, calc(100vw - 32px));
  border: none;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.event-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.event-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.event-dialog__heading {
  min-width: 100%;
}

.event-dialog__dept {
    margin: 0 auto 10px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 20vw;
    padding: 6px 15px;
    display: inline-block;
    color: #fff;
}

.event-dialog__dept.group01 {
	background-color: var(--dept-gp-hiroo);
}
.event-dialog__dept.group02 {
	background-color:var(--dept-gp-ome);
}
.event-dialog__dept.group03 {
	background-color: var(--dept-gp-itabashi);
}
.event-dialog__dept.group04 {
	background-color: var(--dept-gp-kitatama);
}
.event-dialog__dept.group05 {
	background-color: var(--dept-gp-ebara);
}
.event-dialog__dept.group06 {
	background-color: var(--dept-gp-mtamakan);
}
.event-dialog__dept.group07 {
	background-color: var(--dept-gp-fuchu);
}

.event-dialog__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #111827;
  word-break: break-word;
  font-weight: bold;
}

.event-dialog__detail {
	display: flex;
	flex-wrap: wrap;
  min-width: 450px;
  @media screen and (max-width:767px){
    min-width: 100%;
  }
}
.event-dialog__detail__title {
	width: 10%;
	@media screen and (max-width:767px){
		width: 50px;	
  	}
}
.event-dialog__detail__txt {
	width: 90%;
	@media screen and (max-width:767px){
		width: calc(100% - 50px);	
  	}
}

.event-dialog__close {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
  color: #374151;
  border-radius: 8px;
}

.event-dialog__close:hover,
.event-dialog__close:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.event-dialog__body {
  background: #f9fafb;
  height: calc(100% - 146px);
}

.event-dialog__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.event-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.event-dialog__button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #111827;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;

}

.event-dialog__button-g {
	background-color: var(--surface-2);
	color: #fff;
}
.event-dialog__button-g:visited {
	color: #fff;
}

body.is-modal-open {
  overflow: hidden;
}

.event-dialog__detail__txt {
  white-space: pre-line;
}

