@charset "UTF-8";

/* Container */
.case-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Page Header */
.case-archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.case-archive-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    font-family: "LINE Seed JP", sans-serif;
}

.case-archive-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

/* Grid Layout */
.case-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Card Style */
.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Image */
.case-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-card-image img {
    transform: scale(1.05);
}

/* Content */
.case-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card-meta {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.case-card-category {
    font-size: 0.75rem;
    background-color: #eefbff;
    color: #229EBC;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.case-card-date {
    font-size: 0.8rem;
    color: #999;
}

.case-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #333;
    font-family: "LINE Seed JP", sans-serif;
}

.case-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    color: #229EBC;
    font-weight: bold;
    font-size: 0.9rem;
}

.case-card-footer span {
    margin-right: 5px;
}

.case-card-footer i,
.case-card-footer svg {
    transition: transform 0.3s ease;
}

.case-card:hover .case-card-footer i,
.case-card:hover .case-card-footer svg {
    transform: translateX(5px);
}

/* Pagination */
.case-pagination {
    margin-top: 60px;
    text-align: center;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .case-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 600px) {
    .case-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-archive-title {
        font-size: 2rem;
    }
}

/* Single Case Study */
.case-single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.case-single-header {
    margin-bottom: 40px;
    text-align: center;
}

.case-single-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    font-family: "LINE Seed JP", sans-serif;
}

.case-single-thumbnail {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.case-single-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.case-single-content h2 {
    font-size: 1.6rem;
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: bold;
    border-bottom: 2px solid #229EBC;
    padding-bottom: 5px;
    font-family: "LINE Seed JP", sans-serif;
}

.case-single-content h3 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
    border-left: 5px solid #229EBC;
    padding-left: 15px;
}

.case-single-navigation {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-back:hover {
    background-color: #f9f9f9;
    color: #333;
    border-color: #ccc;
    transform: translateY(-2px);
}