@font-face {
  font-family: "NotoSansJP";
  src: url("../fonts/NotoSansJP.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "ShipporiMincho";
  src: url("../fonts/ShipporiMincho.woff2") format("woff2");
  font-display: swap;
}

html,
body {
  font-family: "NotoSansJP", sans-serif;
  background: linear-gradient(140deg, #57b9e6, #bde3f6);
  overflow-x: hidden;
}

#content {
  height: 100%;

  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;

  max-height: 100vh;
}

main .title {
  font-family: "ShipporiMincho", serif;
  font-size: 8rem;
  line-height: 1.1;
  color: red;
  font-style: italic;
  text-align: center;
  text-shadow: 2px 2px 3px black;
  -webkit-text-stroke: 2px black;

  margin-top: auto;
}

main #kogoro-img {
  grid-column: 2 / 3;
  grid-row: 1 / 3;

  width: min(50vw, 100vh);
  height: min(50vw, 100vh);
  object-fit: cover;

  margin: auto;
}

main ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  justify-items: start;

  margin: 15% auto auto auto;
  padding-left: 0;
}

main li {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.8;
  list-style: none;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
}

#footer {
  margin-top: 4rem;
  padding-bottom: 1rem;
}

@media screen and (max-width: 1535px) {
  main .title {
    font-size: 7rem;
  }
}

@media screen and (max-width: 1279px) {
  main .title {
    font-size: 5.5rem;
    text-shadow: 1px 1px 2px black;
    -webkit-text-stroke: 1px black;
  }
}

@media screen and (max-width: 1023px) {
  main .title {
    font-size: 4rem;
  }

  main li {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 767px) {
  main .title {
    font-size: 3.5rem;
    text-shadow: 0.5px 0.5px 0.5px black;
    -webkit-text-stroke: 0.5px black;
  }

  main li {
    font-size: 1rem;
  }
}

@media screen and (max-width: 639px) {
  main {
    display: block;
  }

  main .title {
    font-size: 3rem;

    margin: 0;
    margin-top: 2rem;
  }

  main #kogoro-img {
    width: 60vw;
    height: 60vw;

    margin: 2rem auto;
  }

  main ul {
    display: block;

    margin: 0 auto;
  }

  main li {
    font-size: 1.5rem;
    line-height: normal;
    text-align: center;
  }
}
