main > #doc-tree {
    position: fixed !important;
    top: var(--header-height);
    left: 0;
    width: 280px;
    height: 100%;
    overflow-y: auto;
    padding: 1em;
    padding-top: 1em;
    padding-left: 1em;
    --doctree-main: #e1eaf2;
    color: var(--doctree-main);
    background-color: var(--global--color-background-gray);
    font-size: 0.9em;
    scrollbar-width: thin;
    scrollbar-color: var(--global--key-color) var(--global--color-background-gray);
    z-index: 1;
}
main > #doc-tree .current-page-in-index {
    color: var(--global--highlight-vivid);
    display: inline-flex;
    align-items: baseline;
}
main > #doc-tree .current-page-in-index:before {
    font-family: "Material Symbols Outlined";
    content: "arrow_right";
    align-self: center;
    font-size: 1.3em;
    line-height: 0;
    margin-left: -1em ; 
}
main > #doc-tree ul {
    font-weight: 600;
    list-style: none;
    margin-bottom: 0.5em;
    padding-left: 1em;
}
main > #doc-tree > ul > li:not(:first-of-type) {
  border-top: 1px solid #777;
  /* 
  border-image: linear-gradient(to right, transparent, var(--global--key-color),transparent) 1;
  */
  margin-bottom: 0.5em;
  padding-top: 0.5em;
  line-height: 1.75em;
}

main > #doc-tree a {
    font-family: var(--global--font-heading);
    font-weight: 400;
    color:rgb(168, 235, 240);
    text-decoration-line: none;
}
main > #doc-tree a:hover {
    color:rgb(235, 219, 125);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: rgb(235, 219, 125);
}
main > #doc-tree .extracter-label {
  padding-left: 5px;
  margin: 0;
}
main > #doc-tree .extracter-label > span::after{
  font-family: "Material Symbols Outlined";
  content: "arrow_drop_down";
}
main > #doc-tree .tree-extracter:checked + .extracter-label span::after{
  content: "arrow_left";
}

main > #doc-tree .tree-extracter:checked ~ ul{
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  rotate: 5deg;
}

/* option menu */
#option-menu {
  display: flex;  
  width: 100%;

  border-bottom: 1px solid var(--doctree-main);
  margin: 0.5em 0 1em;
  justify-content: space-between;
}

/* document switcher */
.dropdown-block {
  align-self: flex-end;
}

.dropdown-block  .dropdown-wrapper {
  display: inline-block;
  position: relative;
}
.dropdown-label {
  font-family: var(--global--font-heading);
  display: inline;
  margin: 0;
  padding: 0em 0.5em !important;
  background: transparent;
}
.dropdown-label:hover {
  background-color: var(--global--key-color-dark);
}
[theme="dark"] .dropdown-label:hover {
  background: var(--global--key-color);
}
.dropdown-label .dropdown-arrow {
  padding-left: 0.5em;
  font-family: "Material Symbols Outlined";
  font-size: 1em;
  vertical-align: middle;
}
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.5em 0 !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  display: none;
  z-index: 100;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--doctree-main);
  border-top: none;
}
.dropdown-wrapper *{
  transition: background-color 0.1s;
}
#lang-toggle:checked ~ .dropdown-menu,
#ver-toggle:checked ~ .dropdown-menu {
  display: block;
}
.dropdown-block .dropdown-menu li > *{
  padding: 0.35em 1em;
}
#doc-tree .dropdown-menu li.latest-version > a{
  color: #bdffdb;
  /*border-bottom: 1px dashed gray;*/
}
#doc-tree .dropdown-menu li.exist-version > a{
  color: #888;
  /*border-bottom: 1px dashed gray;*/
}
#doc-tree .dropdown-menu li.current-version a,
#doc-tree .dropdown-menu li.current-lang a{
  border-left: 2px solid rgb(168, 226, 114);
  margin-left: 3px;
  padding-left: 0.7em;
}
.dropdown-menu li a {
  font-family: var(--global--font-heading);
  display: block;
  text-decoration: none;
  color: #333;
}
.dropdown-menu li p{
  font-family: var(--global--font-heading);
  font-weight: 400;
  color: #888;
}
.dropdown-menu li span {
  font-size: 75%;
}
.dropdown-menu li a:hover {
  background: var(--global--key-color-dark);
}
[theme="dark"] .dropdown-menu li a:hover {
  background: var(--global--key-color);
}
#doc-tree-settings ~ label{
  font-family: "Material Symbols Outlined";
  padding: 0;
  margin: 0;
  transition: rotate 0.3s;
}
#doc-tree-settings ~ label:hover{
  color: var(--global--highlight-vivid);

}
#doc-tree-settings:checked ~ label{
  rotate: 60deg;
}

