@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  color: #121212;
  font-family: 'Noto Sans JP', sans-serif;
}

a{
  color: #121212;
  text-decoration: none;
}

li {
  list-style: none;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

/* サイドメニュー分のmargin */
.container {
  margin-left: 300px;
}

.wrapper {
  max-width: 900px;
  padding: 80px 20px;
  margin: 0 auto;
}

.site-title {
  width: 200px;
  line-height: 1px;
  margin-bottom: 30px;
}

.site-title a {
  display: block;
}

.sec-title {
  font-size: 1.75rem;
  margin-bottom: 60px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sec-title::before,
.sec-title::after {
  content: "";
  border-top: 1px solid;
  width: 28%;
}

/*----#header---------------------------------*/
/* サイドに配置しているがロゴやグローバルナビゲーションを含んだヘッダー要素の為asideタグではなくheaderタグを使用する */
/* asideタグはメインコンテンツとは関係ない補足的な情報をサイドバーとして配置する場合に使用する */
#header {
  width: 300px;
  /* 画面の高さが低くメニューが隠れた場合に縦スクロールを表示(下記２行) */
  height: 100%;
  overflow-y: auto;
  background-color: #fff;
  padding: 40px 50px 30px 45px;
  /*topに固定(下記２行)*/
  position: fixed;
  top: 0;
}

#header .nav-menu {
  margin-bottom: 60px;
}

#header li {
  padding: 8px 0;
}

/*----#video---------------------------------*/
#video {
  width: 100%;
  height: 100vh;
}

#video .bg-video {
  position: fixed;
  z-index: -10;
  width: 100%;
}

/*----#project---------------------------------*/
#project {
  background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.8));
  color: #fff;
}

#project .list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#project .list li {
  width: 47%;
  /* 白い外枠 */
  border: solid 1px #fff;
  margin-bottom: 50px;
  position: relative;
}

/* 最後の要素と最後から数えて２番目の要素 */
#project .list li:last-child,
#project .list li:nth-last-child(2) {
  margin-bottom: 0;
}

#project .list li a {
  display: block;
}

#project .list li a::after {
  content: "";
  box-shadow: 0 -30px 15px -1px #2e2e2e inset;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#project .list .name {
  color: #fff;
  font-size: 0.75rem;
  position: absolute;
  bottom: 4px;
  left: 7px;
  z-index: 5;
}

/*----#featur---------------------------------*/
#feature {
  color: #fff;
  background: rgba(0,0,0,0.8);
  padding-bottom: 80px;
}

#feature .list {
  display: flex;
  justify-content: space-between;
}

#feature .list li {
  width: 30%;
  font-size: 0.875rem;
  text-align: center;
}

#feature .list li a {
  color: #fff;
  display: block;
  width: 100%;
  border: solid 1px #fff;
  border-radius: 50%;
  margin-bottom: 15px;
  padding: calc(50% - 11px) 0;
  text-align: center;
  position: relative;
  /* はみ出た要素を隠す */
  overflow: hidden;
}

#feature .list li a::before {
  content: "";
  background-color: #fff;
  opacity: 0.3;
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: -100%;
  transition: 0.5s;
}

#feature .list li a:hover::before {
  left: 0;
}

#feature .list .title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

/*----#flow---------------------------------*/
#flow {
  background-color: #fff;
  padding-top: 40px;
}

#flow .step {
  display: flex;
  margin-top: 60px;
}

#flow .figure {
  position: relative;
}

#flow .figure::before {
  content: "";
  width: 50px;
  height: 600px;
  background-color: #ffdd00;
  /* position: absolute;にするとinlineからblockに変化 */
  position: absolute;
  top: 0;
  left: 75px;
}

#flow .figure li {
  width: 200px;
  height: 80px;
  line-height: 80px;
  margin-bottom: 60px;
  color: #fff;
  background-color: #414141;
  font-size: 0.875rem;
  text-align: center;
  position: relative;
}

#flow .figure li::before {
  content: "";
  border-top: 30px solid #414141;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  position: absolute;
  top: 80px;
  right: 0;
  left: 0;
  margin: 0 auto;
}

#flow .figure li:last-child {
  margin-bottom: 0;
}

#flow .description {
  margin-left: 10%;
}

#flow .description dt {
  border-bottom: solid 1px #121212;
  font-size: 1.25rem;
  padding-bottom: 8px;
  margin-bottom: 10px;
  position: relative;
}

#flow .description dt span {
  display: block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  background-color: #414141;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 1rem;
  position: absolute;
  bottom: 0;
  left: -45px;
}

#flow .description dd {
  margin-bottom: 43px;
}

#flow .description dd:last-child {
  margin-bottom: 0;
}

/*----#contact---------------------------------*/
#contact {
  background-color: #fff;
}

#contact .link {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
}

#contact .link .item {
  /* お手本には書いてあったけど必要なさそう */
  /*display: block;*/
  width: 30%;
  border: solid 1px #121212;
  padding: 50px 0;
  text-align: center;
  font-size: 0.875rem;
  position: relative;
  transition: 0.1s;
}

