/* ===================================================
  File:        works.css
  Description: 作品ページのスタイルシート
  Author:      H.Y
  Version:     1.0.0
  Last Update: 2025-10-12 : H.Y
  Log:
    - 2025-10-12: 初版　: H.Y
==================================================== */

/* PC Role */
/* 
・タイトルの余白：下36px
・小タイトルの余白：下15px
・説明文間の余白：下70px

*/

/* SP Role */
/* 
・タイトルの余白：下32px
・小タイトルの余白：下12px
・説明文間の余白：下60px

*/




@charset "UTF-8";


body {
    background-color: var(--primary-gray,#C6D1D1); 
}
/* =============================
Article header
===============================*/

.topic {
    /* padding: 14px 32px 0 32px; */
    padding: 14px 8% 0 8%;
    font-family: "Playfair Display";
    font-size: 2.6rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Article header pc */
@media screen and (min-width:769px){
    .topic {
        /* padding: 0 120px 0 120px; */
        padding: 0 8%;
        font-size: 4.8rem;
    }
}

/* =============================
outline
===============================*/

.section--outline {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 42px;
    /* padding: 42px 32px; */
    padding: 32px 8% 80px 8%;
}

.workInfo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 12px;
}

.workInfo__category {
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 10px; */
    /* width: 165px;
    height: 31px; */
    padding: 6px 34px;
    border-radius: 50px;
    background: #007E8E;
}

.workInfo__category p {
    color: var(--primary-white);
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 120%; /* 19.2px */
}

.workInfo__title {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 120%; /* 24px */
}

.workInfo__scope {
    font-size: 1.4rem;
    font-weight: 400;
    line-height: normal;
}

.workContent {
    text-align: center;
    width: 100%;
}

.workImg-img img {
    /* 枠線が消えるのを防ぐため少し縮小 */
    width: 95%;
    /* width: 100%; */
    max-width: 700px;
    aspect-ratio: 327/316;
    object-fit: cover;
    margin: 0 auto;
    border: 1px solid #fff;
    box-sizing: border-box; 
}

.workDesc {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.sectionTitle {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    width: 100%;
    /* 20251102 修正　start */
    /* margin-bottom: 42px; */
    margin-bottom: 32px;
    /* 20251102 修正　end */
}

.sectionTitle img {
    width: 25px;
    height: 25px;
    aspect-ratio: 1/1;
}

.sectionTitle__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sectionTitle__text p {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 120%; /* 16.8px */
}

.sectionTitle__text h3 {
    font-family: "Playfair Display";
    font-size: 2rem;
    font-weight: 400;
    line-height: normal;
}

.sectionTitle--outline {
    margin-top: 30px;
}

.outline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* flex: 1 0 0; */
    gap: 60px;
    position: relative;
    width: 100%;
    padding-left: 28px;
}

.outline::before {
    position: absolute;
    /* 上からはみ出るのを防ぐ */
    top: 2px; 
    left: 11px;
    width: 1px;
    height: 100%;
    background: var(--primary-white);
    content: "";
}

.outline__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    /* align-self: stretch; */
}

.outline__title {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 120%; /* 21.6px */
    position: relative;
}

.outline__item:first-child .outline__title::before  {
    position: absolute;
    top:0;
    left: -24px;
    width: 15px;
    height: 15px;
    background-image: url(../images/works/circle_img.svg);
    background-repeat: no-repeat;
    background-size: contain; /* 画像全体を収める */
    content: "";
}


.outline__item:not(:first-of-type) .outline__title::before {
    position: absolute;
    top: -20px;
    left: -24px;
    width: 15px;
    height: 37px;
    background-image: url(../images/works/3circle_img.svg);
    background-repeat: no-repeat;
    background-size: contain; 
    content: "";
}

.outline__text {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 190%; /* 25.6px */
    text-align: left;

                    /*★これ入れる */
          text-align: justify;   /* 両端揃え */
  text-justify: inter-ideograph; /* 日本語用の調整（推奨） */
    
}



