@charset "utf-8";

.header{
  position: fixed;
}
.header-left{
  display: none;
}
.img-wrap {
  overflow: hidden;
  position: relative;
}
.cover1,
.cover2,
.cover3 {
  animation: cover-left 1s cubic-bezier(0.51, 0.23, 0, 1) forwards;
  background: #ffffff;
  height: calc(100vh / 3);
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}
.cover1 {
  top: 0;
}
.cover2 {
  animation-delay: 0.1s;
  top: calc(100vh / 3);
}
.cover3 {
  animation-delay: 0.2s;
  top: calc(100vh / 3 * 2);
}


@keyframes cover-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.top {
    position: relative;
    width: 100vw;
    height: 100vh;
    object-fit:cover;
}
.toptutime {
    width: 100%;
    height: 100vh;       /* 100% → 100vh に変更 */
    object-fit: cover;
    display: block;      /* 余計な隙間対策 */
}
.toplogo {
    position: absolute;
    left: 5vw;
    bottom: 70px;
    width: 150px;
    height: auto;
}


.topabout{
  margin: 100px 6vw 50px;
  position: relative;
  z-index: 1;
}
.typewriter-container {
  position: relative;
  overflow: hidden;
  text-align: right;
}
.typewriter {
  display: block;
  font-size: 80px;
  font-weight: 500;
  font-family: 'Barlow', "Helvetica", sans-serif;
  line-height: 1.4;
  letter-spacing:0.08em;
  margin: 0 0 70px auto;
  opacity: 1;
  color: black;
  white-space: nowrap;
  overflow: hidden;
  width: auto; /* 初期値を変更 */
  position: relative;
}
.typewriter::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: black;
  right: 0;
  top: 0;
  animation: blink-caret .6s step-end infinite;
}
@keyframes blink-caret {
  from, to { background-color: transparent; }
  50% { background-color: black; }
}
.bounce-char {
  display: inline-block;
  animation: bounce-in 0.3s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}
