

/*********************

#systems_box

********************/

#systems_box{margin-bottom: 120px;}

#systems_box li{ margin-bottom: 120px; }
#systems_box li:last-child{ margin-bottom: 0; }
#systems_box li>img{
  width: 100%;
  border-radius: 16px;
}

#systems_box .haccp{text-align: center;}

#systems_box .haccp div{
  display: flex;
  box-sizing: border-box;
  border: 3px solid #fcb134;
  border-radius: 16px;
  padding: 30px;
  margin: 30px auto 40px;
}

#systems_box .haccp div img{
  width: 157px;
  height: 157px;
}
#systems_box .haccp div p {
  margin-left: 30px;
  text-align: left;
}
#systems_box .haccp div i{
  color: #512701;
  margin-bottom: 12px;
  font-size: 28px;
  display: block;
  font-weight: bold;
}

#systems_box .haccp>img{
  width: 900px;
  margin: 0 auto;
  max-width: 90%;
}

#systems_box .inner_01{
  display: flex;
  margin-top: 80px;
}

#systems_box .inner_01 img{
  width: 50%;
  height: 100%;
  order: 1;
}

#systems_box li:nth-child(2)>img{
  width: 60%;
  margin: 0 0 0 auto;
  display: block;
}

#systems_box li:nth-child(2) .irregular{
  width: 30%;
  margin: -120px 18% 0 auto;
  display: block;
}

.txt_box {
  background: #fcb134;
  color: #ffffff;
  padding: 60px;
  border-radius: 16px;
  width: 35%;
  text-align: left;
}

.txt_box h2 {
  color: #512701;
  margin-bottom: 20px;
  font-size: 28px;
}

#systems_box li:nth-child(odd) .txt_box {
  float: right;
  margin-left: auto;
  order: 2;
}

#systems_box li:nth-child(even) .txt_box {
  margin-top: 20px;
}

#systems_box .systems_inner02 {
  margin-top: -350px;
  position: relative;
}
#systems_box .systems_inner02 img{ width: 193px; }

@media screen and (max-width: 1400px) {

}

@media screen and (max-width: 1250px) {
  #systems_box .inner_01{ max-width: 100%; }
  #systems_box .inner_01 img{ width: 45%; }
  .txt_box{
    padding: 50px 40px;
    width: 40%;
    text-align: left;
  }
  .txt_box h2{ margin-bottom: 12px; }
}

@media screen and (max-width: 1000px){
  #systems_box .haccp div i {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .txt_box {
    width: 44%;
    margin-bottom: 30px;
    padding: 40px 25px;
  }
  .txt_box h2 { margin-bottom: 6px; }

  #systems_box li:nth-child(2) .irregular { margin: -120px 12% 0 auto; }
}

@media screen and (max-width: 700px) {

  #systems_box li{margin-bottom: 80px;}

  #systems_box li:nth-child(2) .irregular {
      margin: -10px 16% 0 auto;
      width: 48%;
      height: 164px;
    }

  #systems_box li>img{
    height: 300px;
    object-fit: cover;
  }

  #systems_box .haccp div {
    display: block;
    border: 2px solid #fcb134;
    padding: 30px 20px;
    margin: 30px auto 40px;
  }
  #systems_box .haccp>img { max-width: 75%; }
  #systems_box .haccp div p{margin: 14px auto 0;}
  #systems_box .haccp div img{
    margin: 0 auto;
    display: block;
  }

  #systems_box .inner_01{
    display: block;
    margin-top: 40px;
  }
  #systems_box .inner_01 img{
    width: 80%;
    display: block;
    margin: 0 auto;
  }
  .txt_box{ width: calc(100% - 50px); }

  #systems_box li:nth-child(2)>img{ width: 100%; }
  #systems_box .systems_inner02{
    margin-top: -80px;
    position: initial;
  }
  #systems_box .systems_inner02 img{ width: 140px; }

}


/*********************

#systems_box .box02

********************/

/* Final override rules for text wrapping and spacing issues */
#header_mv ul, #header_link ul {
  margin-left: 60px !important;
  padding-left: 20px !important;
}

/* Ultra-specific targeting for dynamically loaded content */
[data-template="header_mv"] li.mv_ttl.eng,
#header_mv ul li.mv_ttl.eng,
#header_mv li.mv_ttl.eng,
li.mv_ttl.eng,
.mv_ttl.eng {
  white-space: nowrap !important;
  width: auto !important;
  min-width: 200px !important;
  max-width: none !important;
  overflow: visible !important;
  word-break: keep-all !important;
  word-wrap: normal !important;
  text-overflow: visible !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: top !important;
}

/* Ensure template container doesn't constrain width */
[data-template="header_mv"],
[data-template="header_mv"] ul {
  width: auto !important;
  min-width: 300px !important;
}

/* Additional rule to handle post-load styling */
body li.mv_ttl.eng {
  white-space: nowrap !important;
  display: inline-block !important;
  width: auto !important;
}

/* Force re-render after template load */
[data-template="header_mv"]:not(:empty) li.mv_ttl.eng {
  white-space: nowrap !important;
  width: auto !important;
  min-width: max-content !important;
}
