/*以下section模組*/

.section-block {
    width: 100%;
    height: auto;
}

.section-block:hover .section-text {
    background-color: white;
}

.section-block:hover .section-img::before {
    background-color: rgba(0, 0, 0, 0.53);
}

.section-block:hover .section-img-caption,
.section-block:hover .section-img::before {
    opacity: 1;
}

.section-img {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    transition: 300ms ease-in-out;
}

.section-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: 300ms ease-in-out;
    background-color: rgba(0, 0, 0, 0);
}

.section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-text {
    height: 300px;
    transition: 300ms ease-in-out;
}

.section-text .title {
    height: 52px;
    overflow: hidden;
}

.section-text p {
    height: 96px;
    overflow: hidden;
}

.section-img-caption {
    transition: 300ms ease-in-out;
    opacity: 0;
}
.section-img-caption.section-img-caption-company{
    opacity: 1;        
}
.caption-top {
    position: absolute;
    top: 0px;
    left: 0px;
    margin: 15px 30px;
}

.caption-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.caption-bottom {
    position: absolute;
    bottom:0px;
    left:0px;
    margin: 15px 30px;
}


/*以上section模組*/

.spirit-section .section-img {
    height: 350px;
}

.spirit-section .section-img::before {
    background: linear-gradient(45deg, #3b3225, rgba(255, 255, 255, 0.42));
}

.spirit-section .section-block:hover .section-img::before,
.section-block-company .section-img::before {
    background-color: #3b3225;
}

.spirit-section .section-block:hover .caption-top,
.spirit-section .section-block:hover .caption-bottom {
    opacity: 0;
}

.spirit-section .caption-top,
.spirit-section .caption-bottom {
    opacity: 1;
    transition: 300ms ease-in-out;
}
