*{
    padding:0;
    margin:0;
    box-sizing:border-box;
}

:root{
    --main-font-family:'Roboto Condensed', sans-serif;
    --main-bg-color:#262626;
    --main-text-color:#1FC742;
    --main-border:5px solid #025B18;
    --main-button-color:#1FC742;
    --main-button-border:3px solid #025B18;
    --main-button-hover:#010101;
    --main-button-disable:#214729;
    --main-hover-color:#023612;
    --text-hover-color:#f55353;
    --disable--button:2px solid #7a7a7a;
    --sidenavemenu-text2-color:#BA2AC7;
}

html, body{min-height:100%;}

html{
    height: 100%;
    font-size:62.5%;
    /*min-height: 100vh;*/
    overflow-x:hidden;
}

body{
    font-family: var(--main-font-family);
    font-size:2rem;
    background-color: var(--main-bg-color);
    max-width: 100%;
    color: var(--main-text-color);
    line-height:3rem;
    overflow-x: hidden;
    /*min-height: 100%;*/
    height:100vh;
    opacity: 0;
    transition: opacity 0.7s ease;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

body.loaded {
    opacity: 1;
}


h1{
    font-size:6rem;
    line-height: 7rem;
    /*margin: 2rem 0;*/
    word-break: break-word;
}

h2{
    font-size:4rem;
    line-height: 6rem;
    /*margin: 2rem 0;*/
}

h2 a {
    word-break: break-word;
}

h3{
    font-size:3rem;
    line-height: 4rem;
    /*margin: 1rem 0;*/
}

h4{}
h5{}

ul {
  list-style-type: none;
}

li, ol{
    line-height: 3.5rem;
    padding-inline-start: 2rem;
}

p {
    line-height: 3.5rem;
    /*margin: 1rem 0;*/
    word-break: break-word;
}

a, u {
    text-decoration: none;
    color: var(--main-text-color);
}

textarea{
    font-size: 2rem;
    font-weight: bold;
}

textarea:focus{
    outline: 2px solid #025B18;
}

input:focus {
    outline: 2px solid #025B18;
}

pre {
    margin: 2rem 0;
    /*white-space: pre-wrap;*/
    white-space: pre;
    overflow-x: auto;
    position: relative;
    /*padding: 1rem;*/
}

code {
    overflow: auto;
    background-color: #1c1c1c;
    padding: 0.3rem;
    width: auto;
    height: auto;
}

.code{
    width: auto;
    height: auto;
    overflow: auto;
    background-color: #1c1c1c;
}

.codehilite{
    width: auto;
    height: auto;
}

/********************************************
*********************************************
sidebar navigation
*********************************************
*********************************************/
.sidebar {
    grid-area: sidebar;
    position: fixed;
    /*position: relative;*/
    top: 0;
    left: 0;
    bottom: 0;
    width: auto;
    height: auto;

    display: grid;
    grid-template-columns: 26rem 4rem;
    grid-template-rows: 1fr;

    overflow-x: auto;
}


.sidebar__body{
    width: auto;
    height: auto;

    /*display: grid;*/
    /*grid-template-columns: 1fr;*/
    /*grid-template-rows: 8rem 4rem 6.4rem min-content auto;*/
    /*grid-gap: 4rem;*/
    overflow: auto;

    border-right: var(--main-border);
    background-color: var(--main-bg-color);
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.sidebar__body::-webkit-scrollbar {
    display: none;
}

/*********************************************
Side Logo
*********************************************/

.side__logo__link {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.side__logo{
    width: auto;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4rem 1rem 4rem 1rem;
}

.side__logo__image{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*********************************************
Side SNS
*********************************************/

.side__sns {
    display: flex;
     justify-content: space-between;
    align-items: center;
    width: auto;
    height: 6.4rem;
    /*gap: 2rem;*/
    margin: 0 1rem 4rem 1rem;
}

.side__sns__github,
.side__sns__twitter,
.side__sns__discord{
    width: 6rem;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  /*text-align: center;*/
    border: 0.25rem solid;
    padding: 1rem;
    border-radius: 1.5rem;
}

.side__sns__github:hover,
.side__sns__twitter:hover,
.side__sns__discord:hover{
    background-color: var(--main-button-color);
}

.side__sns__link:hover{
    color: var(--main-button-hover);
}

.side__sns__github img,
.side__sns__twitter img,
.side__sns__discord img{
    width: auto;
    height: 6rem;
}

/*********************************************
Side Search
*********************************************/

.side__search{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 1rem 4rem 1rem;
}


.side__search__form{
    width: 100%;
    height: 4rem;
    /*margin:0 1rem;*/

    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap:1rem;
}

.side__search__input{
    width: 100%;
    height: 100%;
    border: var(--main-button-border);
    background-color: var(--main-bg-color);
    font-family: inherit;
    font-weight: bold;
    color: #1FC742;
    padding: 0.5rem;
}

.side__search__button{
    width: auto;
    height: 100%;
    /*margin: 0 1rem;*/
    padding: 1rem;
    font-family: var(--main-font-family);
    background-color: var(--main-bg-color);
    color: var(--main-button-color);
    border: var(--main-button-border);
    /*font-size: 2rem;*/
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}

.side__tag-list{
    width:auto;
    height: auto;
    margin: 0 1rem 4rem 1rem;
}

.side__tag__name {
    padding-inline-start: 0;
}

.side__summary{
    width:auto;
    height: auto;
}

.side__tags,
.side__summary__list{
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: repeat(auto-fill, minmax(3rem, 1fr));
    /*grid-gap: 2rem;*/
    margin: 0 1rem;
}

.side__summary__title,
.side__tag__title,
.side__aboutme{
    /*color: var(--sidenavemenu-text2-color);*/
    font-weight: bold;
}

.side__tag,
.side__summary__link,
.side__summary__title,
.side__tag__title,
.side__summary__title a,
.side__aboutme{
    padding: 1rem;
}

.side__aboutme{
    color:var(--sidenavemenu-text2-color);
}

.side__aboutme:hover{
    background-color: var(--sidenavemenu-text2-color);
    color: var(--main-bg-color);
}

.side__summary__text{
    padding: 0 1rem;
}

.side__summary__text :hover {
    text-decoration: underline;
}


.side__tag:hover{
    background-color: var(--main-button-color);
    color: var(--main-bg-color);
    /*font-weight: bold;*/
}


/*********************************************
Side Button
*********************************************/
.opcl-button {
    writing-mode: vertical-rl; /* 縦書きにするためのプロパティ */
    text-orientation: upright; /* テキストの向きを指定するプロパティ */
    text-align: center; /* テキストを中央に配置するプロパティ */

    display: flex; /* 縦方向にテキストを配置するために、flexbox を使う */
    justify-content: center; /* 縦方向にテキストを中央に配置する */
    align-items: center; /* 横方向にテキストを中央に配置する */

    background-color: var(--main-bg-color);
    border-top: var(--main-border);
    border-right: var(--main-border);
    border-left:5px solid  var(--main-bg-color);
    border-bottom: var(--main-border);

    position: fixed;
    /*position: absolute;*/
    width: 4rem;
    height: 20vh;
    top: 50%;
    margin-top: -10vh;

    z-index: 1000;
    cursor: pointer;
}

/********************************************
*********************************************
Main
*********************************************
*********************************************/

.main {
    grid-area: main;
    position: absolute;
    top: 0;
    max-width: 100%;
    width: auto;
    height: auto;
    margin: 4rem 0;
}

.main__tag__link{
   border: var(--main-button-border);
    border-radius: 1rem;
    margin: 0;
    padding: 0.5rem 0.5rem;
    word-break: break-word;
}

.main__tag__link:hover{
    color: var(--main-bg-color);
    background-color: var(--main-button-color);
}

section.list{
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: repeat(auto-fill, minmax(4rem, 1fr));
    grid-gap: 2rem;
    margin-right: 4rem;
}


.list__articles{
    display: grid;
    grid-template-columns: auto;
    grid-gap: 4rem;
    margin-bottom: 4rem;
}

.list__article{
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 2rem;
}

.list__article__title{
    margin-top:0;
}

.list__article__date{
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    /*margin-bottom: 4rem;*/
}

.list__article__date--detail{
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    margin-bottom: 4rem;
}

.list__article__tag{
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    /*margin-bottom: 4rem;*/
}

.list__article__tag--detail{
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.list__article__title a:hover{
    color: var(--text-hover-color);
}

/*********************************************
Detail Page
*********************************************/
.detail{
    width: auto;
    height: auto;
    min-height: 100%;
    margin: 0 4rem 4rem 4rem;
}

a.main__tag__link {
    text-decoration: none !important;
}

.detail a {
    text-decoration: underline;
}

.tac__title{
    margin-bottom: 4rem;
    margin-top: 8rem;
}

.tac__description,
.tac__markdown{
    height: auto;
    width: auto;
    margin-bottom: 4rem;
}

.tac__markdown a{
    font-weight: bold;
}

.tac__title p{
    line-height: 4.5rem;
}

.tac__markdown a:hover{
    text-decoration: underline;
}

.tac__block__link{
    margin-bottom: 4rem;
    margin-right: 4rem;
}


.link-and-text,
.video-and-text{
    display: grid;
    grid-template-columns: 48% 48%;
    grid-template-rows: auto;
    grid-gap: 4rem;
    margin-bottom: 4rem;
}

.link-and-text__text{
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    grid-gap: 1rem;
}

.link-and-text__link{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    grid-template-rows: auto;
    grid-gap: 2rem;
}

.link-and-text__link__code-block{
    width: auto;
    height: auto;
}
.link-and-text__link__link{
    width: auto;
}

.link-and-text__link__image{
    width: 100%;
}

.box {
    display: flex;
    flex-direction: column;
    background-color: #1C1C1C;
    padding: 3rem;
    margin: 2rem 0;
}

.box code {
    background-color: #1C1C1C;
}

.oneimage__image__img{
    width: 100%;
    height: auto;
}


/*********************************************
Code
*********************************************/
.tac__block__code {
    /*white-space: pre;*/
    /*padding:2rem;*/
}


.copy-code-btn {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    border-radius: 1rem;
    margin: 0 1rem 0 0;
    padding: 1rem;
    cursor: pointer;
    border: none;
    outline: none;
    border: var(--main-button-border);
    background-color: var(--main-bg-color);
    color: var(--main-text-color);
}

/*********************************************
Video content
*********************************************/

.video-content{
    width: auto;
    height: auto;
}

.video-content__wrapper{
    width: auto;
    height: auto;
}

.video-content__content{
    width: 100%;
    height: auto;
}


/********************************************
*********************************************
Taglist
*********************************************
*********************************************/

.tag__list__title{
    margin-bottom: 3rem;
}


/********************************************
*********************************************
Pagination
*********************************************
*********************************************/

.page{
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin-bottom:4rem;*/
}

.pagination{
     display: flex;
    margin-bottom: 4rem;
}

.page-item{
    width: 5rem;
    height: 5rem;
    margin: 0 1rem;
    padding: 1rem;
    font-family: var(--main-font-family);
    background-color: var(--main-bg-color);
    color: var(--main-button-color);
    border: var(--main-button-border);
    font-size: 2rem;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}

.page-item.disabled,
.page-item.active{
    color: #214729;
}


.page-link{
   color: var(--main-button-color);
    cursor: default;
}

.page-link.active{
    cursor: default;
    pointer-events: none;
}

.page-item:hover{
    background-color: var(--main-button-color);
    color:var(--main-bg-color);

}

.page-item:hover .page-link {
    color: var(--main-bg-color);
}

/********************************************
*********************************************
Error
*********************************************
*********************************************/

.error_link:hover{
    color: var(--text-hover-color);
}

/********************************************
*********************************************
Scroll Top Button
*********************************************
*********************************************/

.hidden {
  display: none;
}


#topBtn{
    display: none;
    position: fixed; /* Fixed/sticky position */
    bottom: 2rem; /* Place the button at the bottom of the page */
    right: 8rem; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: var(--main-button-border);
    border-radius: 1rem;
    margin: 0 1rem 0 0;
    outline: none; /* Remove outline */
    background-color: var(--main-bg-color); /* Set a background color */
    color:var(--main-text-color); /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 1.5rem; /* Some padding */
    font-size: 1.8rem; /* Increase font size */
}

/********************************************
*********************************************
Cookie hub
*********************************************
*********************************************/

.ch2-theme-bar .ch2-dialog.ch2-dialog-bottom.ch2-visible {
    bottom: 0;
    background-color:var(--main-bg-color);
}

#ch2-dialog-title strong,
#ch2-dialog-description,
a.ch2-learn-more{
    color:var(--main-text-color) !important;
}

a.ch2-learn-more:hover{
    color:var(--main-button-border);
}

button.ch2-btn{
    margin-right: 10px !important;
    color: var(--main-button-color) !important;
    background-color: var(--main-bg-color) !important;
    border: var(--main-button-border) !important;
}


button.ch2-btn:hover{
    background-color:var(--main-button-color) !important;
    color: #010101 !important;
    box-shadow:none !important;
}

.ch2-settings.ch2-settings-scan.ch2-visible {
    background-color: var(--main-bg-color);
}

p#ch2-settings-title {
    color: var(--main-text-color) !important;
}

.ch2-settings-actions {
    background-color: var(--main-bg-color) !important;
}

.ch2-style-light .ch2-settings-scan .ch2-settings-tabs ul li a {
    color: var(--main-text-color) !important;
    border: 1px solid #025B18 !important;
    /*border-bottom-color: transparent;*/
}

.ch2-style-light .ch2-settings-scan .ch2-settings-tabs ul li.active a {
    border: 1px solid #025B18 !important;
    border-bottom-color:var(--main-button-border) !important;
    background: var(--disable--button) !important;
}

.ch2-style-light .ch2-settings-scan .ch2-settings-tabs ul {
    border-bottom-color: var(--main-button-border) !important;
}