@charset "utf-8";
/*-------------------------
 共通
-------------------------*/
body{
    position: relative;
}
header,footer{
    background: #fff;
}
.line2{
    background: #E5E5E5;
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 36.8%;
    z-index: -1;
}
.line3{
    background: #E5E5E5;
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 63%;
    z-index: -1;
}
main .green{
    color: #50B363;
}
main .sec{
    position: relative;
}
h2{
    font-size: clamp(3rem, 7vw, 10rem);
    font-weight: 600;
    margin-left: -9px;
}
h2.mb{
    margin-bottom: 19px;
}
h3{
    font-size: clamp(1.6rem, 3vw, 3rem);  
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
h3.mb{
    margin-bottom: 35px;
}
h3 span{
    color: #50B363;
    font-size: 2rem;
    margin-right: 5px;
}
.honbun18{
    font-size: 1.8rem;
}
.viewmore{
    width: 185px;
    display: block;
    background: #F0F0F0;
    border-radius: 100px;
    padding: 12px 84px 12px 24px;
    font-size: 1.6rem;
    margin-top: 35px;
    position: relative;
}
.viewmore:after {
    position: absolute;
    top: 50%;
    right: 28px;
    -webkit-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
    content: "";
    background-image: url("../../img/more.svg");
    width: 20px;
    height: 20px;
    transition: all 0.3s ease 0s;
    background-repeat: no-repeat;
}
.viewmore:hover{
    background: #94dca2;
}
.viewmore:hover:after{
    position: absolute;
    top: 50%;
    right:20px;
    -webkit-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
    content: "";
    background-image: url("../img/btn_point_hover.png");
    width: 36px;
    height: 36px;
    background-repeat: no-repeat;
}
@media only screen and (max-width: 767px){  
    .line2{
        left: 36.8%;
    }
    .line3{
        left: 63%;
    }
    h2{
        font-size: 4rem;
        margin-left: -3px;
    }
    h2.mb{
        margin-bottom: 5%;
    }
    h3{
        font-size: 1.5rem;
        margin-bottom: 4%;
    }
    h3.mb{
        margin-bottom: 5%;
    }
    h3 span{
        font-size: 1.5rem;
    }
    .honbun18{
        font-size: 1.5rem;
    }
    .viewmore{
        width: 90%;
        display: block;
        background: #F0F0F0;
        border-radius: 100px;
        padding: 12px 84px 12px 24px;
        font-size: 1.5rem;
        margin: 5% auto 0;
        position: relative;
    }
}/*-spend*/

/*-------------------------
 MV
-------------------------*/
.mv{
    position: relative;
}
.mv .box {
    margin-bottom: 0!important;
    position: relative;
}
.mv .box:before{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    background: #0000003b;
    z-index: 1;
}
.mv .inner{
    width: 100%;
    max-width: 100%;
}
.mv .copy{
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 4vw;
    -webkit-transform: translate(0%, -50%);
    transform: translate(0%, -50%);
}
.mv h1{
    font-size: clamp(3rem, 7vw, 10rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.mv .copy p{
    font-size: clamp(1.6rem, 3vw, 3rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
    margin-top: 18px;
}
/*.mv.fourth-active .copy{
    background: #ffffffc2;
    left: 0;
    padding: 4vw;
}*/

/*文字反転*/
.mv.twentysecond-active h1{
    color: #333333;
}
.mv.twentysecond-active h1 .green{
    color: #50B363;
}
.mv.twentysecond-active:before{
    display: none;
}
.mv.twentysecond-active .copy p{
    color: #333333;
}
.mv.twentysecond-active .copy p .green{
    color: #50B363;    
}
@media only screen and (min-width: 768px){  
    .mv .sp{
        display: none!important;
    }
}/*-spend*/
@media only screen and (max-width: 767px){  
    .mv{
            margin-top: 80px;
    }
    .mv .inner{
        width: 100%;
        max-width: 100%;
    }
    .mv h1{
        font-size: 3rem;
    }
    .mv .copy p{
        font-size:1,5rem;
    }
    .mv .pc{
        display: none!important;
    }
}/*-spend*/



/*-------------------------
キーワード
-------------------------*/
main .sec1{
    margin-top: 0;
    height: 165px;
    justify-content: flex-start;
    align-items: center;
    background:#f7f7f7;
}
/*main .sec1 img{
    height: 165px;
}*/
main .sec1 .flex{
    justify-content: flex-start;
    padding: 17px 0;
        flex-wrap: nowrap;
}
main .sec1 .flex li{
    margin-right: 2.1vw;
    font-weight: 600;
    font-size: 1.2vw;
}
main .sec1 .right,main .sec1 .left{
    margin-left: 40px;
}
main .sec1 .flex li.mr0{
    margin-right: 0px;
}
@media only screen and (max-width: 1435px){  
    main .sec1 .flex li {
        font-size: 1.5rem;
    }
}/*-spend*/
@media only screen and (max-width: 1318px){  
    main .sec1 .flex li {
        font-size: 1.4rem;
    }
}/*-spend*/
@media only screen and (max-width: 1261px){  
    main .sec1 .flex li {
        font-size: 1.2rem;
    }
}/*-spend*/
@media only screen and (max-width: 1159px){  
    main .sec1 .flex li {
        font-size: 1rem;
    }
}/*-spend*/
@media only screen and (max-width: 767px){  
    main .sec1{
        height: auto;
    }
    main .sec1 img{
        height: auto;
        width: 100%;
    }
    main .sec1 .flex{
        justify-content: flex-start;
        padding: 0;
        flex-wrap: nowrap;
        display: flex;
    }
    main .sec1 .flex li{
        margin-right: 10px;
        font-weight: 600;
        font-size: 1rem;
        margin-bottom: 5px;
    }
    main .sec1 .right,main .sec1 .left{
        display: none;
        margin: 0;
        padding: 4%;
    }
    main .sec1 .flex li.mr0{
        margin-right: 0px;
    }
    main .roll{
        overflow: hidden;
        white-space: nowrap;
        display: flex;
        position: relative;
        width: 100%;
    }
    main .roll ul{
        display: flex;
        gap: 2rem;
        animation: marquee 100s linear infinite;
        padding: 5% 0;
    }
    main .roll ul li{
        font-size: 1.4rem;
    }
    @keyframes marquee {
      0% {
        transform: translateX(0%);
      }
      100% {
        transform: translateX(-100%);
      }
    }
}/*-spend*/



/*-------------------------
豊電子工業が選ばれる理由
-------------------------*/
main .sec2{
    margin-top: 0px;
}
main .sec2 .inner{
    border-left: #e4e4e4 1px solid;
    border-right: #e4e4e4 1px solid;
    position: relative;
    padding-top: 90px;
}
main .sec2 .flex{
    justify-content: flex-start;
    padding: 17px 0;
        flex-wrap: nowrap;
}
main .sec2 .flex li{
    margin-right: 2.1vw;
    font-weight: 600;
    font-size: 1.2vw;
}
main .sec2 .right{
    margin-left: 40px;
}
main .sec2 .flex li.mr0{
    margin-right: 0px;
}
main .sec2 .bg{
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 30vw;
    z-index: 2;
}
main .sec2 .bg_in{
    position: relative;
    z-index: 2;
}
main .sec2 .bg_in img{
    position: relative;
    z-index: 2;   
}
main .sec2 .bg_in:after{
    position: absolute;
    content: "";
    width: 130%;
    height: 100%;
    background: #50B363;
    top: 80px;
    z-index: -1;
    right: 0px;
}
main .sec2 .bg1{
    position: absolute;
    bottom: 0;
    left: -22vw;
    width: 18vw;
    height: 100%;
    background-image: url(../../img/reason_1.png);
    background-size: cover;
}
main .sec2 .copy{
    margin-left: 10vw;
    margin-top: 55px;
    position: relative;
    padding-bottom: 16vw;
}

@media only screen and (min-width: 767px){  
    main .sec2 .honbun18{
        width: 52%;
    }
}
@media only screen and (max-width: 767px){  
    main .sec2 .inner{
        padding-top: 10%;
    }
    main .sec2 .bg1{
       display: none; 
    }
    main .sec2 .bg {
        display: none;
    }
    main .sec2 .copy{
        margin-left: 0;
        margin-top: 2%;
        padding-bottom: 10%;
    }
}/*-spend*/


/*-------------------------
事業案内
-------------------------*/
main .sec3{
    margin-top: 0px;
    padding: 90px 0;
    background: #E9EEF6;
}
main .sec3 .flex .box:first-child{
   margin-bottom: 1px;
}
main .sec3 .flex{
    align-items: flex-start;
    justify-content: flex-start;
}
main .sec3 .flex .box{
    background-size: cover;
    width: 33.3%;
    height: 266px;
    margin-bottom: 1px;
    position: relative;
    overflow: hidden;
    transition: background-size 0.5s ease;
}
main .sec3 .flex .box a{
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease 0s;
    position: relative;
}
main .sec3 .flex .box a:after {
    position: absolute;
    bottom: 10px;
    right: 10px;
    content: "";
    background-image: url("../../img/sv_more.svg");
    width: 25px;
    height:26px;
    transition: all 0.3s ease 0s;
    background-repeat: no-repeat;
}
main .sec3 .flex .box a:hover:before{
    width: 100%;
    height: 100%;
    background: #50B363;
    top: 0;
    left: 0;
    position: absolute;
    content: "";
}
main .sec3 .flex .box a:hover{
    opacity: 0.7;
}
main .sec3 .flex .box1{
    background-image: url("../../img/service1.png")
}
main .sec3 .flex .box2{
    background-image: url("../../img/service2.png")
}
main .sec3 .flex .box3{
    background-image: url("../../img/service3.png")
}
main .sec3 .flex .box .ttl{
    color: #fff;
    bottom: 9px;
    position: absolute;
    left: 17px;
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
    margin-left: -19px;
}
@media only screen and (max-width: 767px){  
    main .sec3{
        padding: 10% 0;
    }
    main .sec3 .flex{
        display: flex;
    }
    main .sec3 .flex .box{
        width: 100%;
        height: 134px;
    }
}/*-spend*/



/*-------------------------
製品検索
-------------------------*/
main .products{
    background: #fff;
    padding: 60px;
    border-radius: 6px;
    margin-top: 60px;   
}
main .products h2{
    font-size: clamp(3rem, 3.3vw, 5.5rem);
    margin-bottom: -17px;
    margin-left: 0;
    margin-top: 0;
}
main .form_wrap{
        flex: 1;
    margin-left: 50px;
}
main .form_wrap select{
    width: 100%;
    display: block;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
}
main .form_wrap select:after{
    position: absolute;
    content: "▼";
    color: #DDDDDD;
    right: 0;
    top: 40%;
}
main .form_wrap button{
    width: 267px;
    background: #50b363;
    color: #fff;
    border-radius: 6px;
    padding: 5px;
    font-weight: 600;
    text-align: center;
    display: block;
    margin-top: 27px;    
}
@media only screen and (max-width: 767px){  
    main .form_wrap{
        margin-left: 0;
        margin-top: 2%;
    }
    main .products{
        padding: 8%;
        margin-top: 10%;
    }
    main .products .flex{
        display: block;
    }
    main .products h2{
        margin-bottom: 5%;
        font-size: 3rem;
        padding-bottom: 0;
    }
    main .products h3{
        margin-bottom: 5%;
    }
    main .form_wrap select{
        font-size: 1.5rem;
    }
    main .form_wrap button{
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
        margin-top: 10px;
    }
}/*-spend



/*-------------------------
ロボットスクール
-------------------------*/
main .rbschool{
    background-image: url(../../img/robotschool.png);
    background-size: cover;
    padding: 40px 8vw;
    overflow: hidden;
    border-radius: 6px;
}
main .rbschool h2{
    font-size: clamp(3rem, 3.4vw, 6rem);
    margin: 0;
    color: #fff;
    display: inline-block; 
}
main .rbschool h3{
    color: #fff;
    display: inline-block;
    margin-top: 19px;
}
main .rbschool h3 span{
    color: #ffffff80;
}
main .rbschool .viewmore{
    width: 204px;
    background: #00000059;
    color: #fff;
    margin-top: 10px;
}
main .rbschool .txt{
    width: max-content;
    margin: 0 auto;
    position: relative;
    left: 150px; 
}
@media only screen and (max-width: 767px){  
    main .rbschool{
        padding: 8%;
        background-image: url("../../img/robotschool_sp.png");
    }
    main .rbschool .txt{
        margin: 0;
        width: 100%;
        position: static;
    }
    main .rbschool h2{
        font-size: 3rem;
        margin-bottom: 1%;
    }
    main .rbschool h3{
        margin: 0;
    }
    main .rbschool .viewmore{
        width: 100%;
    }
}/*-spend




/*-------------------------
3つボタン
-------------------------*/
main .ot_btn{
    justify-content: space-between;
}
main .ot_btn .btn{
    width: 48.5%;
    margin-top: 20px;
    text-align: center;
    box-sizing: border-box;
}
main .ot_btn .btn a{
    display: block;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 12.8% 20px;
    overflow: hidden;
    background: #F0F3F8;
}
main .ot_btn .btn.gr a{
    background: #50b363;
    color: #fff;
padding: 12% 20px;
}
main .ot_btn .btn a:hover{
    background: #94dca2;
    color: #333333;
}
main .ot_btn .btn img{
    display: block;
    margin: 0 auto;
}
main .ot_btn .btn .ttl{
    font-size: clamp(1.6rem, 2.1vw, 3rem);
    font-weight: 700;
    margin-top: 20px;
}
@media only screen and (max-width: 767px){  
    main .ot_btn{
        display: block;
    }
    main .ot_btn .btn{
        width: 100%;
        margin-top: 4%;
    }
    main .ot_btn .btn a,main .ot_btn .btn.gr a{
        width: 100%;
        padding: 6%;
    }
    main .ot_btn .btn img{
        width: 45px;
    }
    main .ot_btn .btn .ttl{
        font-size: 1.6rem;
        font-weight: 700;
        margin-top: 9px;
    }
    main .ot_btn .btn span{
        font-size: 1.3rem;
        margin-top: 0px;
        display: block; 
    }
}/*-spend



/*-------------------------
News & Topics
-------------------------*/
main .news{
    overflow: hidden;
    margin-top: 90px;
}
main .news h3{
    margin: 20px 0 60px;    
}
main .news .inner{
    position: relative;
}
main .nw_slide{
    margin-right: calc(-50vw + 50%);
}
.nw_slide .slick-slide {
  margin-right: 30px;
}
.slick-prev{
    position: absolute;
    top: -116px;
    right: 280px;
}
.slick-next{
    position: absolute;
    top: -116px;
    right: 210px;
}
.slick-list{
    margin-top: 60px;
}
.news .box .label{
    color: #50B363;
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid #50B363;
    border-radius: 4px;
    padding: 3px 10px;
    font-weight: 600;
    margin-top: 19px;
    display: inline-block;
}
.news .box .ttl{
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 11px;
}
.news .box .date{
    font-size: 1.6rem;
    color: #BEBEBE;
    margin-top: 3px;
}
.news .page{
    flex-wrap: nowrap;
    justify-content: start;
    align-items: center;
    margin-top: 44px;
    margin-left: 30px;
}
.news .page a{
    font-size: 2rem;
}
.news .page .bar1{
     width: 80px;
    background: #50B363;
    height: 2px;   
    margin-right: 6px;
}
.news .page .bar2{
     width: 80px;
    background: #C9C9C9;
    height: 2px;   
    margin-right: 6px;
}
.news .page .bar3{
     width: 80px;
    background: #C9C9C9;
    height: 2px;   
}
.news .page .right {
    flex: auto;
    justify-content: flex-start;
    align-items: center;
    margin-left: 60px;
}
.news .page .left p{
    margin: 0 5px;
}
@media only screen and (max-width: 767px){  
    main .news{
        margin-top: 10%;
    }
    .slick-prev {
        position: absolute;
        top: 25%;
        z-index: 1;
        left: -16px;
        width: 40px;
    }
    .slick-next{
        position: absolute;
        top: 25%;
        z-index: 1;
        right: 16px;
        width: 40px;
    }
    main .news h3{
        margin: 5% 0;
    }
    .news .box .label{
        font-size: 1.4rem;
    }
    main .box:first-child{
        margin-bottom: 0px;
    }
    .news .page .flex{
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    .news .page{
        margin-top: 10%;
        margin-left: 0;
    }
    .news .page a{
        font-size: 1.3rem;
    }
    .news .page .right{
        margin-left: 0;
        margin-top: 3%;
    }
    .news .page .bar1{
         width: 50px;
    }
    .news .page .bar2{
         width: 50px;
    }
    .news .page .bar3{
         width: 50px;
    }
}/*-spend




/*-------------------------
採用情報
-------------------------*/
main .sec5{
    background: #397FB9;
    padding: 90px 0;
    color: #fff;
    overflow-x: hidden;
}
main .sec5 .txt{
    width: 60%;
}
main .sec5 img{
    width: 40%;   
    position: relative;
}
main .sec5 img:after{
    width: 100%; 
    height: 100%;
    border-radius: 6px;
    background: #5194CB;
    position: absolute;
    content: "";
    top: 0;
    left: 0;
}
main .sec5 h2{
    width: 100%;
}
main .sec5 h3 span{
    color: #ffffff80;
}
main .sec5 h3{
    position: relative;
    padding-bottom: 33px;
    margin-bottom: 50px;
}
main .sec5 h3:after{
    background: #fff;
    width: 196%;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 0;
    content: "";
}
main .sec5 p{
    font-size: clamp(1.6rem, 2vw, 5rem);
}
main .sec5 .viewmore{
    background: #f0f0f04a;    
}
@media only screen and (max-width: 767px){  
    main .sec5{
        margin-top: 10%;
        padding: 10% 0;
        overflow: unset;
        position: relative;
    }
    main .sec5 h2{
        margin-bottom: 5%;
       padding-bottom:0;
    }
    main .sec5 h3{
        padding-bottom: 9%;
        margin-bottom: 8%;
    }
    main .sec5 h3:after{
        width: 100%;
    }
    main .sec5 .txt{
        width: 100%;
    }
    main .sec5 img{
        width: 40%;
        position: absolute;
        top: -67px;
        right: 0px;
        z-index: 2;
    }
}/*-spend




/*-------------------------
キーワードスクロール
-------------------------*/
main .sec1 {
    margin-top: 0;
    height: 165px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    background: #f7f7f7;
    position: relative;
    overflow: hidden; 
}

main .sec1 img{
    width: 160px;
}

main .sec1 .marquee-container {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

main .sec1 .marquee {
    display: flex;
    width: 100%;
}

main .sec1 .marquee-inner {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 120s linear infinite;
    align-items: center;
}


.marquee.reverse .marquee-inner {
    animation: scroll-right 120s linear infinite;
}


main .sec1 .marquee p {
    padding: 0 30px;
    font-size: 2rem;
    font-weight: 600;
}

main .sec1 .marquee p span {
    color: #50B363;
}

main .sec1 .img_scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    width: 200%; 
    z-index: 1;
    display: none;
}

main .sec1 .img_box {
    background-size: cover;
    width: 315px;
    height: 165px;
    background-position: center;
    flex-shrink: 0;
    margin: 0 15%;
}

main .sec1 .img_box.img1 { background-image: url("../../img/keyword1_img.png"); }
main .sec1 .img_box.img2 { background-image: url("../../img/keyword2_img.png"); }
main .sec1 .img_box.img3 { background-image: url("../../img/keyword3_img.png"); }

/* アニメーション定義 */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes scroll-right {
0% { transform: translateX(-50%); }   /* 左半分に隠れてスタート */
    100% { transform: translateX(0); }    /* 元の位置に到達 */
}

/* SP対応 */
@media only screen and (max-width: 767px){  
    main .sec1{ height: 85px; }
    main .sec1 .marquee p{ padding: 0 20px; font-size: 1.5rem; }
    main .sec1 .img_box{ width: 135px; height: 85px; }
    main .sec1 img { width: 90px; }
}



/*-------------------------
製品検索
-------------------------*/
main .search_box{
    padding: 0;
    flex: 1;
}
main .search_box .box{
    height: auto!important;
    width: 100%!important;
    overflow: unset!important;   
    margin-bottom: 20px!important;   
}
main .search_box .box.last{
    margin-bottom: 0px!important;  
}
main .search_box form .checklist{
    margin-right: 41px;
    margin-left: 0px;
}
main .form_wrap button{
    margin-top: 10px;
}



/*-------------------------
ヘッダー
-------------------------*/
@media only screen and (min-width: 768px) {
    header{
            padding-top: 14px;
    }
    header .logo{
        padding: 0;
        max-width: 380px;
        width: 30%;
        padding-left: 30px;
    }
    header .gnav a.ttl{
        color: #fff;
        padding: 0;
    }
    header nav .gnav li{
    margin-left: 30px;
    position: relative;
    }
    header{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: none;
        color: #fff;
    }
    header .sub_nav{
        border: none;
        padding: 0;
        padding-right: 60px;
    }
    header .right_box{
        border: none;
    }
    header .gnav a.ttl{
        position: relative;
        padding-left: 23px;
        padding-bottom: 0px;
        margin-top: 10px;
    }
    header .sub_nav a{
        color: #fff;
    }
    header .gnav a.ttl_dr {
        padding-right: 16px!important;
    }
    header nav .dropdown{
        background: #ffffff9e;
        top: 30px;
        width: 310px;
        flex-wrap: wrap;
        margin: 0 auto;
        position: absolute;
        padding: 20px 20px 10px;
        border-radius: 10px;
        box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 8px;
        left: -100px;
    }
    header nav .dropdown li{
        width: 100%;
        margin: 0;
        margin-bottom: 5px;
    }
    header nav .dropdown li a{
        padding: 10px;
    }
   /* .mv.third-active h1,
    .mv.third-active .copy p{
        color: #fff;
    }*/
    /*.mv.third-active .copy{
        background: #ffffffc2;
        left: 0;
        padding: 30px;
    }*/
    .mv .copy{
        top: 56%;
    }
    .mv h1{
            font-size: clamp(3rem, 6vw, 10rem);
    }
}/*pc*/
@media only screen and (max-width: 767px) {
    /*.mv.fourth-active .copy{
        left: 4vw;
    }
     .mv.third-active .copy{
        background: #ffffffc2;
        left: 0;
        padding: 4vw;
    }*/
    main .sec1{
        height: auto;
    }
}/*sp*/











