@charset "utf-8";

.footer__loop {
  display: flex;
  flex-shrink: 0;
  animation: loopScroll 23s linear infinite;
}

.work__mainbox{
 display: flex;
 width: 100%;
}

/* 全体操作 */
.work__leftbox::-webkit-scrollbar{
    display: none;
}

.work__leftbox{
 border-left: 1px solid var(  --txt-color);

 width: 47.013%;
 overflow: scroll;
 height: calc(91vh - 50px );
}

.work__rightbox{
 width: 52.987%;
 border-right: 1px solid var(--txt-color);
 border-left: 1px solid var(--txt-color); 
overflow: scroll;
height: calc(91vh - 50px );
}

.work__rightbox::-webkit-scrollbar{
    display: none;
}


.work__title{
color: #4C4343;
font-family: "Kozuka Mincho Pro","Zen Old Mincho";
font-size: var(--font-size-name);
font-weight: 700;
margin-top: 92px;
margin-left:clamp(24px, 11.467%, 72px);
}


@media screen and (min-width:1441px){
.work__title{
    font-size: 3.2rem;
    margin-top: 24px;
}  

    
}

/* SP　 */
@media screen and (max-width:1024px){
.work__mainbox{
    flex-direction: column;
}    
.work__leftbox{
    height: auto;
    width: 100%;
    overflow: unset;
    border-bottom: 1px solid var(--txt-color);
     border-right: 1px solid var(  --txt-color);
}
.work__rightbox{
    height: auto;
    width: 100%;
    overflow: unset;
}

.work__title{
    font-size:3.2rem;
    margin-top:56px ;
    margin-left: 7%;
}


}

/* project__devicesここから */




.work__click__motion__img{
    width: 13.92%;
    position: absolute;
    left:71.3%;
    bottom: 90%;

}

/* viee more 回転記述 */

.work__click__motion__view {
    position: absolute;
    width: 20.384%;
    left: 71%;
    bottom: 82%;
    transform-origin: center center;
    animation: infiniteRotation 5s linear infinite;
    z-index: 1;
}

.work__click__motion__img__hand{
    z-index: 2;
     width: 13.92%;
}

/* 回転アニメーション */
@keyframes infiniteRotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



/* view more 回転記述 */


.project__devices{
    display: flex;
            width: 100%;
            margin: 24px auto 0 3.21% ;  
            overflow: visible;   
            position: relative; 
}

.device{
    cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
}



.device:hover {
    transform: translateY(-8px);
}

.device:active {
    transform: translateY(-4px);
}

.device__desktop{
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    z-index: 1;

}

.device__img__desktop {
    width: 100%;
    height: auto;
    display: block;
}




.device__img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
}



.device__mobile {
    position: relative;
    top: 60px; /* PC画面の上部に配置 */
    right: clamp(88px, 20%, 120px); 
    z-index: 2;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 48px;

}



.device__img__mobile {
    width: 100%;
    height: auto;
    display: block;
    overflow: unset;
}
/* 1440以上の調整 */
@media screen and (min-width:1441px){

.work__click__motion__img{
    bottom: 86%;
    left: 69%;
  
}

.work__click__motion__img__hand{
  width: 11.14%;
  bottom: 92%;
}

.work__click__motion__view{
     left: 69%;
    width: 13.824%; 
}
    
.device__desktop{
  width: 70%;
}
.device__mobile{
    width: 20%;
}


}



/* device SP */
@media screen and (max-width:1024px) {
 

 .work__click__motion__img{
    width: 18.131%;
    position: absolute;
    left: 70%;
    bottom: 81%;
 }
 .work__click__motion__img__hand{
    width: 12.83%;
    position: absolute;
    left: 70%;
    bottom: 88%;
 }
 .work__click__motion__view{
    width: 18.131%;
    position: absolute;
    left: 70%;
    bottom: 81%;
 }

 .device__img__desktop{
   width: 92.55%; 
 }
.device__mobile {
   
    margin-bottom: 40px;

}
 
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  /* ここに指定したいCSSを書く */
   .device__desktop{
   width: 70%; 
 }
}

/* device　ここまで */


















/* modalここから */




/* クリックされたデバイスタイプに応じて表示 */
.portfolio__detail[data-current-device="pc"] .device__content[data-device="pc"] {
  display: block;
}

.portfolio__detail[data-current-device="sp"] .device__content[data-device="sp"] {
  display: block;
}

.device__content{
margin-top: 16px;
}


/* 基本的な非表示設定 */
.device__content {
  display: none;
  flex-direction: column;
}

