body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Meiryo', sans-serif;
  background: #f4f8fc; /* 明るいブルー系 */
  min-height: 100vh;
}

.navbar, .user-navbar {
  background: #2366b8; /* 濃いブルー */
  color: #fff;
  padding: 16px 32px;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 8px 8px 0 0;
  margin-bottom: 26px;
  text-align: left;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  height: 32px;
  width: auto;
  vertical-align: middle;
  cursor: pointer;
}

.navbar-brand {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.user-container {
  max-width: 420px;
  margin: 56px auto;
  padding: 32px 32px 28px 32px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px #2366b822;
}

h2 {
  margin: 6px 0 24px 0;
  color: #2366b8;
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.user-login-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.user-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.user-form-group label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: normal;
}
.user-form-group input {
  height: 40px;
  font-size: 1.08rem;
  border-radius: 4px;
  border: 1.5px solid #2366b8;
  padding: 0 10px;
  outline: none;
}

.user-login-btn {
  background: #2366b8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.13rem;
  font-weight: bold;
  padding: 12px 0;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 10px #2366b844;
  width: 300px;
  height: 48px;
  display: block;
}
.user-login-btn:hover {
  background: #174a8c;
}

.user-error-message {
  background-color: #e3eaff;
  color: #174a8c;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.user-flash-message {
  background-color: #e6f0ff;
  color: #2366b8;
  border: 1.5px solid #2366b8;
  border-radius: 5px;
  padding: 12px 0;
  margin-bottom: 18px;
  text-align: center;
  font-weight: bold;
  font-size: 1.08rem;
  animation: fadeIn 0.5s ease-in-out;
}

.link-area {
  margin-top: 32px;
  text-align: center;
}
.forgot-link {
  color: #2366b8;
  font-size: 1rem;
  text-decoration: none;
}
.forgot-link:hover {
  text-decoration: underline;
}

.error-message {
  background-color: #fff2f2;
  color: #d32f2f;
  border: 1.5px solid #d32f2f;
  border-radius: 5px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: center;
  font-weight: bold;
  font-size: 1.08rem;
  animation: fadeIn 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.error-message::before {
  content: "⚠";
  font-size: 1.2em;
}

.warning-message {
  background-color: #fff8e1;
  color: #f57c00;
  border: 1.5px solid #f57c00;
  border-radius: 5px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: center;
  font-weight: bold;
  font-size: 1.08rem;
  animation: fadeIn 0.5s ease-in-out;
}

.warning-message::before {
  content: "⚠";
  font-size: 1.2em;
  margin-right: 8px;
}

.warning-text-container {
  line-height: 1.6;
}

.warning-text-container br {
  content: "";
  display: block;
  margin: 8px 0;
}

.warning-types {
  color: #f57c00;
  font-weight: bold;
  display: inline-block;
}

.note-text {
  color: #f57c00;
  font-size: 0.95em;
  display: inline-block;
}

.common-error-message {
  background: #fff5f5;
  color: #d32f2f;
  border: 1.5px solid #d32f2f;
  border-radius: 8px;
  padding: 16px 12px;
  margin-bottom: 24px;
  font-weight: bold;
  text-align: center;
  font-size: 1.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  animation: fadeIn 0.5s;
}
.common-error-message .error-icon {
  font-size: 1.2em;
  margin-right: 8px;
}

.common-success-message {
  background: #e6f0ff;
  color: #2366b8;
  border: 1.5px solid #2366b8;
  border-radius: 8px;
  padding: 16px 12px;
  margin-bottom: 24px;
  font-weight: bold;
  text-align: center;
  font-size: 1.08em;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  animation: fadeIn 0.5s;
}
.common-success-message .success-icon {
  font-size: 1.2em;
  margin-right: 8px;
}

@media (max-width: 600px) {
  .user-container {
    padding: 24px 0 0 0;
    max-width: 100vw;
    min-height: 70vh;
  }
  .user-login-form {
    max-width: 96vw;
    gap: 20px;
  }
  .user-form-group label {
    font-size: 1rem;
  }
  .user-login-btn {
    font-size: 1rem;
    padding: 10px 0;
  }
  .user-form-group input {
    font-size: 1rem;
    height: 36px;
  }
  .error-message,
  .warning-message {
    font-size: 0.95rem;
    padding: 10px 12px;
    margin: 0 12px 16px 12px;
  }
  .navbar-logo {
    height: 24px;
  }
  .navbar, .user-navbar {
    gap: 8px;
    font-size: 1.2rem;
  }
}

/* 通知条件設定画面のスタイル */
.notification-setting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.area-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.area-tab {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s;
}

.area-tab.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.sub-area-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.sub-area-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-area-checkbox input[type="checkbox"]:disabled + label {
    color: #999;
    cursor: not-allowed;
}

.condition-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-group input[type="number"],
.form-group select {
    width: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-primary {
    padding: 10px 30px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}
  