/**********************************************************
                        main section                           
***********************************************************/

.mbs_bg {
   display: table;
   width: 100%;
   height: 750px;
}
.mbs_bg01 {
   background: url(../images/main_bannerslide01.jpg) no-repeat bottom center;
   background-size: cover;
}
.mbs_bg02 {
   background: url(../images/main_bannerslide02.jpg) no-repeat bottom center;
   background-size: cover;
}
.mbs_bg03 {
   background: url(../images/main_bannerslide03.jpg) no-repeat bottom center;
   background-size: cover;
}
.mbs_bg04 {
   background: url(../images/main_bannerslide04.jpg) no-repeat bottom center;
   background-size: cover;
}
.mbs_text {
   display: table-cell;
   vertical-align: middle;
}
.mbs_text > p {
   line-height: 45px;
   font-size: 30px;
   font-weight: bold;
   color: #fff;
}
.mbs_text > h2 {
   line-height: 70px;
   font-size: 50px;
   font-weight: bold;
   color: #de2727;
}
.mit_wrap {
   display: flex;
   justify-content: space-around;
   align-items: flex-start;
   margin-top: 50px;
}
.mit_list:nth-child(2) {
   animation-delay: 0.2s;
   -moz-animation-delay: 0.2s;
   -webkit-animation-delay: 0.2s;
}
.mit_list:nth-child(3) {
   animation-delay: 0.1s;
   -moz-animation-delay: 0.1s;
   -webkit-animation-delay: 0.1s;
}
.mit_list:nth-child(4) {
   animation-delay: 0.3s;
   -moz-animation-delay: 0.3s;
   -webkit-animation-delay: 0.3s;
}
.mit_list {
   opacity: 0;
}
.mit_list .mit_listicon {
   display: inline-block;
   width: 100px;
   height: 100px;
   margin-bottom: 15px;
}
.mit_list .mit_listicon01 {
   background: url(../images/main_listicon01.png) no-repeat center center;
}
.mit_list .mit_listicon02 {
   background: url(../images/main_listicon02.png) no-repeat center center;
}
.mit_list .mit_listicon03 {
   background: url(../images/main_listicon03.png) no-repeat center center;
}
.mit_list .mit_listicon04 {
   background: url(../images/main_listicon04.png) no-repeat center center;
}
.mit_list .mit_explan {
   line-height: 24px;
   font-size: 18px;
}

.main_portfolio {
   padding:100px 0;
}
.main_portfolio .mpf_img > img {
   width: 100%;
}
.main_portfolio .mpf_name {
   width: 270px;
   margin-top: 5px;
   line-height: 24px;
   font-size: 16px;
   text-overflow: ellipsis;
   white-space: nowrap;
   overflow: hidden;
}

.main_portfolio_nav{
   display: flex;
   justify-content: center;
   align-items: center;
   margin-top: 50px;
}
.main_portfolio_nav .swiper-button-next, 
.main_portfolio_nav .swiper-container-rtl .swiper-button-prev,
.main_portfolio_nav .swiper-button-prev, 
.main_portfolio_nav .swiper-container-rtl .swiper-button-next
{
   position: relative;
}

.main_portfolio_nav .swiper-button-next, 
.main_portfolio_nav .swiper-button-prev{
   width: 18px;
   color: #404040;
   height: 17px;
   margin-top: 0 !important;
   left: 0 !important;
   right: 0 !important;
}  
.main_portfolio_nav .swiper-button-next:after, 
.main_portfolio_nav .swiper-button-prev:after{
   font-size: 14px;
   font-weight: bold;
}

.mainportfolio_slide .swiper-pagination {
   position: relative;
   left:0;
   transform:translateX(0);
   margin-top: 0;
}

