body {
	font-family: "Noto Sans JP", sans-serif;
	background: #f5f5f5;
	margin: 0;
	padding: 20px;
  }

.danger-button {
	background: #f44336;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.danger-button:hover {
	opacity: 0.85;
}
  
  header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	width: 95%;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
  }

main {
	width: 95%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 20px 0 60px;
}

.tab-header {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	border-bottom: 2px solid #e0e0e0;
	flex-wrap: wrap;
}

.tab-button {
	background: none;
	border: none;
	padding: 10px 18px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 6px 6px 0 0;
	color: #666;
	transition: background 0.2s ease, color 0.2s ease;
}

.tab-button:hover {
	background: rgba(0, 0, 0, 0.05);
}

.tab-button.active {
	background: #fff;
	color: #333;
	font-weight: 600;
	box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.tab-content {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	padding: 24px;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
}

.tab-content .tab-pane {
	background: none;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

.tab-pane-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.pane-card {
	background: #fafafa;
	border-radius: 8px;
	padding: 20px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.pane-card h2 {
	margin-top: 0;
}

.pane-card input[type="text"],
.pane-card input[type="password"],
.pane-card input[type="color"],
.pane-card textarea {
	width: 100%;
	padding: 8px;
	margin-bottom: 10px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

#roomName {
	width: 50%;
}

.room-form-row {
	display: flex;
	gap: 12px;
	margin-bottom: 10px;
}

.color-picker-label {
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	font-size: 14px;
	height: 38px;
	line-height: 1;
	margin: 0;
	padding: 0;
}

.color-picker-label span {
	display: flex;
	align-items: center;
	height: 38px;
	line-height: 1;
}

.color-picker-label input[type="color"] {
	width: 50px;
	height: 38px;
	padding: 2px;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	flex-shrink: 0;
}

.pane-card button {
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	background: #2196f3;
	color: #fff;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.pane-card button:hover {
	opacity: 0.85;
}
.therapist-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin-bottom: 12px;
}

.therapist-list {
	list-style: none;
	padding: 0;
	margin: 16px 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.therapist-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.therapist-item-header {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.therapist-item-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.therapist-item-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.therapist-edit-btn,
.pane-card .therapist-edit-btn {
	background: #2196F3;
	color: #fff;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.therapist-edit-btn:hover,
.pane-card .therapist-edit-btn:hover {
	background: #1976D2;
}

.therapist-delete-btn,
.pane-card .therapist-delete-btn {
	background: #f44336;
	color: white;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.therapist-delete-btn:hover,
.pane-card .therapist-delete-btn:hover {
	background: #d32f2f;
}

.therapist-note {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 8px;
	min-height: 60px;
	background: #fafafa;
}

.announcement-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.announcement-form .form-actions {
	display: flex;
	justify-content: flex-end;
}

.announcement-recipients {
	display: flex;
	gap: 20px;
	margin: 10px 0;
}

.recipient-option {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
}

.recipient-option input[type="radio"] {
	cursor: pointer;
}

.therapist-selection {
	margin: 15px 0;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #f9f9f9;
}

.therapist-selection-header {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e0e0e0;
}

.therapist-selection-header label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
}

.therapist-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 200px;
	overflow-y: auto;
}

.therapist-checkbox-item {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
	padding: 4px 0;
}

.therapist-checkbox-item input[type="checkbox"] {
	cursor: pointer;
}

.announcement-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.announcement-empty {
	color: #777;
	background: #fafafa;
	border-radius: 6px;
	padding: 16px;
	text-align: center;
}

.announcement-item {
	background: #fff;
	border-radius: 6px;
	padding: 12px 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.announcement-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
}

.announcement-item-body {
	white-space: pre-wrap;
	line-height: 1.5;
	color: #444;
	margin-bottom: 8px;
}

.announcement-recipient {
	font-size: 13px;
	color: #666;
	margin-top: 8px;
	padding: 6px 10px;
	background: #f5f5f5;
	border-radius: 4px;
	border-left: 3px solid #69b3ff;
}

.announcement-item button {
	align-self: flex-end;
	background: transparent;
	color: #f44336;
	border: none;
	cursor: pointer;
	padding: 0;
}

.settings-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
	line-height: 1.8;
	color: #555;
}

.settings-section {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.settings-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.settings-section h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 16px;
	color: #333;
}

.settings-section p {
	margin: 8px 0;
	color: #666;
	font-size: 14px;
}

.settings-note {
	font-size: 12px;
	color: #888;
	font-style: italic;
}

.settings-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 15px 0;
	font-size: 14px;
}

.settings-label select {
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.shift-time-selector {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 15px 0;
}

.shift-time-selector > span {
	font-size: 16px;
	color: #666;
}
  
  section {
	background: #fff;
	padding: 15px;
	margin-bottom: 24px;
	border-radius: 10px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  #gantt {
	overflow-x: auto;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
  }

  #calendar {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 20px;
  }

  .calendar-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
  }

  .calendar-day {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px;
	background: #fff;
	transition: box-shadow 0.2s ease;
  }

  .calendar-day:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .calendar-day.today {
	background: #fff9c4;
	border-color: #fbc02d;
  }

  .calendar-day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e0e0e0;
  }

  .calendar-date {
	font-size: 16px;
	font-weight: bold;
	color: #333;
  }

  .calendar-day-of-week {
	font-size: 14px;
	font-weight: bold;
  }

  .calendar-shift-empty {
	color: #999;
	font-size: 13px;
	text-align: center;
	padding: 8px 0;
	font-style: italic;
  }

  .calendar-shifts {
	display: flex;
	flex-direction: column;
	gap: 8px;
  }

  .calendar-shift-item {
	background: #f5f5f5;
	border-radius: 4px;
	padding: 10px;
	transition: background 0.2s ease;
  }

  .calendar-shift-item:hover {
	background: #eeeeee;
  }

  .calendar-shift-therapist {
	font-size: 15px;
	font-weight: bold;
	color: #333;
	margin-bottom: 4px;
  }

  .calendar-shift-room {
	font-size: 13px;
	color: #666;
	margin-bottom: 4px;
  }

  .calendar-shift-time {
	font-size: 12px;
	color: #888;
  }

  .view-mode-toggle {
	display: flex;
	gap: 8px;
	margin-left: 12px;
  }

  .view-mode-btn {
	padding: 6px 16px;
	border: 1px solid #ddd;
	background: #fff;
	color: #666;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
  }

  .view-mode-btn:hover {
	background: #f5f5f5;
	border-color: #bbb;
  }

  .view-mode-btn.active {
	background: #2196f3;
	color: #fff;
	border-color: #2196f3;
  }

  .view-mode-btn.active:hover {
	background: #1976d2;
	border-color: #1976d2;
  }

  /* スタッフ画面 */
  .staff-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 2px solid #e0e0e0;
  }

  .staff-tab-btn {
	padding: 10px 20px;
	border: none;
	background: transparent;
	color: #666;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
  }

  .staff-tab-btn:hover {
	color: #2196f3;
  }

  .staff-tab-btn.active {
	color: #2196f3;
	border-bottom-color: #2196f3;
	font-weight: bold;
  }

  .staff-tab-pane {
	display: none;
  }

  .staff-tab-pane.active {
	display: block;
  }

  .submit-shifts-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 6px;
  }

  .submit-shifts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
	margin-bottom: 20px;
  }

  .submit-shift-day {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px;
	background: #fff;
  }

  .submit-shift-day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e0e0e0;
  }

  .submit-shift-date {
	font-size: 16px;
	font-weight: bold;
	color: #333;
  }

  .submit-shift-day-of-week {
	font-size: 14px;
	font-weight: bold;
  }

  .submit-shift-entries {
	display: flex;
	flex-direction: column;
	gap: 8px;
  }

  .submit-shift-entry {
	display: flex;
	gap: 8px;
	align-items: center;
	padding: 8px;
	background: #f9f9f9;
	border-radius: 4px;
  }

  .submit-shift-entry select {
	flex: 1;
	padding: 6px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
  }

  .remove-submit-shift-btn {
	padding: 6px 12px;
	background: #f44336;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
  }

  .remove-submit-shift-btn:hover {
	background: #d32f2f;
  }

  .add-submit-shift-btn {
	width: 100%;
	padding: 8px;
	background: #e0e0e0;
	color: #666;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 8px;
  }

  .add-submit-shift-btn:hover {
	background: #d0d0d0;
  }

  .submit-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
  }

  /* 提出シフト確認画面 */
  .submitted-shifts-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 6px;
  }

  .submitted-shifts-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
  }

  .submitted-therapist-section {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 15px;
	background: #fff;
  }

  .submitted-therapist-section h3 {
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #2196f3;
	color: #2196f3;
	font-size: 18px;
  }

  .submitted-shifts-table {
	overflow-x: auto;
  }

  .submitted-shifts-table table {
	width: 100%;
	border-collapse: collapse;
  }

  .submitted-shifts-table th,
  .submitted-shifts-table td {
	padding: 10px;
	border: 1px solid #e0e0e0;
	text-align: left;
  }

  .submitted-shifts-table th {
	background: #f5f5f5;
	font-weight: bold;
  }

  .submitted-shifts-table tr:hover {
	background: #f9f9f9;
  }

  .submitted-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 20px;
  }
  
  table.gantt-table {
	border-collapse: collapse;
	width: 100%;
	min-width: 900px;
  }
  
