@charset "UTF-8";
/* ========================
TOPページ全体
======================== */
.section_top {
  text-align: center;
  margin-bottom: var(--gutter-section-lg);
}

/*スマートフォン*/
@media screen and (max-width: 599px) {
  .section_top {
    margin-bottom: var(--gutter-section-lg_sp);
  }
}

/* ========================
メインビジュアル部分
======================== */
#mainvisual {
  margin-bottom: var(--gutter-section-lg);
}

#mainvisual img {
  /*Tips. imgはwidthとheight指定可能な特殊なインライン要素だが、
  親要素のサイズ形成に若干影響しているのでblockにする…のかも*/
  display: block;
  width: 100%;
  height: calc(100vh - 60px);
  object-fit: cover;
}

/*スマートフォン*/
@media screen and (max-width: 599px) {
  #mainvisual ul,
  #mainvisual img {
    height: calc(100vh - 60px);
  }
}

/* ========================
About部分
======================== */
#about .content {
  display: flex;
  justify-content: center;
  align-items: center;
}

#about img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin-right: 100px;
}

#about .text {
  text-align: left;
}

/*スマートフォン*/
@media screen and (max-width: 599px) {
  #about .content {
    flex-direction: column;
  }

  #about img {
    margin-right: 0;
    margin-bottom: 3rem;
  }

  #about .text {
    text-align: center;
  }
}

/* ========================
works部分
======================== */
.works_list {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--gutter-contents);
}

.works_list li {
  flex-basis: 32%; /*NOTE: widthよりflexアイテムとして意図が明確になる*/
  transition: 0.4s; /*NOTE: translateYとrotateを混同厳しいので、rotateだけliで*/
}

.works_card {
  height: 100%;
  box-shadow: 10px 8px 29px -6px rgba(0, 0, 0, 0.47);
  padding: 1rem;
}

.thumbnail_box {
  aspect-ratio: 6/5;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thumbnail_box img {
  border: 1px solid var(--color-font);
  /*containだとborderが効かなくなるので、max-width方式*/
  max-width: 100%;
  max-height: 100%;
  display: inline-block;
}

/* Photo ビューポートアニメーション(PC版) */
.works_card {
  transition: 0.7s;
  opacity: 0;
  transform: translateY(50px);
}
.works_list.in-view .works_card {
  opacity: 1;
  transform: translateY(0);
}

.works_list li:nth-of-type(2) .works_card {
  transition-delay: 0.3s;
}

.works_list li:nth-of-type(3) .works_card {
  transition-delay: 0.6s;
}

.works_list.in-view-after li:first-of-type {
  transform: rotate(-3deg);
}

.works_list.in-view-after li:last-of-type {
  transform: rotate(3deg);
}

/*PC 960px以下*/
@media screen and (max-width: 1020px) {
  /*memo: 幅が狭くなるとphotoの傾きで見えづらいので0°戻す*/
  .works_list.in-view-after li:first-of-type {
    transform: rotate(0);
  }

  .works_list.in-view-after li:last-of-type {
    transform: rotate(0);
  }
}

/*スマートフォン*/
@media screen and (max-width: 599px) {
  .works_list {
    flex-direction: column;
    margin-bottom: var(--gutter-contents_sp);
  }

  .works_list li {
    flex-basis: 100%;
    margin-bottom: 2rem;
  }

  .works_card {
    box-shadow: none;
    padding: 0;
  }

  /* Photo ビューポートアニメーション(PC版) */
  .works_card {
    transform: translateX(-50px);
  }
  .works_card.in-view {
    opacity: 1;
    transform: translateX(0);
  }
  .works_list li:nth-of-type(2) .works_card {
    transition-delay: 0;
  }

  .works_list li:nth-of-type(3) .works_card {
    transition-delay: 0;
  }
}
