:root {
    --light-background: #F5F7F9;
    --light-content-background: #FFF;
    --light-text-color: #333;
    --light-link-color: #006EB9; // #00004F #006EB9;
    --light-transparent-bg: rgba(0, 0, 0, 0.1);
    --light-semitransparent: #fafbfc;
    --dark-background: #292929;
    --dark-content-background: #1c1c1c;
    --dark-text-color: #e3e1e1;
    --dark-link-color: #FFDB94;
    --dark-transparent-bg: rgba(255, 255, 255, 0.1);
    --dark-semitransparent: #171717;
    --current-background: var(--light-background);
    --current-text-color: var(--light-text-color);
    --current-link-color: var(--light-link-color);
    --current-content-background: var(--light-content-background);
    --current-transparent-bg: var(--light-transparent-bg);
    --current-semitransparent: var(--light-semitransparent);
    --max-width: 900px;
}
@font-face {
  font-family: 'Figtree';
  src: url("/static/figtree.ttf") format("truetype-variations");
  font-display: swap;
}


html {
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    color: var(--current-text-color);
    background-color: var(--current-background);
}

body {
    padding: 0;
    margin: 0;
}
a {
    color: var(--current-link-color);
}

header {
    background-color: var(--current-content-background);
    width: 100%;
    position: fixed;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    box-shadow: 0 4px 2px -2px rgba(100, 100, 100, 0.4);
    z-index: 1000;
}
header .inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
header .header {
    font-weight: bold;
    font-size: 2em;
}
header .header a {
    color: var(--current-text-color);
    text-decoration: none;
}
header .aside-menu {
    float: right;
    padding-right: 10px;
    padding-top: 5px;
    position: relative;
    z-index: 100;
}
#menuToggle {
    padding: 5px;
    padding-top: 0;
    position: relative;
}
#menuToggle #menu .main-list {
    padding: 0;
    margin: 0;
    display: inline-block;
}
#menuToggle #menu .main-list .menu-section {
    list-style: none;
    display: inline-block;
    padding: 5px;
    padding-bottom: 10px;
    margin-right: 7px;
    margin-left: 7px;
}
#menuToggle #menu .sub-list {
    padding-left: 15px;
}
#menuToggle #menu .sub-list li {
    list-style-type: circle;
}
#menuToggle #menu .submenu {
    text-align: left;
    background-color: var(--current-content-background);
    padding: 10px 15px;
    margin-top: 10px;
    display: none;
    position: absolute;
    left: 10px;
    width: 200px;
    -webkit-box-shadow: 5px 5px 15px -6px var(--current-background);
    -moz-box-shadow: 5px 5px 15px -6px var(--current-background);
    box-shadow: 5px 5px 15px -6px var(--current-background);
}
#menuToggle #menu .menu-section {
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

#menuToggle input {
    display: none;
    top: 5px;
    left: 5px;
}
#menuToggle a:hover {
    text-decoration: underline;
}

#menuToggle .item {
    display: block;
    text-decoration: none;
    font-size: 16px;
    line-height: 2em;
    margin-bottom: 5px;
    margin-top: 5px;
}
#menuToggle .sub-item {
    margin-left: 15px;
}
#menuToggle .item.active {
    color: var(--current-link-color);
}
#menuToggle .item.active span {
    text-decoration: underline;
}
#menuToggle .menu-header {
    color: var(--current-text-color);
    font-size: 1.15em;
    margin-bottom: 3px;
    font-weight: bolder;
    background-image: url('/static/down.svg');
    background-size: 25px auto;
    background-position: 100% 50%;
    background-repeat: no-repeat;
    padding-right: 30px;
    cursor: pointer;
}
#menuToggle .mobile {
    display: none;
}
#menuToggle #menu .menu-section:hover .menu-header {
    background-image: url('/static/up.svg');
}

#menuToggle #menu .menu-section:hover .submenu {
    display: block;
}


