@charset "utf-8";

/* -------------------------------------------------------
共通
------------------------------------------------------- */
.section-title {
  font-size: 5rem;
  letter-spacing: 0.3rem;
  font-weight: normal;
  text-align: center;
  display: inline-block;
  border-bottom: solid 1px #303030;
  margin-bottom: 90px;
}

.button {
  border: solid 1px #303030;
  border-radius: 15px;
  width: 110px;
  font-size: 1.3rem;
  line-height: 2.3;
  text-align: center;
  color: #303030;

  position: relative;
  z-index: 0;
  transition: 0.3s ease-in-out;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left:0;
  display: block;
  width: 0;
  background-color: #fff;
  transition: .3s;
}

.button:hover::after {
  width: 100%;
  z-index: -1;
}


/* -------------------------------------------------------
main-visual
------------------------------------------------------- */
.main-visual {
  margin-top: 85px;
  width: 100%;
  height: calc(100vh - 85px);
  position: relative;
  text-align: center;
}

.mv-text {
  padding: 70px 0;
  height: calc(100vh - 463.5px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.main-visual p {
  font-size: 1.7rem;
  line-height: 1.5;
  margin-top: 50px;
}

.contact-button {
  margin: 25px auto 0 auto;
}

.mv-img {
  width: 100%;
  height: 378.5px;
  position: absolute;
  bottom: 0;
}

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


/* -------------------------------------------------------
about
------------------------------------------------------- */
#about {
  padding: 100px 30px 80px 30px;
  text-align: center;
}

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

.about-img {
  margin-top: 30px;
  padding-right: 40px;
}

.about-text {
  text-align: left;
  line-height: 2.2;
}

.about-text p:first-of-type {
  font-size: 2rem;
  margin-bottom: 40px;
}


/* -------------------------------------------------------
skills
------------------------------------------------------- */
#skills {
  padding: 80px 30px;
  text-align: center;
}

.skills-grid-box {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(2,1fr);
  column-gap: 30px;
  row-gap: 30px;
  margin: 0 auto;
  width: 980px;
}

.skills-grid-item {
  background-color: #fff;
  position: relative;
  padding: 50px 40px;
}

.skills-grid-item ul {
  list-style: disc;
  text-align: left;
  line-height: 1.7;
  margin-top: 40px;
  padding-left: 13px;
}

.skills-grid-item li {
  margin-bottom: 20px;
}

.skills-work-icon {
  position: absolute;
  top: 0;
  left: 0;
}


/* -------------------------------------------------------
production
------------------------------------------------------- */
#production {
  width: 100vw;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.slide {
  display: flex;
  align-items: center;
  width: 75%;
  background-color: #fff;
  padding: 40px;
  margin-bottom: 200px;
  opacity: 0;
}

.inview-slide-left {
  justify-content: flex-end;
  border-top-right-radius: 165px;
  border-bottom-right-radius: 165px;
}

.inview-slide-right {
  justify-content: flex-start;
  border-top-left-radius: 165px;
  border-bottom-left-radius: 165px;
}

.production-img {
  /* 「transition-duration: 0.3s」で変化(拡大）が開始してから完了するまで0.3秒かかるように指定 */
  transition-duration: 0.3s;
}

.production-img:hover {
  transform: scale(1.04);
}

.production-text {
  width: 300px;
  text-align: center;
}

.production-title {
  font-size: 1.7rem;
  font-weight: normal;
  letter-spacing: 0;
  margin-bottom: 30px;
}

.production-text ul {
  list-style: disc;
  text-align: left;
  /* 「width: fit-content」で子要素(最長のli)に幅を合わせる */
  width: fit-content;
  margin: auto;
  /* 行頭アイコンの分paddingをとる */
  padding-left: 18px;
}

.production-text li:first-of-type {
  margin-bottom: 5px;
}