.main_news {
   z-index: 2;
   position: relative;
   margin: 85px 0 65px;
}
.main_news .mnw_wrap {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   margin-top: 15px;
}
.main_news .mnw_list {
   width: calc((100% - 20px * 3) / 4);
   margin-right: 20px;
   padding-bottom: 20px;
}
.main_news .mnw_list:last-child {
   margin-right: 0;
}
.main_news .mnw_imgwrap > img {
   width: 100%;
}
.main_news .mnw_title {
   width: 100%;
   margin-top: 10px;
   line-height: 24px;
   font-size: 16px;
   text-align: left;

   display: -webkit-box;
   -webkit-line-clamp: 2;
   -webkit-box-orient: vertical;
   word-wrap: break-word;
   overflow: hidden;
   text-overflow: ellipsis;
}
.main_news .mnw_list:hover .mnw_title {
   text-decoration: underline;
}
.main_onlinecs {
   background: #f6f6f6;
}
.mocs_container {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
   margin-top: 50px;
}
.mocs_content {
   width: 100%;
   max-width: 705px;
   margin: 0 auto;
}
.mocs_imgwrap {
   margin-right: 20px;
}
.mocs_imgwrap > .mocs_img {
   display: block;
   width: 415px;
   height: 535px;
   background: url(../images/main_online.jpg) no-repeat center center;
   background-size: contain;
}
.mocs_form .mocs_pvtit {
   text-align: left;
   margin-bottom: 7px;
   line-height: 24px;
   font-size: 16px;
}
.mocs_form .mocs_pvbox {
   overflow-y: scroll;
   max-height: 170px;
   padding: 22px 15px;
   background: #fff;
   border: 1px solid #bbbbbb;
   line-height: 16px;
   font-size: 14px;
   text-align: left;
   color: #888888;
}
.mocs_form .mocs_pvagree {
   margin: 7px 0 18px;
   text-align: right;
}
.mocs_form .mocs_pvagree > input[type="checkbox"] {
   cursor: pointer;
}
.mocs_form .mocs_pvagree > label {
   padding-left: 3px;
   line-height: 16px;
   font-size: 14px;
   color: #888;
   vertical-align: middle;
   cursor: pointer;
}
.mocs_form .mocs_inputwrap {
   margin-bottom: 10px;
}
.mocs_form .mocs_inputwrap:last-child {
   margin-bottom: 0;
}
.mocs_form .mocs_inputwrap > input,
.mocs_form .mocs_inputwrap > textarea {
   width: 100%;
   border: 1px solid #bbb;
   box-sizing: border-box;
   line-height: 35px;
   font-size: 14px;
   font-weight: normal;
   color: #000;
   outline: none;
}
.mocs_form .mocs_inputwrap > input {
   height: 37px;
   padding: 0 15px;
}
.mocs_form .mocs_inputwrap > textarea {
   height: 100%;
   max-height: 150px;
   padding: 7px 15px;
   line-height: normal;
}
.mocs_form .mocs_textbtn {
   display: flex;
   justify-content: space-between;
   align-items: flex-start;
}
.mocs_form .mocs_text {
   width: calc(100% - 86px - 15px);
   max-width: 604px;
   margin-right: 15px;
}
.mocs_form .mocs_submit {
   width: 86px;
   flex-shrink: 0;
   position: relative;
   text-align: center;
}
.mocs_form .mocs_submit input[type="submit"] {
   width: 100%;
   height: 150px;
   border: 1px solid #ddd;
   font-size: 0;
}
.mocs_form .mocs_submit input[type="submit"] + label {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   font-size: 14px;
   line-height: 16px;
   color: #888888;
}
.content_01{
   padding:100px 0;
   background-color: #f6f6f6;
}
.mainportfolio-container .pin_up{
   width: 90px;
   height: 40px;
   font-size: 17px;
}
.mainportfolio-container .pin_up.right{
   left: auto;
   right: 0;
   border-radius:0 0 0 10px;
   color: #000;
   background-color:#fae300 ;
}
.sub_wrap .sub_wrap_01{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
}
.sub_wrap .sub_wrap_01>div{
   display: flex;
   margin-bottom: 30px;
}

