/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
}

.section {
  padding: 90px 0;

}

.section:nth-of-type(odd) {
  background-color: #fff
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}





/* ★動画 */
.movie {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: #b1aecb;


}


.movie video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  max-width: 1000%;
  /* 最大幅 */
  max-height: 100vh;
  /* 最大高さ */
  transform: scale(0);
  /* animation: expand 3s forwards; */
  animation: fluffy 3s infinite, fluid-anim 20s infinite;
  border-radius: 61% 39% 16% 84% / 57% 72% 28% 43%;
}

@keyframes fluffy {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}


@keyframes fluid-anim {
  0% {
    border-radius: 65% 35% 55% 45% / 55% 50% 55% 45%;
  }

  12.5% {
    border-radius: 60% 75% 40% 80% / 70% 70% 60% 65%;
  }

  25% {
    border-radius: 55% 95% 65% 90% / 75% 65% 85% 70%;
  }

  37.5% {
    border-radius: 60% 40% 50% 45% / 60% 40% 60% 40%;
  }

  50% {
    border-radius: 55% 95% 65% 90% / 75% 65% 85% 70%;
  }

  62.5% {
    border-radius: 60% 40% 50% 45% / 60% 40% 60% 40%;
  }

  75% {
    border-radius: 60% 75% 40% 80% / 70% 70% 60% 65%;
  }

  87.5% {
    border-radius: 40% 60% 55% 45% / 50% 60% 40% 50%;
  }

  100% {
    border-radius: 65% 35% 55% 45% / 55% 50% 55% 45%;
  }
}




.pc-only {
  display: block;
}

.sp-only {
  display: none;
}




/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-end;
  align-items: center;
  justify-content: center;
  height: 85vh;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.mv-container {
  display: grid;
  grid-template-columns: 700px 300px;
  padding: 20px 40px;
  backdrop-filter: blur(3px);
  padding: 20px, 40px;
}


.mv-title {
  border-right: 1px solid var(--text-color);
  border-bottom: 1px solid var(--text-color);
  font-family: var(--font-zen);
  font-size: 58px;
  font-weight: normal;
  line-height: 2;
  letter-spacing: .1em;
  background: linear-gradient(90deg, rgb(116, 115, 115), rgb(102, 101, 101));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

}

.mv-subtitle {
  border-left: 1px solid var(--text-color);
  border-top: 1px solid var(--text-color);
  font-family: var(--font-zen);
  font-size: 40px;
  font-weight: normal;
  line-height: 2;
  margin-bottom: 40px;
  letter-spacing: .08em;
  background: linear-gradient(90deg, rgb(158, 157, 157), rgb(116, 115, 115));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* アニメーション */
.mv-title,
.mv-subtitle {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  /* テキストを折り返さない */
}

/* 点滅するカーソル */
.mv-title::after,
.mv-subtitle::after {
  content: '|';
  position: absolute;
  right: 0;
  animation:
    blink 1s step-end infinite;
  /* カーソルの点滅 */
}

/* アニメーション中はカーソルを非表示に */
.mv-title.typing::after,
.mv-subtitle.typing::after {
  animation: none;
}

/* カーソルの点滅アニメーション */
@keyframes blink {

  from,
  to {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}


/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {

  .mv {
    height: 75vh;
  }

  .mv-container {
    padding: 0 20px;
    grid-template-columns: 1fr;
  }

  .mv-title {
    font-size: 30px;
    border-right: none;
    border-bottom: none;
  }

  .mv-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    border-left: none;
  }

  .mv-text {
    font-size: 14px;
    line-height: 1.7;
  }

}




/* スクロールダウン */

.scroll-down {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--font-biz);
  color: #605f5f;
  font-size: 14px;
  text-decoration: none;
}

.wavy-text span {
  position: relative;
  display: inline-block;
  animation: wave 2s infinite;
  animation-delay: calc(0.1s * var(--i));
}

.wavy-text_arrow {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-left: 1px solid #605f5f;
  border-bottom: 1px solid #605f5f;
  transform: translate(-50%, -50%) rotate(-45deg);
  animation: float 2s infinite;
}

@keyframes wave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(-20%) rotate(-45deg);
  }

  50% {
    transform: translateY(20%) rotate(-45deg);
  }
}


/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  .scroll-down {
    top: 75%;
    font-size: 12px;
  }

  .wavy-text_arrow {
    top: 25px;
    width: 8px;
    height: 8px;
  }

}


/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
  position: relative;
}

/* ホバーしたら文字とマスクをかける */
.works-item:hover {
  opacity: .9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
}

.works-info {
  display: none;
}

.hover-mask {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  bottom: 0;
  color: #fff;
  display: flex;
  justify-content: center;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.hover-mask:hover {
  opacity: 1;
  /* hoverしたら透過しない(表示させる) */
}

.hover-mask p {
  width: 80%;
}


/* 円→（角丸四角形を経由）→正方形 にマスクの形状を変化させるキーフレーム */
@keyframes reveal-image {
  from {
    clip-path: inset(30% round 20%);
  }

  to {
    clip-path: inset(0);
  }
}

.works-img {
  animation: reveal-image linear both;
  animation-timeline: view();
  animation-range: contain 0% contain 50%;

}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {

  .works-list {
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .works-info {
    display: block;
    margin-top: 3px;
    margin-top: 10px;
    text-align: center;
  }

  .works-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: .1em;
  }

  .works-category {
    font-size: 11px;
  }

  .hover-mask {
    display: none;
  }






}





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

.about {
  background-color: var(--sub-color);
}

.about-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
  height: 300px;
}