/* outline pc */
@media screen and (min-width:769px){
    .section--outline {
        gap: 42px;
        /* padding: 62px 8% 112px 8%; */
        /* padding: 50px 9% 112px 10%; */
        padding: 50px 9% 0 10%;
    }

    .workInfo {
        gap: 13px;
        
    }

    .workInfo__category {
        display: flex;
        justify-content: center;
        align-items: center;
        /* gap: 10px; */
        /* width: 165px; */
        /* height: 31px; */
        padding: 6px 34px;
        border-radius: 50px;
        background: #007E8E;
    }

    .workInfo__category p {
        color: var(--primary-white);
        text-align: center;
        font-size: 1.6rem;
        font-weight: 400;
        line-height: 120%; /* 19.2px */
    }

    .workInfo__title {
        font-size: 2.2rem;
        font-weight: 500;
        line-height: 120%; /* 24px */
    }

    .workInfo__scope {
        font-size: 1.6rem;
        font-weight: 400;
        line-height: normal;
    }

    .workContent {
        display: flex;
        width: 100%;
        padding-bottom: 50px;
        justify-content: center;
        align-items: flex-start;

    }

    .workImg {
        /* width: 54%; */
        width: 50%;
        margin-right: 47px;

    }

    .workDesc {
         width: 46%;

         overflow: auto;
         /* height: 500px;/ */
         
        aspect-ratio: 1/1;
        /* padding-right: 15px; */
        padding-right: 40px;
        padding-right: 3%;
    }


    .workDesc::-webkit-scrollbar {
        background: rgba(255, 255, 255, 0.3);
        width: 3.5px;
        border-radius: 20px;
    }


    .workDesc::-webkit-scrollbar-thumb {
        background-color: #007E8E;
        border-radius: 20px;
    }

    .workDesc::-webkit-scrollbar-thumb:hover {
        background-color: #CFD14A;
    }

    

    .sectionTitle {
        margin-bottom: 36px;
    }

    .sectionTitle img {
        width: 35px;
        height: 35px;
        margin-bottom: 2px;
    }

    .sectionTitle__text p {
        font-size: 1.4rem;
    }

    .sectionTitle__text h3 {
        font-size: 3.2rem;
    }

    .outline {
        gap: 70px;
        padding-left: 30px;
        
    }

    .outline::before {
        left: 13px;
    }

    .outline__item {
        gap: 15px;
    }

    .outline__title {
        font-size: 1.8rem;
    }

    .outline__item:first-child .outline__title::before  {
        left: -25px;
        width: 17px;
        height: 17px;

    }


    .outline__item:not(:first-of-type) .outline__title::before {
        top: -24px;
        left: -25px;
        width: 17px;
        height: 41px;

    }

    .outline__text {
        text-align: left;
        padding-left: 20px;
        font-size: 1.6rem;
        /* line-height: 1.75; */
        line-height: 1.9em;
        
        /*★これ入れる */
        text-align: justify;   /* 両端揃え */
        text-justify: inter-ideograph; /* 日本語用の調整（推奨） */

    }



}


/* =============================
detail
===============================*/

.section--detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    /* padding: 34px 32px 80px 32px; */
    padding: 34px 8% 80px 8%;
}

.detail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 60px;
    margin-bottom: 54px;
}

.detail__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 12px;
}

.detail__title {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 120%; /* 21.6px */
}

.detail__text {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 190%; /* 25.6px */

    /* letter-spacing: 2.4px; */
    letter-spacing: 0.05em;

    /*★これ入れる */
    text-align: justify;   /* 両端揃え */
    text-justify: inter-ideograph; /* 日本語用の調整（推奨） */
}

.pageDesignImg {
    width: 100vw;
    display: flex;
    margin: 0;
}

.designImg {
    width: 100%;
}

.tabBtn {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    gap: 18px;
    width: 100%;
    margin-top: 18px;
    margin-bottom: 25px;
}

.tabBtn__item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 32px;
    border-radius: 50px;
    border: 1px solid var(--primary-black);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 120%; /* 16.8px */
}

/* ボタンにアクティブがついたとき */
.tabBtn__item.active{
    background-color: var(--primary-white);
}


.tabContent__item {
    display: none;
    justify-content: center;
    align-items: center;

    max-width: 600px;

    /* 
    flex-direction: column;
    gap:20px */
    /*  */
}

/* 20251101 追加 */
.tabContent__item img{
    box-shadow: -58px 73px 26px 0 rgba(67, 86, 86, 0.00), -37px 47px 24px 0 rgba(67, 86, 86, 0.01), -21px 26px 20px 0 rgba(67, 86, 86, 0.03), -9px 12px 15px 0 rgba(67, 86, 86, 0.04), -2px 3px 8px 0 rgba(67, 86, 86, 0.05);
}

.tabContent__item.active{
    display: flex;

    margin: 0 auto;
}



.pageBtn {
    display: none;
}


.tabContent--sp img {
    width: 80%;
}

/* バナーverのみ */

.bannerImg {
    width: 90%;
    height: auto;
    display: flex;
    margin: 0 auto 20px auto;
}

/* 20251101 追加 */
.bannerImg img {
    box-shadow: -58px 73px 26px 0 rgba(67, 86, 86, 0.00), -37px 47px 24px 0 rgba(67, 86, 86, 0.01), -21px 26px 20px 0 rgba(67, 86, 86, 0.03), -9px 12px 15px 0 rgba(67, 86, 86, 0.04), -2px 3px 8px 0 rgba(67, 86, 86, 0.05);
}


    .detail__item {
        width: 90%;
        margin: 0 auto;

    }






