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

body {
  font-family: "Zen Maru Gothic", sans-serif;
  background: #fffbf5;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
}

button {
  transition: opacity 0.3s ease;
}
button:hover {
  opacity: 0.7;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  background: none;
  outline: none;
}

.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  border-radius: 0.5rem;
  background: #ffb6c1;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}
.btn--register {
  background: #c8dcff;
  color: #fff;
  padding: 0.3em 0.6em;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.btn--register:hover {
  background: rgb(159.2, 194.0363636364, 255);
  opacity: 1;
}
.btn--delete {
  background: #e74c3c;
  color: #fff;
  font-size: 14px;
  padding: 0.3em 0.6em;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.btn--delete:hover {
  background: rgb(222.7808219178, 45.698630137, 27.4191780822);
  opacity: 1;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 16px;
}

.notice {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 14px;
}
.notice--success {
  background: #e0f8e9;
  color: #2c662d;
  border: 1px solid #a4d6a5;
}
.notice--error {
  background: #fdecea;
  color: #a94442;
  border: 1px solid #f5c6cb;
}
.notice--info {
  background: #e7f1fb;
  color: #0c5460;
  border: 1px solid #b8daff;
}

.site-header {
  background: #ffdee3;
  padding: 1rem 0;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
}
.site-header .site-title {
  font-size: 20px;
  font-weight: bold;
}
.site-header .site-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}
.site-header .site-title a:hover {
  color: rgb(25.5, 25.5, 25.5);
}
.site-header .site-nav ul {
  display: flex;
  gap: 1rem;
}
.site-header .site-nav a {
  color: #333;
  font-size: 14px;
  padding: 0.3em 0.6em;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  background: #fff;
}
.site-header .site-nav a:hover {
  background: white;
}

.site-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.site-footer {
  background: #ffdee3;
  padding: 1rem 0;
  text-align: center;
  font-size: 12px;
  color: #333;
  font-weight: 700;
}
.site-footer .inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

body.register .register__title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}
body.register .register__message {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 14px;
  text-align: center;
}
body.register .register__message--success {
  background: #e0f8e9;
  color: #2c662d;
  border: 1px solid #a4d6a5;
}
body.register .register__message--error {
  background: #fdecea;
  color: #a94442;
  border: 1px solid #f5c6cb;
}
body.register .register__form {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}
body.register .register__form .register__label {
  font-weight: bold;
  font-size: 14px;
}
body.register .register__form .register__input {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 16px;
}
body.register .register__form .btn--register {
  align-self: flex-start;
}
body.register .register__subtitle {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 1rem;
}
body.register .register__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
body.register .register__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  background: #fff;
}
body.register .register__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
}
body.register .register__info {
  flex: 1;
}
body.register .register__info .register__name {
  font-weight: bold;
}
body.register .register__info .register__memo {
  font-size: 14px;
  color: #666;
}
body.register .register__delete-form .btn--delete {
  font-size: 14px;
}

body.index h2 {
  font-size: 20px;
  margin-bottom: 2rem;
  text-align: center;
}
body.index .notice {
  margin: 1rem 0;
  text-align: center;
}
body.index form {
  margin: 1rem 0;
  text-align: right;
}
body.index table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 14px;
  background: #fff;
}
body.index table th, body.index table td {
  padding: 0.6em;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}
body.index table th {
  background: #c8dcff;
  font-weight: bold;
  text-align: center;
}
body.index table th a:hover {
  opacity: 1;
  text-decoration: underline;
}
body.index table .character {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
body.index table .character .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 23px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ccc;
}
body.index table .character .server {
  font-size: 12px;
  color: #666;
}
body.index table .status {
  text-align: center;
  font-size: 16px;
}

.mount {
  display: flex;
  align-items: center;
}
.mount .mount-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 0.5em;
  flex-shrink: 0;
}

.lodestone, .pack {
  text-align: center !important;
}

.lodestone .btn-small {
  font-size: 0.875rem;
  padding: 0.2em 0.6em;
  background: #ffdee3;
  color: #333;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
}
.lodestone .btn-small i {
  margin-right: 0.3em;
}
.lodestone .btn-small:hover {
  background: #ddd;
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5em;
}
.pagination a {
  padding: 0.4em 0.8em;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
.pagination a.active {
  background-color: #ffdee3;
  font-weight: bold;
}
.pagination a:hover {
  background-color: #ffdee3;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 14px;
  flex-wrap: wrap;
}
.table-controls form {
  margin: 0 !important;
}
.table-controls form select {
  padding: 0.3em 0.6em;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}
.table-controls form label {
  margin-right: 0.5em;
}
.table-controls .controls {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 50px 0 30px;
}

.filter-form select {
  min-width: 220px;
  height: 36px;
  padding: 0 0.8rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.controls .filter-form {
  margin-right: auto;
}
.controls .filter-form select {
  min-width: inherit;
}

@media (max-width: 768px) {
  .site-header .inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .site-header .inner .site-title {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }
  body.register .register__form {
    flex-direction: column;
  }
  body.register .register__form .register__label {
    font-size: 14px;
  }
  body.register .register__form .register__input {
    width: 100%;
    font-size: 16px;
  }
  body.register .register__form .btn--register {
    align-self: stretch;
    width: 100%;
    margin-top: 0.5rem;
  }
  body.register .register__item {
    align-items: flex-start;
  }
  body.register .register__item .register__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 0.5rem;
  }
  body.register .register__item .register__info {
    width: 100%;
  }
  body.register .register__item .register__info .register__name {
    font-size: 16px;
  }
  body.register .register__item .register__info .register__memo {
    font-size: 12px;
  }
  body.register .register__item .register__delete-form {
    align-self: flex-end;
    margin-top: 0.5rem;
  }
  body.register .register__item .register__delete-form .btn--delete {
    font-size: 12px;
  }
  body.index .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.index table {
    width: max-content;
    min-width: 100%;
  }
  .btn {
    font-size: 14px;
    padding: 0.5em 1em;
  }
  .btn--register, .btn--delete {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 14px;
    padding: 0.6em 1em;
    margin-top: 0.5rem;
  }
  .table-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .table-controls .controls {
    flex-direction: column;
    align-items: stretch;
    margin: 1rem 0;
    gap: 1rem;
  }
  .table-controls .controls .filter-form {
    width: 100%;
    margin-right: 0;
  }
  .table-controls .controls .filter-form select {
    width: 100%;
  }
  .table-controls .sort-form {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  .table-controls .sort-form label {
    margin: 0;
  }
  .table-controls .sort-form select,
  .table-controls .sort-form #order-input {
    flex: 1;
  }
  .table-controls .bulk-update-form {
    width: 100%;
  }
  .table-controls .bulk-update-form button {
    width: 100%;
  }
}
