::-webkit-scrollbar {
  height: 0.5rem;
  width: 0.5rem;
}

::-webkit-scrollbar-track {
  background-color: #131114;
}

::-webkit-scrollbar-thumb {
  background-color: #d1d1d2;
}

* {
  scrollbar-color: #d1d1d2 #131114;
  scrollbar-width: thin;
}

body {
  background-color: #131114;
  color: #d1d1d2;
  display: flex;
  font-family: '游明朝', YuMincho, 'Hiragino Mincho ProN W3',
    'ヒラギノ明朝 ProN W3', 'Hiragino Mincho ProN', 'HG明朝E', 'ＭＳ Ｐ明朝',
    'ＭＳ 明朝', serif;
}

body:not(.ready) {
  color: transparent !important;
}

body:not(.ready) * {
  background-color: transparent !important;
  border-color: transparent !important;
  color: transparent !important;
}

body:not(.ready) img {
  visibility: hidden;
}

p {
  margin: 0;
}

a {
  color: #d1d1d2;
  text-decoration: none;
  text-underline-offset: 0.1rem;
}

a:hover {
  color: #d1d1d2;
  text-decoration: underline;
  text-decoration-style: solid;
}

header #search-form input {
  background-color: #131114;
  border: 1px solid #2d343e;
  border-radius: 0;
  color: #d1d1d2;
}

header #search-form button {
  background-color: #2d343e;
  border: 1px solid #2d343e;
  border-radius: 0;
}

#member .balloon {
  background-image: url('../img/balloon.png');
  background-position: center bottom;
  background-repeat: no-repeat no-repeat;
  color: #000;
  display: block;
  font-size: 0.9rem;
  position: relative;
  text-align: center;
  height: 1.5rem;
  width: 1.2rem;
}

footer {
  align-items: stretch;
  background-color: #131114;
  border-top: 1px solid #313945;
  color: #d1d1d2;
  display: flex;
  font-size: 0.9rem;
}

footer > section {
  align-items: flex-start;
  display: flex;
}

footer > section:last-of-type {
  border-left: 1px solid #313945;
  flex-direction: column;
  padding-left: 0.5rem;
}

footer h2 {
  background-color: #515c6c;
  color: #000;
  font-size: 1rem;
  margin-right: 0.5rem;
}

footer ul {
  border-left: 1px solid #313945;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.5rem;
}

footer li {
  margin: 0;
  padding: 0;
  line-height: 1.2rem;
}

footer nav {
  display: flex;
}

footer a {
  color: #d1d1d2;
}

.invalid-feedback {
  color: #ff8a80;
}

.modal-content {
  background-color: #dcdcdc;
  box-shadow: 0px 0px 10px 1px #2d343e;
  color: #222222;
  padding: 1rem;
}

.modal-content .modal-footer {
  border-color: #dcdcdc;
  justify-content: center;
}

.modal-content .modal-footer .btn {
  padding: 0.5em 0;
  min-width: 30%;
}

.modal-content .btn-primary {
  background-color: #1e565a;
  border-color: #cccccc;
}

.modal-content .btn-primary:hover {
  background-color: #222222;
  border-color: #1e565a;
}

.items .item {
  box-sizing: border-box;
  margin: 1rem 1rem 0;
  width: calc(100% / 3 - 2rem);
}

.items .item .thumbnail {
  display: inline-block;
  position: relative;
  margin-bottom: 1.7rem;
}

.items .item .thumbnail > img {
  position: relative;
  z-index: 2;
  max-width: 280px;
}

.items .item .thumbnail::before {
  background-color: #343434;
  content: '';
  position: absolute;
  left: 0.7rem;
  right: -0.7rem;
  top: 0.7rem;
  bottom: -0.7rem;
  z-index: 1;
}

.items .item:hover .thumbnail::before {
  background-color: #319394;
}

