/* ローディング画面
================================================== */
#loading {
    width: 100vw;
    height: 100vh;
    transition: all 0.5s;
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}
.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}
.spinner > div {
    width: 8px;
    height: 8px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: var(--main-color);
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}
.spinner .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}
@-webkit-keyframes sk-bouncedelay {
    0%, 80%, 100% { -webkit-transform: scale(0.5) }
    40% { -webkit-transform: scale(1.0) }
}
@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        opacity: 0;
        -webkit-transform: scale(0.5);
        transform: scale(0.5);
    } 40% {
        opacity: 1;
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}
.spinner .text {
    margin-top: 20px;
    font-family: 'bebas';
    color: var(--main-color);
    font-size: 10px;
    letter-spacing: 0.7em;
    text-align: center;
}
.loaded {
    opacity: 0;
    visibility: hidden;
}

/* スライダー
================================================== */
.slider_wrap {
    position: relative;
}
.layer_text1 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100% ;
}
.layer_text1 img {
    width: 100%;
}
.layer_news {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    font-weight: 600;
}
.layer_news span.title {
    padding: 0 15px;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    margin-right: 15px;
}
.layer_news a {
    color: #fff;
}
@keyframes zoomIn {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
.sp-slide img.zooming {
    animation: zoomIn 4s ease-in-out forwards;
}
@media only screen and (max-width: 767px) {
    .slider_wrap {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    #slide1 {
        width: 100%;
        height: 100vw;
    }
    .sp-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .layer_text1 {
        top: auto;
        bottom: 25%;
        left: 0;
        right: ;
        transform: scale(1.8) !important;
    }
    .layer_news {
        position: absolute;
        bottom: 10px;
        left: 0;
        transform: none;
        padding: 0 5%;
    }
    .layer_news span.title {
        padding: 0 0;
        border-left: none;
        border-right: none;
        margin-right: 15px;
        display: block;
    }
    .layer_news a {
        font-size: 12px;
    }
}



/* 共通
================================================== */






/* メイン
================================================== */
#tp_main_bg {
    padding: 80px 0;
}
#tp_main_bg h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}
#tp_main_bg p {
    font-size: 20px;
    text-align: center;
}
@media only screen and (max-width: 767px) {
    #tp_main_bg {
        padding: 30px 0 0 0;
    }
    #tp_main_bg h2 {
        font-size: 20px;
    }
    #tp_main_bg p {
        font-size: 15px;
        text-align: left;
    }
}