.work__current__location{
    text-align: right;
}
.device__close {
    color: var(--txt-color);
    font-family: "Minion Pro","Lusitana";
    font-size: var(--base-font-size);
    letter-spacing: 0.43px;
    margin-right: 3.822%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
  }

  .device__close__txt {
    border-bottom: 1px solid var(--txt-color); /* 下線はテキストだけ */
  }

.device__close::after {
    content: '';
    display: block;
    width: 18px;   /* ←画像に合わせる */
    height: 18px;
    
    background: url("../portfolio__comps/work__closebtn.png") no-repeat center;
    background-size: contain;
    background-repeat: no-repeat; 
  }
.production__details{
    margin-top: 16px;
    max-width: 100%;
}
.production__img{
    width: 80%;
    display: flex;
  margin: 0 auto;
}
.production__img__sp{
    width: 50%;
    display: flex;
    margin: 0 auto;
}


.device__controls{
    display: flex;
    align-items: center;
    justify-content:center ;
    
    gap: 80px;
}

.device__btn{
color: var(--txt-color);
font-family: "Minion Pro","Lusitana";
font-size: var(--otherfont-size-name);
margin-top: 36px;
 position: relative;
}
.device__btn::after {
  content: '';
  position: absolute;
  left: 100%;          /* テキスト直後 */
  margin-left: 40px;   /* 40px右にずらす */
  top:45%;            /* 中央揃え */
  transform: translateY(-50%); /* 正確に中央に */
  background-color: var(--txt-color);
  width: 1px;
  height:clamp(40px,3.656191vh,57px) ;
}

.device__btn:nth-child(2)::after,
.device__btn:nth-child(4)::after {
  content: none;
}

@media screen and (max-width:1024px){
.device__btn::after{
height:20px;
top: 50%;
}  
    
}































/* ここからdetails */

.project__details{
    margin-left: calc(7.62% + 0.1562px);
    margin-top: 48px;
  
}



.project__details__item{
display: flex;
align-items: baseline;
padding:24px 0 ;
 position: relative;
   border-top: 1px solid var(--txt-color);
 width: 337px;
   

}




.project__details__term{
    color: var(--txt-color);
font-family: "Kozuka Mincho Pro","Zen Old Mincho";
font-size: var(--base-font-size);
font-weight: 700;
align-items: center;
 min-width: 120px; 
 margin-top: -1px;
 
}

.project__details__term__en{
font-family:  "Minion Pro","Lusitana";
}

.project__details__description{
display: block;
flex: 1;

}

.project__details__value:first-of-type{
    margin: 0;
}

.project__details__value{
    display: block;
    color: var(--txt-color);
font-family: "Minion Pro","Lusitana";
font-size: var(--base-font-size);
font-weight: 400;
letter-spacing: 0.64px;
margin-top: 8px;
}



.project__details__sub{
    display: block;
    color: var(--txt-color);
font-family: "Kozuka Mincho Pro","Zen Old Mincho";
font-size: var(--base-font-size);
font-weight: 400;
letter-spacing: 0.64px;
margin-top: 8px;
}


   .project__details__timeline {
            display: flex;
            flex-direction: column;
            gap: 8px;
            width: 200px;
        }

        .timeline__item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-right: 16%;
        }


.project__details__item:last-of-type{
    display: block;
}

.timeline__item__phase,
.timeline__item__period{
    color: var(--txt-color);
font-family: "Kozuka Mincho Pro","Zen Old Mincho";
font-size: var(--base-font-size);
font-weight: 400;
letter-spacing: 0.64px;
}


/* 1441px以上の場合 */
@media screen and (min-width:1441px){
 .project__details{
    margin-top: 8px;
 }
 .project__details__item {
width: 80%;
}
 

}

/* sp　ここから */
@media screen and (max-width:768px) {
 .project__details{
margin-left: 6.8%;
 } 
.project__details__item{
    padding: 16px 0;
    width:267px ;
}  
.project__details__item::before{
width: 232px;
}

.project__details__timeline{
gap: 4px;
}

.project__details__term{
font-size: 1rem;
min-width: 80px;


}

.project__details__value{
    font-size: 1rem;
    letter-spacing: 0.4px;
    margin-top: 4px;
}
.project__details__sub{
    font-size: 1rem;
    letter-spacing: 0.4px;
    margin-top: 4px;
}

.timeline__item{
    margin-right: 36%;
}
.timeline__item__phase{
    font-size: 1rem;
    letter-spacing: 0.4px;  
}
.timeline__item__period{
    font-size: 1rem;
    letter-spacing: 0.4px;  
}


}
/* detailsここまで */



/* ここから右のボックス */





