@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap");
#square-wrap {
  width: min(92vw, 600px);
  margin: 0 auto;
}

.sq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: #c8d4e8;
  border: 8px solid #c8d4e8;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
}

.sq-tile {
  background: #00338e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid #000045;
  border-top: 6px solid #1a4faa;
  transition: filter 0.12s, opacity 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.sq-tile:hover {
  opacity: 0.7;
}

.sq-tile:active {
  filter: brightness(1.2);
  transform: scale(0.96);
  border-bottom-width: 2px;
}

.sq-tile.dx {
  background: #000045;
  border-bottom-color: #000020;
  border-top-color: #0a2060;
}

.sq-tile.center {
  background: white;
  border-bottom: 6px solid #dde4f0;
  border-top: 6px solid #f5f7fb;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.sq-tile.center:active {
  transform: none;
  filter: none;
}

.sq-bg-num {
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -1px;
}

.sq-title {
  color: white;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
@media screen and (max-width: 960px) {
  .sq-title {
    font-size: 18px;
  }
}

.sq-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  margin-top: 5px;
  position: relative;
  z-index: 1;
}

.sq-arr {
  position: absolute;
  bottom: 8px;
  left: 50%;
  font-size: 30px;
  color: rgba(255, 255, 255, 0.3);
  z-index: 1;
  rotate: 90deg;
  transition: bottom 0.2s;
}
.sq-arr:is(.sq-tile:hover *) {
  bottom: 0;
}

.center-detail {
  font-size: 11px;
  color: #999;
  letter-spacing: 1.5px;
  font-weight: 400;
}

.center-scroll {
  font-size: 11px;
  color: #999;
  letter-spacing: 1.5px;
  font-weight: 400;
}

#sq-arrow {
  animation: sq-bounce 1.4s ease-in-out infinite;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  max-width: 36px;
  min-height: 36px;
  max-height: 36px;
}

@keyframes sq-bounce {
  0%, 100% {
    transform: translateY(-2px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(2px);
    opacity: 1;
  }
}
html {
  scroll-behavior: smooth;
}

.mask {
  height: -moz-fit-content;
  height: fit-content;
}

#sec5 .works-introduction-card__name {
  line-height: 1.4;
}
#sec5 .works-introduction-card__name::before {
  display: none !important;
}
#sec5 .works-introduction-card__name::after {
  display: none !important;
}

@media screen and (max-width: 960px) {
  a.sq-tile[href$="#sec4"] .sq-title {
    font-size: 15px;
  }
}

a.sq-tile[href$="#sec5"] .sq-title {
  font-size: 16px;
}
a.sq-tile[href$="#sec5"] .sq-title .br--sp {
  display: none;
}
a.sq-tile[href$="#sec5"] .sq-title .br--pc {
  display: block;
}
@media screen and (max-width: 960px) {
  a.sq-tile[href$="#sec5"] .sq-title {
    font-size: 15px;
  }
  a.sq-tile[href$="#sec5"] .sq-title .br--sp {
    display: block;
  }
  a.sq-tile[href$="#sec5"] .sq-title .br--pc {
    display: none;
  }
}