.space-char {
  width: 0.4em; /* スペースの幅を調整 */
}
@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
  70% {
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.topabout h2 {
  text-align: right;
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
}


.about-more{
  text-align: right;
  font-weight: bold;
  font-size: 200%;
  margin-top: 10px;
  margin-right: 6.5vw;
  margin-bottom: 120px;
}
.about-more a {
  text-decoration: none;
  color: black; /* 初期色 */
  display: inline-block;
  transition: color 0.3s ease-in-out; /* 色のアニメーション */
}
.about-more a:hover {
  color: #ec6d51; /* マウスオーバー時の色 */
}
.arrow {
  display: inline-block; /* 矢印の動き用 */
  transition: transform 0.3s ease-in-out; /* 矢印の動きをスムーズに */
}
.about-more a:hover .arrow {
  transform: translateX(5px); /* 矢印を右に移動 */
}


/* contentsセクションの更新 - スクロールバー非表示 */
.contents {
  overflow: hidden;
  overflow-x: auto;
  width: 100%;
  position: relative;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch; /* iOSでのスムーズスクロール */
  /* スクロールバーを非表示にする */
  scrollbar-width: none; /* Firefox用 */
  -ms-overflow-style: none; /* IE・Edge用 */
}
/* Chrome・Safari用のスクロールバー非表示設定 */
.contents::-webkit-scrollbar {
  display: none;
}

.works-wrapper-top {
  display: flex;
  width: 200%;
  animation: scroll 50s linear infinite;
  padding-top: 20px;  /* ホバー時に上に上がるためのスペース確保 */
  gap: 10px; /* カード間の間隔 */
}


/* ホバーやスクロール時にアニメーションを一時停止 */
.contents:hover .works-wrapper-top,
.contents.scrolling .works-wrapper-top {
  animation-play-state: paused;
}

/* カードのスタイル設定 */
.works-card-top {
  position: relative;
  flex: 0 0 auto;
  width: 40vw;
  max-width: 500px;
  margin-right: 10px;
  transition: transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.works-card-top:hover {
  transform: translateY(-20px);  /* ホバー時に上に移動 */
}

.works-card-top img {
  width: 100%;
  height: auto;
  display: block;
}

.caption-top {
  position: absolute;
  bottom: 0;
  left: 0;
  color: black;
  background-color: white;
  padding: 5px 10px 5px;
  margin: 0;
}

.caption-top p {
  margin: 0;
  font-size: 16px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


.works-more {
  text-align: right;
  font-weight: bold;
  font-size: 200%;
  margin-top: 50px;
  margin-right: 6.5vw;
  margin-bottom: 50px;
}
.works-more a {
  text-decoration: none;
  color: black; /* 初期色 */
  display: inline-block;
  transition: color 0.3s ease-in-out; /* 色のアニメーション */
}
.works-more a:hover {
  color: #ec6d51; /* マウスオーバー時の色 */
}
.arrow {
  display: inline-block; /* 矢印の動き用 */
  transition: transform 0.3s ease-in-out; /* 矢印の動きをスムーズに */
}
.works-more a:hover .arrow {
  transform: translateX(5px); /* 矢印を右に移動 */
}






.notes {
  width: 65%;
  margin: 60px auto 120px;
}
.notes-title {
  font-family: 'Barlow', "Helvetica", sans-serif;
  font-size: 38px;
  font-weight: 400;
  margin: 60px 0 45px;
}
.notes-contents {
  display: flex;
  flex-direction: column;
  max-height: 300px; /* 最大の高さを指定 */
  overflow-y: auto; 
}
.note-item {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  padding-bottom: 20px;
  position: relative;
}
.note-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(to right, #9f9f9f 2px, transparent 2px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
}
.note-date {
  font-family: 'Barlow', "Helvetica", sans-serif;
  font-weight: light;
  color: #ec6d51;
  margin-right: 50px;
  white-space: nowrap;
  font-size: 20px;
}
.note-text {
  font-weight: 400;
  font-size: 18px;
}


@media (max-width: 1024px) {
.typewriter {
    font-size: 57px;
    margin: 0 0 40px auto;
}
.about-more{
    font-size: 25px;
}
.works-card-top {
    position: relative;
    flex: 0 0 auto;
    width: 60vw;
    margin-right: 10px;
}
.works-more{
    font-size: 25px;
}
.notes{
    width: 80%;
    margin-top: 30px;
    margin-bottom: 150px;
}
.notes-title{
    font-size: 38px;
}
.notes-contents p{
    font-size: 70%;
}
}


@media (max-width: 700px) {
.toplogo {
    position: absolute;
    left: 5vw;
    bottom: 30px;
    width: 130px;
    height: auto;
}
.topabout{
    margin: 80px 6vw 40px;
  }
.typewriter {
    font-size: 30px;
    margin: 0 0 30px auto;
}
.topabout h2 {
    font-size: 14px;
    text-align: right;
  }
span {
    display: block;
    text-align: right;
}

.about-more{
    font-size: 20px;
    margin-bottom: 80px;
}

.works-wrapper-top {
    animation: scroll 40s linear infinite;
  }
.works-card-top {
    position: relative;
    flex: 0 0 auto;
    width: 100vw;
    margin-right: 10px;
}
.caption-top {
  padding: 3px 5px 3px;
}
.caption-top p {
  font-size: 14px;
}
.works-more{
    margin-top: 30px;
    font-size: 20px;
    margin-bottom: 70px;
}


.notes{
    width: 80%;
    margin-top: 30px;
    margin-bottom: 120px;
}
.notes-title{
    font-size: 38px;
    margin: 60px 0 30px;
}
.note-item {
    flex-direction: column; 
    align-items: flex-start;
}
.note-item::after {
    background-size: 8px 2px;
}
.note-date {
    font-size: 14px;
    margin-right: 0;
    margin-bottom: 10px;
}
.note-text{
    font-size: 14px;
    text-align: justify;
}
}



