* {
  padding: 0;
  margin: 0;
  list-style: none;
  text-decoration: none;
}

h1, h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: normal;
}

a {
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  color: black;
}

p {
  font-family: "Mplus 1p";
  font-weight: 300;
}

a:hover {
  color: white;
  background-color: black;
}

/* header---------------------- */

#top {
  display: flex;
}

.header-left {
  padding: 150px;
  height: 84vh;
  width: 410px;
  padding-bottom: 0px;
}

.border {
  position: relative;
}

.border::after {
  position: absolute;
    content: "";
    width: 60px;
    border: 0.5px solid black;
    left: 10px;
    top: 47px;
}

.border-contact {
  position: relative;
}

.border-contact::after {
  position: absolute;
  content: "";
  width: 83px;
  border: 0.5px solid black;
  left: 15px;
  top: 46px;
}


header nav {
  margin-top: -95px;
  text-decoration: underline;
}

header nav ul {
  display: flex;
}

header nav ul li {
  margin-left: 35px;
  font-size: 1em;
}

header nav ul li:first-child {
  margin-left: 0px;
}

header h1 {
  margin-top: 290px;
}

header h2 {
  font-size: 3em;
}

header p {
  font-size: 3em;
}

.top-img {
  display: none;
}

.main-visual {
  background-image: url(../img/top.jpg);
  height: 930px;
  width: 970px;
  background-size: cover;
}

.arrow {
  display: none;
}

.mobile-start {
  margin: 10px;
  display: none;
}


/* side-nav main-footer */

.side-nav-mobile {
    display: none;
    height: 100%;
    width: 166px;
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    padding-top: 60px;
    filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.2));
}

.side-nav-mobile a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: black;
    display: block;
}

.side-nav-mobile a:hover {
    color: #f1f1f1;
}

.side-nav-mobile .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .side-nav-mobile {padding-top: 15px;}
  .side-nav-mobile a {font-size: 18px;}
}


.side-nav {
  position: fixed;
  transform: rotate(270deg);
  top: 367px;
  left: -63px;
}

.side-nav nav ul {
  display: flex;
}

.side-nav nav ul li {
  font-size: 1em;
  margin-left: 20px;
}

footer {
  position: fixed;
  transform: rotate(270deg);
  top: 367px;
  right: -19px;
  z-index: -10;
}

footer h1 {
  font-size: 1em;
}

/* about--------------------------------- */