#doc-tree .settings-section{
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s , opacity 0.2s;

  display: block;
  height: 0;

  margin: 0 0.5em;
  border-top: 1px dashed var(--doctree-main);
  border-bottom: 1px dashed var(--doctree-main);
  text-align: center;
  font-family: var(--global--font-selif);
}
#doc-tree:has(#doc-tree-settings:checked) .settings-section{
  visibility: visible;
  opacity: 1;
  transition: all 0.5s , opacity 0.3s 0.2s;
  height: 10em;
  transform: translateY(0%);

  padding: 1.5em;
  margin: 0.5em;
  margin-bottom: 1em;
}

#doc-tree .settings-section .setting-theme{
  display: block;
  font-family: "Material Symbols Outlined";
  font-size: 1.25em;
  text-decoration: none;
  color: var(--doctree-main);

}
#doc-tree .settings-section > div > div:first-of-type{
  font-family: var(--global--font-heading);
  margin-top: -1em;
  margin-bottom: 1em;
  font-weight: 500;
  color: var(--doctree-main);
}

#doc-tree .settings-section .setting-theme > span{
  display: inline-block;
  position: relative;
  font-size: 1.2rem !important;

  bottom:  -3px;
  transition: color 0.5s;
  vertical-align: center;
}
#doc-tree .settings-section .setting-theme > a{
  margin: 0 -0.5em;
}
#doc-tree .settings-section .setting-theme > a span{
  display: inline-block;

  padding: 0.1em;
  line-height: 1.1rem !important;
  width: 40px;
  background: #666;
  border-radius: 12px;
  
  text-align: left;
  transition: padding-left 0.2s;
}
#doc-tree .settings-section .setting-theme > span:first-of-type{
  color: #fffa96;
}
[theme="dark"] #doc-tree .settings-section .setting-theme > span:first-of-type{
  color: #929292;
}
#doc-tree .settings-section .setting-theme > span:last-of-type{
  color: #929292;
}
[theme="dark"] #doc-tree .settings-section .setting-theme > span:last-of-type{
  color: #91b8db;
  
}
#doc-tree .settings-section .setting-theme > a span::after{
  display: inline-block;
  content: "　";
  width: 18px;
  background: var(--doctree-main);
  border-radius: 10px;
}

#doc-tree .settings-section .setting-theme a.to-light{
  display: inline-block;
  visibility: hidden;
  width: 0;
}
[theme="dark"] #doc-tree .settings-section .setting-theme a.to-night{
  display: inline-block;
  visibility: hidden;
  width: 0;
}
[theme="dark"] #doc-tree .settings-section .setting-theme a.to-light{
  display: inline-block;
  visibility: visible;
  width: auto;
}
[theme="dark"] #doc-tree .settings-section .setting-theme > a span{
  padding-left: 20px;
}


#doc-tree .settings-section .setting-fontsize{
  display: block;
  margin-top: 1.5em;
  
  line-height: 1em;
}
#doc-tree .settings-section .setting-fontsize > a{
  font-family: var(--global--font-selif);
  color: var(--doctree-main);
  text-decoration: none;
  margin: 0 0.5rem;
  padding: 0.25em;
  border: 1px dashed transparent;
  border-radius: 5px;
  transition: border-color 0.2s;
}
#doc-tree .settings-section .setting-fontsize > a:hover{
  border: 1px dashed var(--global--highlight-vivid);
  transition: none;
}

#doc-tree .settings-section .setting-fontsize > a:active{
  background: #888;
}

#doc-tree .settings-section .setting-fontsize > a.M,
[font="small"] #doc-tree .settings-section .setting-fontsize > a.S,
[font="large"] #doc-tree .settings-section .setting-fontsize > a.L{
  background: #666 !important;
}
[font="small"] #doc-tree .settings-section .setting-fontsize > a.M,
[font="large"] #doc-tree .settings-section .setting-fontsize > a.M{
  background: none !important;
}

#doc-tree .settings-section .setting-fontsize > a span{
  display: inline-block;
  width: 1.25rem;
  letter-spacing: -1px;
}
#doc-tree .settings-section .setting-fontsize > a.L span{
  font-size: 1.2em;
}
#doc-tree .settings-section .setting-fontsize > a.S span{
  font-size: 0.7em;
}
[font="small"] .main-article{
  font-size: 80%;
}
[font="large"] .main-article{
  font-size: 120%;
}



@media (min-width: 769px) {
    body {
        margin: 0;
        margin-left: 280px!important; /* 左カラム分のスペース */
    }
    #masthead {
      left: 0;
    }

}

@media (max-width: 768px) {
    body {
        margin-left: 0 !important; /* 左カラム分のスペースを削除 */
    }
    main {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
}