/* ===============================================
   archive-case-study2.php 専用CSS
   single-case-study2.cssから必要な部分を移植・整理
   =============================================== */

/* archive START */
.archive-case_contents {
    width: calc((100% - 4rem) / 3);
    height: 50rem;
    border: #d6d6d9 solid 1px;
    box-sizing: border-box;
    position: relative;
}

.archive-case_contents .inner_text {
    margin-top: 1rem;
}

.archive-case_top_image {
    height: 20rem;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0rem;
    overflow: hidden;
    position: relative;
}

.archive-case_top_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-case_no_image {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 1.4rem;
    box-sizing: border-box;
}

.archive-taxonomies {
    margin-bottom: 2rem;
    max-height: 6.5rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.5rem;
}

/* スクロールバーのスタイル */
.archive-taxonomies::-webkit-scrollbar {
    width: 4px;
}

.archive-taxonomies::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.archive-taxonomies::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.archive-taxonomies::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.archive-taxonomies li {
    display: inline-block;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.archive-case_img {
    width: 100%;
    height: 4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.archive-case_img img {
    width: 6rem;
    height: 3rem;
    object-fit: contain;
}

.archive-case_company_name {
    font-size: 1.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1rem;
    font-weight: normal;
    height: 2.5rem;
    line-height: 2.5rem;
    display: block;
}

.archive-case_title {
    height: 6rem;
    font-size: 2rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 表示したい行数に調整 */
    overflow: hidden;
    margin-bottom: 4rem;
    position: relative;
    padding-right: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* next_column-custom_contents_textの::afterアイコン調整 */
.next_column-custom_contents_text.next_column-custom_contents_case_text::after {
	content: "";
	background: url(common/img/icon_list.svg);
	background-repeat: no-repeat;
	background-size: contain;
	width: 1rem;
	height: 2rem;
	position: absolute;
	bottom: 0.8rem;
	right: 2rem;
	margin: auto;
}

/* カテゴリタグのスタイル - single-case-study2.cssと同じ */
.case_study2_category_tags_industry {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    margin: 0.2rem;
    width: auto;
    min-width: 6rem;
    background-color: #8AE4AE;
    color: #FFFFFF;
    padding: 1.5px;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px solid #8AE4AE;
    border-radius: 3em;
    text-align: center;
    white-space: nowrap;
}

.case_study2_category_tags_issue {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    margin: 0.2rem;
    width: auto;
    min-width: 6rem;
    background-color: #66AEF6;
    color: #FFFFFF;
    padding: 1.5px;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px solid #66AEF6;
    border-radius: 3em;
    text-align: center;
    white-space: nowrap;
}

.case_study2_category_tags_solution {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    margin: 0.2rem;
    width: auto;
    min-width: 6rem;
    background-color: #FF8193;
    color: #FFFFFF;
    padding: 1.5px;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px solid #FF8193;
    border-radius: 3em;
    text-align: center;
    white-space: nowrap;
}

.case_study2_category_tags_period {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    margin: 0.2rem;
    width: auto;
    min-width: 6rem;
    background-color: #AEBDCC;
    color: #FFFFFF;
    padding: 1.5px;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px solid #AEBDCC;
    border-radius: 3em;
    text-align: center;
    white-space: nowrap;
}

.case_study2_category_tags_phase {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    margin: 0.2rem;
    width: auto;
    min-width: 6rem;
    background-color: #FFA28A;
    color: #FFFFFF;
    padding: 1.5px;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px solid #FFA28A;
    border-radius: 3em;
    text-align: center;
    white-space: nowrap;
}

.case_study2_category_tags_service_type {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    margin: 0.2rem;
    width: auto;
    min-width: 6rem;
    background-color: #666666;
    color: #FFFFFF;
    padding: 1.5px;
    padding-left: 1rem;
    padding-right: 1rem;
    border: 1px solid #666666;
    border-radius: 3em;
    text-align: center;
    white-space: nowrap;
}

/* レスポンシブ対応 - モバイル表示 */
@media (max-width: 768px) {
    .archive-case_contents {
        width: calc((100% - 2rem) / 2);
        height: auto;
    }
    
    .archive-case_top_image {
        height: 18rem !important;
        flex-shrink: 0;
    }
    
    .archive-taxonomies {
        max-height: 5rem;
        margin-bottom: 1.5rem;
        margin-top: 1rem;
    }
    
    .archive-case_title {
        font-size: 1.6rem;
        height: auto;
        min-height: 4rem;
        padding-right: 0;
    }
    
    .next_column-custom_contents_text.next_column-custom_contents_case_text::after {
        right: 1.5rem;
    }
    
    .archive-case_img {
        height: 3.5rem;
        margin-bottom: 0.8rem;
    }
    
    .archive-case_img img {
        height: 2.5rem;
    }
    
    .archive-case_company_name {
        font-size: 1.3rem;
        height: 2rem;
        line-height: 2rem;
    }
    
    .inner_text {
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .archive-case_contents {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .archive-case_top_image {
        height: 16rem !important;
        flex-shrink: 0;
    }
    
    .archive-taxonomies {
        max-height: 4rem;
        margin-bottom: 1rem;
        margin-top: 0.8rem;
    }
    
    .archive-case_title {
        font-size: 1.4rem;
        padding-right: 0;
    }
    
    .next_column-custom_contents_text.next_column-custom_contents_case_text::after {
        right: 1rem;
    }
    
    .archive-case_img {
        height: 3rem;
        margin-bottom: 0.6rem;
    }
    
    .archive-case_img img {
        height: 2rem;
    }
    
    .archive-case_company_name {
        font-size: 1.2rem;
        height: 1.8rem;
        line-height: 1.8rem;
    }
    
    .inner_text {
        padding: 0.8rem;
        display: flex;
        flex-direction: column;
    }
}

/* ページネーション */
.pagination-container {
    margin-top: 6rem;
    margin-bottom: 6rem;
    text-align: center;
    width: 100%;
    clear: both;
}

.pagination {
    display: inline-block;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    margin: 0 0.2rem;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    background-color: #fff;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination .page-numbers:hover {
    background-color: #ff643b;
    color: #fff;
    border-color: #ff643b;
}

.pagination .page-numbers.current {
    background-color: #ff643b;
    color: #fff;
    border-color: #ff643b;
    font-weight: bold;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-weight: bold;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .pagination .page-numbers {
        padding: 0.6rem 1rem;
        font-size: 1.4rem;
        margin: 0 0.1rem;
    }
}

@media (max-width: 480px) {
    .pagination .page-numbers {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
    }
}

/* archive END */