body {
  margin: 0;
}

a {
  width: 100%;
  height: 100%;
  text-decoration: none;
  display: flex;
  justify-content: center;
}
a:link, a:visited {
  color: white;
}

img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  filter: brightness(0.6);
  transition: filter 0.2s ease;
}

h1 {
  margin: auto;
  font-size: 5dvw;
}

h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: white;
  width: 100%;
  font-size: 3dvw;
  margin: auto;
}

.top {
  background-color: #b30b0b;
  color: white;
  text-align: center;
  width: 100dvw;
  height: 100dvh;
  min-height: 100svh;
  min-width: 100svw;
  overflow: hidden;
}
.top__menu {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 40% 20% 40%;
  grid-template-areas: "menu1 menu2" "center center" "menu3 menu4";
}
.top .item {
  position: relative;
  transition: filter 0.2s ease, transform 0.2s ease, border 0.2s ease;
}
.top .item:nth-child(1) {
  grid-area: menu1;
}
.top .item:nth-child(2) {
  grid-area: menu2;
}
.top .item:nth-child(3) {
  grid-area: menu3;
}
.top .item:nth-child(4) {
  grid-area: menu4;
}

.center_menu {
  background-color: #b30b0b;
  grid-area: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* hover */
.top__menu:has(.item.is_hover) .center_menu {
  filter: brightness(0.6);
  transition: filter 0.2s ease;
}
.top .item.is_hover {
  z-index: 10;
  transform: scale(1.05);
  border: 5px solid #333;
}
.top .item.is_hover img {
  filter: none;
}
.top .item.is_hover h2 {
  color: transparent;
}
.top .item.is_hover h2::before {
  content: attr(data-ja);
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
  h1 {
    font-size: 8dvw;
  }
  h2 {
    font-size: 7dvw;
  }
}/*# sourceMappingURL=front-page.css.map */