/* Case Study Page Styles */
.casestudy-page-wrapper {
    width: 100%;
}

/* Hero Section */
.casestudy-hero {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 80px;
    overflow: hidden;
}

.casestudy-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.casestudy-hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.casestudy-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.casestudy-subheading {
    font-size: 13px;
    letter-spacing: 0.065em;
    margin-bottom: 0px;
    color: #3E3E3E;
    font-weight: normal;
    font-family: 'Montserrat', sans-serif;
}

.casestudy-title {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.5;
    color:#3E3E3E;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.casestudy-title-image {
    margin-bottom: 15px;
}

.casestudy-title-image img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

/* Case Study Grid Section */
.casestudy-grid-section {
    padding: 0 5rem;
    margin-bottom: 80px;
}

.casestudy-grid-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.casestudy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    margin: 0 auto;
}

.casestudy-item {
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: block;
}

.casestudy-item:hover {
    transform: translateY(-5px);
}

.casestudy-item-image {
    width: 559px;
    height: 377px;
    object-fit: cover;
    margin-bottom: 15px;
}

.casestudy-item-content {
    padding: 0 0px 20px;
    padding-left: 0;
}

.casestudy-item-date {
    font-size: 14px;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid #231815;
}

.casestudy-item-title {
    font-size: 14px;
    margin: 1.5rem 0 0;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333;
    font-weight: normal;
}

/* Animation Classes */
.fade-in {
    opacity: 1;
    transform: translateY(0px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .casestudy-item-image {
        width: 100%;
        height: calc((100vw - 10rem - 45px) / 2 * 0.674);
    }
}

@media (max-width: 768px) {
    .casestudy-grid-section {
        padding: 0 2rem;
    }

    .casestudy-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .casestudy-item-image {
        height: calc((100vw - 4rem) * 0.674);
    }

    .casestudy-hero {
        height: 300px;
        margin-bottom: 60px;
    }

    .casestudy-title {
        font-size: 28px;
    }

    .casestudy-subheading {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .casestudy-grid-section {
        padding: 0 1rem;
    }

    .casestudy-item-image {
        height: calc((100vw - 2rem) * 0.674);
    }

    .casestudy-hero {
        height: 250px;
        margin-bottom: 40px;
    }

    .casestudy-title {
        font-size: 24px;
    }

    .casestudy-subheading {
        font-size: 11px;
    }
}

/* Image Banner Section */
.image-banner {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 80px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
}

.banner-title {
    font-size: 32px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    line-height: 1.5;
    font-family: 'Noto Sans JP', sans-serif;
}

.banner-title-image {
    margin-bottom: 15px;
}

.banner-title-image img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

.banner-subtitle {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    font-family: 'Montserrat', sans-serif;
}

.banner-text {
    font-size: 14px;
    color: #fff;
    margin-bottom: 40px;
    line-height: 2;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn {
    display: inline-block;
    max-width: 231px;
    width: 100%;
    font-size: 13px;
    letter-spacing: 0.065em;
    line-height: 15.95px;
    padding: 10px 15px;
    background-color: white;
    color: var(--primary-color);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #fff;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background-color: transparent;
    color: #fff;
}

@media (max-width: 768px) {
    .image-banner {
        height: 350px;
        margin-bottom: 60px;
    }

    .banner-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .banner-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .banner-text {
        font-size: 13px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .image-banner {
        height: 300px;
        margin-bottom: 40px;
    }

    .banner-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .banner-subtitle {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .banner-text {
        font-size: 12px;
        margin-bottom: 25px;
    }
}

/* Case Study Single Page */
.case-study-single {
    max-width: 1000px;
    margin: 80px auto;
    padding: 0 20px;
}

.case-study-header {
    margin-bottom: 30px;
}

.case-study-date {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #231815;
}

.case-study-title {
    font-size: 28px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.case-study-content {
    line-height: 1.8;
}

.case-study-content p {
    margin-bottom: 20px;
}

.case-study-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.case-study-back {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.case-study-back:hover {
    background-color: #000;
    color: #fff;
}

@media (max-width: 768px) {
    .case-study-single {
        margin: 60px auto;
    }
    
    .case-study-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .case-study-single {
        margin: 40px auto;
    }
    
    .case-study-title {
        font-size: 20px;
    }
}