@charset "utf-8";

body {
  font-family: "メイリオ", Meiriyo, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  background: #0021f9;
  position: relative;
}

section {
  position: relative;
}

.inner {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  position: relative;
}

h2 {
  font-size: 100px;
  font-weight: bold;
}

h2 img {
  max-width: 100%;
}

/* ナビゲーション */
header {
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#nav-pc ul {
  display: flex;
  justify-content: flex-end;
  padding-right: 50px;
  padding-top: 10px;
  padding-bottom: 10px;
}

#nav-pc li {
  list-style: none;
}

#nav-pc a {
  text-decoration: none;
  margin-left: 20px;
  color: #fff;
}



/* メインビジュアル */
#mainvisual {
  width: 100%;
  height: 80vh;
  min-height: 100px;
  background: url(../images/main_loop.png) top left;
}

#mainvisual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* WORKS */
#works {
  background: url(../images/02_works.png) no-repeat bottom center;
  padding-bottom: 200px;
  background-size: cover;
}

#works .inner {
  display: flex;
  justify-content: right;
}

#works h2 {
  width: 40%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
}

.container {
  /* margin: 100px auto 100px 150px; */
  margin: 100px 0 100px;
  display: flex;
  /* justify-content: space-between; */
  flex-wrap: wrap;
  width: 75%;
}

.item {
  /* width: 50%;
  height: 300px;
  position: relative;
  background: #fff;
  overflow: hidden;
  text-align: center; */
  width: 50%;
  aspect-ratio: 3 / 2;
  background: #fff;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ABOUT */
/* #about {
  background: url(../images/04_about.png) no-repeat bottom center;
  background-size: cover;
} */

#about:before {
  display: block;
  content: "";
  width: 100%;
  height: 200px;
  background: url(../images/03_about_head.png) no-repeat bottom center;
  background-size: 100% 100%;
  position: absolute;
  top: -200px;
  left: 0;
}

#about-flex {
  display: flex;
}

#about-logo {
  display: block;
  margin: 200px auto 10px auto;
  width: 30%;
  
}

#about-name {
  text-align: center;
}

#about-flex>div {
  /* margin: 100px 150px 100px 150px; */
  padding: 100px;
  box-sizing: border-box;
}

#about-right,
#about-left {
  flex: 1;
  width: 50%;
}

#about-left {
  display: flex;
  align-items: center;
}

#about-right li:not(:last-child) {
  list-style: none;
  margin: 0 0 20px;
}

#about h2 {
  width: 40%;
  height: auto;
  position: absolute;
  top: 0;
  right: 0;
}

/* CONTACT */
#contact {
  background: url(../images/05_nami.png) no-repeat top center;
  background-size: cover;
  position: relative;
}
#contact>div {
  padding: 100px 0;
}

#contact-icon {
  display: block;
  margin: 50px auto 50px auto;
  max-width: 200px;
}

#contact a {
  display: block;
  margin: auto;
  width: 500px;
  padding: 2px;
  text-align: center;
  background: #fff;
  color: #0021f9;
  border-radius: 25px;
  text-decoration: none;
}

#contact h2 {
  width: 100%;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

/*====================
  スマートフォン用のスタイル
 =====================*/

 /* スマホ用ナビを非表示 */
#nav-sp,
#menu-sp {
  display: none;
}

@media screen and (max-width: 767px) {

  /* PC用ナビゲーション非表示 */
  #nav-pc {
    display: none;
  }

  /* ハンバーガーメニュー */
  #menu-sp {
    display: block;
    background-color: transparent;
    float: right;
    padding: 20px;
    border: none;
  }

  #nav-sp {
    background-color: #0021f9;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: none;
    z-index: 100;
  }

  /* ×ボタン */
  #close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
  }

  #nav-sp nav ul {
    padding-left: 0;
  }

  #nav-sp nav li {
    list-style: none;
  }

  /* ナビゲーションのリンクの装飾設定 */
  #nav-sp nav a {
    display: block;
    color: #ffffff;
  }

  #nav-sp nav a:hover {
    text-decoration: underline;
  }

  #menu {
    padding: 100px 20px 20px;
    box-sizing: border-box;
    text-align: center;
    font-size: 18vw;
    font-weight: bold;
  }

  #nav-sp li a {
    text-decoration: none;
    padding: 0 0 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid #fff;
  }

  #nav-sp li:first-child a {
    padding: 40px 0 40px;
    border-top: 1px solid #fff;
  }

  #mainvisual img {
    max-width: 80%;
  }

  h2 {
    font-size: 19vw;
  }

  /* スマートフォンWORKS */
  #works h2 {
    width: 80%;
  }

  .container {
    display: block;
  }

  .item {
    width: 100%;
    aspect-ratio: 3 / 2;
  }

  /* スマートフォンABOUT */
  #about h2 {
    width: 80%;
  }
  

  #about:before {
    width: 100%;
    height: 100px;
    top: -100px;
  }

  #about-flex {
    flex-direction: column;
  }

  #about-flex>div {
    width: 100%;
    padding: 50px 50px;
    box-sizing: border-box;
  }

  #about-flex>div#about-right {
    padding: 0 50px 50px;
    margin: 0 auto 50px auto;
    text-align: center;
  }

  /* スマートフォンCONTACT */
  #contact h2 {
    width: 100%;
  }
}

