@charset "UTF-8";

/* --------------------------------
 * base
 * -------------------------------- */
html {
  font-size: 62.5%;
}
body {
  background: #151515 url('../images/morning-sky.jpg') no-repeat fixed left bottom;
  background-size: cover;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  /* font-family: 'Open Sans', "Hiragino Kaku Gothic ProN",  Meiryo, sans-serif; */
  /* font-family: 'Ubuntu', 'Tahoma', 'Hiragino Kaku Gothic ProN',  Meiryo, sans-serif; */
  font-family: 'Lato', "Hiragino Kaku Gothic ProN",  Meiryo, sans-serif;
}
*, *::before, *::after {
  box-sizing: border-box;
}
.bg-cover {
  background: rgba(21, 21, 21, 0.2);
  height: 100vh;
}
.particles {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  /* z-index: -1; */
}

@keyframes fade-in {
  from {opacity: 0;}
  to {opacity: 1;}
}
.fade-in-element {
animation: fade-in 4s;
}
.hidden {
  opacity: 0;
}

/* --------------------------------
 * parts
 * -------------------------------- */
.heading {
  position: relative;
  display: inline-block;
  margin: 30px 0 15px;
  padding-bottom: 15px;
  letter-spacing: 2px;
  font-size: 4rem;
}
.heading::before,
.heading::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}
.heading::before {
  bottom: 5px;
}
.button {
  display: inline-block;
  width: 200px;
  padding: 20px;
  border-radius: 4px;
  background-color: #afa58d;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  font-size: 1.2rem;
  z-index: 100;
}
.button:hover {
  opacity: 0.9;
}
.button-showy {
  background-color: #28b485;
}
.button-ghost {
  border: 1px solid #fff;
  background-color: rgba(255, 255, 255, 0.15);
}


/* --------------------------------
 * header
 * -------------------------------- */
.header {
  padding: 170px 30px 80px;
}
.site-title-sub {
  margin: 0 0 30px;
  letter-spacing: 1px;
  font-size: 2.2rem;
}
.site-title-sub::before,
.site-title-sub::after {
  content: '';
  display: inline-block;
  width: 140px;
  height: 2px;
  margin: 0 30px;
  background-color: #fff;
  vertical-align: middle;
}
.site-title {
  margin: 50px 0 40px;
  font-size: 7.6rem;
}
.site-description {
  margin-bottom: 50px;
  color: #fff;
  font-size: 2rem;
}
.buttons .button {
  margin: 10px;
  z-index: 100;
}


/* --------------------------------
 * about
 * -------------------------------- */
.about {
  padding: 80px 30px;
  background-color: #fff;
  color: #333;
}
.about-text {
  margin: 30px 0;
  line-height: 2.5;
}


/* --------------------------------
 * works
 * -------------------------------- */
 .works {
  padding: 40px 0;
  margin: 0 auto;
  width: 80%;
  /* background-color: #383634; */
}

.works-wrapper {
  display: grid;
  width: 100%;
  margin-top: 60px;
  gap: 30px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;

}
.work-box {
  position: relative;
  display: table-cell;
  background-color: rgba(0,0,0,0.3);
  padding-top: 20px;
}

.work-image {
  width: 450px;
  height: 300px;
  object-fit: cover;
}
.work-description {
  width: 100%;
  overflow-y: auto;
}
.work-description-inner {
  width: 100%;
  height: 100%;
  padding: 10px 20px 60px 20px;
}
.work-text {
  vertical-align: middle;
  font-size: 1.2rem;
  line-height: 2;
}
.work-text .button {
  width: 60%;
  margin-top: 20px;
  padding: 3px;
}
/* .work-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: no-repeat;
  background-size: 100% 100%;
  opacity: 0.2;
  transform: scaleY(-1);
}
/* .work-box.tree::after {
  background-image: url('../images/tree.jpg');
}
.work-box.building::after {
  background-image: url('../images/building.jpg');
}
.work-box.lake::after {
  background-image: url('../images/lake.jpg');
}
.work-box.sky::after {
  background-image: url('../images/sky.jpg');
}
.work-box:nth-child(odd) .work-image {
  margin: 60% 0 0;
}
.work-box:nth-child(odd) .work-description,
.work-box:nth-child(odd)::after {
  top: 0;
} */


/* --------------------------------
 * skills
 * -------------------------------- */
.skills {
  padding: 80px 0;
  background-color: #fff;
  color: #333;
}
.skills-wrapper {
  display: table;
  width: 80%;
  margin: 50px auto 0;
  table-layout: fixed;
}
.skill-box {
  display: table-cell;
}
.skill-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  border: 4px solid;
  border-radius: 50%;
  color: #28b485;
  font-size: 8rem;
  line-height: 142px;
}
.skill-title {
  margin: 0 20px 20px;
  font-size: 2rem;
}
.skill-text {
  margin: 0 20px;
  line-height: 2;
}


