@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  color: #121212;
  background-color: #f0f8ff;
  font-family: 'Noto Sans JP', cursive;
}

a {
  color: #4169e1;
  text-decoration: none;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

/* サイドメニューの横幅分だけ左にmarginをとる */
.container {
  margin-left: 300px;
}
/* コンテンツ幅を設定するための共通クラス */
.wrapper {
  max-width: 900px;
  padding: 80px 20px;
  margin: 0 auto;
}

.site-title {
  width: 215px;
  line-height: 1px;
  margin-bottom: 30px;
}

.site-title a {
  display: block;
}

/*
セクションタイトル用の共通クラス
両サイドの線は疑似要素で作成して、Flexboxで横並びに配置
※beforeが左の線、afterが右の線
*/
.sec-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.75rem;
  margin-bottom: 30px;
  text-align: center;
}

.sec-title::before,
.sec-title::after {
  border-top: 1px solid;
  content: "";
  width: 28%;
}

.sub-title {
  align-items: center;
  font-size: 1.5rem;
  font-weight:bold;
  text-align: center;
}

.comment-title {
  align-items: center;
  font-size: 1.2rem;
  font-weight:bold;
  text-align: center;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/
#header {
  width: 300px;
  height: 100%;
  background-color: #a9a9a9;
  padding: 40px 50px 30px 45px;
  position: fixed;
  top: 0;
  /* 画面の高さが低くてメニューが隠れてしまった場合に、縦スクロールが出るよう設定 */
  overflow-y: auto;
}

#header .nav-menu {
  margin-bottom: 60px;
}

#header li {
  font-size: 1.275rem;
  font-weight:bold;
  padding: 8px 0;
}

/*
 サブメニューのインデント
   右に20pxずらす
*/
#header ul.sub-menu {
  margin-left: 20px;
}

/*-------------------------------------------
js-scrollの設定
-------------------------------------------*/
.js-scroll {
  transition: all 1.8s ease;
  transform: translateY(30px);
  opacity: 0;
}
  
.js-scroll.is-show {
  transform: translateY(0);
  opacity: 1;
}

/*-------------------------------------------
Title
-------------------------------------------*/
/* 背景に黒の透過を設定 */
#title {
  margin-top: 20%;
  background: linear-gradient(rgba(0, 0, 0, 0), #f0f8ff);
  text-align: center;
}

#title .img {
  position: absolute;
}

/*-------------------------------------------
frame
-------------------------------------------*/

#frame .box {
  height: 150px;
  width: 50%;
  text-align: center;
  margin-top: 4%;
  margin-left: 15%;
  position: absolute;
  display: block;
  overflow: hidden;
}

#frame .box-line {
  position: absolute;
}

#frame .box-line:nth-child(1),
#frame .box-line:nth-child(3) {
  width: 100%;
  height: 15px;
}

#frame .box-line:nth-child(2),
#frame .box-line:nth-child(4) {
  width: 15px;
  height: 100%;
}

#frame .box-line:nth-child(1) {
  top: 0;
  left: 0;
  background: linear-gradient(to right, transparent, gold);
  animation: animate1 4s linear infinite;

}

#frame .box-line:nth-child(2) {
  top: 0;
  right: 0;
  animation: animate2 4s linear infinite;
  background: linear-gradient(to bottom, transparent, gold);
}

#frame .box-line:nth-child(3) {
  bottom: 0;
  left: 0;
  background: linear-gradient(to left, transparent, gold);
  animation: animate3 4s linear infinite;
}

#frame .box-line:nth-child(4) {
  top: 0;
  left: 0;
  background: linear-gradient(to top, transparent, gold);
  animation: animate4 4s linear infinite;
}

@keyframes animate1 {

  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes animate2 {

  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }

}

@keyframes animate3 {


  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }

}

@keyframes animate4 {


  0% {
    transform: translateY(100%);
  }


  100% {
    transform: translateY(-100%);
  }

}

/*-------------------------------------------
Video
-------------------------------------------*/
/*
動画を全画面表示
*/
#video {
  width: 100%;
  height: 100vh;
}

/*
「position: fixed;」で動画を固定し、「top: -220px;」で表示位置を調整
z-indexでマイナスを設定して、他のコンテンツの下に隠れるようにする
*/
#video .bg-video {
  position: fixed;
  top: 0px;
  right: 7.5%;
  z-index: -10;
}