.items .item dt {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.items .item dt .item-type {
  margin-bottom: 0.5rem;
}

.items .item dd a {
  font-size: 0.9rem;
  text-decoration: none;
}

.items .item:hover a {
  color: #319394;
}

.icons {
  display: flex;
  margin-bottom: 0.5rem;
}

.icons .icon {
  background-color: #131114;
  border: 1px solid #d1d1d2;
  font-size: 0.9rem;
  margin-right: 0.5rem;
  min-width: 4rem;
  padding: 0.1rem 0.2rem 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .mobile {
    display: none;
  }

  header h1 {
    font-size: 1rem;
    margin: 0 1rem;
    padding: 0;
  }

  header nav {
    background-color: #2d343e;
    display: flex;
    padding: 0.2rem 0;
  }

  header nav > a {
    border-right: 1px solid #949698;
    line-height: 1rem;
    padding: 0 1rem;
  }

  header nav > a:last-child {
    border-right-width: 0;
  }

  header #search-form {
    display: flex;
    margin-left: 1rem;
  }

  header #search-form input {
    padding: 0 0.5rem;
    height: 1.4rem;
  }

  header #search-form button {
    height: 1.4rem;
  }

  header #search-form button img {
    position: relative;
    bottom: 0.2rem;
  }

  footer {
    padding: 0.5rem 2rem;
  }

  footer > section {
    margin-right: 2rem;
  }

  footer nav > a {
    border-left: 1px solid #313945;
    padding: 0 0.5rem;
  }

  footer nav > a:first-child {
    border-left-width: 0;
    padding-left: 0;
  }
}

@media (max-width: 1023px) {
  body {
    background-attachment: fixed;
    background-image: url(../img/main_bk.png);
    background-position: left top;
    background-repeat: repeat-y;
    transition: transform 0.2s;
  }

  img {
    max-width: 100vw;
  }

  header {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    position: sticky;
    top: 0;
    z-index: 200;
  }

  header h1 {
    flex-grow: 1;
  }

  header nav {
    position: fixed;
    display: none;
    flex-direction: column;
    top: 10rem;
    left: 2rem;
  }

  header nav a {
    line-height: 2rem;
  }

  header #search-form {
    border-bottom-width: 0;
    display: none;
    position: fixed;
    top: 6rem;
    left: 2rem;
    width: calc(100vw - 4rem);
  }

  header #search-form input {
    background-color: #d9d9d9;
    border-width: 0;
    color: #000;
    flex-grow: 1;
    padding: 0.25rem;
  }

  header #search-form button {
    align-items: center;
    color: #fff;
    display: flex;
    line-height: normal;
    padding: 0.25rem 0.5rem;
  }

  header #search-form button span {
    padding-left: 0.2rem;
  }

  header #menu-button,
  header #menu-close-button {
    background-color: transparent;
    border: 0 none;
    display: flex;
    font-size: 1.25rem;
    font-weight: bold;
    color: #d9d9d9;
  }

  body:not(.menu) header #menu-close-button {
    display: none;
  }

  body.menu header #menu-button {
    display: none;
  }

  header #menu-button img,
  header #menu-close-button img {
    width: 2rem;
  }

  footer {
    position: relative;
    flex-direction: column;
    margin-top: 1rem;
  }

  footer h2 {
    margin-left: 0.5rem;
    padding: 0.25rem 0.5rem;
    text-align: center;
    width: 8rem;
  }

  footer section {
    margin-top: 1rem;
  }

  footer section:last-of-type {
    align-items: stretch;
  }

  footer nav {
    flex-direction: column;
    margin-bottom: 1rem;
  }

  footer small {
    text-align: center;
    margin-bottom: 1rem;
  }

  body main,
  body footer {
    position: relative;
  }

  body main::after,
  body footer::after {
    background-color: #000;
    content: '';
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: opacity 0.5s;
    z-index: 100;
    pointer-events: none;
  }

  body.menu {
    overflow-y: hidden;
  }

  body.menu main,
  body.menu footer {
    border-width: 0;
    margin: 0;
  }

  body.menu main::after,
  body.menu footer::after {
    opacity: 1;
    pointer-events: auto;
  }

  body.menu header nav,
  body.menu header #search-form {
    display: flex;
  }

  footer a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #949698;
  }

  .items .item {
    align-items: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
}