/* --------------------------------
 * contact
 * -------------------------------- */
.contact {
  padding: 80px 0 150px;
  background-color: #fff;
  color: #333;
  position: relative;
  z-index: 100;
}

.contact-form {
  width: 50%;
  margin: 50px auto 0;
}
.contact-form input[type=text],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 15px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  background-color: rgba(255, 255, 255);
  color: #333;
}
.contact-form input[type=text]:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5) inset;
}
.contact-form textarea {
  height: 150px;
}
.contact-form input[type=submit] {
  display: block;
  width: 200px;
  margin: 40px auto 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  /* background-color: transparent; */
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.contact-form input[type=submit]:hover {
  background-color:　#28b485;
  opacity: 0.8;
}


/* --------------------------------
 * footer
 * -------------------------------- */
.footer {
  padding: 12px 0;
  font-size: 1.3rem;
}

.work-box {
  overflow: hidden;
}
.work-image {
  transition: -webkit-transform 0.5s ease-in-out;
  transition: transform 0.5s ease-in-out;
}
/* .work-box:nth-child(odd) .work-image {
  -webkit-transform-origin: top center;
  transform-origin: top center;
}
.work-box:nth-child(even) .work-image {
  -webkit-transform-origin: bottom center;
  transform-origin: bottom center;
} */
.work-box:hover .work-image {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/* navigation */
.hamburger {
  background: #fff;
  position: fixed;
  right: 60px;
  top: 60px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 300;
}

.global-nav__list {
  position: fixed;
  margin: 0;
  padding: 0;
  list-style: none;
  display: none;
  top: 150px;
  right: 30px;
  /* transform: translate(-50%,-50%); */
  font-size: 40px;
}

.global-nav__item {
  text-align: center;
  padding: 0 14px;
}

.global-nav__item a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #fff;
}

.global-nav__item a:hover {
  background: #eee;
}

.hamburger__line {
  position: absolute;
  left: 20px;
  width: 30px;
  height: 1px;
  background: #111;
  transition: all .6s;
}

.hamburger__line--1 {
  top: 25px;
}

.hamburger__line--2 {
  top: 35px;
}

.hamburger__line--3 {
  top: 45px;
}

.black-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: all .6s;
  cursor: pointer;
}

.nav-open .global-nav {
  right: 0;
}

.nav-open .global-nav__list {
  display: block;
  z-index: 500;
}

.nav-open .black-bg {
  opacity: .8;
  visibility: visible;
}

.nav-open .hamburger__line--1 {
  transform: rotate(405deg);
  top: 35px;
}

.nav-open .hamburger__line--2 {
  width: 0;
  left: 50%;
}

.nav-open .hamburger__line--3 {
  transform: rotate(-45deg);
  top: 35px;
}

/* --------------------------------
 * smart phone
 * -------------------------------- */
 @media (max-width: 1200px) {
  .works-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  
  }
}
@media (max-width: 768px) {
  body {
    font-size: 1.3rem;
  }
  .heading {
    margin-top: 20px;
    font-size: 2.5rem;
  }
  .button:hover {
    opacity: 1;
  }

  .hamburger {
    right: 10px;
    top: 10px;
  }
  /* --- header --- */
  .header {
    padding-top: 60px;
  }
  .site-title-sub {
    font-size: 1.7rem;
  }
  .site-title-sub::before,
  .site-title-sub::after {
    display: block;
    width: 80%;
    margin: 10px auto;
  }
  .site-title {
    margin-top: 35px;
    font-size: 5rem;
  }

  /* --- about --- */
  .about-text {
    line-height: 1.8;
  }

  /* --- works --- */
  .works-wrapper,
  .work-box {
    display: block;
    margin-bottom: 30px;
  }
  .work-image {
    width: 300px;
    height: 200px;
  }
  .work-description {
    position: relative;
  }
  .work-box::after {
    top: 0;
    height: 100%;
    background-size: cover;
    transform: none;
  }

  /* --- skills --- */
  .skills-wrapper,
  .skill-box {
    display: block;
  }
  .skill-box {
    margin: 40px auto;
  }
  .skill-icon {
    width: 100px;
    height: 100px;
    font-size: 5rem;
    line-height: 92px;
  }
  .skill-text {
    margin: 0;
  }

  /* --- contact --- */
  .contact {
    padding-bottom: 80px;
  }
  .contact-form {
    width: 80%;
  }

}
