@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #333;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  overflow-x: hidden;
}

.section {
  padding: 90px 0;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 3.5em;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 1.5em;
  text-align: center;
  letter-spacing: .05em;
  color: #4682b4;
}

.title span {
  font-size: 0.5em;
  display: flex;
  flex-direction: column;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0.5em;
  background-color: #4682b4;
  color: #FFF;
  padding: 0.3em;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #4682b4;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.home-link {
  text-align: center;
}

.gnav-item a,
.home-link a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #4682b4;
}
.gnav-item a:after,
.home-link a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #4682b4;
}

.gnav-item a:hover:after,
.home-link a:hover:after {
  width: 100%;
}

/*--------------------------------
 Main
---------------------------------*/
.main {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 85vh;
  background-image: url(img/mainvisual.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.main-title {
  font-size: 4.5em;
  animation: zoom-in 2s linear;
}

.main-title span {
  font-size: 0.5em;
  display: flex;
  flex-direction: column;
}

/*--------------------------------
 About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}
.profile-img {
  width: 35%;
  margin-right: 30px;
}

.profile-body {
  flex: 1;
}

.profile-name {
  color: #4682b4;
  font-size: 1.5em;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 50px;
}

.skill-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  color: #4682b4;
  margin-bottom: 10px;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #FFF;
  position: relative;
  overflow: hidden;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.itembox {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  display: table;
  text-align: center;
  transition: 0.5s;
  background-color: rgba(0,0,0,0.6);
}

.works-name {
  font-size: 1.5em;
  font-weight: bold;
  display: table-cell;
  vertical-align: middle;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
  background-color: #f0f8ff;
}

.contactleft,
.contactright {
  display: grid;
  margin: 0 0.5em;
}

.contactright {
  border: 1px solid #4682b4;
}

/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  width: 50px;
  height: 50px;
  text-align: center;
  background-color: #999;
  position: fixed;
  bottom: 70px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
}

.pagetop-arrow {
  width: 10px;
  height: 10px;
  border-top: 3px solid #FFF;
  border-right: 3px solid #FFF;
  transform: translateY(20%) rotate(-45deg);
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #4682b4;
}

.copyright {
  font-size: 0.8em;
  text-align: center;
  color: #FFF;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  animation: zoom-in 2s linear;
}

.article-title span {
  font-size: 0.5em;
  display: flex;
  flex-direction: column;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.article-imgbox {
  margin-bottom: 1.5em;
  text-align: center;
}

.article-img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

/* ---------------------------------------------
ガチャガチャ・ガラガラ
--------------------------------------------- */
button:hover {
  opacity: 0.7;
}

.hidden {
  display: none;
}

#gachamask,#garagaramask {
  background-color: rgba(0,0,0,0.7);
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 1;
}

#gachamodal,#garagaramodal {
  width: 480px;
  padding: 24px;
  border-radius: 4px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  margin: 0 auto;
  z-index: 2;
}

#gachamodal img,#garagaramodal img {
  width: 100%;
}

#gachaopen,#garagararesult {
  position: absolute;
  opacity: 0;
  animation-name: timelag;
  animation-duration: 4s;
  animation-delay: 3.4s;
  animation-fill-mode: forwards;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

  /* アニメーション */
  @keyframes zoom-in {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }

  .rotation {
    transform: rotateY(180deg);
    transition-duration: 1s;
    opacity: 0;
  }

  .slidein{
    transition: 1.5s ease-in-out;
  }
  
  .to-right {
    transform: translateX(calc(-50vw - 50%));
    opacity: 0;
  }

  .to-left {
    transform: translateX(calc(50vw + 50%));
    opacity: 0;
  }

  .to-top {
    transform: translateY(50px);
    opacity: 0;
  }

  .show {
    transform: translate(0);
    opacity: 1;
  }

  .scrollin {
    transform: translate(0);
    opacity: 1;
  }

  @keyframes timelag {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
  }

/*media Queries
----------------------------------------------------*/
@media screen and (min-width: 768px) {
  .sp-gnav-btn {
    display: none;
  }

  .contact {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }
  
  .contact .container {
    display: flex;
    justify-content: center;
  }
  
  .contact h2 {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 2.5em;
    margin-bottom: 1.5em;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
  }

  /* レイアウト */
  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header {
	  height: 53px;  
  }
	
  .header .container {
    display: block;
    padding: 0;
  }

  .header-logo {
    font-size: 1.3em;
    float: left;
    margin-top: 18px;
    margin-left: 15px;
  }

  .sp-gnav-btn {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 53px;
    height: 53px;
    background-color: #fff;
    border: 1px solid #4682b4;
    top: 0;
    right: 0;
    z-index: 100;
  }

  .sp-gnav-btn span {
    position: absolute;
    content: '';
    display: block;
    width: 25px;
    height: 3px;
    background-color: #4682b4;
    border-radius: 3px;
    transition: ease .5s;
  }

  .sp-gnav-btn span:nth-child(1) {
    top: 8px;
  }

  .sp-gnav-btn span:nth-child(2) {
    top: 17px;
  }

  .sp-gnav-btn span:nth-child(3) {
    top: 26px;
  }

  .sp-gnav-btn span:nth-child(3):after {
    content: 'MENU';
    background: none;
    font-size: 0.65em;
    color: #4682b4;
    font-weight: bold;
    position: absolute;
    top: 6px;
    left: -1px;
  }

  .gnav {
    position: fixed;
    background-color: #4682b4;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateX(100%);
    z-index: 90;
    transition: all .5s;
  }

  .gnav-list {
    display: block;
    padding: 70px 10px 0;
  }

  .gnav-item {
    border-bottom: 1px solid #FFF;
    list-style-type: none;
    margin: 0;
  }

  .gnav-item a {
    color: #fff;
    font-size: 1.5em;
    padding: 9px 15px 10px 0;
  }
  
  .gnav.active {
    transform: translateX(0);
  }

  .sp-gnav-btn.active span:nth-child(1) {
    top: 17px;
    transform: rotate(45deg);
  }

  .sp-gnav-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .sp-gnav-btn.active span:nth-child(3) {
    top: 17px;
    transform: rotate(-45deg);
  }

  .sp-gnav-btn.active span:nth-child(3):after {
    content: 'CLOSE';
    transform: rotate(45deg);
    top: 8px;
    left: -15px;
  }

  /*  メインビジュアル */
  .main {
    height: 75vh;
  }

  .main-container {
    padding: 0 20px;
  }

  .main-title {
    font-size: 3.5em;
  }

  /* About */
  .profile {
    display: block;
  }
  .profile-img {
    width: 100%;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  .works-list {
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .itembox {
    display: none;
  }

  #gachamodal,#garagaramodal {
	width: 100%;
  }

  /* contact */
  .contact .container {
    padding: 20px;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */

  .article-body {
    margin-bottom: 2.5em;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}