/* 業務内容
================================================== */
.tp_business_bg {
    background: linear-gradient(270deg, var(--main-color) 0%, var(--main-color) 200px, transparent 200px, transparent 100%);
    margin-bottom: 50px;
    position: relative;
}
.tp_business_bg.reverse {
    background: linear-gradient(90deg, var(--main-color) 0%, var(--main-color) 200px, transparent 200px, transparent 100%);
}
.tp_business_bg .num {
    font-family: bebas;
    font-size: 120px;
    color: #fff;
    line-height: 1em;
    position: absolute;
    top: 30px;
    left: 30px;
}
.tp_business_bg .en {
    font-family: bebas;
    font-size: 50px;
    color: #fff;
    line-height: 1em;
    position: absolute;
    top: 30px;
    right: 20px;
    transform: rotate(90deg) translateX(100%);
    transform-origin: top right;
}
.tp_business_bg.reverse .en {
    top: 30px;
    left: 20px;
    right: auto;
    transform: rotate(-90deg) translateX(-100%);
    transform-origin: top left;
}
.tp_business_bg .num small {
    font-size: 50%;
    vertical-align: top;
    position: relative;
    top: -20px;
}
.tp_business_bg.reverse .num {
    left: auto;
    right: 30px;
}
.tp_business_wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.tp_business_wrap .photo {
    width: 50%;
}
.tp_business_bg.reverse .tp_business_wrap .photo {
    order: 1;
}
.tp_business_wrap .photo p {
    margin-left: calc(30% - 30vw);
}
.tp_business_bg.reverse .tp_business_wrap .photo p {
    margin-left: 0;
    margin-right: calc(30% - 30vw);
}
.tp_business_wrap .photo p img {
    width: 100%;
}
.tp_business_wrap .cont {
    width: calc(50% - 50px);
    margin-left: 50px;
}
.tp_business_bg.reverse .cont {
    margin-left: 0;
    margin-right: 50px;
}
.tp_business_wrap .cont h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
}
@media only screen and (max-width: 767px) {
    .tp_business_bg {
        margin-top: 30px;
        padding: 30px 0;
        background: linear-gradient(270deg, var(--main-color) 0%, var(--main-color) 50px, transparent 50px, transparent 100%);
        margin-bottom: 30px;
    }
    .tp_business_bg.reverse {
        background: linear-gradient(90deg, var(--main-color) 0%, var(--main-color) 50px, transparent 50px, transparent 100%);
    }
    .tp_business_bg .num {
        font-size: 60px;
        top: 40px;
        left: 30px;
    }
    .tp_business_bg .en {
        display: none;
    }
    .tp_business_bg .num small {
        top: -10px;
    }
    .tp_business_bg.reverse .num {
        left: auto;
        right: 30px;
    }
    .tp_business_wrap {
        display: block;
    }
    .tp_business_wrap .photo {
        width: 100%;
    }
    .tp_business_bg.reverse .tp_business_wrap .photo {
        order: 1;
    }
    .tp_business_wrap .photo p {
        margin-left: 0;
    }
    .tp_business_bg.reverse .tp_business_wrap .photo p {
        margin-right: 0;
    }
    .tp_business_wrap .cont {
        margin-top: 20px;
        width: 100%;
        margin-left: 0;
    }
    .tp_business_bg.reverse .cont {
        margin-right: 0;
    }
    .tp_business_wrap .cont h2 {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
}

/* スバル */
#tp_subaru_bg {
    padding: 80px 0;
}
#tp_subaru {
    padding: 50px;
    background: var(--main-color);
}
#tp_subaru h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
}
@media only screen and (max-width: 767px) {
    #tp_subaru_bg {
        padding: 0 0;
    }
    #tp_subaru {
        padding: 20px;
    }
    #tp_subaru h2 {
        font-size: 20px;
    }
}



/* 新着情報
================================================== */
#tp_news_bg {
    margin-top: 50px;
    padding: 80px 0;
    background: #f0f0f0;
}
#tp_news_bg h2 {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
#tp_news_bg .en {
    font-family: bebas;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 20px;
}
.tp_news_list {
    display: block;
    margin-bottom: 3px;
    display: flex;
    flex-wrap: wrap;
}
.tp_news_list .date {
    padding: 20px 50px;
    width: 230px;
    color: #fff;
    font-weight: 600;
    background: var(--main-color);
    box-sizing: border-box;
}
.tp_news_list .title {
    width: calc(100% - 230px);
}
.tp_news_list .title a {
    display: block;
    padding: 20px 20px;
    color: #444;
    background: #fff url(../img/arrow2.png) right 20px center no-repeat;
    box-sizing: border-box;
}
@media only screen and (max-width: 767px) {
    #tp_news_bg {
        margin-top: 50px;
        padding: 50px 0;
    }
    #tp_news_bg h2 {
        font-size: 24px;
        margin-bottom: 0;
    }
    #tp_news_bg .en {
        margin-bottom: 10px;
    }
    .tp_news_list {
        display: block;
        margin-bottom: 10px;
        display: block;
    }
    .tp_news_list .date {
        padding: 5px 20px;
        width: 100%;
    }
    .tp_news_list .title {
        width: 100%;
    }
    .tp_news_list .title a {
        padding: 10px 20px;
        background: #fff url(../img/arrow2.png) right 10px center no-repeat;
    }
}