.sub_wrap .sub_wrap_01>div>a{
   margin-right: 10px;
   width: 170px;
   height: 70px;
   border-radius: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   border: solid 1px #888;
   background-color: #f6f6f6;
   font-family: SpoqaHanSans;
   font-size: 16px;
   font-weight: bold;
   color: #888;
   margin-bottom: 15px;
   transition: 0.3s;
}

.sub_wrap .sub_wrap_01>div>a:hover{
   background-color: #b61c02;
   border-color: #b61c02;
   color: #fff;
}

#co3 .background_home_ico{
   position: absolute;
   top: 35px;
   z-index: 4;
   left: -220px;
}

#co3 .background_apart_ico{
   position: absolute;
   top: 100px;
   right:-180px;
}

.sub_wrap .sub_wrap_02{
   margin-top: 50px;
   display: flex;
   justify-content: space-between;
}

.sub_wrap .sub_wrap_02 .item{
   border-radius: 20px;
   width: calc(25% - 15px);
   background-color: #fff;
   display: flex;
   flex-direction: column;
   min-height: 290px;
}
.sub_wrap .sub_wrap_02 .item_head,
.sub_wrap .sub_wrap_02 .item_body{
   padding:20px;
   width: 100%;
   display: flex;
   flex-direction: column;
   align-items: flex-start;
}
.sub_wrap .sub_wrap_02 .item_head{
   border-bottom: 1px solid #888888;
}
.sub_wrap .sub_wrap_02 .item_head>p{
   font-weight: bold;
   font-size: 17px;
}
.sub_wrap .sub_wrap_02 .item_head>span{
   margin: 5px ;
   font-size: 17px;
   color: #5f1315;
}

.sub_wrap .sub_wrap_02 .item_body>div{
   font-size: 16px;
   text-align: left;
   display: flex;
   margin-bottom: 20px;
   word-break: keep-all;
}
.sub_wrap .sub_wrap_02 .item_body>div:last-of-type{
   margin-bottom: 0;
}

.sub_wrap .sub_wrap_02 .item_body span.check_ico{
   display: inline-block;
   width: 18px;
   height: 18px;
   margin-right: 5px;
   background-image: url(../images/check_ico.png);
}
.sub_wrap .sub_wrap_02 .item_body span span{
   font-size: 12px;
   color: #404040;
}

.sub_wrap .sub_wrap_02 .item .number{
   margin: 0;
   width: 30px;
   height: 30px;
   background-color: #fff;
   display: flex;
   justify-content: center;
   align-items: center;
   border-radius: 50%;
   color: #b61c02;
}
.main_news2{
   padding:100px 0;
}
.main_news_list{
   background-color: #fdfbfb;
}

.main_news_list li{
   border-bottom: 1px solid #f6f6f6;
}
.main_news_list li:hover{
   border-color: #b61c02;
}
.main_news_list li>a{
   padding:20px 10px;

   display: flex;
   justify-content: space-between;
}
.main_news_list li>a>span{
   font-size: 16px;
   color: #888;
}

.main_news_list li>a>span:nth-of-type(1){
   color: #000;
}

.main_news_list li:hover>a>span:nth-of-type(1){
   color: #b61c02;
}
/**********************************************************
                      swiper                           
***********************************************************/
.mainbanner-container .swiper-pagination-bullet {
   width: 10px;
   height: 10px;
   background: #fff;
   opacity: 1;
}
.mainbanner-container .swiper-pagination-bullet-active {
   width: 10px;
   height: 10px;
   background: #555;
}
.mainbanner-container.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
   margin: 0 6px;
}
.mainportfolio-container.swiper-container {
   margin-left: auto;
   margin-right: auto;
}
.mainportfolio_slide .swiper-slide {
   height: calc((100% - 30px) / 2);
   margin-bottom: 15px;
}
.mainportfolio_slide .swiper-slide > a {
   width: 100%;
}
/* .mainportfolio_slide .swiper-pagination {
   left: 50%;
   transform: translateX(-50%);
   margin-top: 15px;
} */
.mainportfolio_slide .swiper-pagination-bullet {
   width: 15px;
   height: 15px;
   background: #fff;
   border: 1px solid #888888;
   border-radius: 8px;
   opacity: 1;
   outline: none;
}
.mainportfolio_slide .swiper-pagination-bullet-active {
   width: 25px;
   height: 15px;
   background: #555;
}
.mainportfolio_slide .swiper-pagination-bullets .swiper-pagination-bullet {
   margin: 0 5px;
}

