/* 共通スタイル - ISO9001スタイル対応 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* サイドバーのアクティブリンク (Tailwind用) */
.nav-link.active {
  background-color: #0369a1 !important;
  color: white !important;
}
.nav-link.active i,
.nav-link.active span {
  color: white !important;
}

/* カスタムスクロールバー */
main::-webkit-scrollbar {
  width: 8px;
}
main::-webkit-scrollbar-track {
  background: #f1f5f9;
}
main::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
main::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* テーブル行ホバー */
#issuesTableBody tr:hover {
  background-color: #f8fafc;
  cursor: pointer;
}

/* 旧スタイル (後方互換性用) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Yu Gothic', 'Meiryo', sans-serif;
  background-color: #ffffff;
  color: #333333;
}

/* サイドバー */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 200px;
  height: 100vh;
  background-color: #f5f5f5;
  padding: 20px;
  overflow-y: auto;
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 18px;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav li {
  margin-bottom: 10px;
}

.sidebar nav a {
  display: block;
  padding: 10px;
  color: #333333;
  text-decoration: none;
  border-radius: 4px;
}

.sidebar nav a:hover {
  background-color: #e0e0e0;
}

.sidebar nav a.active {
  background-color: #2196F3;
  color: #ffffff;
}

/* メインコンテンツ */
.main-content {
  margin-left: 200px;
  padding: 20px;
}

.main-content h1 {
  margin-bottom: 20px;
  font-size: 24px;
}

.main-content h2 {
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid #2196F3;
  padding-bottom: 5px;
}

/* ボタン */
button {
  background-color: #2196F3;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background-color: #1976D2;
}

.btn-delete {
  background-color: #f44336;
}

.btn-delete:hover {
  background-color: #d32f2f;
}

/* 連絡事項リスト */
.announcement-list {
  list-style: none;
}

.announcement-item {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.announcement-item:hover {
  background-color: #fafafa;
}

.announcement-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.announcement-title {
  font-weight: bold;
  font-size: 16px;
}

.label-important {
  color: #d32f2f;
  font-weight: bold;
  font-size: 14px;
}

.announcement-date {
  color: #757575;
  font-size: 14px;
}

.announcement-content {
  margin: 10px 0;
  line-height: 1.6;
}

.announcement-actions {
  margin-top: 10px;
}

.announcement-actions button {
  margin-right: 10px;
}

/* カレンダーコンテナ */
.calendar-container {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  margin-top: 10px;
}

.google-calendar {
  width: 100%;
  height: 750px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

/* レスポンシブデザイン - カレンダー */
@media (max-width: 768px) {
  .google-calendar {
    height: 400px;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }
  
  .main-content {
    margin-left: 0;
  }
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 4px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 20px;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #757575;
  padding: 0;
  width: 30px;
  height: 30px;
}

.modal-close:hover {
  color: #333333;
  background: none;
}

/* フォーム */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-family: 'Segoe UI', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 14px;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* ラジオボタン */
.radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
  margin-bottom: 0;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}