table.gantt-table th.select-header,
table.gantt-table td.select-cell {
	width: 48px;
	text-align: center;
	vertical-align: middle;
	padding: 0;
}

table.gantt-table td.select-cell {
	background: #fafafa;
	padding: 0;
}

.date-select-checkbox {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
}
  
  table.gantt-table th, table.gantt-table td {
	border: 1px solid #ccc;
	text-align: center;
	padding: 4px;
	font-size: 13px;
  }

  /* 日付と曜日のセルを横書きに統一 */
  table.gantt-table th.date-header,
  table.gantt-table th.day-header,
  table.gantt-table td.date-cell,
  table.gantt-table td.day-cell {
	writing-mode: horizontal-tb;
	text-orientation: mixed;
	white-space: nowrap;
	width: auto;
	vertical-align: middle !important;
	display: table-cell;
	line-height: normal;
  }
  
  /* 今日の日付のスタイル */
  table.gantt-table td.date-cell.today,
  table.gantt-table td.day-cell.today {
	background-color: yellow;
	color: black;
	font-weight: bold;
  }

table.gantt-table td.date-cell.anchor-day,
table.gantt-table td.day-cell.anchor-day {
	background-color: rgba(129, 212, 250, 0.3);
}

.primary-button {
	background: #2196f3;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.primary-button:disabled,
.danger-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.month-nav {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.month-nav-settings {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: flex-start;
}

.month-nav-main {
	display: flex;
	align-items: center;
	gap: 12px;
}

.month-nav label {
	display: flex;
	gap: 6px;
}

.month-nav-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.delete-selected-inline {
	align-self: flex-start;
	width: fit-content;
}

  table.gantt-table .time-cell {
	min-height: 40px;
	height: 40px;
	max-height: none;
	padding: 4px !important;
	vertical-align: top;
	overflow: hidden;
	position: relative;
	box-sizing: border-box;
  }

  table.gantt-table .time-cell.empty {
	background: rgba(240, 240, 240, 0.4);
  }

  table.gantt-table .time-cell.empty::before {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
  }

  table.gantt-table .time-cell .time-slot-grid {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: calc(var(--row-count, 1) * 40px);
	pointer-events: none;
	width: 100%;
	justify-content: flex-start;
	padding: 1px 0;
	box-sizing: border-box;
  }

  table.gantt-table .time-cell .time-block {
	flex: 0 0 38px;
	height: 38px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 2px;
	font-size: 11px;
	color: #fff;
	text-align: center;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	background: rgba(105, 179, 255, 0.5);
	box-sizing: border-box;
  }

  table.gantt-table .time-cell .time-block.placeholder {
	background: transparent;
	border: 1px dashed rgba(200, 200, 200, 0.4);
	color: transparent;
  }

  table.gantt-table .time-cell .time-block.shift {
	border: 1px solid rgba(255, 255, 255, 0.5);
  }

  table.gantt-table .time-cell .time-block.submitted-shift {
	border: 2px dashed rgba(255, 255, 255, 0.8) !important;
	opacity: 0.7;
	position: relative;
  }

  table.gantt-table .time-cell .time-block.submitted-shift::after {
	content: '提出';
	position: absolute;
	top: 2px;
	right: 2px;
	font-size: 8px;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.3);
	padding: 1px 3px;
	border-radius: 2px;
  }

  table.gantt-table .time-cell .time-block-text {
	font-size: 10px;
	line-height: 1.2;
	color: inherit;
  }
  
  table.gantt-table tbody tr td:not(.register-cell) {
	min-height: 40px !important;
	height: auto !important;
	max-height: none !important;
  }

table.gantt-table tbody tr td.register-cell {
	vertical-align: top;
	height: auto;
	max-height: none;
	overflow: visible;
  }

table.gantt-table tbody tr td.register-cell .register-forms-container {
	max-height: none;
	overflow: visible;
}
  
  table.gantt-table th {
	background: #f0f0f0;
	position: sticky;
	top: 0;
  }
  
  .shift-cell {
	background: #69b3ff;
	color: white;
	border-radius: 4px;
	font-size: 12px;
  }

  .register-col {
	background: #e8f4f8;
	min-width: 280px;
  }

  .register-cell {
	padding: 6px !important;
	vertical-align: top;
	background: #f9f9f9;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 40px;
  }

  .register-forms-container {
	display: flex;
	flex-direction: column;
	gap: 0px;
  }

  .register-form-row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 4px;
	align-items: center;
	justify-content: flex-start;
	min-height: 40px;
	height: 40px;
  }

  .register-form-row select {
	padding: 4px;
	font-size: 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: auto;
	min-width: 120px;
	flex-shrink: 0;
	height: 32px;
	box-sizing: border-box;
  }

  .add-therapist-btn {
	padding: 4px 8px;
	font-size: 16px;
	font-weight: bold;
	background: #2196F3;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	min-width: 30px;
	height: 32px;
	line-height: 1;
	box-sizing: border-box;
  }

  .add-therapist-btn:hover {
	background: #1976D2;
  }

  .delete-therapist-btn {
	padding: 4px 8px;
	font-size: 16px;
	font-weight: bold;
	background: #f44336;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	min-width: 30px;
	height: 32px;
	line-height: 1;
	box-sizing: border-box;
  }

  .delete-therapist-btn:hover {
	background: #d32f2f;
  }

  .register-btn {
	padding: 6px 12px;
	font-size: 12px;
	background: #4CAF50;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 0;
	white-space: nowrap;
	flex-shrink: 0;
	height: 32px;
	box-sizing: border-box;
  }

  .register-btn:hover {
	background: #45a049;
  }

  .registered-shifts-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	margin-left: 12px;
	font-size: 11px;
	height: 32px;
	max-width: 220px;
	padding: 0 6px;
	border-radius: 4px;
	background: rgba(240, 240, 240, 0.6);
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	align-self: center;
	line-height: 32px;
	box-sizing: border-box;
  }

  .registered-shifts-row.empty {
	border: 1px dashed #d0d0d0;
	background: rgba(255, 255, 255, 0.7);
	color: #999;
  }

  .registered-shifts-row.empty::before {
	content: attr(data-placeholder);
	font-size: 10px;
	color: #999;
  }

  .shift-summary {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 20px;
	background: #e0e0e0;
	color: #333;
	font-size: 11px;
	line-height: 1.2;
	height: 28px;
	box-sizing: border-box;
  }

  .shift-summary-list {
	display: inline-flex;
	align-items: center;
	gap: 4px;
  }

  .shift-summary.chip {
	color: #fff;
  }

  .shift-summary .chip-room {
	font-weight: bold;
  }

  .shift-summary .chip-time {
	font-variant-numeric: tabular-nums;
  }
  
  /* 出勤場所リストのスタイル */
  #roomList {
	list-style: none;
	padding: 0;
	margin: 10px 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
  }
  
  #roomList li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	text-align: left;
  }
  