/**********************************************************
                      responsive                           
***********************************************************/
@media screen and (max-width: 1140px) {
   .main_portfolio .mpf_name {
      width: calc(270vw / 1140 * 100);
      margin: 5px auto 0 auto;
   }
}
@media screen and (max-width: 1024px) {
   .mbs_bg {
      height: calc(750vw / 1024 * 100);
      min-height: 440px;
   }
   .mbs_text > p {
      line-height: normal;
      font-size: 24px;
      word-break: keep-all;
   }
   .mbs_text > h2 {
      line-height: normal;
      font-size: 40px;
      word-break: keep-all;
   }
   .main_portfolio .mpf_name {
      width: calc(270vw / 1024 * 100);
   }
   .main_onlinecs {
      padding: 20px 0;
   }
   .mocs_imgwrap {
      display: none;
   }
   .mocs_form .mocs_pvtit {
      text-align: left;
   }
   .sub_wrap .sub_wrap_02{
      flex-wrap: wrap;
   }
   .sub_wrap .sub_wrap_02 .item{
      width: calc(50% - 10px);
      margin-bottom: 20px;
   }
   #co3 .background_home_ico{
      width: 124px;
      position: absolute;
      top: auto;
      bottom: -60px;
      z-index: 4;
      left: -20px;
   }
   
   #co3 .background_apart_ico{
      display: none;
   }
   
}
@media screen and (max-width: 800px) {
   .mit_wrap {
      flex-wrap: wrap;
   }
   .mit_list {
      width: 50%;
   }
   .mit_list:nth-child(-n + 2) {
      margin-bottom: 35px;
   }
   .main_news .mnw_wrap {
      flex-wrap: wrap;
   }
   .main_news .mnw_list {
      width: calc((100% - 20px) / 2);
      margin-right: 20px;
   }
   .main_news .mnw_list:nth-child(even) {
      margin-right: 0;
   }
   .main_news .mnw_title {
      font-size: 14px;
   }
   .content_01{
      padding:55px 0;
   }
 

   .main_news{
      margin: 0;
   }

   .main_portfolio,
   .main_news2{
      padding:50px 0;
   }

   .main_news_list li>a>span{
      font-size: 14px;
   }

   .main_news_list li>a>span:nth-of-type(1){
      margin-right: 20px;
      overflow: hidden;
      text-overflow:ellipsis;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      word-wrap: break-word;
      line-height: 1;
      height: 1em;
   }

   .sub_wrap .sub_wrap_02 .item_body>div{
      font-size: 12px;
   }

   .sub_wrap .sub_wrap_02 .item_head, 
   .sub_wrap .sub_wrap_02 .item_body{
      padding:20px 10px;
   }
}
@media screen and (max-width: 640px) {
 

   .subject_wrap > p {
      font-size: 14px;
   }
   .subject_wrap > p > br {
      display: block;
   }
   .mbs_text > p {
      font-size: 18px;
   }
   .mbs_text > h2 {
      font-size: 30px;
   }
   .mit_list .mit_explan {
      line-height: 20px;
      font-size: 14px;
   }
   .main_portfolio .mpf_name {
      width: calc(270vw / 640 * 100);
      font-size: 14px;
   }
   .mainportfolio_slide .swiper-slide {
      margin-bottom: 0;
   }
}
@media screen and (max-width: 500px) {
   .mbs_text > p {
      font-size: 14px;
   }
   .mbs_text > h2 {
      font-size: 20px;
   }
}
