

:root {
  --fig_gap: 20px;
  --fig_radius: 0px;
  --fig_border: 1px;
  --fig_shadow: rgba(0, 0, 0, 0.5) 0px 0px 0px;
  --fig_border_col: rgba(106, 124, 146, 0.5);
}

#rdr1, #rdr2, #rdr3, #rdr4, #rdr5, #rdr6, #rdr7 {
scroll-margin-top: 50px;
}

.chap_box_profil {
  background: var(--bg_section);
  color: var(--fc_section);
  line-height: 1.0;
  padding: 14px;
  text-align: justify;
  box-sizing: border-box;
  border: var(--border_main);
}


.chap_box {
  background: var(--bg_section);
  color: var(--fc_section);
  padding: 14px;
  text-align: center;
  box-sizing: border-box;
  border: var(--border_main);
  line-height: 1.3;
}

.chap_box h5{
  font-size: 16px;
  line-height: 1.3;
}

.chap_cont {
  margin: 0 auto;
  margin-top:  var(--liner_gap);
  width: 90%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 0px;
  box-sizing: border-box;
  align-items: stretch;
  background: var(--bg_section);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card_shadow);
  border: var(--border_main);
}

.chap_title {
  font-weight: bold;
  font-size: var(--fs_news_title);
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--fc_title);
  text-align: left;
}

.responsive-iframe {
  width: 100%;
  aspect-ratio: 6 / 5;
  border: none;
  padding: 0;
}

.responsive-iframe-wz {
  width: 100%;
  aspect-ratio: 10 / 5;
  border: none;
  padding: 0;
}

.git {
  float: left; 
  margin: 5px 10px 0px 0px; 
  width: 380px;
  height: auto;
    border-radius: var(--fig_radius);
  box-sizing: border-box;
  box-shadow: var(--fig_shadow);
  border: var(--fig_border) solid var(--fig_border_col);
}

.cont_figs {
  padding: calc(var(--fig_gap)/2) var(--fig_gap) var(--fig_gap) var(--fig_gap);
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fig_gap);
  box-sizing: border-box;
  align-items: start;  
  background: var(--bg_text);
  justify-content: center;
  justify-items: center;
}

.cont_figs_wz {
  padding: calc(var(--fig_gap)/2) var(--fig_gap) var(--fig_gap) var(--fig_gap);
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--fig_gap);
  box-sizing: border-box;
  align-items: start;  
  background: var(--bg_text);
  justify-content: center;
  justify-items: center;
}

.reg-wrapper0 {
  width: fit-content;       
  max-width: 100%;          
  margin: 25px auto 30px auto;     
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: var(--fig_radius);
  box-shadow: var(--fig_shadow);
  padding: 10px;
  box-sizing: border-box;
  overflow-x: auto;
}

.reg-wrapper1 {
  width: fit-content;       
  max-width: 100%;          
  margin: 25px auto 30px auto;     
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: var(--fig_radius);
  box-shadow: var(--fig_shadow);
  padding: 10px;
  box-sizing: border-box;
  overflow-x: auto; 
}

.reg-wrapper2 {
  width: fit-content;       
  max-width: 100%;          
  margin: 25px auto 30px auto;     
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: var(--fig_radius);
  box-shadow: var(--fig_shadow);
  padding: 10px;
  box-sizing: border-box;
  overflow-x: auto;
}

.reg-content {
  font-family: "Consolas", "Monaco", "Courier New", monospace;
  font-size: 13px; 
  line-height: 1.2;
  margin: 0;
  color: #000;
  white-space: pre; 
}

.reg-tab-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 25px auto 10px auto;
  flex-wrap: wrap;
}