.target__item{
 border-bottom: 1px solid var(--txt-color);
 width: 100%;
 display: grid;
 grid-template-columns: 120px 1fr;
 align-items: baseline; 
 padding: 32px 0;
}

.target__item__term{
 color: var(--txt-color);
font-family: "Kozuka Mincho Pro","Zen Old Mincho";
font-size: var(--base-font-size);
font-weight: 700;
/* padding-left: calc(13.33% + 0.0156px); */
padding-left: 20%;
}




.target__item__description{
 color: var(--txt-color);
font-feature-settings: 'palt' on;
font-family: "Kozuka Mincho Pro","Zen Old Mincho";
font-size: var(--base-font-size);
font-weight: 400;
line-height: 24px; /* 150% */
letter-spacing: 0.85px;
margin-right: 6.803%;
}


/* spここから */
@media screen and (max-width:1024px) {
 .target__item{
 padding: 16px 0;   
 }   

 .target__item__description{
    margin-right: 7.18%;
 }
    
}
/* 詳細ここまで */




/* ここからother */

.otherworks__title__box{
 margin-top: 40px;
border: 1px solid var(--txt-color);  
border-bottom: none;
border-left: none;  
padding: 8px 32px;
width: fit-content;
}

.otherworks__title{
color: var(--txt-color);
font-family: "Minion Pro","Lusitana";
font-size: var( --font-other-name);
font-weight: 700;
}







.other-works__list {
    display: grid;
    grid-template-columns: 1fr; /* 1列レイアウト */
    grid-auto-rows: minmax(120px, auto); /* 最小高さを設定、内容に応じて伸縮 */
    width: 100%;
}

.work__item {
    display: flex;
    width: 100%; }



.work__item__link {
    display: flex;
    width: 100%;
    border-top: 1px solid var(--txt-color);
    align-items: center;
}

.work__item__content {
    flex: 1; /* 残りの幅を占める */
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 32px;
    margin-right: 48px;
    
}

.work__item__title {
    font-size: var(--base-font-size);
    font-weight: normal;
    margin: 0;
    color: #333;
    flex: 1;
    padding-right: 20px; /* タイトルとタイプの間隔 */
    line-height: 1.4; /* 行間を統一 */
    overflow: hidden; /* 長いテキストの対応 */
    text-overflow: ellipsis; /* 省略記号 */
}

.work__item__type {
 color: var(--txt-color);
font-family: "Minion Pro","Lusitana";
font-size: var(--font-size-category);
font-weight: 400;
    white-space: nowrap; /* 改行させない */
    flex-shrink: 0; /* 縮小を防ぐ */
}

.work__item__image {
    width: 171px; /* 固定幅 */
    height: 106px; /* 固定高さ */
    flex-shrink: 0; /* 縮小を防ぐ */
    margin-right: 40px;
}

.work-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ホバー効果 */
.work__item__link:hover {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
}





.other-works__back{
    width: 100%;
    border-top: 1px solid var(--txt-color);
    text-align: center;
}

.back-link{
    display: block;
    color: var(--txt-color);
font-family: "Minion Pro","Lusitana";
font-size: var(--otherfont-size-name);
font-weight: 400;
margin: auto;
width: fit-content;
}



.other-works__back:hover {
    background-color: #f8f8f8;
    transition: background-color 0.2s ease;
}



/* scroll animation */
.work__item {
   opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-out;
}
.work__item.show {
    opacity: 1;
     transform: translateY(0);
}






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



    .otherworks__title__box
    {
    margin-top: 32px; 
    padding: 8px 24px; 
} 




.work__item__content{
    flex-direction: column;
    align-items: baseline;
    margin-right: auto;
    margin-left: 24px;
}

.work__item__type{
    margin-top:4px;
}

.work__item__image{
    margin-right: 16px;
}

.back-link{
    padding: 16px 0;
}


}
/* 遷移コントロール */
body {
    overflow-x: hidden;   
}

/* ページコンテンツの遷移 - メイン効果 */
.page__content {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.page__content.sliding {
    transform: translateX(25px); /* 右に軽くずらす */
    opacity: 0; /* ふわっと消える */
}

/* オプション：背景のフェード効果（軽微） */
.elegant__transition__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.3);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease-out;
    will-change: opacity;
}

.elegant__transition__overlay.active {
    opacity: 1;
}











/* 共通：通常 hover → 下線 */
.work__item__link:hover .work__item__title,
.work__item__link:hover .work__item__type {
  text-decoration: underline;
}



/* 現在地（active）のリンクを hover した場合 → 画像を白黒 */
.work__item__link.active:hover .work-item__img {
  filter: grayscale(100%);
}










