@charset "utf-8";

body{
    background-color: #f9f7e4;
}

@keyframes shake-complex {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(-0.5px, 0.5px) rotate(0.5deg); }
  40% { transform: translate(0.5px, -0.5px) rotate(-0.5deg); }
  60% { transform: translate(-0.5px, -0.5px) rotate(0.5deg); }
  80% { transform: translate(0.5px, 0.5px) rotate(-0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* 項目にマウスが乗ったら画像を揺らす */
.work-item:hover img,
.another-works01 div:hover img{
  animation: shake-complex 0.6s infinite ease-in-out;
}

.work-item img,
.another-works01 div img{
  display: block;
  will-change: transform;
  transition: transform 0.3s ease; /* 戻る動きを滑らかに */
}

.sub-fv{
    align-items: center;
    aspect-ratio: auto;
    height: auto;       
}

.sub-fv img{
    width: 100%;
    display: block;
}


.midashi{
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
}

@font-face {
    font-family: "myfont"; 
    src: url("../font/Icing\ soda2_濃.ttf") format("truetype");
    font-display: swap; 
  }

.midashi h1{
    display: flex;
    justify-content: center;
    color: #683c40;
    font-weight: bold;
    font-family:"myfont",sans-serif; 
    font-size: 82px;
}

.midashi p{
    display: flex;
    justify-content: center;
    margin-top: -5px;
    color: #683c40;
    font-weight: bold;
    font-family:"myfont",sans-serif; 
    font-size: 46px;
}

@media screen and (max-width: 1100px) {

       .midashi {
        top: 58%;
    }
    
    .midashi h1 {
        font-size: 65px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .midashi p{
      font-size: 35px;
      letter-spacing: 0.3em;
    }
}

@media screen and (max-width: 980px) {

       .midashi {
        top: 58%;
    }
    
    .midashi h1 {
        font-size: 60px;

    }

    .midashi p{
      font-size: 31px;
      
    }
}


@media screen and (max-width: 768px) {

       .midashi {
        top: 50%;
    }
    
    .midashi h1 {
        font-size: 55px;

    }

    .midashi p{
      font-size: 30px;
      
    }
}

@media screen and (max-width: 570px) {

       .midashi {
        top: 53%;
    }
    
    .midashi h1 {
        font-size: 45px;

    }

    .midashi p{
      font-size: 25px;
      
    }
}

@media screen and (max-width: 480px) {

       .midashi {
        top: 56%;
    }
    
}


.works-menu ul{
    display: flex;
    margin-top: 90px;
    margin-bottom: 90px;
    gap: 75px;
    justify-content: center;
}


  .works-menu a{
    font-size: 41px;
    font-family: "myfont",sans-serif; 
    color: #683c40;
  }


  /* 3. ここが重要：aタグをインラインブロックにする */
.works-menu li a {
  display: inline-block;
  text-decoration: none;
  position: relative; /* 線の基準点 */
  padding-bottom: 6px; /* 文字と線の距離 */
}

/* 4. ホバー時の線（初期状態：幅0） */
.works-menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #683c40;
  border-radius: 50% 20%; /* 手書き風の歪み */
  
  /* アニメーションの準備 */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* 5. マウスをかざした時に線を出す */
.works-menu li a:hover::after {
  transform: scaleX(1);
}




  @media screen and (max-width: 920px) {

    .works-menu ul{
        gap: 60px;
        margin-top: 70px;
    }

    .works-menu a{
    font-size: 38px;
    }
  }

    @media screen and (max-width: 768px) {
         .works-menu ul{
            gap: 45px;
            margin-top: 60px;
    }

    .works-menu a{
    font-size: 32px;
    }

    }

      @media screen and (max-width: 620px) {
         .works-menu ul{
            gap: 25px;
            margin-top: 40px;
        }

        .works-menu a{
            font-size: 27px;
        }

    }

    @media screen and (max-width: 620px) {
        .works-menu ul {
            gap: 30px;
            margin-left: 40px;
            display: flex;
            flex-direction: column;
        }
    }




  .is-hidden {
    display: none !important;
}

.works-all{
    display: grid;
    max-width: 1180px;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;
    margin: 0 auto;
}

.works-all div{
    margin: 0 10px 0;
}

.work-name{
    color: #683c40;
    font-size: 22px;
    font-weight: bold;
    font-family:"筑紫A丸ゴシック",sans-serif; 
}

.explain{
    color: #683c40;
    font-size: 18px;
    font-weight: normal;
    padding-right: 25px;
    padding-top: 10px;
    line-height: 1.60;
}

.works-all ul{
    padding: 10px 0px 15px 30px;
}

@media screen and (max-width: 880px) {

    .explain{
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .works-all {
        grid-template-columns: repeat(2, 1fr); /* 2列 */
        gap: 15px;
        padding: 0 10px;
    }
}

@media screen and (max-width: 620px) {

    .works-all ul {
    padding: 10px 0px 15px 30px;
}

    .work-name{
        font-size: 19px;
    }

    .explain{
        font-size: 15px;
    }
}

@media screen and (max-width: 550px) {

    .works-all ul {
    padding: 10px 0px 15px 25px;
}

    .work-name{
        font-size: 17px;
    }

    .explain{
        font-size: 13px;
    }
}

@media screen and (max-width: 440px) {

    .works-all {
        gap: 1px;
    }

    .works-all ul {
    padding: 10px 0px 15px 17px;
}

    .work-name{
        font-size: 14px;
    }

    .explain{
        font-size: 11px;
    }
}


.works-botan{
    display: flex;
    justify-content: center;
    gap: 5%;
    align-items: center;
    margin-top: 110px;
}

.botan{
    width: 50px;
    height: 70px;
}

.move-botan{
    width: 8px;
    height: 17px;
}

#page-numbers {
    display: flex;
    gap: 10px; /* ボタン同士の間隔 */
    align-items: center;
}




/* 親要素を相対位置に、中身を絶対位置で重ねる */
.pagination-item {
    position: relative;
    width: 50px;  /* .botanと同じサイズ */
    height: 70px;
    cursor: pointer;
}

.pagination-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

/* ホバー時の画像（肉球）は最初隠しておく */
.img-hover {
    opacity: 0;
}

/* ホバーした時、または「現在のページ」の時に肉球を表示 */
.pagination-item:hover .img-hover,
.pagination-item.is-active .img-hover {
    opacity: 1;
}

/* ホバーした時、または「現在のページ」の時に数字を消す */
.pagination-item:hover .img-default,
.pagination-item.is-active .img-default {
    opacity: 0;
}







.back-peaper{
    position: absolute;
    margin-top: -770px;
    z-index: -1;
    width: 100%;
    height: 1100px;
}

.back-peaper img{
    object-fit: cover;
    object-position: bottom;
    height: 100%;
}

.sp-peaper{
    display: none;
}

.peaper img{
    position: absolute;
    z-index: -2;
    margin: 0 auto;
    margin-top: -150px;
}

@media screen and (max-width: 1100px) {
    .peaper img{
        margin: 0 auto;
        margin-top: -5px;
    }
}

@media screen and (max-width: 768px) {

    .peaper img{
        display: none;
    }

    .sp-peaper{
        display: block;
    }

    .sp-peaper img{
        position: absolute;
        z-index: -2;
        margin: 0 auto;
        margin-top: 0px;
        aspect-ratio: 9 / 14;
         object-fit: cover;
    }
}

@media screen and (max-width: 640px) {
    .sp-peaper img{
         margin-top: 30px;
    }
}

.contact {
    position: absolute;
    z-index: 1;
    transform: translate(-50%, -50%);
    width: 60%;
    margin-top: 300px;
    left: 50%;
}



.contact-txist{
    position: absolute;
    z-index: 9;
    color: #683c40;
    font-size: 14px;
    font-weight: normal;
 
    
}

.footer{
    
    margin-top: 100px;
}

.footer-nav ul{
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-top: -120px;
    
}

.footer-nav a{
    color: #683c40;
    font-size: 20px;
    font-weight: bold;
}



    

@media screen and (max-width: 768px) {

    .footer-nav{
        position: relative;
    }

    .footer-nav ul{
    
    text-align: left;
    gap: 40px;
    bottom: 10%;
     
    }

    .footer-nav a{
        color: #683c40;
        font-size: 17px;
        font-weight: bold;
    
    }
}

@media screen and (max-width: 720px) {
    .footer{
    
    margin-top: 5px;
}

}

@media screen and (max-width: 620px) {
    .footer{
    
    margin-top: 50px;
}

}