article {
    font-size: 1.15em;
    line-height: 1.6em;
    overflow: hidden;
    max-width: var(--max-width);
    margin: 20px auto;
    margin-top: 100px;
}
article .article-inner {
    background-color: var(--current-semitransparent);
    padding: 20px;
    padding-top: 10px;
}
article h2, article h3, article h4 {
    margin-bottom: 5px;
}
article div.box {
    padding: 5px 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid var(--current-text-color);
    font-size: 0.9em;
    background-color: rgba(0, 0, 0, 0.2);
}
article p {
    margin-top: 15px;
    margin-bottom: 5px;
}
article img {
    max-width: 100%;
}
article ul {
    margin-top: 5px;
    padding-left: 20px;
    margin-bottom: 5px;
    line-height: 1.9em;
}
.pub-date {
    float: right;
    font-style: italic;
}
article ul {
    list-style-type: circle;
}
h1, h2, h3, h4, h5 {
    margin-bottom: 5px;
    border-bottom: 6px solid var(--current-text-color);
    padding-bottom: 5px;
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    line-height: 1.3em;
}
h1 {
    font-size: 1.8em;
    margin-top: 0;
}
h2 {
    font-size: 1.6em;
}
h3 {
    font-size: 1.3em;
}
h4, h5 {
    font-size: 1.1em;
}

article h1 span, article h2 a, article h2 span, article h3 a, article h3 span, article h4 a, article h5 a {
    display: block;
    border-bottom: 2px solid var(--current-text-color);
    text-decoration: none;
    padding-bottom: 2px;
    color: var(--current-text-color);
}
article h1 span {
    padding-bottom: 15px;
}
.lite {
    opacity: 0.6;
}

/* Page */
    .bottom-share {
        margin-bottom: 20px;
    }
    article h2 a, article h2 span, article h3 a, article h3 span, article h4 a, article h5 a {
        padding-top: 10px;
    }
    .category a {
        text-decoration: none;
    }
    .category a:hover {
        text-decoration: underline;
    }
    .share-button, .reddit-button {
        display: none;
        padding: 7px 15px;
        float: right;
        margin-top: 15px;
        cursor: pointer;
        font-weight: bold;
        font-size: 0.85em;
        margin-left: 10px;
        border: 2px solid var(--current-text-color);
        color: var(--current-link-color);
    }
    .reddit-button {
        display: block;
    }
    .show {
        display: block;
    }
    .breadcrumbs {
        list-style: none;
        padding: 0;
        border-bottom: 2px solid var(--current-text-color);
        margin-top: 0;
        margin-bottom: 5px;
        padding-bottom: 4px;
        font-size: 1em;
    }
    .breadcrumbs li {
      display: inline;
    }
    .breadcrumbs li:after {
        content: ">";
    }
    .breadcrumbs li:last-of-type:after {
        content: "";
    }
    .breadcrumbs a {
        text-decoration: none;
    }
    .breadcrumbs a:hover {
        text-decoration: underline;
    }
    .crumbs {
        border-bottom: 6px solid var(--current-text-color);
        margin-bottom: 20px;
        padding-top: 0;
    }
    .to-category .crumbs {
        margin-bottom: 0;
    }
    #comments_widget {
        scroll-behavior: smooth;
        border-top: 2px solid var(--current-text-color);
        border-bottom: 6px solid var(--current-text-color);
        padding-top: 5px;
        padding-bottom: 5px;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    #comments_widget summary {
        border-top: 6px solid var(--current-text-color);
        border-bottom: 2px solid var(--current-text-color);
        cursor: pointer;
        padding-bottom: 5px;
        padding-top: 5px;
    }
    figure {
        text-align: center;
        font-style: italic;
        display: block;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 25px;
        margin-top: 25px;
    }
    .rk-video a {
        display: block;
        height: 360px;
        background-repeat: no-repeat;
        background-size: 100% auto;
        background-position: 0 -60px;
        max-width: 640px;
        margin: 0 auto;
    }
    .rk-video span {
        display: block;
        height: 100%;
        background-image: url('/static/play.svg');
        background-repeat: no-repeat;
        background-size: 90px auto;
        background-position: 50% 50%;
    }
    table, td, tr, th {
        border-collapse: collapse;
        border: 1px solid #bfbfbf;
      }
    table {
        width: 100%;
        margin-bottom: 20px;
    }
    td, th {
        padding: 5px 10px;
    }
    th {
        background-color: var(--current-transparent-bg);
    }
    #disqus_thread {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    @media (max-width: 750px) {
       .rk-video a {
           height: 48vw;
       }
    }
    @media (max-width: 690px) {
       .rk-video a {
          height: 52vw;
       }
    }
    @media (max-width: 520px) {
        .rk-video a {
            background-position: 0 -46px;
       }
       .rk-video span {
            background-size: 60px auto;
       }
    }
    @media (max-width: 420px) {
        .rk-video a {
            background-position: 0 -37px;
            height: 49vw;
       }
    }

