/* =========================================================
   Common UI (Header)
   - Used by: Schedule / Settings
   - Issues has its own header styles in issues.css
   ========================================================= */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #ddd;
  gap: 12px;
  background: #fff;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 700;
}

.sr-only{
 position:absolute;
 left:-9999px;
}

.nav a {
  margin-right: 10px;
  text-decoration: none;
  color: #333;
}

.nav a.active {
  font-weight: 700;
  text-decoration: underline;
}

/* ===== Global Header ===== */

.global-header {
  display: flex;
  flex-direction: row;
  /* ← これを追加 */
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  /* height: 50px; */
  border-bottom: 1px solid #ccc;
  /* background: #0c467c; */

}

.global-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  background-image: url("../images/header_bunner.png");
  background-repeat: repeat;
  background-position: center;
  background-size: auto; 
}

.site-logo {
  font-weight: 700;
  text-decoration: none;
  color: #e4d2d2;
}



/* ===== User dropdown ===== */
.user-menu {
  position: relative;

}

.user-button {
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 18px;
  color: #eef;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 120px;
  z-index: 1000;
}

.user-dropdown a {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
  color: #000;
}

.user-dropdown a:hover {
  background: #eee;
}


.user-button:hover {
  text-decoration: underline;
}


.dropdown-item {
  font-size: 12px;
}


.global-right a,
.global-right a:visited {
  /* color: white; */
  text-decoration: none;
}

.global-right a:hover {
  opacity: 0.8;
}


.user-dropdown a.danger-link {
  color: #c62828;
  /* font-weight: 600; */
}
.user-dropdown a.danger-link:hover {
  background-color: rgba(198, 40, 40, 0.15);
  color: #b71c1c;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-backdrop.hidden {
  display: none;
}

.modal {
  background: #fff;
  width: 420px;
  max-width: 90%;
  border-radius: 8px;
  padding: 20px;
}

.modal-title {
  margin: 0 0 12px;
}

.modal-title.danger {
  color: #c62828;
}

.modal-body ul {
  margin-left: 1.2em;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn.cancel {
  background: #eee;
}

.btn.danger {
  background: #c62828;
  color: #fff;
}

/* ===== common footer ===== */

.common-footer {
  margin-top: 48px;
  font-size: 13px;
  color: #555;
}

/* 上段：画面フル幅の背景 */
.footer-links-bg {
  background: #8aafac;
  border-top: 1px solid #e0e0e0;
}

/* 中身だけセンター＆2カラム */
.footer-links-2col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  color: #333;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* コピーライト */
.footer-copy {
  border-top: 1px solid #eee;
  padding: 12px 0 16px;
  text-align: center;
  font-size: 12px;
  color: #777;
}
