:root {
  --primary-color: #00c4cc; /* SmartHRを参考に、明るいティール系に */
  --primary-hover-color: #00a9b0;
  --accent-color: #f97316; /* バーの色と合わせたオレンジに */
  --background-color: #f8f9fa;
  --text-color: #0f3854;
  --light-gray: #e9ecef;
  --border-color: #ced4da;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  margin: 0;
}

button {
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

button:disabled {
  background-color: #adb5bd;
  cursor: not-allowed;
}

a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white !important; /* aタグのデフォルト色を上書き */
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}

/* --- モーダルウィンドウ --- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.is-visible { opacity: 1; visibility: visible; }
.modal-content {
  background-color: white; border-radius: 12px;
  width: 90%; max-width: 800px; height: 80%;
  max-height: 90vh; /* 画面の高さの90%を最大値とする */
  overflow-y: auto; /* コンテンツがmax-heightを超えたらスクロール */
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
  transform: scale(0.9); transition: transform 0.3s;
}
.modal-overlay.is-visible .modal-content { transform: scale(1); }
.modal-header { padding: 12px 20px; border-bottom: 1px solid var(--light-gray); display: flex; justify-content: space-between; align-items: center; }
.modal-header h4 { margin: 0; font-size: 16px; }
.modal-close-btn { font-size: 24px; color: #888; cursor: pointer; background: none; border: none; }
.modal-body { flex-grow: 1; padding: 0; }
.modal-body iframe { width: 100%; height: 100%; border: 0; }

/* --- フッター --- */
footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
}
footer a { color: #6c757d; text-decoration: none; margin: 0 10px; }
footer a:hover { text-decoration: underline; }

/* --- メッセージエリア --- */
.message-area {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}
.message-area.success {
    background-color: #e6f9f0;
    border: 1px solid #cce9d4;
    color: #155724;
}
.message-area.error {
    background-color: #fff0f0;
    border: 1px solid #fecaca;
    color: #721c24;
}