/* hasImageSlider */

    .slider {
        margin-bottom: 30px;
        position: relative;
    }
    .slider p {
        text-align: center;
        font-style: italic;
        margin-top: 0;
    }
    .slider span {
        position: absolute;
        background-color: var(--current-text-color);
        color: var(--current-background);
        padding: 3px 10px;
        top: 0;
        z-index: 10;
        font-size: 0.9em;
    }
    .slider .a {
        left: 0;
    }
    .slider .b {
        right: 0;
    }

    .c-compare {
      --h: 9;
      --m: 1rem 0;
      --w: 16;
      --thumb-bgc: #333;
      --thumb-bgc-focus: transparent;
      --thumb-w: 2px;

      margin: var(--m);
      position: relative;
    }
    .c-compare::after {
      content: "";
      display: block;
      padding-bottom: calc((var(--h) / var(--w)) * 100%);
    }
    .c-compare__left,
    .c-compare__right {
      height: 100%;
      object-fit: cover;
      position: absolute;
      width: 100%;
    }
    .c-compare__left {
      clip-path: polygon(0% 0%, var(--value) 0%, var(--value) 100%, 0% 100%);
    }
    .c-compare__right {
      clip-path: polygon(100% 0%, var(--value) 0%, var(--value) 100%, 100% 100%);
    }
    .c-compare__range {
      background-color: transparent;
      box-sizing: border-box;
      font-family: inherit;
      height: 100%;
      margin: 0;
      outline: none;
      position: absolute;
      top: 0;
      width: 100%;
    }
    .c-compare__range::-moz-range-thumb {
      background-color: var(--thumb-bgc);
      cursor: ew-resize;
      height: 100%;
      width: var(--thumb-w);
    }
    .c-compare__range::-webkit-slider-thumb {
      background-color: var(--thumb-bgc);
      cursor: ew-resize;
      height: 100%;
      width: var(--thumb-w);
    }
    .c-compare__range:focus::-webkit-slider-thumb {
      background-color: var(--thumb-bgc-focus);
      box-shadow: 0 0 0 3px var(--thumb-bgc);
    }
    .c-compare__range:focus::-moz-range-thumb {
      background-color: var(--thumb-bgc-focus);
      box-shadow: 0 0 0 3px var(--thumb-bgc);
    }
    .c-compare__range::-moz-range-track {
      background: transparent;
      background-size: 100%;
      box-sizing: border-box;
    }
    .c-compare__range::-webkit-slider-runnable-track {
      background: transparent;
      background-size: 100%;
      box-sizing: border-box;
      height: 100%;
    }
    .c-compare__range,
    .c-compare__range::-webkit-slider-runnable-track,
    .c-compare__range::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
    }

