#caseStudy {
    margin-top: 113px;
    color: #173b57;
    background: #fff;
    font-family: "Noto Sans JP", sans-serif;
}

#caseStudy *,
#caseStudy *::before,
#caseStudy *::after {
    box-sizing: border-box;
}

#caseStudy a {
    color: #27459F;
    text-decoration: none;
    font-weight: 600;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: 2.4px;
}

.case-mobile-only {
    display: none;
}

.case-hero {
    position: relative;
    height: 490px;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #edf2f6;
}

.case-hero__image {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}

.case-hero__image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.88) 24%, rgba(255, 255, 255, 0.18) 58%, rgba(255, 255, 255, 0) 100%);
}

.case-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.case-hero__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 1300px);
    min-height: 490px;
    margin: 0 auto;
}

.case-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
    color: #35474E;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.08em;
    margin-top: 25px;
}

#caseStudy .case-breadcrumb a {
    color: #aaa;
    font: inherit;
    letter-spacing: inherit;
    transition: color 0.2s ease;
}

#caseStudy .case-breadcrumb a:hover {
    color: #1c8fbd;
}

.case-breadcrumb span::before {
    content: ">";
    margin-right: 10px;
    color: inherit;
}

.case-hero__content {
    max-width: 870px;
}

.case-hero__label {
    margin: 0 0 18px 6px;
    color: #2f5fb2;
    font-size: 20px;
    font-weight: 600;
}

.case-hero h1 {
    color: #00549b;
    letter-spacing: 4.6px;
    font-size: 46px;
    line-height: 80px;
    text-align: left;
    margin: 0;
    margin-bottom: 36px;
    font-weight: 700;
}

.case-hero__content p:not(.case-hero__label) {
    margin: 0 0 14px;
    color: #044B89;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.65;
    width: min(100%, 763px);
    letter-spacing: 2px;
}

.case-list {
    padding: 40px 0px 99px 0px;
    background: #fff;
}

.case-list__inner {
    width: min(100%, 1248px);
    margin: 0 auto;
}

.case-list__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.case-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px;
}

.case-card {
    display: flex;
    min-width: 0;
    min-height: 348px;
    overflow: hidden;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e8ee;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(25, 69, 110, 0.05);
}

.case-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eaf2f7;
}

.case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.28s ease;
}

.case-card:hover .case-card__image img {
    transform: scale(1.035);
}

.case-card__category {
    position: absolute;
    top: 14px;
    left: 15px;
    z-index: 1;
    max-width: calc(100% - 22px);
    padding: 10px 18px 10px 16px;
    color: #2f5fb2;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    box-shadow: 0 2px 7px rgba(25, 69, 110, 0.08);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.case-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 14px 22px 13px 26px;
}

.case-card h3 {
    margin: 0 0 10px;
    color: #265bb1;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.42;
}

.case-card h3 a {
    transition: color 0.2s ease;
}

#caseStudy .case-card__title {
    font-size: 24px;
}

.case-card h3 a:hover {
    color: #0e8fc0;
}

#caseStudy .case-card__details {
    display: block;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

.case-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.case-card__tags li {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 18px 4px 16px;
    color: #6c7780;
    background: #fff;
    border: 1px solid #cfd7de;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.case-card__body p {
    margin: 0;
    color: #555555;
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 1.6px;
}

.case-card__link {
    align-self: flex-end;
    margin-top: auto;
    padding-top: 10px;
    color: #2d5dac;
    font-weight: 800;
    line-height: 1.4;
}

#caseStudy .case-card__link {
    font-size: 16px;
}

.case-card__link::after {
    content: ">";
    margin-left: 5px;
}

.case-card__link:hover {
    color: #0e8fc0;
}



@media (max-width: 992px) {
    #caseStudy {
        margin-top: 84px;
    }

    .case-hero {
        min-height: 360px;
    }

    .case-hero__image {
        width: 100%;
        opacity: 0.2;
    }

    .case-hero__image::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 100%);
    }

    .case-hero__inner {
        width: min(100%, 720px);
        min-height: 360px;
        padding: 28px 24px 42px;
    }

    .case-breadcrumb {
        margin-bottom: 34px;
    }
}

@media (max-width: 767.98px) {
    #linkasia.case-study-page {
        min-width: 0;
    }

    #caseStudy {
        margin-top: 51px;
    }

    .case-mobile-only {
        display: block;
    }

    .case-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        min-height: 0;
        padding-top: 10px;
        border-bottom: 0;
    }

    .case-hero__inner,
    .case-hero__content {
        display: contents;
    }

    .case-breadcrumb {
        order: 0;
        gap: 6px;
        margin: 0 12px 12px;
        font-size: 13px;
    }

    .case-breadcrumb span::before {
        margin-right: 8px;
    }

    .case-hero__label {
        order: 1;
        margin: 0 12px 11px;
        font-size: 15px;
        letter-spacing: 0.08em;
    }

    .case-hero h1 {
        order: 2;
        margin: 0 12px 14px;
        color: #0d5f81;
        font-size: 21px;
        line-height: 1.4;
        letter-spacing: 0.06em;
    }

    .case-hero__image {
        position: relative;
        order: 3;
        width: 100%;
        height: auto;
        aspect-ratio: 1.88;
        opacity: 1;
    }

    .case-hero__image::before {
        content: none;
    }

    .case-hero__image picture,
    .case-hero__image img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .case-hero__image img {
        object-position: center;
    }

    .case-hero__content p.case-hero__intro {
        order: 4;
        width: auto;
        margin: 20px 12px 0;
        color: #27459f;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.06em;
    }

    .case-hero__content .case-hero__intro + .case-hero__intro {
        order: 5;
        margin-top: 26px;
    }

    .case-list {
        padding: 32px 12px 64px;
    }

    .case-card-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .case-card {
        min-height: 0;
        border-color: #d8d8d8;
        border-radius: 16px;
        box-shadow: none;
    }

    .case-card__image {
        height: auto;
        aspect-ratio: 615 / 358;
    }

    .case-card__image img {
        display: block;
    }

    .case-card__category {
        top: 14px;
        left: 14px;
        max-width: calc(100% - 28px);
        padding: 10px 14px;
        font-size: 16px;
        line-height: 1.4;
        letter-spacing: 0.04em;
        border-radius: 10px;
        box-shadow: none;
    }

    .case-card__body {
        padding: 12px 10px 16px;
    }

    .case-card h3 {
        margin-bottom: 12px;
    }

    #caseStudy .case-card__title {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.55;
        letter-spacing: 0.06em;
    }

    .case-card__tags {
        gap: 6px;
        margin-bottom: 16px;
    }

    .case-card__tags li {
        min-height: 24px;
        padding: 2px 10px;
        font-size: 14px;
        line-height: 1.3;
        letter-spacing: 0.04em;
        border-radius: 4px;
    }

    .case-card__body p {
        font-size: 14px;
        line-height: 1.75;
        letter-spacing: 0.06em;
    }

    #caseStudy .case-card__link {
        padding-top: 14px;
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 374px) {
    #linkasia.case-study-page #contact .clr-action {
        max-width: calc(100% - 24px);
    }
}
