@font-face {
  font-family: "Sazanami Gothic";
  src: url("/fonts/sazanami_gothic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Noto Sans CJK JP";
  src: url("/fonts/noto_sans_cjk_jp.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sazanami Gothic", Verdana, sans-serif;
}

body {
  background-color: purple;
  color: black;

  background-image: url("/ROSE_3BP.BMP");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: cover;
}

.main-content {
  width: 50vw;
  min-width: 360px;
  max-width: 760px;

  min-height: 60vh;

  margin: 8vh auto;
  padding: 2rem;
  box-sizing: border-box;
  background-color: rgb(245, 235, 245);
  background-image: url("/TXT_TIPS2.PNG");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;

  text-align: center;
}

.main-content h1 {
  margin-top: 0;
  color: #7232b3;
}

.logo-image {
  position: fixed;

  top: 3vh;
  right: 3vw;

  width: 22vw;
  height: auto;

  z-index: 20;
}

.umineko-button {
  position: relative;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 16vw;
  min-width: 160px;
  max-width: 280px;

  height: 6vh;
  min-height: 42px;
  max-height: 70px;

  margin-top: 1rem;

  padding-left: 1.2vw;
  padding-right: 1.2vw;
  padding-top: 0.2vh;
  padding-bottom: 0.4vh;

  box-sizing: border-box;

  background-color: transparent;
  background-image: url("/umineko_button.PNG");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;

  border: none;
  outline: none;

  color: white;
  font-family: "Noto Sans CJK JP", sans-serif;
  font-size: clamp(0.75rem, 1.1vw, 1.1rem);
  font-weight: normal;

  text-align: center;
  text-decoration: none;
  line-height: 1;

  text-shadow:
    1px 1px 0 black,
    2px 2px 2px black;

  cursor: pointer;
  overflow: hidden;

  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.umineko-button span {
  position: relative;
  z-index: 2;

  display: block;
  max-width: 100%;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transform: translateY(-0.05em);
}

.umineko-button::before {
  content: "";

  position: absolute;
  inset: 0;

  background: rgba(190, 0, 0, 0.55);
  opacity: 0;

  z-index: 1;
  pointer-events: none;

  transition: opacity 0.15s ease;
}

.umineko-button:hover {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.umineko-button:hover::before {
  opacity: 1;
}

.umineko-button:active {
  transform: scale(0.98);
}

@media (max-width: 800px) {
  .main-content {
    width: 80vw;
    min-width: 0;
    margin-top: 5vh;
    margin-bottom: 5vh;
  }

  .logo-image {
    position: static;
    display: block;

    width: 70vw;
    margin: 2vh auto;
  }

  .umineko-button {
    width: 60vw;
    max-width: none;
  }
}