/* gnav */
.gnav{
  display: none;
}

/* body */
body{
  margin: 0;
  background-color: #F8F6F0;
}
.poster-list{
  background-color: #F5F5F7;
}

/* title */
.title{
  padding: 40px 0;
  padding-left: 80px;

  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1.2s ease, transform 1.2s ease-out;
}
.title.active {
  opacity: 1;
  transform: translateX(0);
}
.title-name{
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.title-name img{
  width: 90px;
  height: auto;

  opacity: 0;
  transform: translateX(-40px);
  transition: 0.8s;
}
.title-name h1{
  font-size: 2.7rem;
  position: relative;
  width: 300px;

  opacity: 0;
  transform: translateX(-20px);
  transition: 0.6s;
}
.title.active img,
.title.active h1{
  opacity: 1;
  transform: translateX(0);
}
.title-name h1::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 360px;
  height: 2px;
  background: #4F4B4B;
  opacity: 0.8;
}
.title h2{
  margin-top: 40px;
}
@media screen and (max-width: 768px){
/* title */
  .title{
    padding: 24px 20px;
  }
  .title-name h1{
    font-size: 2rem;
    margin-top: 20px;
  }
  .title-name h1::after{
  width: 220px;
}
  .title h2{
    font-size: 0.95em;
    margin-top: 5px;
  }
  .title-name{
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .title-name img {
    width: 40px;
    margin-left: 190px;
    margin-top: -65px;
  }
}

/* 作品項目 */
.works-web{
  padding: 60px 0;
}
.work-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 130px 140px; /* 縦 横 */
  padding: 0 100px;
}
.list img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease, box-shadow .35s ease;
}
.list img:hover{
  transform: translateY(-10px);
}
.list a{
  opacity: 1;
}
.list h3{
  font-size: 1.6em;
  margin-bottom: 20px;
}

/* 初期状態 */
.list-text{
  text-align: center;
  font-size: 0.8em;
  opacity: 0;
}
/* 表示時（親にactiveついたら） */
.list.active .list-text {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}
/* 各テキスト初期 */
.list-text p {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}
/* 1行目 */
.list.active .list-name {
  opacity: 1;
  transform: translateX(0);
  transition: 2s;
}
/* 2行目 */
.list.active .tool {
  opacity: 1;
  transform: translateX(0);
  transition: 2.5s;
}


@media screen and (max-width: 768px){
/* 作品項目 */
  .work-list{
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 40px;
  }
  .list{
  max-width: 500px;
  margin: 0 auto;
  }
  .list img{
  width: 75%;
  display: block;
  margin: 0 auto;
  }
  .list h3{
  margin-left: 20px;
  font-size: 1.2rem;
  }
  .title h2{
    font-size: 0.8rem;
  }
}
.tool {
  opacity: 0.7;
  font-size: 14px;
}
/* comment */
.comment{
  max-width: 800px;   /* 一覧と幅を揃える */
  margin: 20px auto;
  text-align: center;
}
.comment p{
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
  opacity: 0.7;
}

@media screen and (max-width: 768px){
  .comment{
    padding-right: 30px;
  }
  .comment p{
    font-size: 0.7rem;
  }
}

/* footer */
footer .next{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 80px;
}
footer > div:last-child{
  position: relative;
  text-align: center;
  padding-bottom: 8px;
}
footer{
  margin-top: 50px;
}
footer .footer-inner{
  position: relative;
  text-align: center;
  padding-bottom: 20px;
}
footer .footer-text{
  display: flex;
  flex-direction: column; /* ← 縦並び */
  gap: 20px;
}
footer .footer-inner img{
  position: absolute;
  right: 350px;
  bottom: 50px;
  width: 90px;
}

.next a {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  letter-spacing: 0.05em;
}
.next a:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}
.footer-text a:hover{
  color: #6b6f9e;
  transition: color 0.3s ease;
}

@media screen and (max-width: 768px){
  footer .footer-inner img{
    right: 40px;
    bottom: 40px;
    width: 64px;
  }
}
