﻿:root {
    --color1: #033059;
    --color3: #ba161f;
    --linkStyle: #ba161f;
    --bd: 4px solid var(--black);
}

nav#pc_nav a{
    font-weight: bold;
}

.cate_title{
    font-weight: bold;
}

#main_img .back{
        object-fit: cover;
    height: 100%;
        object-position: bottom right;
}

#main_img:before {
    opacity: 1;
    background-color: transparent;
    border: 2.8vw solid white;
    box-sizing: border-box;
}

header #header{
    padding-top: 20px;
}

header #header h1#logo{
    max-width: 180px;
}

#cms_5-b .cate_box .open_bt .box_title1::before, .cms_5-b .cate_box .open_bt .box_title1::before {
 display: none;
}

#cms_5-b .cate_box .open_bt .box_title1, .cms_5-b .cate_box .open_bt .box_title1 {
    margin-left: 80px;
}

#main_img h2 img{
    max-width: 380px;
}

#main_img:after{
    content: "";
    display: block;
    width: 100%;
    height: 110%;
    position: absolute;
    top: 0%;
    left: 40%;
    background-image: url(/files/img/truck.png);
    background-position: top left;
    background-repeat: no-repeat;
    /* -webkit-transform: translate(-50%, -50%); */
    /* transform: translate(-50%, -50%); */
    background-size: auto 100%;
    pointer-events: none;
    z-index: 1;
}

#main_img .txt > div {
    font-size: 20px;
    margin: 25px 0;
}

.border_color3, .hvr_border_color3:hover {
    border-color: var(--gray);
}

#main_img a{
    max-width: 300px;
    display: block;
}

#main_img .txt {
    top: 30%;
}

.intro_title h2{
    font-size: 35px;
}

#main_img {
    z-index: 3;
    height: 100vh;
    border-bottom: var(--bd);
}

#wrap{
        border: 6px solid black;
        border: var(--bd);
}

#contents1{
    padding-top: 0;
    padding-bottom: 0;
    border-top: var(--bd);
    border-bottom: var(--bd);
}

#intro .intro_bg, #intro .bg_box {
    border-right: var(--bd);
    border-bottom: var(--bd);
}

#intro{
    z-index: 1;
        background-image: url(/files/img/logon.png);
    background-position: right center;
}

.border_color4, .hvr_border_color4:hover {
    border-color: var(--gray);
}

    #page_title .box {
        border-bottom: var(--bd);
    }

.box_title1{
    font-weight: bold;
}

#page8 #contact_tel_wrap > a{
    max-width: 350px;
    display: block;
    margin: auto;
}

p#page-top a img{
        max-width: 25px;
    display: block;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 47.5%;
    left: 50%;
}

#cms_5-f .cate_box .open_bt .box_title1:before, .cms_5-f .cate_box .open_bt .box_title1:before{
    display: none;
}
 
#cms_5-f .cate_box .open_bt .box_title1, .cms_5-f .cate_box .open_bt .box_title1 {
    margin-left: 50px;
}



/* ---------- タブレット ---------- */
@media screen and (max-width: 768px){
header #header {
    padding-top: 0px;
}

#contents1 {
   padding-top: 100px;
   padding-bottom: 100px;
}

}

/* ---------- スマートフォン ---------- */

@media screen and (max-width: 667px){

header{
    border-right: 6px solid #033059;;
}

#wrap{
    border: none;
}

#cms_5-b .cate_box .open_bt .box_title1, .cms_5-b .cate_box .open_bt .box_title1 {
    margin-left: 70px;
}

#main_img:after {
    width: 100%;
    left: 0%;
    background-position: bottom left;
    background-size: 140% auto;
}

#main_img .txt {
    top: 15%;
    margin: auto;
    width: 70% !important;
    left: 8%;
}

#contents1 {
   padding-top: 50px;
   padding-bottom: 50px;
}

.top_cms_box h2 span{
    display: block;
}

.intro_title h2.sp_txt{
    font-size: 28px;
    font-feature-settings: "palt";
}

}


@media screen and (max-width: 400px) and (max-height: 670px){

#main_img:after {
    background-size: 110% auto;
        width: 95%;
        left: 5%;
}

}