#contact .link .item::before {
  content: "";
  border-top: solid 20px transparent;
  border-right: solid 20px #121212;
  position: absolute;
  right: 4px;
  bottom: 4px;
}

#contact .link .item:hover {
  outline: solid 3px #121212;
}

#contact .link .item img {
  margin-bottom: 5px;
}

/*----#footer---------------------------------*/
#footer {
  background-color: #121212;
  color: #fff;
  padding: 20px 0;
}

#footer .menu {
  display: flex;
  margin: 30px 0 60px 0;
  justify-content: center;
}

#footer .menu li {
  padding: 0 20px;
  border-right: solid 1px #fff;
  font-size: 0.875rem;
}

#footer .menu li:last-child {
  border-right: none;
}

#footer .menu li a {
  color: #fff;
}

#footer .copyright {
  text-align: center;
  font-size: 0.75rem;
}

#to-top {
  width: 50px;
  height: 50px;
  background-color: #121212;
  border: solid 1px #fff;
  border-radius: 50%;
  position: fixed;
  right: 25px;
  bottom: 25px;
}

#to-top::after {
  content: "";
  border-right: solid 7px transparent;
  border-bottom: solid 7px #fff;
  border-left: solid 7px transparent;
  position: relative;
  left: 17px;
  bottom: 3px;
}

/*----レスポンシブsp----------------------*/
@media screen and (max-width: 960px) {
  .container {
    margin-left: 0;
  }

  .wrapper {
    padding: 60px 20px;
  }

  .site-title {
    width: 180px;
    margin-bottom: 0;
    position: relative;
    top: 10px;
    left: 18px;
  }
  .sec-title {
    font-size: 1.25rem;
    margin-bottom: 30px;
  }

  .sec-title::before,
  .sec-title::after {
    width: 18%;
  }

  /*----レスポンシブsp #header-------------*/
  #header {
    width: 100%;
    height: 72px;
    padding: 0;
    z-index: 10;
  }
  
  #navi {
    opacity: 0;
    left: -300px;
    width: 300px;
    background: #fff;
    padding: 25px;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    transition: 0.5s;
    z-index: 20;
  }

  .open #navi {
    opacity: 1;
    left: 0;
  }

  
  #navi ul.nav-menu {
    margin-bottom: 30px;
  }

  /* pc閲覧ver.ではタグが#header li */
  #navi ul li {
    padding: 10px 0;
  }

  .hamburger {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: fixed;
    top: 22px;
    right: 18px;
    transition: 0.5s;
    z-index: 20;
  }

  .hamburger span {
    /* お手本には書いてあったけど必要なさそう */
    /*display: block;*/
    width: 30px;
    height: 2px;
    background-color: #121212;
    border-radius: 4px;
    position: absolute;
    left: 0;
    transition: 0.5s;
  }

  .hamburger span:nth-child(1) {
    top: 4px;
  }

  .hamburger span:nth-child(2) {
    top: 14px;
  }

  .hamburger span:nth-child(3) {
    bottom: 4px;
  }

  .open .hamburger span {
    background-color: #fff;
  }

  .open .hamburger span:nth-child(1) {
    transform: translateY(10px) rotate(-315deg);
  }

  .open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .open .hamburger span:nth-child(3) {
    transform: translateY(-10px) rotate(315deg);
  }

  #mask {
    display: none;
    transition: 0.5s;
  }

  .open #mask {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.8;
    cursor: pointer;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }

  /*----レスポンシブsp #video---------------------------------*/
  #video {
    height: 80vh;
  }

  #video .bg-video {
    height: 520px;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  /*----レスポンシブsp #project---------------------------------*/
  #project .list {
    flex-direction: column;
  }

  #project .list li {
    width: 100%;
    margin-bottom: 30px;
  }

  #project .list li:nth-child(3) {
    margin-bottom: 30px;
  }


  /*----レスポンシブsp #featur---------------------------------*/
  #feature {
    padding-bottom: 60px;
  }

  /*----レスポンシブsp #flow---------------------------------*/

  #flow {
    padding-top: 0;
  }

  #flow .step {
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
  }

  #flow .figure {
    margin-bottom: 80px;
  }

  #flow .figure::before {
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  #flow .figure li {
    width: calc(100vw - 80px);
  }

  #flow .figure li::before {
    border-left: calc(50vw - 40px) solid transparent;
    border-right: calc(50vw - 40px) solid transparent;
  }

  #flow .description {
    margin-left: 50px;
  }

  /*----レスポンシブsp #contact---------------------------------*/

  #contact {
    padding-bottom: 60px;
  }

  #contact .link {
    flex-direction: column;
    margin-top: 30px;
    align-items: center;
  }

  #contact .link .item {
    width: 60%;
    margin: 20px 0 0 0;
  }

  #contact .link .item:first-child {
    margin-top: 0;
  }

  /*----レスポンシブsp #footer---------------------------------*/
  #footer .menu {
    flex-wrap: wrap;
  }

  #footer .menu li {
    margin-bottom: 10px;
  }
}