/*
アニメーション（スライド左）を実行

slide-left：下で定義している「@keyframes slide-left」を実行
0.5s：アニメーションが始まってから終わるまでの時間（0.5sかけて実行）
ease-out：アニメーションの変化（開始時は早く、終了時は緩やかに変化）
0s：アニメーションが始まるまでの時間（0sですぐに実行）
1：アニメーションの繰り返し回数（1回）
forwards：アニメーション終了時の状態をそのまま維持
*/
.slide-left {
  animation: slide-left 0.7s ease-out 0s 1 forwards;
}
/*
アニメーション処理

最初は「translateX(-50%);」で左側に隠しておく
100%（0.5秒）かけて要素を表示させながら元の位置へ移動させる
*/
@keyframes slide-left {
  0% {
    transform: translateX(-50%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/*
アニメーション（スライド右）
*/
.slide-right {
  animation: slide-right 0.7s ease-out 0s 1 forwards;
}

@keyframes slide-right {
  0% {
    transform: translateX(83.3%);
  }
  100% {
    opacity: 1;
    transform: translateX(33.3%);
  }
}


/* -------------------------------------------------------
slideshow
------------------------------------------------------- */
.slide-bg {
  background-color: #fff;
  height: 400px;
  padding: 100px 0;
}

.wrap {
  /* contentの高さ+hover時に上に移動する分×2倍(aline-item:centerで天地中央に配置されるため) を確保してhover時に上に上がっても要素が隠れないようにする*/
  height: 220px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slideshow {
  display: flex;
  align-items: center;
  animation: loop-slide 20s infinite linear 1s both;
}

@keyframes loop-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.slide-paused:hover .slideshow {
  animation-play-state: paused;
}

.content {
  height: 200px;
  width: 400px;
  margin: 0 30px;
}

.content-hover {
  transition: all 0.2s;
}

.content-hover:hover {
  transform: translateY(-10px);
  opacity: 0.8;
  cursor: pointer;
}

.content-title {
  font-size: 1.6rem;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.content-img {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 400px;
  height: 130px;
  margin-bottom: 20px;
}


/* -------------------------------------------------------
contact
------------------------------------------------------- */
#contact {
  padding: 80px 30px;
  text-align: center;
}

.form-area {
  width: 700px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  text-align: left;
}

.form-area dt {
  width: 150px;
  padding: 15px 0;
  font-weight: bold;
  line-height: 24px;
}

.form-area dd {
  width: calc(100% - 150px);
  padding: 15px 0;
}

.input-text {
  width: 100%;
  height: 30px;
  padding: 0 10px;
}

.message {
  width: 100%;
  height: 200px;
  padding: 10px;
  line-height: 1.5;
}

.submit-button {
  background-color: transparent;
  width: 150px;
  line-height: 3;
  border-radius: 20.5px;
  margin-top: 30px;
}


/* -------------------------------------------------------
mobile用
------------------------------------------------------- */
@media screen and (max-width: 1040px) {
  .section-title {
    margin-bottom: 60px;
    font-size: 4rem;
  }

  
  /* ---------------------------------
  main-visual
  --------------------------------- */
  .mv-text {
    padding: 170px 0;
    height: 70%;
  }

  .mv-title img {
    width: 350px;
    height: auto;
  }

  .main-visual p {
    line-height: 2;
  }

  .contact-button {
    margin: 30px auto 0 auto;
  }

  .mv-img {
    height: 30%;
  }


  /* ---------------------------------
  about
  --------------------------------- */
  #about {
    padding: 80px 30px 60px 30px;
  }

  .about-inner {
    flex-direction: column;
  }

  .about-img {
    padding-right: 0;
    margin-top: 0;
  }

  .about-img img {
    width: 70%;
    height: auto;
  }

  .about-text {
    line-height: 2;
  }

  .about-text p:first-of-type {
    margin-bottom: 20px;
  }

  /* ---------------------------------
  skills
  --------------------------------- */
  #skills {
    padding: 60px 20px;
  }

  .skills-grid-box {
    width: 100%;
    max-width: 550px;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(3,1fr);
    column-gap: 15px;
    row-gap: 20px;
  }

  .skills-grid-item {
    padding: 30px 10px 25px 10px;
  }

  .skills-grid-item ul {
    padding-left: 18px;
    line-height: 1.5;
    margin-top: 20px;
  }

  .skills-grid-item li:last-of-type {
    margin-bottom: 0;
  }

  .skills-work-icon {
    width: 30%;
    height: auto;
  }

  .skills-icon {
    width: 40%;
    height: auto;
  }

  .dn-sp {
    display: none;
  }


  /* ---------------------------------
  production
  --------------------------------- */
  #production {
    padding: 60px 0;
  }

  .slide {
    padding: 20px;
    margin-bottom: 100px;
  }

  .inview-slide-left {
    flex-direction: column;
    border-top-right-radius: 150px;
    border-bottom-right-radius: 150px;
  }

  .inview-slide-right {
    flex-direction: column-reverse;
    border-top-left-radius: 150px;
    border-bottom-left-radius: 150px;
  }

  .production-img img {
    width: 230px;
    height: auto;
  }

  .inview-slide-left .production-img,.inview-slide-left .production-text {
    padding-right: 80px;
  }

  .inview-slide-right .production-img,.inview-slide-right .production-text {
    padding-left: 80px;
  }

  .production-text {
    margin-top: 10px;
  }

  .production-title {
    margin-bottom: 5px;
    font-size: 1.2rem;
  }

  .production-text li:first-of-type {
    margin-bottom: 0;
  }


  @keyframes slide-left {
  0% {
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/*
アニメーション（スライド右）
*/

@keyframes slide-right {
  0% {
    transform: translateX(133.3%);
  }
  100% {
    opacity: 1;
    transform: translateX(33.3%);
  }
}


  /* ---------------------------------
  slideshow
  --------------------------------- */
  .slide-bg {
    height: 180px;
    padding: 40px 0;
  }

  .wrap {
    height: 100px;
  }

  .content {
    height: 90px;
    width: 200px;
    margin: 0 15px;
  }

  .content-logo {
    width: 160.94px;
  }

  .content-img {
    width: 200px;
    height: 65px;
    margin-bottom: 10px;
  }

  .content-img-logo {
    width: 160.94px;
  }

  .content-img img {
    height: 65px;
  }

  .content-img-logo img {
    height: 30px;
    width: 160.94px;
  }

  .content-title {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .content-hover:hover {
    transform: translateY(-5px);
  }


  /* ---------------------------------
  contact
  --------------------------------- */
  #contact {
    padding: 40px 30px;
  }


  .form-area {
    flex-direction: column;
    width: 90%;
  }

  .form-area dt {
    padding: 10px 0;
  }

  .form-area dd {
    width: 100%;
    padding: 0 0 25px 0;
  }
}