.hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

.hero .canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.container {
  max-width: 1120px;
  margin: auto;
  padding: 0 40px;
}

.section.safe {
  padding: 160px 0;
}

@media (max-width: 1119px) {
  .container {
    max-width: 1040px;
  }
}

@media (max-width: 1023px) {
  .container {
    padding: 0 20px;
  }
  .section.safe {
    padding: 70px 0;
  }

  .hero {
    height: -webkit-fill-available;
  }
}

.section.about {
  background: #01e369;
}

.section.about .section-heading {
  display: block;
  margin: 0 auto 160px;
}

.section.about .row {
  display: flex;
  margin-left: -120px;
}

.section.about .col {
  margin-left: 120px;
  flex: 1;
}

.section.about .copy {
  font-weight: bold;
}

.section.about .copy.en {
  font-family: var(--sans-font);
}

.section.about .domains {
  border-top: 1px solid black;
  margin-top: 60px;
  font-size: 15px;
}

.section.about .domain {
  margin-top: 30px;
}

.section.about .domain.en {
  font-family: var(--sans-font);
}

.section.about .domain dt {
  font-weight: bold;
}

@media screen and (max-width: 1119px) {
  .section.about .row {
    margin-left: -40px;
  }

  .section.about .col {
    margin-left: 40px;
  }
}

@media screen and (max-width: 1023px) {
  .section.about .section-heading {
    height: 100px;
    margin: 0 auto 70px;
    width: auto;
  }

  .section.about .row {
    display: block;
  }

  .section.about .col {
    margin-top: 30px;
  }

  .section.about .domains {
    font-size: 12px;
    margin-top: 100px;
  }
  .section.about .domains:last-child {
    margin-top: 45px;
    border: 0;
  }
}

.section.case-study {
  position: relative;
  overflow: hidden;
}

.section.case-study .section-back {
  position: absolute;
}

.section.case-study .section-content {
  position: relative;
}

.section.case-study .section-row {
  display: flex;
  align-items: flex-end;
}

.section.case-study .section-head {
  margin: 0 120px 0 0;
}

.section.case-study.reverse .section-head {
  margin: 0 0 0 120px;
}

.section.case-study .section-body {
  flex: 1;
}

.section.case-study.reverse .section-row {
  flex-direction: row-reverse;
}

.section.case-study.dark {
  color: white;
}

.section.case-study.primary {
  background: var(--primary-color);
  color: white;
}

.section.case-study.primary .title,
.section.case-study.primary .client {
  color: black;
}

.section.case-study .copy {
  font-size: 59px;
  font-weight: bold;
  line-height: 70px;
  letter-spacing: -0.04em;
}

.section.case-study .copy-en {
  font-size: 35px;
  font-family: var(--sans-font);
  font-weight: 600;
  line-height: 1;
  margin: 20px 0 30px 0;
}

.section.case-study .title {
  font-size: 55px;
  font-family: var(--sans-font);
  color: var(--primary-color);
  line-height: 55px;
}
.section.case-study .title span {
  font-size: 25px;
}

.section.case-study .title span {
  font-size: 25px;
}

.section.case-study .client {
  font-family: var(--sans-font);
  font-size: 30px;
  color: var(--primary-color);
  line-height: 1;
  margin-top: 20px;
  font-style: italic;
  font-weight: 300;
}

.section.case-study .client strong {
  font-weight: 500;
}

.tags {
  margin-top: 10px;
  margin-left: -5px;
  display: flex;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  color: white;
  background: black;
  height: 30px;
  line-height: 30px;
  border-radius: 15px;
  padding: 0 1em;
  font-size: 13px;
  font-family: var(--sans-font);
  font-weight: bold;
  margin: 10px 0 0 5px;
  width: calc(33.33% - 5px);
  text-align: center;
}

.tag::before {
  content: "#";
}

.section.case-study .image {
  display: block;
}

.section.case-study .copyright {
  font-size: 10px;
  font-family: var(--sans-font);
  text-align: right;
  display: block;
  color: white;
}

.section.case-study .copyright sup {
  font-size: 50%;
}

.section.case-study .copy,
.section.case-study .copy-en,
.section.case-study .title,
.section.case-study .client,
.section.case-study .tags {
  opacity: 0;
  transform: translateY(10%);
}

.section.case-study.enter .copy,
.section.case-study.enter .copy-en,
.section.case-study.enter .title,
.section.case-study.enter .client,
.section.case-study.enter .tags {
  transition: opacity 1s, transform 1s;
  opacity: 1;
  transform: none;
}

.section.case-study.enter .copy-en {
  transition-delay: 0.25s;
}

.section.case-study.enter .title,
.section.case-study.enter .client {
  transition-delay: 0.5s;
}

.section.case-study.enter .tags {
  transition-delay: 0.75s;
}

