.oe-service {
    --oe-service-navy: #0a367b;
}

.oe-service-wrap {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.oe-service-hero {
    position: relative;
    height: 290px;
}

.oe-service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.4);
}

.oe-service-hero-img,
.oe-service-hero-img img {
    width: 100%;
    height: 100%;
}

.oe-service-hero-img img {
    display: block;
    object-fit: cover;
}

.oe-service-hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    color: #ffffff;
}

.oe-service-hero-title p {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.oe-service-sec01 {
    margin-top: 120px;
}

.oe-service-intro {
    margin-bottom: 45px;
    text-align: center;
}

.oe-service-intro h1 {
    margin: 0 0 35px;
    color: var(--oe-service-navy);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.oe-service-intro p {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.oe-service-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.oe-service-list li {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.oe-service-media {
    font-size: 0;
}

.oe-service-media img {
    display: block;
    width: 100%;
    height: auto;
}

.oe-service-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 10%;
    background-color: #0a357bb5;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.oe-service-list li:hover .oe-service-caption {
    opacity: 1;
}

.oe-service-caption p {
    margin: 0;
}

.oe-service-caption p:first-child {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 700;
}

.oe-service-caption p:nth-child(2) {
    font-size: 18px;
    font-weight: 400;
}

.oe-service-caption span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.oe-service-sec02 {
    position: relative;
    margin-top: 120px;
}

.oe-service-buy-media {
    height: 620px;
    font-size: 0;
}

.oe-service-buy-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oe-service-buy-copy {
    position: absolute;
    top: 100px;
    left: 50%;
    z-index: 1;
    width: 100%;
    transform: translateX(-50%);
    color: #ffffff;
    text-align: center;
}

.oe-service-buy-copy h2 {
    margin: 0 0 35px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.oe-service-buy-copy p {
    margin: 0;
    font-size: 20px;
    line-height: 1.5;
}

@media all and (max-width: 860px) {
    .oe-service-hero {
        height: 190px;
    }

    .oe-service-hero-title p {
        font-size: 24px;
    }

    .oe-service-sec01 {
        margin-top: 65px;
    }

    .oe-service-intro {
        margin-bottom: 25px;
    }

    .oe-service-intro h1 {
        margin-bottom: 20px;
        font-size: 20px;
    }

    .oe-service-intro p {
        font-size: 16px;
    }

    .oe-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 20px;
    }

    .oe-service-list li {
        border-radius: 0;
    }

    .oe-service-media {
        overflow: hidden;
        border-radius: 30px;
    }

    .oe-service-caption,
    .oe-service-list li:hover .oe-service-caption {
        position: static;
        width: auto;
        height: auto;
        padding: 10px 5px;
        background: transparent;
        color: #000000;
        opacity: 1;
    }

    .oe-service-caption p:first-child {
        font-size: 16px;
    }

    .oe-service-caption p:nth-child(2) {
        font-size: 14px;
    }

    .oe-service-sec02 {
        margin-top: 65px;
    }

    .oe-service-buy-media {
        height: 440px;
    }

    .oe-service-buy-copy {
        top: 50px;
    }

    .oe-service-buy-copy h2 {
        font-size: 20px;
    }

    .oe-service-buy-copy p {
        font-size: 16px;
    }
}

@media all and (max-width: 450px) {
    .oe-service-intro br,
    .oe-service-buy-copy br {
        display: none;
    }
}