/* detail pc */
@media screen and (min-width:769px){

    .section--detail {
        /* padding: 112px 8% ; */
        padding: 0 10% 112px 10% ;
    }

    .detail {
        /* 20251102 修正　srtart */
        /* gap: 51px; */
        gap: 70px;
        /* 20251102 修正　end */

        padding-left: 40px;
        margin-bottom: 90px;
    }

    .detail__item {
        gap: 15px;
        width: 90%;
        margin: 0 auto;
    }

    .detail__title {
        font-size: 1.8rem;
    }

    .detail__text {
        font-size: 1.6rem;
        /* line-height: 1.75; */
        /* line-height: 1.8; */
        line-height: 1.9em;
        letter-spacing: 0.08em;
        padding-left: 50px;
        padding-right: 100px;

        /*★これ入れる */
        text-align: justify;   /* 両端揃え */
        text-justify: inter-ideograph; /* 日本語用の調整（推奨） */
  
    }

    .pageDesignImg {
        width: 100vw;
        display: flex;
        margin: 112px 0;
    }


    .designImg {
        width: 100%;
    }

    .bannerImg {
        width: 60%;
        height: auto;
        display: flex;
        margin: 0 auto 20px auto;
    }

    .bannerImg.bannerImg--width40p {
        width: 40%;
    }

    .tabBtn {
        display: none;
    }

    .tabBtn__pc, .tabBtn__sp {
        display: none;
    }

    .tabContent{
        display: flex;
        justify-content: center;
        align-items: flex-start;
        /* gap: 81px; */
        gap: 0;
        width: 100%;
    }

    .tabContent__item {
        display: flex;
        max-width: none;
    }


    .tabContent--pc{
        width: 55%;
    }

    .tabContent--pc img {
        width: 100%;
    }

    .tabContent--sp {
        width:40%;
    }

    .tabContent--sp img {
        width: 55%;
    }

    .pageBtn {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        align-self: stretch;
        margin-top: 90px;
    }

    .pageBtn_back, .pageBtn_next{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 9px;
        padding: 6px 34px;
        border-radius: 50px;
        border: 1px solid var(--primary-black);
        
        /* z-index: 1000; */
    }

    .pageBtn_back img {
        transform: translateX(0);
        transition: transform 0.5s ease; /* ← 移動をスムーズにする */
    }

    .pageBtn_back:hover img {
        transform: translateX(-20px); /* hover中の移動 */
    }


    .pageBtn_next img {
        transform: translateX(0);
        transition: transform 0.5s ease; /* ← 移動をスムーズにする */
    }

    .pageBtn_next:hover img {
        transform: translateX(20px); /* hover中の移動 */
    }

   .pageBtn_back, .pageBtn_next{
        font-family: "Playfair Display";
        font-size: 2rem;
        font-weight: 500;
        line-height: normal;
   }

}


/* =============================
other works
===============================*/

.section--otherworks {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    /* padding: 34px 38px 80px 38px; */
    padding: 34px 8% 80px 8%;
    border-radius: 30px 30px 0 0;
    background: var(--primary-white);
}




.works__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 38px;
    width: 100%;
    margin-bottom: 34px;
    padding: 0 20px;
}

/* SPの時は3つだけ残して残りは非表示 */
    .works__list li:nth-child(n+4){
    display: none;
  }

.works__item {
    position: relative;
    width: 100%;
    max-width: 312px;
    height: auto;
    aspect-ratio: 357/422;
}

.works__item--pc {
    display: none;
}

.works__item img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
    object-fit: cover;
    object-position:0 100%;
    transform: scale(1.1);
}

.works__item:hover img {
    transform: scale(1.2);
}

.works__img {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 1px solid var(--primary-white);
    overflow: hidden;
}

.works__description {
    display: flex;
    position: absolute;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    bottom: 0;
    width: 100%;
    max-width: 312px;
    /* padding: 13px 20px 7px 20px; */
    padding: 13px 7% 7px 7%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.17) 0%, rgba(255, 255, 255, 0.35) 100%);
    backdrop-filter: blur(12.5px);
    border-radius: 0 0 15px 15px;
    border-top: 1px solid var(--primary-white);
}

.works__type {
    display: inline-block;
    justify-content: center;
    align-items: flex-start;
    padding: 2px 14px;
    width: auto;
    border-radius: 50px;
    background: #007E8E;
}

.works__type p {
    color: var(--primary-white);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: normal;
}

.works__name {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 120%; /* 21.6px */
}

.works__scope {
    text-align: right;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: normal;
}

.backBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 6px 24px;
    border-radius: 50px;
    border: 1px solid var(--primary-black);
}