/*-------------------------------------------
Our Service
-------------------------------------------*/
/* 背景に黒の透過を設定 */
#our-service {
  background: rgba(0, 0, 0, 0.8);
  background: linear-gradient(rgba(0, 0, 0, 0.8), #ccd9ff);
  color: #fff;
}

#our-service .list {
  display: flex;
  justify-content: space-between;
}

#our-service .list li {
  width: 30%;
  font-size: 1.5rem;
  text-align: center;
}

#our-service .list li a img {
  width: 50%;
}

/*
円を作成

レスポンシブに対応した可変サイズの円を作成する場合は、
widthに100%を設定して、paddingで上下を50%に設定
今回は円の中にテキストが入っているのと、枠線をつけているため、
50%から上下それぞれテキストの高さ（10px）とボーダー（1px）をマイナスしている
※テキストの高さは、ディベロッパーツールで20pxと確認できるため、
上下で分割してそれぞれ10pxとなる。

*/
#our-service .list li a {
  width: 100%;
  border: solid 1px #fff;
  border-radius: 50%;
  color: #fff;
  display: block;
  padding: calc(50% - 11px) 0;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
  /* ホバー時用の要素を隠すために設定 */
  overflow: hidden;
}

/*
ホバー時のスライドを疑似要素で作成
「left: -100%;」で左側に隠しておく
*/
#our-service .list li a::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: #fff;
  position: absolute;
  top: 0;
  left: -100%;
  opacity: 0.3;
  transition: 0.5s;
}

/* ホバー時に「left: 0;」を設定して右に移動させる */
#our-service .list li a:hover::before {
  left: 0;
}

#our-service .list .title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

/*-------------------------------------------
Management
-------------------------------------------*/
#management {
  color: #191970;
  background-color: #ccd9ff;
  background: linear-gradient(#ccd9ff, 95%, #668cff);
  padding-top: 10px;
  padding-bottom: 85px;
  text-align: center;
}

#management .p {
  font-size: 1.5rem;
}

#management .example {
  padding-top: 2px;
  position: relative;
}

#management .demand {
  color: #4169e1;
  padding-top: 70px;
  position: relative;
}

/*-------------------------------------------
Engineering
-------------------------------------------*/
#engineering {
  color: #000080;
  background: linear-gradient(#668cff, 95%, #0040ff);
  padding-top: 10px;
  padding-bottom: 85px;
  text-align: center
}

#engineering .p {
  font-size: 1.5rem;
}

#engineering .example {
  padding-top: 2px;
  position: relative;
}

#engineering .demand {
  color: #0000cd;
  padding-top: 70px;
  position: relative;
}

/*-------------------------------------------
Estate
-------------------------------------------*/
#estate {
  color: #ccd9ff;
  background: linear-gradient(#0040ff, 95%, #f8f8ff);
  padding-top: 10px;
  padding-bottom: 85px;
  padding-top: 10px;
  text-align: center
}

#estate .p {
  font-size: 1.5rem;
}

#estate .example {
  padding-top: 2px;
  position: relative;
}

#estate .demand {
  color: #ccd9ff;
  padding-top: 70px;
  position: relative;
}

/*-------------------------------------------
Office
-------------------------------------------*/
/* 背景に黒の透過グラデーションを設定 */
#office {
  background: linear-gradient(rgba(0,0,0,0),#ffffcc);
  color: #fff;
}

#office .list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#office .list li {
  width: 47%;
  border: solid 1px #fff;
  margin-bottom: 50px;
  position: relative;
}

/* 下段の2つはマージンを設定しない */
#office .list li:last-child,
#office .list li:nth-last-child(2) {
  margin-bottom: 0;
}

#office .list li a {
  display: block;
}

/* 疑似要素を使用して、テキストの下に「box-shadow」で影を付ける */
#office .list li a::after {
  content: "";
  box-shadow: 0 -30px 15px -1px #2e2e2e inset;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

#office .list .name {
  color: #fff;
  font-size: 0.75rem;
  position: absolute;
  bottom: 4px;
  left: 7px;
  z-index: 5;
}

/*-------------------------------------------
Company Info
-------------------------------------------*/
#company-info {
  color: #331a00;
  background: linear-gradient(#ffffcc, 95%, #ffff99);
  padding-top: 10px;
  text-align: center
}

#company-info .p {
  font-size: 1.5rem;
}

#company-info .example {
  padding-top: 2px;
  position: relative;
}

