* {
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #80808055 #000000;
}

html, body {
  background-color: #151B27;
  color: #e0e0e0;
  height: 100%;
  min-height: 100%;
  width: 100%;
  min-width: 360px;
  margin: 0 auto;
}

.error {
  color: #ff0000;
  font-size: 0.7rem;
}

.pre {
  white-space: pre;
}

.flash-message {
  position: absolute;
  width: calc(100% - 60px);
  margin: 30px;
  padding: 20px;
  text-align: center;
  border-radius: 15px;
  z-index: 100;
  font-size: 1.2rem;
}
.flash-message.alert-notice {
  border: 2px solid #9ec5fe;
  background-color: #cfe2ff;
  color: #000000;
}

.modal {
  z-index: 99999;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  height: 100%;
  display: block;
}

.btn {
  width: 100%;
  padding: 15px 0;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(90deg, #ef4444 0%, #e11d48 100%);
  color: white;
}
.btn-secondary {
  background: linear-gradient(90deg, #888888 0%, #999999 100%);
  color: white;
}

.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.modal-content {
  z-index: 100;
  width: 90vw;
  height: auto;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  background-color: rgba(44, 44, 58);
  overflow-y: auto;
  max-height: 100%;
}

/* ヘッダー部分 */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h1 {
  font-weight: 600;
  margin: 0;
  font-size: 1.1rem;
}

/* 閉じるボタン (x) */
.modal-header .close-button {
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.modal-header .close-button:hover {
  opacity: 1;
}

/* カードリストのコンテナ */
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
}
.modal-body .button-area {
  font-size: 0.9rem;
}