.about {
  margin-top: 95px;
  height: 89vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about .title {
  position: relative;
  color: black;
}

/* .about .title::after{
  z-index: -2;
  content: "";
  position: absolute;
  background-color: black;
  left: -17px;
  top: -1px;
  width: 118px;
  height: 40px;
} */

.about .center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about .box {
  text-align: left;
}

.about section {
  margin-top: 100px;
}

.about section h2 {
  margin-bottom: 30px;
}

.about section p {
  line-height: 2;
}

/* works --------------------------------- */

.works {
  margin-top: 80px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.works .title {
  position: relative;
  color: black;
}

/* .works .title::after{
  z-index: -2;
  content: "";
  position: absolute;
  background-color: black;
  left: -17px;
  top: -1px;
  width: 118px;
  height: 40px;
} */

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

.works-box {
  display: flex;
  flex-flow: row wrap;
  padding: 147px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.item {
  width: 300px;
  height: 440px;
  margin: 23px;
  position: relative;
  transition: all 300ms 0s ease-in;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.item img {
  border-radius: 3px;
}

.item .item-box {
  padding: 15px;
}

.item .item-box h1 {
  font-family: "Mplus 1p";
  font-size: 1.5em;
  margin: 0;
  margin-bottom: 14px;
}

.item .item-box p  {
  font-size: 0.9em;
}

.item .more {
  position: absolute;
  text-align: right;
  top: 390px;
  right: 16px;

  border-radius: 3px;
  cursor: pointer;
  background-color: black;
  color: white;
  padding: 8px;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.item:hover {
  box-shadow: 5px 5px 5px rgba(0,0,0,0.4);
}

/* Contact ーーーーーーーーーーーーーーーーーーーーー*/

.contact {
  height: 60vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 100px;
}

.contact h1 {
  margin-bottom: 95px;
}

.contact .title {
  position: relative;
  color: black;
}

/* .contact .title::after{
  z-index: -2;
  content: "";
  position: absolute;
  background-color: black;
  left: -17px;
  top: -1px;
  width: 143px;
  height: 40px;
} */


.contact .box {
  text-align: center;
  margin-bottom: 30px;
  margin-top: -66px;
}

.contact .box a {
  font-size: 3em;
  margin: 30px;
  margin-top: 95px;
}

/* subscribe */

span {
  font-family: 'Roboto', sans-serif;
}

.subscribe-box {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe-box p {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3em;
}

.subscribe-title {
  text-align: center;
}

.subscribe-button {
  position: relative;
  display: inherit;
  padding: 10px 13px;
  color: white;
  background: black;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: background, box-shadow;
  transition-duration: 0.2s;
  z-index: 100;
}

.subscribe-button.subbed {
  background: #777;
}
.subscribe-button.subbed svg {
width: ;idth: 16px;
}
.subscribe-button.subbed svg #rect1 {
  -webkit-transform: rotate(45deg) translate(4px, -6px);
        transform: rotate(45deg) translate(4px, -6px);
}
.subscribe-button.subbed svg #rect2 {
  -webkit-transform:  rotate(45deg) translate(4px, -6px);
        transform:  rotate(45deg) translate(4px, -6px);
}
.subscribe-button svg {
  display: inline-block;
  width: 12px;
  height: 12px;
  fill: white;
  margin-right: 5px;
  transition: width 0.25s;
}
.subscribe-button svg #rect1,
.subscribe-button svg #rect2 {
  transition: -webkit-transform 0.25s;
  transition: transform 0.25s;
  transition: transform 0.25s, -webkit-transform 0.25s;
}
.subscribe-button * {
  vertical-align: middle;
}

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 1em;
  height: 1em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.7s infinite ease-in-out;
}
.loader {
  color: #000000;
  font-size: 10px;
  margin: 0px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

.no-push {
  text-align: center;
  z-index: 10;
}

.disable {
  display: none;
}

/* iphone PLUS ----------------------------------------------------------- */

@media (max-width:420px) {
  /* header---------------------- */

  #top {
    display: flex;
    position: relative;
  }

  .header-left {
    padding: 0;
    height: 84vh;
    width: 420px;
    padding-bottom: 0px;
  }

  .top-img {
    display: block;
    top: 0px;
    position: absolute;
    width: 100%;
    z-index: 10;
  }

  .main-visual {
    display: none;
  }

  .top-title {
    text-align: center;
  }

  .top-title h1 {
    font-size: 1.5em;
  }

  .top-title h2 {
    margin-top: 50px;
    font-size: 1.5em;
  }

  .border-top {
    position: relative;
  }

  .border-top::after {
    position: absolute;
    content: "";
    width: 24px;
    border: 0.5px solid black;
    left: 194px;
    top: 51px;
  }

  .border {
    position: relative;
  }

  .border::after {
    position: absolute;
      content: "";
      width: 60px;
      border: 0.5px solid black;
      left: 10px;
      top: 47px;
  }

  .arrow {
    display: inline-block;
    height: 20px;
    width: 2px;
    background-color: black;
    position: relative;
    left: 0px;
    top: 80px;
  }

  .arrow p {
    position: absolute;
    font-size: 14px;
    left: -14px;
    top: -29px;
  }

  .arrow::after {
    position:absolute;
    content:"";
    width:0;
    height:0;
    border: 4px solid transparent;
    border-top: 6px solid black;
    left: -3px;
    top: 19px;
  }

  header nav {
    display: none;
    z-index: 5;
    position: fixed;
    margin-top: 15px;
    margin-left: 73px;
  }

  header nav ul {
    display: flex;
  }

  header nav ul li {
    font-family: 'Roboto', sans-serif;
    margin-left: 35px;
    font-size: 1em;
  }

  header nav ul li:first-child {
    margin-left: 0px;
  }

  header h1 {
    margin-top: 304px;
  }

  header h2 {
    font-size: 2em;
  }

  header p {
    font-size: 3em;
  }


  /* works -------------------------------- */
  .works-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

  /* about--------------------------------- */

  .side-nav {
    display: none;
  }

  .mobile-start {
    z-index: 10;
    position: fixed;
    margin-top: 30px;
    display: block;
  }

  .block {
    padding: -1.5px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.1);
    fill: white;
  }

  .about {
    margin-top: 95px;
    height: 89vh;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about .title {
    position: relative;
    color: black;
  }

  /* .about .title::after{
    z-index: -2;
    content: "";
    position: absolute;
    background-color: black;
    left: -17px;
    top: -1px;
    width: 118px;
    height: 40px;
  } */

  .about .center {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .about .box {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about section {
    width: 320px;
  }

  .about section h1 {
    font-size: 1.8em;
  }

  .about section p {
    font-size: 0.88em;
    line-height: 2;
  }

/* contact */

  .contact .box {
    text-align: center;
    margin-bottom: 0px;
    margin-top: 0px;
  }

  .contact .box a {
    font-size: 2em;
    margin: 30px;
  }

  .subscribe-box {
    margin-top: 40px;
    height: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .subscribe-box p {
    font-size: 0.9em;
  }
  .subscribe-button {
    position: relative;
    padding: 10px 13px;
    margin-left: 0px;
    margin-top: 10px;
    color: white;
    background: black;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: background, box-shadow;
    transition-duration: 0.2s;
  }

  .static {
    margin-top:60px;
  }

  .loader {
    margin-top: 30px;
  }


  .no-push {
    margin-top: 30px;
    text-align: center;
  }

  footer {
    position: static;
    top: 0;
    right: 0;
    left: 0;
    transform: rotate(0deg);
    margin-top: 210px;
    margin-bottom: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0px;
  }

  footer h1 {
    font-size: 1em;
  }

  .disable {
    display: none;
  }

}

/* iphone 6/7/8/X ----------------------------------------------------------- */


@media (max-width:380px) and (min-width:330px) {
  header nav {
    position: fixed;
    margin-top: 15px;
    margin-left: 50px;
  }

  header h1 {
    margin-top: 280px;
  }

  .mobile-start {
    position: fixed;
    margin-top: 19px;
    display: block;
  }

  .block {
    padding: -1.5px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.1);
    fill: white;
  }

  .top-img {
    display: block;
    top: 0px;
    position: absolute;
    width: 100%;
  }

  .border-top::after {
    position: absolute;
    content: "";
    width: 24px;
    border: 0.5px solid black;
    left: 174px;
    top: 51px;
  }



  .about section {
    width: 320px;
  }

  .subscribe-box {
    margin-top: 20px;
    height: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  footer {
    position: static;
    top: 0;
    right: 0;
    left: 0;
  }

  .back-top {
    text-decoration: underline;
    margin-top: -30px;
  }

  .disable {
    display: none;
  }

  .no-push {
    margin-top: 30px;
    text-align: center;
  }

}

/* iphone 5/SE ----------------------------------------------------------- */

@media (max-width:330px) {
  header nav {
    position: fixed;
    margin-top: 15px;
    margin-left: 28px;
  }

  header h1 {
    margin-top: 280px;
  }

  .mobile-start {
    z-index: 10;
    position: fixed;
    margin-top: 19px;
    display: block;
  }

  .block {
    padding: -1.5px;
    background-color: rgba(0, 0, 0, 1);
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(0, 0, 0, 0.1);
    fill: white;
  }

  .top-img {
    display: block;
    top: 0px;
    position: absolute;
    width: 100%;
  }

  .border {
    position: relative;
  }

  .border-top::after {
    position: absolute;
    content: "";
    width: 24px;
    border: 0.5px solid black;
    left: 148px;
    top: 51px;
  }


  .arrow {
    display: inline-block;
    height: 20px;
    width: 2px;
    background-color: black;
    position: relative;
    left: 0px;
    top: 60px;
  }

  .about section {
    margin-top: 24px;
    width: 280px;
  }

  .about section h1 {
    font-size: 1.8em;
  }

  .about section p {
    font-size: 0.81em;
    line-height: 2;
  }

  .item {
    margin: 10px;
  }

  .contact {
    margin-top: 50px;
  }

  .contact h1 {
    margin-bottom: 10px;
  }

  .contact p {
    margin-top: 60px;
  }

  .contact .box {
    text-align: center;
    margin-bottom: 45px;
  }

  .contact .box a {
    font-size: 2em;
    margin-right: 13px;
    margin-bottom: 15px;
  }

  .contact .subscribe-box p {
    margin-top: 45px;
  }

  .subscribe-box {
    margin-top: -32px;
    height: 142px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .no-push {
    margin-top: -50px;
    margin-bottom: 60px;
    text-align: center;
  }

  .static {
    margin-top: 20px;
  }

  .modal-start {
    display: inherit;
    font-weight: 400;
    text-decoration: underline;
    margin-top: 20px;
  }

  footer {
    margin-top: 233px;
    margin-bottom: 45px;
  }

  footer h1 {
    font-size: 0.8em;
  }

  .disable {
    display: none;
  }
}