.reg-btn {
  display: inline-block !important;
  background-color: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.reg-btn:hover {
  background-color: rgba(106, 124, 146, 0.3);
}

.reg-btn.active {
  background-color: #6a7c92; 
  color: white;
  border-color: #6a7c92;
  font-weight: bold;
}

.reg-wrapper1, 
.reg-wrapper2 {
  display: none;
}
    
.fig {
  width: 100%;
  display: flex;
  background: var(--bg_text);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px; /*40px 40px 30px 40px;*/
  text-align: center;
  border-radius: var(--fig_radius);
  box-sizing: border-box;
  box-shadow: var(--fig_shadow);
  border: var(--fig_border) solid var(--fig_border_col);
}

.news_em {
  font-weight: bold;
  color: var(--fc_title);
}

.chap_item a.mail0 {
  hyphens: auto;
}

mjx-container:not([display="true"]) {
    overflow-x: auto;      
    overflow-y: hidden;    
    max-width: 100%;       
    display: inline;        
    padding-bottom: 0px;   
	font-size: 17px !important;
	color: #222222 !important;
}
  
mjx-container[display="true"] {
    overflow-x: auto;      
    overflow-y: hidden;    
    max-width: 100%;       
    display: block;  
    padding-top: 1px; 
    padding-bottom: 1px;   
	font-size: 17px !important;
	color: #222222 !important;
}  

.eql {display: block;}
.eqs {display: none;}

a.chap0 {
  display: inline;
  text-decoration: none;
  font-weight: normal;
  color: var(--fc_normal);
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  line-break: normal;
  white-space: normal;
  max-width: 100%;
  transition: color 0.3s ease;
}

a.chap0:hover { color: #e67d00; }

.chap_item {
  background: var(--bg_text);
  padding: 8px 25px 18px 25px;
  margin-bottom: 0px;
  line-height: 1.5;
  text-align: justify;
  box-sizing: border-box;
  min-width: 0;
}

.chap_item ul {
  margin: 0;
  margin-left: 0;
  padding: 0;
  padding-left: 1rem;
  margin-bottom: 5px;
  counter-reset: my-counter;
  list-style-type: none; 
}

.chap_item li {
  margin-bottom: 5px;
  text-align: left;
  list-style-position: outside;
  padding: 0px 0 0px 0;
  counter-increment: my-counter;
}

.chap_item li b {
  color: var(--fc_title); 
}

.chap_item li::marker {
  font-size: var(--fs_base);  
  color: var(--fc_normal);
  content: counter(my-counter) ". ";
  font-variant-numeric: tabular-nums; 
}

.chap_item li:first-child {
  border-top: none;
  padding-top: 3px;
}

@media (max-width: 700px) {
	
  mjx-container[display="true"] {
  overflow-x: auto;      
  overflow-y: hidden;    
  max-width: 100%;       
  display: block;  
  padding-top: 1px; 
  padding-bottom: 1px;   
  padding-right: 10px;
  font-size: 17px !important;
  color: #222222 !important;
  }  	
	
  .eql {display: none;}
  .eqs {display: block;}
	
  .chap_cont {
  width: 96%;
  }
  
  .chap_box_profil {
  background: var(--bg_section);
  color: var(--fc_section);
  line-height: 1.0;
  padding: 14px;
  text-align: center;
  box-sizing: border-box;
  border: var(--border_main);
  }
  
  .chap_box_profil h2::before { width: calc(100% + 0px); left: -0px; top: -5px; height: 2px; }
  .chap_box_profil h2::after  { width: calc(100% + 10px); left: -5px; bottom: -5px; height: 2px; }
	
  .chap_item {
  padding: 18px var(--mr) 10px var(--ml);
  text-align: left;}
  
  .cont_figs {
  grid-template-columns: 1fr;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 0px;
  }
  
  .fig {
  width: 95%;  
  display: flex;
  background: var(--bg_text);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px; /*40px 40px 30px 40px;*/
  text-align: center;
  border-radius: var(--fig_radius);
  box-sizing: border-box;
  box-shadow: var(--fig_shadow);
  border: var(--fig_border) solid var(--fig_border_col);
  }
  
  .git {
  display: flex;	
  width: 95%;    
  float: none; 
  margin: 15px auto 15px auto; 
  height: auto;
  border-radius: var(--fig_radius);
  box-sizing: border-box;
  box-shadow: var(--fig_shadow);
  border: var(--fig_border) solid var(--fig_border_col);
  }
  
  .cont_figs_wz { 
  flex-direction: column;
  justify-content: center;
  justify-items: center;
  padding: 0 0 0px 0;
  width: 100%;
  margin-top: 15px;
  margin-bottom: 15px;
  }
  
  .responsive-iframe-wz {
  width: 100%;
  aspect-ratio: 10 / 10;
  border: none;
  padding: 0;
  }
  
  .toc_box { 
  width: 85%;
  display: none;
  flex-direction: column;  
  align-items: center;     
  justify-content: center; 
  text-align: center;  
  }
    	
}
