@charset "UTF-8";

/* 共通部分
------------------------------- */
html {
  font-size: 15px;
}
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
    sans-serif;
  line-height: 1;
  color: #432;
}

a {
  text-decoration: none;
  color: black;
}
img {
  max-width: 100%;
}

p {
  line-height: 2rem;
}

/*-----------------------共通-----------------------*/

.h0 {
  font-size: 3rem;
  display: inline-block;
  background: linear-gradient(90deg, #67b9e6, #8ecfc4);
  background: -webkit-linear-gradient(0deg, #67b9e6, #8ecfc4);
  background-clip: initial;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.icon {
  width: 1rem;
  height: 1rem;
}

.border {
  border-bottom: 2px solid #67b9e6;
  margin: 0;
  padding-bottom: 0.5rem;
}

.images {
  width: 40%;
  height: auto;
  margin: 0 0 0 0;
}

.btn-div {
  margin: 0;
}

.btn {
  display: inline-block;
  color: white;
  border-radius: 2rem;
  padding: 1rem 1.5rem;
}

.pagetitle {
  margin: 10rem 5rem 5rem 5rem;
}

.columtitle {
  display: flex;
  align-items: flex-end;
  column-gap: 1rem;
  margin: 5rem;
}

.pagetitle div {
  display: flex;
  align-items: center;
  column-gap: 2rem;
}

.nowarp {
  white-space: nowrap;
}

/*-----------------------レイアウト-----------------------*/
.align-center {
  display: flex;
  align-items: center;
}

.justify-center {
  display: flex;
  justify-content: center;
}

.direction-colum {
  display: flex;
  flex-direction: column;
}

/*-----------------------ヘッダー-----------------------*/

.textlogo {
  width: 10rem;
}

.header {
  border-bottom: 2px solid #d7d7d7;
  position: fixed;
  z-index: 10000;
  background-color: white;
  top: 0;
  left: 0;
  width: 100%;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  font-size: 1rem;
  list-style: none;
  margin-right: 3rem;
}

.header-flex {
  display: flex;
  justify-content: space-between;
}

.textlogo-flex {
  display: flex;
  align-items: center;
  margin: 1rem;
}

/* ハンバーガーメニュー */
/* チェックボックスを非表示にする */
.nav {
  display: none;
}

.drawer_hidden {
  display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
  display: flex;
  height: 60px;
  width: 60px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 100; /* 重なり順を一番上にする */
  cursor: pointer;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
  content: "";
  display: block;
  height: 3px;
  width: 25px;
  border-radius: 3px;
  background: #333;
  transition: 0.5s;
  position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
  bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
  top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
  background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
  bottom: 0;
  transform: rotate(45deg);
}

#drawer_input:checked ~ .drawer_open span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* メニューのデザイン*/
.nav_content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  width: 100%;
  height: 100%;

  top: 0;
  left: 100%; /* メニューを画面の外に飛ばす */
  z-index: 99;
  background: #fff;
  transition: 0.5s;
}

.nav_content .logo-flex {
  width: 50vw;
  height: 50vw;
  opacity: 0.2;
}

/* メニュー黒ポチを消す */
.nav_list {
  font-size: 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nav_list li {
  margin-bottom: 3rem;
}

/* アイコンがクリックされたらメニューを表示 */
#drawer_input:checked ~ .nav_content {
  left: 0;
}

/*-----------------------中央ロゴ-----------------------*/

.logo {
  opacity: 0;
  animation: fadeIn 2s ease-in-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.logo-flex img {
  width: 30%;
  height: auto;
}

/*-----------------------めたらぼの説明-----------------------*/

.metalab-about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5rem;
  margin: 5rem 0 10rem 0;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text span {
  color: #8ecfc4;
}

.metalab-text-flex {
  display: flex;
  align-items: flex-end;
  margin: 2rem 0;
  column-gap: 1rem;
}

.metalab-text-flex h2 {
  margin: 0;
  color: #8ecfc4;
}

.metalabokun {
  width: 40%;
  height: auto;
  margin: 0 10% 0 0;
}

/*-----------------------CGコンテンツ-----------------------*/

.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: auto;
}

.slide1,
.slide2 {
  position: absolute;
  display: none;
  width: 100%;
}

.slide:first-child {
  display: block;
}

.fade {
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.CGContents {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 5vw;
  margin: 10rem 0;
  column-gap: 2rem;
}

.CGCcol {
  background: linear-gradient(to right, #67b9e6, #3a8fcd);
}

.scroll-button {
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border: none;
}

.mainworks-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 8rem 5rem;
  column-gap: 5rem;
}

.mainworks-flex .mainwork {
  width: 30vw;
  bottom: 5rem;
}
.mainworks-flex .mainwork .figure {
  width: 100%;
}

.works-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  column-gap: 0;
  margin: 0 5rem;
}

.work {
  display: flex;
  align-items: center;
  column-gap: 3rem;
  max-width: 40vw;
  margin: 2rem 0;
}

.works-flex .work .figure {
  width: 50%;
}
.figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.info {
  width: 50%;
}

.names {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  column-gap: 1rem;
}
.names p {
  margin: 0;
  line-height: 1.5rem;
}

/*-----------------------ポップアップ-----------------------*/

.c {
  text-align: center;
}
.overlay {
  /* グレーの背景 */
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  background: rgba(0, 0, 0, 0.2);
  transition: all 0.5s 0s ease;
  visibility: hidden;
  opacity: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

#pop-up-flow {
  display: none;
}

#pop-up-flow:checked + .overlay {
  visibility: visible;
  opacity: 1;
  z-index: 100000;
  background-color: #000000d0;
  width: 100%;
}

#pop-up {
  display: none;
}
#pop-up:checked + .overlay {
  visibility: visible;
  opacity: 1;
  z-index: 100000;
  background-color: #000000d0;
  width: 100%;
}

