@use "global" as *;

.p-develop {
    position: relative;
    height: rem(120);
    transition: background-color .3s ease-out;
    border: 2px solid $purple;
    background-color: $white;
    @include mq(md) {
        height: rem(160);
    }
}

.p-develop:hover {
    background-color: $purple;
}

.p-develop__title {
    text-align: center;
    color: $purple;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-size: rem(20);
    font-weight: 500;
    line-height: 1.25;
    @include mq(md) {
        font-size: rem(24);
    }
}

.p-develop__title span {
    display: block;
    margin-bottom: rem(8);
    font-size: rem(32);
    @include mq(md) {
        font-size: rem(40);
        margin-bottom: rem(12);
    }
}

.p-develop__hover {
    width: calc(100% - rem(32));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: $white;
    opacity: 0;
    transition: opacity .3s ease-out;
}

.p-develop:hover .p-develop__hover {
    opacity: 1;
    z-index: 1;
}

.p-develop__hoverTitle {
    display: flex;
    column-gap: rem(8);
    font-weight: 500;
    font-size: rem(16);
    line-height: 1.25;
    @include mq(md) {
        font-size: rem(20);
    }
}

.p-develop__hoverTitle br {
    display: none;
}

.p-develop__hoverText {
    margin-top: rem(4);
    font-weight: 300;
    font-size: rem(14);
    line-height: 1.25;
    @include mq(md) {
        margin-top: rem(8);
        font-size: rem(16);
    }
}