/*********************

#menu_txt

********************/

#menu_txt{ margin-bottom: 120px; }


@media screen and (max-width: 1000px) {
  #menu_txt { margin-bottom: 70px; }
}

@media screen and (max-width: 700px) {

}

/*********************

#joyfull_menu

********************/

#joyfull_menu{
  display: flex;
  margin-bottom: 100px;
}

#joyfull_menu>h3{ position: relative; }
#joyfull_menu>h3 img{
  width: 102px;
  vertical-align: top;
}
#joyfull_menu>h3::before{
  content: "";
  background: #ef9e11;
  width: 16px;
  height: 100%;
  display: inline-block;
  position: absolute;
  z-index: -1;
}

#joyfull_menu ul{
  width: 74%;
  margin: 0 0 0 auto;
}

#joyfull_menu ul li{
  display: flex;
  margin-bottom: 50px;
}
#joyfull_menu ul li:nth-child(even) img{
  order: 2;
}
#joyfull_menu ul li:nth-child(even) div{
  order: 1;
  margin: 0 30px 0 0;
}
#joyfull_menu ul li:last-child{ margin-bottom: 0; }

#joyfull_menu li h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #512701;
}

#joyfull_menu li img {
  width: 480px;
  border-radius: 16px;
  height: 300px;
  object-fit: cover;
}

#joyfull_menu li div{
  margin-left: 30px;
  text-align: left;
}

@media screen and (max-width: 1400px) {
  #joyfull_menu ul{width: 80%;}
}

@media screen and (max-width: 1100px) {
  #joyfull_menu>h3 img {width: 82px;}
  #joyfull_menu>h3::before { width: 12px;}

  #joyfull_menu li img {
    width: 380px;
    height: 200px;
  }
}

@media screen and (max-width: 1000px) {
  #joyfull_menu ul{width: 84%;}
  #joyfull_menu>h3 img { width: 62px; }
  #joyfull_menu li img {
    width: 280px;
    height: 180px;
  }
}

@media screen and (max-width: 700px) {
  #joyfull_menu{ display: block; }

  #joyfull_menu li div { margin-left: 0; }

  #joyfull_menu>h3{ margin-bottom: 30px; }
  #joyfull_menu>h3 img { width: 74%; }
  #joyfull_menu>h3::before {
    width: 100%;
    height: 8px;
    margin-top: 6%;
  }

  #joyfull_menu ul{
    width: 100%;
    margin: 0 auto;
  }
  #joyfull_menu ul li{ display: block; }
  #joyfull_menu li img{
    width: 100%;
    height: 220px;
  }

  #joyfull_menu li h2{margin:20px auto;}
}


/*********************

#menu_box

********************/

#menu_box img{
  width: 100%;
  border-radius: 16px 16px 0 0;
  margin-bottom: 22px;
}

#menu_box ul{
  display: flex;
  flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  color: #512701;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  gap: 0 4%;
}

#menu_box ul li{
  width: 22%;
  margin-bottom: 47px;
}

@media screen and (max-width: 1250px) {
  #menu_box ul{gap: 0 2.5%;}
  #menu_box ul li{width: 23%;}
}

@media screen and (max-width: 1000px) {
  #menu_box ul {
    gap: 0 3.5%;
    font-size: 16px;
  }
  #menu_box ul li { width: 31%; }
}

@media screen and (max-width: 700px) {
  #menu_box ul li {
    width: 48%;
    margin-bottom: 30px;
  }
  #menu_box img{ margin-bottom: 14px; }
}

/* 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;
}
