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

html, body {
  overflow-x: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  display: none;
}

::-webkit-scrollbar-button {
  display: none;
}

body {
  -ms-overflow-style: none;
}

.container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 50px;
  padding: 120px 70px;
}

.container2 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px 50px;
  padding: 100px 50px;
  width: 1200px;
}

@media only screen and (min-width: 1px) and (max-width: 700px) {
  .container {
    gap: 20px 60px;
  }
}

.japan {
  position: absolute;
  font-size: 3em;
  font-family: 'Sawarabi Mincho', sans-serif;
  top: 30%;
  left: 0;
  width: 100%;
  /* font-weight: bold; */
  color: white;
  text-align: center;
}

.japan1 {
  top: 40%;
  font-size: 2.2em;
}

.japan2 {
  top: 40%;
  font-size: 1.8em;
}

.japan3 {
  top: 40%;
  font-size: 1.5em;
}

.homeBtn {
  position: fixed;
  width: 11vh;
  height: 5vh;
  left: 1vh;
  top: 1vh;
  z-index: 2;
  background: #e62222;
  box-shadow: none;
  border-radius: 10px;
  font-size: 2vh;
  font-weight: bold;
  color: white;
}

.title {
  position: absolute;
  top: 1%;
  left: 45%;
  font-size: 5vh;
  color: red;
  font-family: "Times New Roman", Times, serif;
  font-weight: bold;
}

@media only screen and (min-width: 1px) and (max-width: 700px) {
  .title {
    top: 0.5%;
    left: 30%;
    font-size: 5vh;
  }
}

.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
}

.hidden { display: none; }

@media only screen and (min-width: 1px) and (max-width: 700px) {
  .homeBtn {
    width: 7.5vh;
    height: 5vh;
    top: 1vh;
  }
  .homeBtn {
    left: 1vh;
  }

  .card-inner-2 {
    position: relative;
    width: 300px;
    height: 200px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
  }
}

.slice {
  --c1: #202020;
  --c2: #00a1b7;
  --size-letter: 32px;
  padding: 0.5em 1em;
  font-size: var(--size-letter);

  background-color: transparent;
  border: calc(var(--size-letter) / 6) solid var(--c2);
  border-radius: 0.2em;
  cursor: pointer;

  overflow: hidden;
  position: relative;
  transition: 300ms cubic-bezier(0.83, 0, 0.17, 1);

  & > .text {
    font-weight: 700;
    color: var(--c2);
    position: relative;
    z-index: 1;
    transition: color 700ms cubic-bezier(0.83, 0, 0.17, 1);
  }
}

.slice::after {
  content: "";

  width: 0;
  height: calc(300% + 1em);

  position: absolute;
  translate: -50% -50%;
  inset: 50%;
  rotate: 30deg;

  background-color: var(--c2);
  transition: 1000ms cubic-bezier(0.83, 0, 0.17, 1);
}

.slice:hover {
  & > .text {
    color: var(--c1);
  }
  &::after {
    width: calc(120% + 1em);
  }
}

.slice:active {
  scale: 0.98;
  filter: brightness(0.9);
}