@media (min-width: 1024px) {
  .section.case-study .section-back {
    will-change: transform;
  }

  .section.case-study .section-content {
    transform: translateZ(0);
  }
}

@media (max-width: 1119px) {
  .section.case-study .section-head {
    margin: 0 40px 0 0;
  }

  .section.case-study.reverse .section-head {
    margin: 0 0 0 40px;
  }
}

@media (max-width: 1023px) {
  .section.case-study {
    height: auto;
    padding: 170px 0 30px;
  }

  .section.case-study .section-back {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .section.case-study .section-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .section.case-study .section-row,
  .section.case-study.reverse .section-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .section.case-study .section-head,
  .section.case-study.reverse .section-head {
    margin: 15px 0 0 0;
  }

  .section.case-study .image {
    width: 100%;
    height: auto;
  }

  .section.case-study .copy {
    font-size: 30px;
    line-height: 40px;
  }

  .section.case-study .copy-en {
    font-size: 14px;
  }

  .section.case-study .title {
    font-size: 25px;
    line-height: 30px;
  }

  .section.case-study .client {
    font-size: 15px;
    margin-top: 0;
  }

  .tags {
    margin: 5px 0 0 -10px;
  }

  .tag {
    font-size: 8px;
    height: 20px;
    line-height: 20px;
    margin: 10px 0 0 10px;
    width: calc(33.33% - 10px);
  }

  .section.case-study.secondary .copy,
  .section.case-study.secondary .copy-en {
    color: white;
  }
  .section.case-study .title span {
    font-size: 12px;
  }
}

.section.case-study[data-case="azsa"] .copyright {
  color: black;
}

.section.case-study[data-case="pac-man"] {
  background: #444;
}

.section.case-study[data-case="dq1-2-hd"] .section-back {
  top: -20px;
}

.section.case-study[data-case="dq1-2-hd"] .section-back img {
  object-fit: cover;
  object-position: top;
}

@media (max-width: 1023px) {
  .section.case-study[data-case="dq1-2-hd"] .section-back {
    top: 0;
    left: -50%;
  }

  .section.case-study[data-case="dq1-2-hd"] .section-back img {
    object-fit: cover;
    object-position: top;
  }
}

.section.case-study[data-case="dq3-hd"] .section-back {
  top: -20px;
}

.section.case-study[data-case="dq3-hd"] .section-back img {
  object-fit: cover;
  object-position: top;
}

@media (max-width: 1023px) {
  .section.case-study[data-case="dq3-hd"] .section-back {
    top: 0;
    left: -50%;
  }

  .section.case-study[data-case="dq3-hd"] .section-back img {
    object-fit: cover;
    object-position: top;
  }
}

.section.case-study[data-case="pac-man"] .section-back {
  right: 0;
  top: 0;
}

@media (max-width: 1023px) {
  .section.case-study[data-case="pac-man"] .section-back {
    top: 0;
  }

  .section.case-study[data-case="pac-man"] .section-back img {
    object-fit: contain;
    object-position: top;
  }
}

@media (max-width: 1023px) {
  .section.case-study[data-case="s-pace"] .section-back {
    top: 0;
  }

  .section.case-study[data-case="s-pace"] .section-back img {
    object-fit: cover;
    object-position: top;
  }
}

.section.case-study[data-case="s-pace"] .section-back {
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

.section.case-study[data-case="s-pace"] .section-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section.case-study[data-case="footista"] .section-back {
  left: 0;
  top: -495px;
}

@media (max-width: 1023px) {
  .section.case-study[data-case="footista"] .section-back {
    top: 0;
  }

  .section.case-study[data-case="footista"] .section-back img {
    object-fit: contain;
    object-position: top;
  }
}

.section.case-study[data-case="dq11"] .section-back {
  right: 0;
  top: 0;
}

.section.case-study[data-case="bahamut-disco"] {
  background: #a2a2a2;
}

@media (min-width: 1024px) {
  .section.case-study[data-case="bahamut-disco"] .section-back {
    top: -20px;
    left: 0;
  }
}

.section.case-study[data-case="qz-vision"] {
  background: #262626;
}

.section.case-study[data-case="qz-vision"] .section-back {
  right: 0;
  top: 0;
}

.section.etc {
  background-color: #efefef;
}
.section.etc .section-row {
  display: flex;
  justify-content: space-between;
}

.section.etc .section-col {
  max-width: 460px;
  width: 100%;
}

.section.etc .copy {
  font-size: 60px;
  font-weight: bold;
  line-height: 70px;
}

.section.etc .copy-en {
  font-size: 40px;
  font-family: var(--sans-font);
  font-weight: 600;
  line-height: 1;
  margin: 20px 0 0 0;
}

.section.etc .case-list {
  margin-top: -40px;
}

.section.etc .case-tile {
  border-bottom: 1px solid black;
  padding-bottom: 40px;
  margin-top: 40px;
}

.section.etc .title {
  font-size: 50px;
  font-family: var(--sans-font);
  color: var(--primary-color);
  line-height: 55px;
  letter-spacing: -2px;
}

.section.etc .client {
  font-family: var(--sans-font);
  font-size: 30px;
  font-weight: 300;
  font-style: italic;
  color: var(--primary-color);
  line-height: 1;
  margin-top: 20px;
}

.section.etc .client small {
  font-size: 15px;
}

.section.etc .copy,
.section.etc .copy-en,
.section.etc .case-tile,
.section.etc .client,
.section.etc .tags {
  opacity: 0;
  transform: translateY(10%);
}

.section.etc.enter .copy,
.section.etc.enter .copy-en,
.section.etc.enter .case-tile,
.section.etc.enter .client,
.section.etc.enter .tags {
  transition: opacity 1s, transform 1s;
  opacity: 1;
  transform: none;
}

.section.etc.enter .copy-en {
  transition-delay: 0.25s;
}

.section.etc.enter .case-tile:nth-child(1) .client {
  transition-delay: 0.25s;
}

.section.etc.enter .case-tile:nth-child(1) .tags {
  transition-delay: 0.5s;
}

.section.etc.enter .case-tile:nth-child(2) {
  transition-delay: 0.75s;
}

.section.etc.enter .case-tile:nth-child(2) .client {
  transition-delay: 1s;
}

.section.etc.enter .case-tile:nth-child(2) .tags {
  transition-delay: 1.25s;
}

.section.etc.enter .case-tile:nth-child(3) {
  transition-delay: 1.5s;
}

.section.etc.enter .case-tile:nth-child(3) .client {
  transition-delay: 1.75s;
}

.section.etc.enter .case-tile:nth-child(3) .tags {
  transition-delay: 2s;
}

@media (max-width: 1023px) {
  .section.etc .copy {
    font-size: 30px;
    line-height: 40px;
  }

  .section.etc .copy-en {
    font-size: 14px;
  }

  .section.etc .case-list {
    margin-top: 30px;
    border-top: 1px solid black;
  }

  .section.etc .case-tile {
    margin-top: 20px;
    padding-bottom: 20px;
  }

  .section.etc .client {
    font-size: 15px;
    margin-top: 10px;
  }

  .section.etc .client small {
    font-size: 10px;
  }

  .section.etc .tags {
    margin-top: 10px;
  }

  .section.etc .section-row {
    flex-direction: column-reverse;
  }

  .section.etc .title {
    font-size: 25px;
    line-height: 1;
  }
}

.floating-contact {
  position: fixed;
  bottom: 40px;
  right: 47px;
}

@media (max-width: 1023px) {
  .floating-contact {
    display: none;
  }
}

.miniGallery {
  width: 460px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

@media (max-width: 1023px) {
  .miniGallery {
    width: 100%;
  }
}

.galleryTitle {
  display: block;
  color: white;
  background: black;
  width: calc(33.33% - 5px);
  height: 30px;
  line-height: 30px;
  border-radius: 15px;
  padding: 0 1em;
  font-size: 13px;
  font-family: var(--sans-font);
  font-weight: bold;
  margin: 10px 0 0 5px;
  text-align: center;
}

.galleryList {
  width: 60%;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.selected {
  outline: solid 4px #01e369;
}

.thumbnail {
  flex: 1 0 calc(33.333% - 15px);
  aspect-ratio: 1;
  background-size: cover;
  background-position: center center;
  cursor: pointer;
}

.thumbnail:hover {
  opacity: 0.8;
}

.modalOverray {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  background: rgb(0 0 0 / 67%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modalOverray.active {
  animation: fadeIn 0.3s ease;
  visibility: visible;
  opacity: 1;
}

.modalBack {
  width: 100%;
  height: 100%;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 75%;
  transform: translate(-50%, -50%);
}

.modal-content img {
  display: block;
  margin: auto;
  width: 100%;
  box-shadow: 0 0 10px rgb(0 0 0 / 25%);
}

#closeButton {
  position: absolute;
  top: 0;
  right: -134px;
  background-image: url(../img/top/nicola/close.svg);
  background-color: rgb(0 0 0 / 0%);
  background-repeat: no-repeat;
  background-size: contain;
  width: 94px;
  height: 94px;
  cursor: pointer;
  border: none;
}

#prevButton,
#nextButton {
  position: absolute;

  background-image: url(../img/top/nicola/arrow.svg);
  background-color: rgb(0 0 0 / 0%);
  background-repeat: no-repeat;
  width: 60px;
  height: 116px;
  cursor: pointer;
  border: none;
}

#nextButton {
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
}

#prevButton {
  left: -100px;
  top: 50%;
  transform: scale(-1, 1) translateY(-50%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.section.etc .image {
  margin-top: 24px;
  width: 100%;
  height: auto;
}