.backBtn p {
    font-family: "Playfair Display";
    font-size: 1.2rem;
    font-weight: 500;
    line-height: normal;
}

.slick-track {
    display: flex;
}


/* other works pc */
@media screen and (min-width:769px){

    .section--otherworks {
        /* padding: 112px 8% ; */
        padding: 112px 10% 180px 10%;
    }

    .works__list {
        display: flex;
        /* flex-direction: row; */
        /* gap: 80px; */
        margin-bottom: 0;
        padding: 0 0;
        margin-top: 20px;
    }

    .works__item {
        margin: 0 10px;
        max-width: none;

        /* width: calc((100% - 40px) / 3); */
        margin: 0 20px;
        box-sizing: border-box;
        min-width: 200px; /* これ以上小さくならない */
        
    }   

/* SPの時は3つだけ残して残りは表示 */
        .works__list li:nth-child(n+4){
        display: block;
    }



    .works__item img {
        width: 100%;
        height: 100%;
        /* height: auto; 
        display: block; */
        transition: transform 0.3s ease;
    }

    .works__img {
        width: 100%;
        height: 100%;
        border-radius: 15px;
        overflow: hidden;
}

    .works__item:hover img {
        transform: scale(1.2);
    }


    .slick-track {
        display: flex;
        justify-content: center; /* 中央寄せ */
    }


    .works__description {
        max-width: none;
    }

    .works__type p {
        font-size: 1.2rem;
    }

    .works__name {
        font-size: 1.6rem;
    }

    .backBtn {
        display: none;
    }

    .slick-arrow {
        position: absolute;
        top: 50%;           /* 上下中央 */
        transform: translateY(-50%);
        width: 6%;          /* 親の幅 */
        aspect-ratio: 1/1;  /* 高さを幅に合わせて正方形 */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* 左右位置 */
    .prev-arrow { 
        left: -7%;        
    }

    .next-arrow { 
        right: -7%;
    }

    /* 矢印画像（画像1） */
    .arrow-img {
        width: 100%;
        height: auto;
        transition: transform 0.8s ease;
    }

    .arrow-img:hover {
        transform: rotate(360deg);
    }


.prev-arrow::before,
.next-arrow::before {
    content: "";
    position: absolute;
    inset: 0;  /* 親にフィット */
    background: url(../images/works/arrowBtn_arrow_left.svg) no-repeat center / contain;
    pointer-events: none;  /* 画像1にホバーが効くように */
    width: 35%;
    margin: auto;
}

.next-arrow::before {
    background: url(../images/works/arrowBtn_arrow_right.svg) no-repeat center / contain;

}




}

/* =============================
slider
===============================*/

/* 非アクティブなドット */
.workImg .slick-dots li button:before {
    color: #fff;              /* ドットの色 */
    opacity: 0.75;               /* デフォルトは0.25なので見づらい場合は1に */
}

/* アクティブなドット */
.workImg .slick-dots li.slick-active button:before {
    color: #007E8E;           /* アクティブ時の色 */
}


/* slider pc */
@media screen and (min-width:769px){
    /* 非アクティブなドット */
    .workImg .slick-dots li button:before {
        font-size: 8px;
    }

}


/* pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
  font-size: 18px;
}

.page a{
    font-size: 18px;
}

.pagination > * + * {
  margin-left: 12px;
}

/* .pagination a { */
.page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 35px;
  height: 35px;
  /* background: #fff; */
  font-size: 20px;
  font-weight: 400;
  transition: all 0.15s linear;
}


.pagination-Item-Link-Icon {
  width: 20px;
}
/* .pagination a .navi-isActive { */
.page.navi-isActive {
  pointer-events: none;
  background: var(--primary-blue);
  color: #fff;
  font-weight: 500;
}
.pagination-Item-Link:not(.navi-isActive):hover {
  background: #111;
  color: #fff;
}


/* ローディング */
.worksLoading {
    position: fixed;
    z-index: 3000;
    width: 100%;
    height: 100vh;
    background:var(--primary-lightblack);

    justify-content: center;
    align-items: center;
    display: flex;

    opacity: 1;
  visibility: visible;
  transition: all 3s ease;
  transition-delay: 2s; /* ← 開始まで1秒待つ！ */
}

.worksLoading.is-active {

  opacity: 0;
  visibility: hidden;
}

.worksLoading__text {
    font-size: 2.5vw;
    letter-spacing: 2.4px;
    color: var(--primary-white);
    font-weight: 300;
    display: flex;
}

.worksLoading__text.is-active .char{
    opacity: 1;
}

.char {
  display: inline-block;
  opacity: var(--opacity, 0);
  transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
  transition-delay: calc(0.07s * var(--char-index));
}

@media screen and (min-width:769px){

    .worksLoading__text {
        font-size: 1vw;
    }
}