#company-info .demand {
  color: #663300;
  padding-top: 20px;
  position: relative;
}

/*-------------------------------------------
Access
-------------------------------------------*/
#access {
  color: #994d00;
  background: linear-gradient(#ffff99, 95%, #ffff66);
  padding-top: 10px;
  text-align: center
}

#access .p {
  font-size: 1.5rem;
}

#access .example {
  padding-top: 2px;
  position: relative;
}

#access .demand {
  color: #cc6600;
  padding-top: 20px;
  position: relative;
}

/*-------------------------------------------
Contact
-------------------------------------------*/
#contact {
  background: linear-gradient(#ffff66, 95%, #ffff33);
  padding-bottom: 80px;
}

/*-------------------------------------------
フッター
-------------------------------------------*/
#footer {
  background-color: #121212;
  color: #fff;
  padding: 20px 0;
}

#footer .menu {
  display: flex;
  justify-content: center;
  margin: 30px 0 60px 0;
}

#footer .menu li {
  border-right: solid 1px #fff;
  font-size: 0.875rem;
  padding: 0 20px;
}

#footer .menu li:last-child {
  border-right: none;
}

#footer .menu li a {
  color: #fff;
}

#footer .copyright {
  font-size: 0.75rem;
  text-align: center;
}

/*-------------------------------------------
トップへ戻るボタン
-------------------------------------------*/
/*
右下に固定で配置
表示・非表示の切り替えはjQueryで行うため、詳細は「main.js」のコメントを参照
*/
#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-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
  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;
    left: 18px;
    top: 10px;
  }

  .sec-title {
    font-size: 1.25rem;
    margin-bottom: 30px;
  }

  .sec-title::before,
  .sec-title::after {
    width: 18%;
  }

  /*-------------------------------------------
  ヘッダー
  -------------------------------------------*/
  #header {
    width: 100%;
    height: 72px;
    padding: 0;
    z-index: 10;
  }
  
  /*
  ハンバーガーメニュー
  ※ハンバーガーメニューの説明は他の課題と重複するため割愛
  */
  #navi {
    width: 300px;
    background: #fff;
    padding: 25px;
    position: fixed;
    top: 0;
    left: -300px;
    bottom: 0;
    opacity: 0;
    overflow-y: auto;
    transition: 0.5s;
    z-index: 20;
  }
  
  .open #navi {
    left: 0;
    opacity: 1;
  }
  
  #navi ul.nav-menu {
    margin-bottom: 30px;
  }
  
  #navi ul li {
    padding: 10px 0;
  }
  
  #navi ul.sub-menu {
    margin-left: 20px;
  }
  
  .hamburger {
    width: 30px;
    height: 30px;
    cursor: pointer;
    position: fixed;
    top: 22px;
    right: 18px;
    transition: 0.5s;
    z-index: 20;
  }
  
  .hamburger span {
    width: 30px;
    height: 2px;
    background-color: #121212;
    border-radius: 4px;
    display: block;
    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 {
    width: 100%;
    height: 100%;
    background-color: #000;
    cursor: pointer;
    display: block;
    opacity: 0.8;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
  }

  /*-------------------------------------------
  Title
  -------------------------------------------*/
  /* 背景に黒の透過を設定 */
  #title {
    margin-top: 45%;
  }

  /*-------------------------------------------
  frame
  -------------------------------------------*/

  #frame .box {
    width: 100%;
    height: 18%;
    margin-top: 10%;
    margin-left: 0%;
    position: absolute;
  }
 
  /*-------------------------------------------
  Video
  -------------------------------------------*/
  /*
  スマホの場合は、動画が見切れすぎないよう高さを調整
  */
  #video {
    height: 80vh;
  }
  
  #video .bg-video {
    height: 520px;
    top: 72px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  /*-------------------------------------------
  office
  -------------------------------------------*/
  #office .list {
    flex-direction: column;
  }
  
  #office .list li {
    width: 100%;
    margin-bottom: 30px;
  }
  
  #office .list li:nth-last-child(2) {
    margin-bottom: 30px;
  }

  /*-------------------------------------------
  Contact
  -------------------------------------------*/
  #contact {
    padding-bottom: 60px;
  }

  /*-------------------------------------------
  フッター
  -------------------------------------------*/
  #footer .menu {
    flex-wrap: wrap;
  }
  
  #footer .menu li {
    margin-bottom: 10px;
  }
  
}
