@charset "utf-8";
/* CSS Document */

@media screen and (max-width:768px) {
  main {
    width: 100%;
  }
  #logo div {
    margin-left: 45px;
  }
  #logo div img {
    width: 120px;
  }
  .slide-menu-button {
    right: 30px;
  }
  #news {
    width: 100%;
    padding: 0;
    bottom: calc(100vh - 117%);
  }
  #news_wrap, #philosophy_wrap, #works_wrap, #gallery_wrap, #skills_wrap, #footer_wrap {
    width: 100%;
  }
  #news>div {
    flex-direction: column;
    align-items: flex-start;
    /* padding: 5% 2% 0; */
    padding: 4% 2% 0;
  }
  #news h1 {
    /* padding: 0; */
    padding: 0 2%;
    font-size: 1.95rem;
  }
}

#news p {
  padding-top: 7px;
}

.date {
  padding-bottom: 6px;
}

.sp_br {
  display: inline-block;
}

.banner_pc {
  display: none;
}

.banner_sp {
  display: block;
  width: 100%;
}

.swiper-container {
  margin-top: 30px;
}

.contents {
  top: 70px;
}

.viewall {
  right: 0;
  bottom: -150px;
}

footer {
  width: 100%;
}

#topButton {
  right: 0;
  padding: 0 3%;
  width: 8%
}

#topButton img {
  width: 100%
}

/*--------------------------------------------------philosophy---*/

#philosophy {
  margin-top: 250px;
}

#philosophy h1 img {
  width: 100%
}

#philosophy_paragraph {
  width: 95%;
  margin: auto;
  top: 0;
}

#philosophy_background {
  width: 95%;
  margin: auto;
  right: 0px;
  height: auto;
}

#camera {
  width: 80%;
  bottom: -60px;
}

#camera img {
  width: 100%;
  right: -190px;
}

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

#works {
  margin-bottom: 200px;
}

#works h1 {
  width: 60%;
}

#works h1 img {
  width: 100%;
}

#works ul {
  flex-direction: column;
  width: 100%;
}

#works li {
  width: 50%;
  margin: auto;
  margin-bottom: 170px;
}

.workitems h2 {
  width: 100%;
}

#works li a:hover .workitems h2 {
  width: 100%;
}

.workitems {
  width: 100%;
}

@media screen and (max-width:500px) {
  #works li {
    width: 100%;
  }
  .workitems {
    width: 80%;
  }
}

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

/*--------------------------------------------------gallery---*/

#gallery {
  margin-top: 0px;
}

#gallery h1 {
  width: 70%;
}

#gallery h1 img {
  width: 100%;
}

#gallery ul {
  flex-direction: column;
  width: 100%;
  margin: auto;
  align-items: center;
  margin-top: 60px;
}

#gallery li {
  width: 255px;
  text-align: center;
  margin-bottom: 30px;
}

#gallery li:nth-child(2) {
  width: 365px;
}

.contents02 {
  top: 70px;
}

.viewall02 {
  right: 0;
  bottom: -150px;
}

/*--------------------------------------------------gallery---*/

/*--------------------------------------------------skills---*/

#skills {
  background-position: left;
}

#skills_wrap {
  margin-bottom: 20px;
}

#skills h1 img {
  width: 100%;
}

#list_wrap {
  margin-top: 50px;
}

.skills_wrap {
  width: 70%;
  justify-content: center;
  margin: auto;
}

.skills_list {
  flex-direction: column;
}

#list_wrap ul {
  width: 100%;
}

#list_wrap li {
  width: 60%;
  text-align: center;
  min-width: 200px;
}

.icon {
  width: 60%;
  margin: auto;
}

/*--------------------------------------------------skills---*/

/*--------------------------------------------------footer---*/

#footer_wrap p {
  text-align: center;
}

/*--------------------------------------------------footer---*/

@media screen and (max-width:540px) {
  #aboutMe {
    transform: translateY(295px);
  }
  #aboutProfile {
    font-size: 0.85rem;
    margin-top: 10%;
  }
  #profileImg{
    width: 60%;
    margin-top: 10%;
  }
  #menu ul li a {
    padding: 0 7px;
    font-size: 0.95rem;
  }
  /*------------------------------------philosophy-----*/
  h1 {
    font-size: 4rem;
  }
  #philosophy {
    margin-top: 27%;
  }
  #philosophy h1 {
    top: -50px;
  }
  #camera {
    width: 100%;
  }
  #camera img {
    width: 100%;
    right: -100px;
  }
  /*------------------------------------philosophy-----*/
  /*------------------------------------works-----*/
  #works li a:hover .workitems h2 {
    width: 100%;
  }
  span {
    display: inline-block;
  }
  /*------------------------------------works-----*/
  /*------------------------------------gallery-----*/
  #gallery li {
    width: 290px;
  }
  #gallery li:nth-child(2) {
    width: 320px;
  }
  #gallery li img {
    top: 0%;
  }
  #gallery li:nth-child(2) img {
    width: 100%;
  }
  #gallery li a:hover .active {
    left: 0;
    top: -3%;
  }
  #gallery li:nth-child(2) a:hover .active {
    left: 0;
    top: -4%;
  }
  /*------------------------------------gallery-----*/
  /*------------------------------------skills-----*/
  #skills h1 {
    top: 0px
  }
  #skills_wrap {
    margin-bottom: 15px;
    width: 100%;
  }
  #list_wrap {
    flex-direction: column;
    margin-top: 50px;
    width: 100%;
  }
  #list_wrap ul {
    width: 200px;
    margin: auto;
  }
  #list_wrap li {
    width: 100%;
  }
  .skills_wrap {
    flex-direction: column;
  }
  /*------------------------------------skills-----*/
  #topButton {
    right: 0;
    padding: 0 3%;
    width: 12%
  }
  .newslink {
    margin-top: 2%;
    padding-left: 3%;
  }
}

/*@media screen and (max-width:500px)*/

/*@media screen and (max-width:768px)*/