.title-description {
    text-align: center;
    margin:4rem auto 3rem;
}

.logo-container {
    max-width: 72.875rem;
    margin: 3.75rem auto 0;
    padding: 2.5rem 9vw;
    border-radius: 1.25rem;
    background: #FFF;
    box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.15);
}
  /* Logos Grid */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo-item {
    background-color: white;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-width: 180px;
    max-height: 2.5rem;
    height: auto;
    object-fit: contain;
}

  /* Company List */
.company-list {
    margin: 3rem 0;
}

.company-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 2rem;
    margin-left: 1.5vw;
}

.company-list li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.client-etc {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 3rem;
}
  /* Responsive Design */
@media (max-width: 1200px) {
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}
  /* Responsive Design */
@media (max-width: 768px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

  /* Company List */
    .company-list {
        text-align: center;
    }

    .company-list ul {
        grid-template-columns: 1fr;
    }
    .client-etc {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 300px) {
    .logos-grid {
        grid-template-columns: 1fr;
    }
}



/* コンサルティング事例（Works） ==============================================*/

#clientPage-works .works-section {
    flex-direction: column;
    margin-top: 0;
}
#clientPage-works .main-title{
    padding-top: 3.13rem;
    border-top: 1px solid #707070;
}

#clientPage-works .case-studies {
    grid-template-columns: repeat(3,1fr);
    max-width: none;
    gap: 1.5rem;
    display: grid;
    margin-top: 3.75rem;
    /* max-width: 60rem;
    grid-template-rows: 29.0625rem;
    justify-content: center;

    gap: 3.5rem;
    justify-items: center; */
}
#clientPage-works .case-study-content {
display: flex;
    justify-content: center;
    position: relative;
}
.case-study-content  {   
    display: flex;
    flex-direction: column;
}
.case-study-bg {
    display: flex;
    flex-direction: column;
    position: relative;
    background: rgba(0,84,125,0.8);
    border-radius: 0.75rem;
    align-items: center;
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.16);
    margin-left: 0;
}
.case-study {
    height: 15rem;
    padding: 1rem;
    flex-direction: column;
    justify-content: center;
    color: white;
}
.case-study-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    transform: scale(1);
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s ease;    
}
.case-study-imgwrap {
    width: 100%;
    height: 16.46188rem;
    border-radius: 0.75rem 0.75rem 0 0;
    overflow: hidden;
}
  /* 残りのスタイルは変更なし */
  @media (hover: hover) and (pointer: fine) {
    .case-study-bg:hover .case-study-image {
            transform: scale(1.1);
        }
    }


.case-study-ttl {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.6875rem; /* 135% */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}

.case-study-tags-rapper {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: 1.06rem;
}

.case-study-tags {
    display: flex;
    gap: 0.62rem;
}

.tag {
    width: 5.3125rem;
    height: 1.875rem;    
    background: white;
    color: #00547D;
    border-radius: 2rem;
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tag-con-support {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.tag-con {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.case-study-location {
    font-size: 0.875rem;
    opacity: 0.9;
}

.case-study-link::after {
    content: "→";
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.case-study-company {
    text-align: start;
    font-family: "Noto Sans JP";
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: .94rem;
}

.pagination {
    margin-top: 5rem;
}

@media (hover: hover) and (pointer: fine) {
.case-study-link:hover::after {
    transform: trans;
}
}

@media (max-width: 1200px) {
.tags-container {
    grid-template-columns: repeat(3, 14.375rem);
    grid-template-rows: repeat(2, 2.8125rem);
}
	
	#clientPage-works .case-studies {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: none;
    margin-top: 3.75rem;
		
}
	#clientPage-works .case-studies .case-study-content:last-child {
		display:none;
	}

.case-study {
    width: 100%;
    height: 50%;
    padding: 1.25rem 1rem;
    margin-left: 0;
}

.case-study-tags-rapper {
    gap: .31rem;
    margin-top: 1.25rem;
}
	#clientPage-works .case-study-bg {

    margin-left: 0;
    gap: 0;
     height: 28.125rem;
     width: auto;
}
.case-study1 {
    margin-right: 0;
}

.case-study-imgwrap {
    width: 100%;
    height: 45%;
    margin-right: 0rem;
    border-radius: 0.75rem 0.75rem 0rem 0rem;
}

.imgwrap1 {
    margin-left: 0;
}

.case-study-image {
    width: 100%;
    margin: auto;
    border-radius: 0.75rem 0.75rem 0rem 0rem;
}

.case-study-bg1 {
    margin-right: 0;
}

.case-study-company {
    font-size: 0.875rem;
}
.tag-con-support {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.tag-con {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.case-study-ttl {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6875rem; /* 150% */
}
}


@media (max-width: 768px) {
    .tags-container {
        grid-template-columns: repeat(2, 10.625rem);
        grid-template-rows: auto;
    }
    .tag-button {
        width: 10.625rem;
        height: 2.5rem;
    }

    .works-section {
        padding: 0 5vw;
        margin: 0 auto;
    }
    .case-study-content {
        max-width: 20rem;
    }
    .case-studies {
        grid-template-columns: repeat(1,1fr);
        justify-content: center;
    }
		#clientPage-works .case-studies .case-study-content:last-child {
		display:block;
	}
}



/* クライアント一覧ページ、スマホ表示のカルーセル表示のためのレイアウト */


#clientPage-works #case-studies-sp {
    display: none;
}
#clientPage-works .works-text,
#clientPage-works .works-label-content,
#clientPage-works .works-company {
    color: white;
}

#clientPage-works  .works-label-title {
    background: white;
    color: #00547D;
}



/* Splide カスタマイズ */
#clientPage-works .works-card {
    background: none;
    box-shadow: none;
}

    /* ページネーション全体（カルーセルのすぐ下に配置） */
    #clientPage-works .splide__pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px; /* ドットの間隔 */
        bottom: -1.5rem; /* カードとページネーションの間隔 */
    }


        /* 各ページネーションのドット */
        #clientPage-works .splide__pagination__page {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: #D9D9D9; /* 通常時のカラー */
            transition: background 0.3s ease;
        }
    
        /* アクティブなページネーション（現在表示中のスライド） */
        #clientPage-works .splide__pagination__page.is-active {
            background: #00547D; /* 選択中のカラー */
        }
        
        @media (max-width: 768px) {

#clientPage-works #case-studies-sp {
    display:flex;
    margin-top: 4rem;
}
#clientPage-works .button-wrapper {
    margin-top: 2rem;
    margin-bottom: 2.25rem;
}
#clientPage-works .view-all-button {
    margin-top: 4rem;
}
}