/* hasIndex */
    .news-cover {
        background-repeat: no-repeat;
        background-size: cover;
        padding-top: 250px;
        background-position: 50% 50%;
    }
    article .home-page h2 {
        margin-top: 0;
        margin-bottom: 0;
    }
    .home-page nav {
        float: right;
        padding-top: 20px;
    }
    .home-page nav a {
        margin-right: 20px;
        display: inline-block;
        font-weight: bold;
    }
    .home-page nav a:last-of-type {
        margin-right: 0;
    }
    .news-list {
        margin-top: 20px;
        margin-bottom: 40px;
        display: grid;
        grid-row-gap: 20px;
        grid-column-gap: 20px;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .news-list .news-item {
        background-color: var(--current-semitransparent);
        display: block;
        text-decoration: none;
    }
    .news-list .news-item .title {
        margin: 0;
        padding: 10px;
    }
    .news-list .news-item:hover .title {
        text-decoration: underline;
    }
    .news-list .news {
        position: relative;
        overflow: hidden;
        background-color: var(--current-transparent-bg);
    }
    .news-list .news .cover {
        background-repeat: no-repeat;
        background-position: 50% 50%;
        background-size: auto 100%;
        height: 200px;
        display: block;
        text-decoration: none;
        transition: all .5s;
        background-color: black;
    }
    .news-list .news .cover:hover {
        background-size: auto 115%;
    }
    .news-list .news h2, .news-list .news h3 {
        font-size: 1.1em;
        margin: 0;
        border: 0;
        padding: 5px 10px;
    }
    .news-list .news h2 a, .news-list .news h3 a {
        border: 0;
    }
    .news-list.news-list-short {
        display: grid;
        grid-row-gap: 20px;
        grid-column-gap: 20px;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    .news-list.news-list-short .news h3 {
        font-size: 0.9em;
    }
    .featured-list {
        border-bottom: 2px solid var(--current-text-color);
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
    .featured {
        border-bottom: 6px solid var(--current-text-color);
        margin-bottom: 10px;
    }
    @media (max-width: 1200px) {
        article .home-page {
            padding: 20px;
        }
    }
    @media (max-width: 1100px) {
        .news-list {
            grid-template-columns: 1fr 1fr;
        }
        .featured-list {
            grid-template-columns: 1fr 1fr 1fr;
        }
        .featured-list .news-cover {
            padding-top: 100px;
        }
    }
    @media (max-width: 800px) {
        .news-list.news-list-short {
            grid-template-columns: 1fr 1fr;
        }
        .home-page nav {
            display: none;
        }
    }
    @media (max-width: 700px) {
        .news-cover {
            padding-top: 200px;
        }
        .news-list {
            grid-template-columns: 1fr;
        }
    }
    @media (max-width: 500px) {
        .news-list.news-list-short {
            grid-template-columns: 1fr;
        }
    }


footer {
    max-width: var(--max-width);
    background-color: var(--current-semitransparent);
    color: var(--current-text-color);
    margin: 0 auto;
}
footer .bottom {

    text-align: right;
    padding: 15px 25px;
}
footer nav {
    padding: 15px 25px;
}
footer nav .menu {
    display: grid;
    grid-row-gap: 20px;
    grid-column-gap: 20px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 0;
    margin: 0;
    list-style: none;
}
footer nav .menu li, footer nav .menu li .sub-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
footer nav .menu li {
    line-height: 1.8em;
}
footer nav .menu li a {
    text-decoration: none;
}
footer nav .menu li a:hover, footer nav .menu li a.active {
    text-decoration: underline;
}
footer .menu-header {
    font-weight: bold;
}
@media (max-width: 800px) {
    footer nav .menu {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 420px) {
    footer nav .menu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1250px) {
   article img {
       width: auto;
       height: auto;
       max-width: 100%;
   }
}

@media (prefers-color-scheme: dark) {
    :root {
        --current-background: var(--dark-background);
        --current-text-color: var(--dark-text-color);
        --current-link-color: var(--dark-link-color);
        --current-content-background: var(--dark-content-background);
        --current-transparent-bg: var(--dark-transparent-bg);
        --current-semitransparent: var(--dark-semitransparent);
    }
    #menuToggle .menu-header {
        background-image: url('/static/down_w.svg');
    }
    #menuToggle #menu .menu-section:hover .menu-header {
        background-image: url('/static/up_w.svg');
    }
}

@media only screen and (max-width : 1000px) {
    header .aside-menu {
       display: none;
    }
    article {
        padding: 0;
    }
    article .article-inner {
        padding-top: 25px;
    }
    article h1 {
        border-top: 6px solid var(--current-text-color);
    }
    article h1 span {
        border-top: 2px solid var(--current-text-color);
        margin-top: 5px;
        padding-top: 5px;
    }
    #menuToggle {
        padding: 0;
        padding-bottom: 10px;
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        background-color: var(--current-semitransparent);
        box-shadow: 0 4px 2px -2px var(--current-text-color);
    }
    #menuToggle:after {
        content: 'RkBlog';
        color: var(--current-text-color);
        font-size: 2em;
        margin-top: -34px;
        float: left;
        margin-left: 65px;
    }
    #menuToggle input {
      display: flex;
      width: 40px;
      height: 32px;
      position: absolute;
      cursor: pointer;
      opacity: 0;
      z-index: 2;
    }
    #menuToggle .burger {
      display: flex;
      width: 29px;
      height: 2px;
      margin-bottom: 5px;
      margin-left: 20px;
      position: relative;
      background: var(--current-text-color);
      border-radius: 3px;
      z-index: 1;
      transform-origin: 5px 0;
      transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                  opacity 0.55s ease;
    }
    #menuToggle .burger:first-of-type {
        margin-top: 20px;
    }
    #menuToggle strong {
        display: none;
    }
    #menuToggle .mobile {
        display: inline-block;
        position: absolute;
        left: 55px;
        top: 10px;
        font-size: 1.8em;
    }
    #menuToggle .burger:first-child {
      transform-origin: 0 0;
    }
    #menuToggle .burger:nth-last-child(2) {
      transform-origin: 0 100%;
    }
    #menuToggle input:checked ~ .burger {
      opacity: 1;
      transform: rotate(45deg) translate(-3px, -1px);
      background: var(--current-text-color);
    }
    #menuToggle input:checked ~ .burger:nth-last-child(3) {
      opacity: 0;
      transform: rotate(0deg) scale(0.2, 0.2);
    }
    #menuToggle input:checked ~ .burger:nth-last-child(2) {
      transform: rotate(-45deg) translate(0, -1px);
    }
    #menuToggle #menu {
      background-color: var(--current-background);
      position: relative;
      margin-top: 10px;
      display: none;
    }
    #menuToggle input:checked ~ #menu {
        display: block;
        padding-bottom: 20px;
        border-bottom: 2px solid var(--current-text-color);
        margin-bottom: -25px;
    }
    #menuToggle a {
        display: inline-block;
        margin-right: 10px;
    }
    #menuToggle #menu .main-list .menu-section {
        display: block;
    }
    #menuToggle #menu .submenu {
        display: block;
        position: relative;
        left: auto;
        width: auto;
    }
    #menuToggle .menu-header {
        background-image: none;
    }
    #menuToggle #menu .menu-section:hover .menu-header {
        background-image: none;
    }
    #menuToggle #menu .sub-list li {
        display: inline-block;
        margin-right: 15px;
        margin-left: 0;
    }
    header, header h1.header, header div.header {
        margin-bottom: 0;
    }
    header {
        width: 100%;
    }
    article {
        margin-top: 60px;
    }
}

@media only screen and (max-width : 1060px) {
    .image-slider img {
        max-width: 95vw;
    }
}

@media only screen and (max-width : 800px) {
    h1 {
        font-size: 1.5em;
    }
    h2 {
        font-size: 1.3em;
    }
    h3 {
        font-size: 1.1em;
    }
    h4, h5 {
        font-size: 1em;
    }
}
@view-transition {
  navigation: auto;
}