.popWindow {
  border-radius: 5px;
  overflow: auto; /* スクロールバー用 */
  max-height: 95%; /* すき間 */
  min-width: fit-content; /* 横幅が広い時に白の部分が大きくならないため */
  max-width: 95%; /* すき間 */
  position: fixed;
  /*top: 50%; /* 中央に */
  /*left: 25%; /* 中央に */
  /*transform: translate(50%, 50%); /* 中央に */
  z-index: 100010;

  text-align: center; /* 文字を中央寄せ */
  transition: all 500ms ease-in-out;
}
.popWindow .ptitle {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.ptitle .buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popWindow .close {
  display: flex;
  column-gap: 0.5rem;
  font-size: large;
}

.popWindow .close:hover {
  color: #06d85f;
}
.popWindow::-webkit-scrollbar-track {
  background: none;
}
.popWindow::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.popWindow::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 5px;
}
.clickable:hover {
  cursor: pointer;
}

.btn-style {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
}

.btn-flex {
  display: flex;
  column-gap: 2rem;
}

/*-----------------------Gameデザイン-----------------------*/

.GDesign {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10vw;
  margin: 5rem 0;
  column-gap: 2rem;
}
.GDcol {
  background: linear-gradient(to right, #67b9e6, #8ecfc4);
}

.designnames {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 1rem;
}

.desigexplane {
  margin: 0 5rem;
}

.designnames p {
  margin: 0;
}

.GDworks {
  display: flex;
  justify-content: center;
  align-items: center;
}
.GDwork {
  display: flex;
  align-items: center;
  column-gap: 3rem;
  max-width: 60vw;
  margin: 2rem 0;
}

/*-----------------------ゲーム-----------------------*/
.Games {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10vw;
  margin: 5rem 0;
  column-gap: 2rem;
}
.Gcol {
  background: linear-gradient(to right, #85ced8, #18b38d);
}

.gameworks-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 0;
  margin: 0 8rem;
}

.gamework {
  display: flex;
  flex-direction: column;
  align-items: center;
  column-gap: 3rem;
  width: 45%;
  margin: 2rem 0;
}
.gamework .align-center {
  display: flex;
  flex-direction: column;
  column-gap: 0rem;
}

/*-----------------------フッター-----------------------*/

.footer-flex {
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  margin-top: 20vh;
}

.footer-logo {
  width: 10%;
  height: auto;
  margin-bottom: 1rem;
}

/*-----------------------タブレット-----------------------*/

@media screen and (max-width: 800px) {
  html {
    font-size: 12px;
  }

  .header-line {
    display: none;
  }
  .nav {
    display: flex;
  }

  .mainworks-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 5rem 5rem;
    column-gap: 5rem;
  }

  .mainworks-flex .mainwork {
    width: 80vw;
    margin-bottom: 5rem;
  }

  .works-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    column-gap: 0;
  }

  .gameworks-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    column-gap: 0;
    margin: 0 4rem;
  }

  .work {
    display: flex;
    align-items: center;
    column-gap: 3rem;
    max-width: 80vw;
    margin: 2rem 0;
  }
}

/*----------------------スマホ用------------------------*/
@media screen and (max-width: 480px) {
  html {
    font-size: 10px;
  }

  .logo-flex img {
    width: 50%;
    height: auto;
  }

  .header-line {
    display: none;
  }
  .nav {
    display: flex;
  }

  .gameworks-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 0;
    margin: 0 4rem;
  }
  .gamework {
    display: flex;
    flex-direction: column;
    align-items: center;
    column-gap: 3rem;
    width: 90%;
    margin: 2rem 0;
  }
  .gamework .align-center {
    display: flex;
    flex-direction: column;
    column-gap: 0rem;
  }
}
