

/* Fix for template loading - prevent flash of unstyled content */
[data-template] {
  min-height: 1px;
}

#library_01,
#library_02,
#library_03,
#library_04{
  padding-top: 100px;
}

#library_03 ul:not(:last-child) {
  margin-bottom: 30px;
}

#library_04 {
  margin-bottom: 100px;
}

.library_link img{
  width: 22px;
  height: 23px;
  margin: 0px 8px;
}

@media screen and (max-width: 1000px) {
  #library_01,
  #library_02,
  #library_03,
  #library_04 {
    padding-top: 60px;
  }
}

@media screen and (max-width: 700px) {


}
/*********************

#j_link

********************/

#j_link{
  display: flex !important;
}
#j_link img{
  width: 46% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: top !important;
}

#j_link ul{
  font-size: 16px !important;
  color: #281a14 !important;
  margin-left: 50px !important;
}

#j_link ul li{margin-bottom: 10px !important;}
#j_link ul li a{
  display: flex !important;
}

#j_link ul span {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: bold !important;
  border-radius: 50% !important;
  background: #ffa200 !important;
  display: inline-block !important;
  padding: 0 !important;
  -ms-writing-mode: lr-tb !important;
  writing-mode: horizontal-tb !important;
  letter-spacing: initial !important;
  line-height: 52px !important;
  margin-right: 20px !important;
  height: 52px !important;
  width: 52px !important;
  text-align: center !important;
}

#j_link ul em{
  width: 80% !important;
  display: inline-block !important;
}

#j_link ul .one_line em{ padding-top: 12px !important; }

#j_link ul li em::after{
  content: "" !important;
  background: url(../img/arrow.png)top right no-repeat !important;
  display: inline-block !important;
  margin-left: 20px !important;
  width: 12px !important;
  height: 8px !important;
  background-size: contain !important;
}

/* Navigation menu fix */
#header nav ul li {
  white-space: nowrap;
}

#header nav ul li:not(:first-child) {
  margin-left: 60px;
}

@media screen and (max-width: 1000px) {
  #header nav ul li:not(:first-child) {
    margin-left: 0;
  }
}

@media screen and (max-width: 700px) {
  #j_link{ display: block; }
  #j_link ul{ text-align: left; }
  #j_link img{
    width: 100%;
    height: 280px;
  }
  #j_link ul{margin: 30px auto 0;}

  /* Mobile navigation fix */
  #header nav ul li {
    white-space: normal;
  }
}

/*********************

.library_link

********************/
.library_ttl{
  box-sizing: border-box;
  border-top: 1px solid #281a14;
  border-bottom: 1px solid #ffa200;
  padding: 14px 20px;
  font-size: 20px;
  color: #281a14;
  margin-bottom: 30px;
}

.library_link ul>li:first-child{
  color: #ffa200;
  margin: 0 0 30px 0;
  font-size: 20px;
  font-weight: bold;
}

.library_link ul>li{
  border-bottom: dashed #000000 1px;
  padding: 0 0 30px 30px;
  font-size: 18px;
}

@media screen and (max-width: 1000px) {
  .library_ttl{margin-bottom: 20px;}
  .library_link ul>li{
    padding: 0 0 20px 0;
    font-size: 16px;
  }
  .library_link ul>li:first-child{margin: 0 0 20px 0;}
}

/*********************

.f_15px

********************/
.f_15px{
  font-size: 15px;
  margin-top: 20px;
}

.m_20px{ margin-bottom: 20px;}

.chart {
  margin-bottom: 50px;
  text-align: center;
}

.chart img {
  width: 100%;
  min-width: 960px;
}

@media screen and (max-width: 1000px) {
  .chart div {
    overflow-y: scroll;
  }
}

/* Ensure proper spacing for footer */
#footer {
  margin-top: 80px;
}

/* 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;
}
