@charset "UTF-8";
/* CSS Document */

.flex-box {
    padding: 30px 15px 60px;
    width: calc(100% - 30px);
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
}
.flex-box li {
    margin-bottom: 30px;
    border: 0px solid #003f94;
    box-sizing: border-box;
    background-color: #002c83;
    padding: 0;
    display: flex;
    flex-flow: column;
    align-items: center;
    height: 0%;
    transition: all 1s;
}
.flex-box li:hover img{
    transform: scale(1.2);
    transition: all 1s;
    transform-origin: center;
}
.image-area {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: block;
}
.text-area {
    width: calc(100% - 40px);
    text-align: center;
    padding: 20px 20px 80px;
    height: calc(100% - 100px);
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    position: relative;
    background-color: #002c83;
    transition: background-color 1s;
}
.flex-box li:hover .text-area {
    background-color: #255cca;
    transition: background-color 1s;
}
.text-area span {
    position: absolute;
    bottom: 25px;
    transform: translateX(0%);
    color: #fff;
    font-size: 16px;
    width: auto;
    right: 30px;
    transition: right 1s;
    padding-right: 12px;
}
.text-area span::after {
    position: absolute;
    content: "";
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    right: 0;
    top: 45%;
    transform: translateY(-50%)rotate(-45deg);
}
.flex-box li:hover span{
    right: 20px;
    transition: right 1s;
}
.flex-box li h3{
    color: #fff;
    font-size: 16px;
    text-align: center;
    padding: 0 0 15px;
    border-bottom: 3px solid #fff;
    margin-bottom: 15px;
}
#contents .flex-box li p{
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 2;
    padding: 0;
    margin: 0;
}
.flex-box li:last-child{
    margin-bottom: 0;
}
.flex-box li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    font-family: 'object-fit: cover;';
    transform: scale(1);
    transition: all 1s;
}
#cta-button {
    margin: 0 auto;
    text-align: center;
}
#cta-button a {
    display: flex;
    width: 320px;
    height: auto;
    flex-flow: column;
    justify-content: center;
    color: #fff;
    margin: 0 auto 20px;
    background: linear-gradient(to right, rgba(0,203,233,1) 0%, rgba(0,91,175,1) 100%);
    opacity: 1;
    transition: opacity 1s;
}
#cta-button a:hover{
    opacity: 0.7;
    transition: opacity 1s;
}
#cta-button a img {
    width: 100%;
    height: auto;
}
#cta-button a p{
    color: #fff;
    padding: 10px;
}
#cta-button a span {
    position: relative;
}
#cta-button a span::after {
    position: absolute;
    content: "";
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    right: 15px;
    top: 50%;
    transform: translateY(-50%)rotate(-45deg);
}
#contact-button {
    margin: 40px auto 0;
    text-align: center;
}
#contact-button a {
    display: flex;
    width: 320px;
    height: 60px;
    flex-flow: column;
    justify-content: center;
    color: #fff;
    margin: 0 auto 20px;
    background: linear-gradient(to right, rgba(0,203,233,1) 0%, rgba(0,91,175,1) 100%);
    opacity: 1;
    transition: opacity 1s;
    font-size: 14px;
    letter-spacing: 0;
}
#contact-button a:hover{
    opacity: 0.7;
    transition: opacity 1s;
}
#contact-button a span {
    position: relative;
}
#contact-button a span::after {
    position: absolute;
    content: "";
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    right: 15px;
    top: 50%;
    transform: translateY(-50%)rotate(-45deg);
}
@media screen and (min-width:768px){
.flex-box {
    padding: 30px 30px 60px;
    width: calc(100% - 60px);
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
.flex-box li {
    margin-bottom: 7%;
    width: 100%;
    flex-flow: row nowrap;
    height: auto;
}
.image-area {
    width: 55%;
}
.text-area {
    width: calc(45% - 40px);
    text-align: center;
    padding: 20px;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    position: relative;
    height: calc(100% - 40px);
}
.flex-box li h3 {
    text-align: left;
    padding: 0 0 20px;
    border-bottom: 3px solid #fff;
    margin-bottom: 20px;
}
#contents .flex-box li p {
    text-align: left;
}
.text-area span {
    position: absolute;
    bottom: 20px;
}
#cta-button a {
    display: flex;
    width: 320px;
    height: auto;
}
#cta-button a span::after {
    position: absolute;
    content: "";
    width: 12px;
    height: 12px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    right: 30px;
    top: 50%;
    transform: translateY(-50%)rotate(-45deg);
}
}
@media screen and (min-width:960px){
.flex-box {
    padding: 60px 0;
    width: 100%;
    margin: 0 auto;
    max-width: 960px;
}
.flex-box li h3 {
    text-align: left;
    font-size: 21px;
    padding: 0 0 20px;
    border-bottom: 3px solid #fff;
    margin-bottom: 20px;
}
#contents .flex-box li p {
    text-align: left;
    font-size: 14px;
}
#cta-button a {
    display: flex;
    width: 420px;
    height: auto;
    flex-flow: column;
    justify-content: center;
}
#contact-button a {
    display: flex;
    width: 420px;
    height: 70px;
    flex-flow: column;
    justify-content: center;
    font-size: 16px;
}
}
@media screen and (min-width:1024px){
.flex-box {
    padding: 60px 0;
    width: 100%;
    max-width: 960px;
}
.image-area {
    width: 60%;
}
.text-area {
    width: calc(55% - 80px);
    text-align: center;
    padding: 40px;
    height: calc(100% - 80px);
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    position: relative;
}
.text-area span {
    position: absolute;
    bottom: 40px;
    transform: translateX(0%);
    color: #fff;
    font-size: 16px;
    width: auto;
    right: 50px;
}
.flex-box li:hover span{
    right: 40px;
    transition: right 1s;
}
}
@media screen and (min-width:1281px){
.flex-box {
    padding: 60px 0;
    width: 100%;
    max-width: 1100px;
}
.text-area {
    width: calc(55% - 80px);
    text-align: center;
    padding: 40px;
    height: calc(100% - 80px);
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    position: relative;
}
.flex-box li h3 {
    text-align: left;
    font-size: 28px;
    padding: 0 0 20px;
    border-bottom: 3px solid #fff;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
#contents .flex-box li p {
    text-align: left;
    font-size: 18px;
}
}
@media screen and (min-width:1441px){

}  