.about-item {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 48%;
  align-items: center;
}

/* 背景画像のスタイルと初期状態 */
.about-item.left {
  background-image: url(../../img/about_back.png);
  background-size: 300px;
  background-position: center;
}

/* JavaScriptで制御する背景の初期状態（非表示と回転） */
.js-fadein-background {
  opacity: 0;
  transform: rotate(90deg);
}

/* JavaScriptで追加されるクラスにアニメーションを適用 */
.js-fadein-background.is-animated {
  animation: fadeInBackground 2s ease-in-out forwards;
}

/* 背景のフェードインアニメーションのキーフレーム */
@keyframes fadeInBackground {
  0% {
    opacity: 0;
    transform: rotate(90deg);
  }

  100% {
    opacity: 1;
    transform: rotate(90deg);
  }
}


/* プロフィール画像のスタイル */
.about-img img {
  width: 200px;
  height: auto;
  margin-right: 20px;
  border-radius: 100%;
}

/* JavaScriptで制御するプロフィール画像の初期状態（非表示と回転） */
.js-fadein {
  opacity: 0;
  transform: rotate(-90deg);
}

/* JavaScriptで追加されるクラスにアニメーションを適用 */
.js-fadein.is-animated {
  animation: fadeInWithRotate 1.5s ease-in-out forwards;
}

/* プロフィール画像のフェードインアニメーションのキーフレーム */
@keyframes fadeInWithRotate {
  0% {
    opacity: 0;
    transform: rotate(-90deg);
  }

  100% {
    opacity: 1;
    transform: rotate(-90deg);
  }
}



.about-body {
  flex: 1;
}

.about-name {
  text-align: left;
  font-size: var(--size-xl);
  margin-bottom: 30px;
  color: var(--text-color);
}

.about-text {
  text-align: left;
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-color);
}


.about-btn {
  margin-top: 50px;
}

.about-btn a:hover {
  background-color: var(--sub-color);
  border: 1px solid var(--text-color);
  transition: 0.3s;
}


/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {

  .about-list {
    flex-direction: column;
    height: auto;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .about-item {
    width: 100%;
    margin-bottom: 30px;
    height: 200px;

  }

  /* 画像と背景の調整 */
  .about-item.left {
    background-size: contain;
    background-position: center;
  }

  .about-img img {
    width: 150px;
    margin-right: 0;
  }

  .about-body {
    margin-top: -80px;
  }


  .about-name {
    text-align: center;
    font-size: var(--size-lg);
    padding-bottom: 20px;
  }

  .about-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
  }

  .about-btn {
    margin-top: 0;
  }
}


/*--------------------------------
sill
---------------------------------*/
.skill {
  display: flex;
  flex-wrap: wrap;
  /* max-width: 1000px; */
  margin: 0 auto;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--text-color);
}

#skill {
  border-bottom: none;
  padding-bottom: var(--section-gutter);
}


.skill-title {
  font-size: var(--size-xl);
  flex-basis: 200px;
}


.skill-img {
  width: 20%;
  margin-left: 30px;
  margin-right: 30px;
  padding-left: 20px;
  padding-right: 20px;
  transform: scale(-1, 1);
  border-right: 1px solid var(--text-color);
}

.skill-img04 {
  width: 20%;
  margin-left: 30px;
  margin-right: 30px;
  padding-left: 20px;
  padding-right: 20px;
  border-left: 1px solid var(--text-color);
}

.skill-img img {
  border-radius: 50%;
}

.skill-body {
  flex: 1;
}

.skill-body p {
  font-size: 2rem;
  line-height: 1.8;
}

.skill-body p span {
  font-weight: bold;
}

.skill-body p:not(:last-child) {
  margin-bottom: 30px;
}

.skill-body {
  text-align: left;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {

  .skill {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .skill-title {
    font-size: var(--size-lg);
    flex-basis: auto;
    margin-bottom: 20px;
  }

  .skill:nth-of-type(2) .skill-title,
  .skill:nth-of-type(3) .skill-title {
    margin-top: 20px;

  }

  /* 画像の調整 */
  .skill-img {
    transform: scale(-1, 1);
    width: 80%;
    margin: 0;
    padding: 0;
    border: none;
  }

  .skill-img04 {
    box-sizing: border-box;
    width: 200px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    border: none;
  }


  .skill-img img {
    width: 100%;
    height: auto;
  }

  /* テキストの調整 */
  .skill-body {
    text-align: center;
  }

  .skill-body p {
    font-size: 1.5rem;
  }

  .skill-body p:not(:last-child) {
    margin-bottom: 15px;
  }
}



/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

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




/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }









  /* about */
  .about-list {
    display: block;
    margin-bottom: 0;
  }

  .about-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .about-item:last-child {
    margin-bottom: 0;
  }

  .about-name {
    margin-bottom: 5px;
  }

  .about-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* skill */
  .skill {
    display: block;
  }

  .skill-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .skill-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .skill-body p:not(:last-child) {
    margin-bottom: 20px;
  }


}

/*--------------------------------
スクロールアニメーション
---------------------------------*/

/* 子要素のスタイル */
.js-fadein-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.js-fadein-child.is-animated {
  opacity: 1;
  transform: translateY(0);
}

/* 時間差を設定したい場合は、data属性を使うか、nth-childを使う */
.js-fadein-child[data-delay="0.3"] {
  transition-delay: 0.3s;
}

.js-fadein-child[data-delay="0.6"] {
  transition-delay: 0.6s;
}