.mainvisual {
  background-position: 50% 10%;
}
@media only screen and (max-width: 767px) {
  .mainvisual {
    height: 33.8983050847vw;
    background-position: 50% 20%;
  }
}
@media only screen and (min-width: 768px) {
  div .mainvisual {
    min-height: 100px;
  }
}

/* layout */
.article-container {
  display: flex;
}

@media only screen and (max-width: 767px) {
  .article-container {
    flex-direction: column;
    row-gap: 3em;
    margin: 5em 1em;
  }
}

@media only screen and (min-width: 768px) {
  .article-container {
    flex-direction: row;
    column-gap: 3em;
    margin: 5em 0;
    align-items: flex-start;
  }
}

.article-container article {
  flex-grow: 1;
}

/* sidebar */
.article-sidebar::before {
  display: block;
  content: " ";
  background-color: #555555;
  height: 0.1vw;
  margin-bottom: 1em;
}

.article-sidebar::after {
  display: block;
  content: " ";
  background-color: #555555;
  height: 0.1vw;
  margin-top: 1em;
}

.article-sidebar-body ul li a {
  color: #fff;
  transition: color 0.3s;
}

.article-sidebar-body ul li a:hover {
  color: #9d33ff;
}

.article-sidebar-title {
  font-size: 3.5vw;
  margin-right: 1em;
}

.article-sidebar-body ul li {
  font-size: 3.5vw;
  margin: 1em 0 1em 1em;
}

.article-sidebar-title-container {
  display: flow-root;
}

.article-sidebar-title-container details[open] .collapse-button {
  transform: rotate(180deg);
  transform-origin: center;
}

.article-sidebar-title-container details summary {
  list-style: none;
}

.article-sidebar-title-container summary::-webkit-details-marker {
	display: none;
}

.collapse-button {
  transition: 0.3s;
  float: right;
  width: 5vw;
  height: 5vw;
}

.collapse-button img {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(65deg) brightness(100%) contrast(103%);
}

.article-sidebar-morelink {
  overflow: hidden;
  border-bottom: 1px solid #9d33ff;
  color: #9d33ff;
  transition: border-bottom 0.3s;
  font-size: 3.5vw;
  margin: 1em 0 1em 1em;
}

.article-sidebar-morelink:hover {
  border-bottom: 1px solid transparent;
}

@media only screen and (max-width: 767px) {
  .article-sidebar {
    margin: 0 1em;
  }

  .article-sidebar-title-container {
    margin: 1.5em 0;
  }
}

@media only screen and (min-width: 768px) {
  .article-sidebar::before {
    display: none;
  }

  .article-sidebar::after {
    display: none;
  }

  .article-sidebar {
    width: 12vw;
    flex-shrink: 0;
  }

  .article-sidebar-title {
    font-size: 0.875vw;
  }

  .article-sidebar-body ul li {
    font-size: 0.7vw;
    margin: 1em 0 1em 1em;
  }

  .article-sidebar-morelink {
    font-size: 0.7vw;
    margin: 1em 0 1em 1em;
  }

  .collapse-button {
    width: 1.25vw;
    height: 1.25vw;
  }
}

/* head navigation */
.head-nav {
  margin: 3em 3em 1em 3em;
}

.head-nav ol {
  display: flex;
  font-size: 3.2vw;
  flex-direction: column;
  line-height: 2;
}

.head-nav ol li + li::before {
  content: ">";
  margin: 0 1em 0 0;
}

.head-nav ol li a {
  color: #fff;
  transition: color 0.3s;
}

.head-nav ol li a:hover {
  color: #9d33ff;
}

@media only screen and (min-width: 768px) {
  .head-nav {
    margin: 3em auto 1em auto;
    padding: 0 50px;
  }

  .head-nav ol {
    display: flex;
    font-size: 0.7vw;
    flex-direction: row;
    line-height: 1;
  }

  .head-nav ol li + li::before {
    margin: 0 1em;
  }
}

@media only screen and (min-width: 1601px) {
  .head-nav {
    width: 1600px
  }
}

/* article-header */
.article-header {
  line-height: 1.5;
}

.article-header .article-title {
  font-size: 6.0vw;
  margin-bottom: 0.7em;
}

.article-header .article-author {
  font-size: 3vw;
  color: #AAAAAA
}

.article-header .article-created-date {
  font-size: 3vw;
  color: #999999;
}

.article-header .article-updated-date {
  font-size: 3vw;
  color: #999999;
}

@media only screen and (min-width: 768px) {
  .article-header .article-title {
    font-size: 2.0vw;
    margin-bottom: 0.7em;
  }

  .article-header .article-author {
    font-size: 0.8vw;
  }

  .article-header .article-created-date {
    font-size: 0.7vw;
  }

  .article-header .article-updated-date {
    margin-left: 0.5em;
    font-size: 0.7vw;
  }
}

/* article text */
.article-text {
  font-size: 3.5vw;
  line-height: 1.5;
  min-width: 0%;
  white-space: pre-wrap;
}

.article-text p {
  margin: 1em 0.25em;
}

.article-text h4 {
  font-size: 3.6vw;
  margin: 1em 0;
}

.article-text h3 {
  font-size: 3.9vw;
  margin: 1em 0;
}

.article-text h2 {
  font-size: 4.2vw;
  margin: 1em 0;
}

.article-text h1 {
  font-size: 4.5vw;
  margin: 1em 0;
}

.article-text .article-image {
  margin: 1em 0;
}

.article-text .article-image .gatsby-image-wrapper picture img {
  background-color: #888888;
}

.article-text table {
  border-collapse: collapse;
  border: solid 1px #ddd;
  max-width: 100%;
  table-layout: fixed;
  word-break: break-all;
  margin: 1em 0;
}

.article-text table td {
  border: solid 1px #ddd;
  padding: 0.3em;
  vertical-align: middle;
}

.article-text blockquote {
  margin-left: 1em;
  padding: 0 1em;
  border-left: 1px solid #ddd;
}

.article-text pre {
  border: solid 1px #ddd;
  background-color: #222222;
  max-width: 100%;
  display: inline-block;
  overflow-x: auto;
  padding: 0.3em;
}

.article-text code {
  font-family: Menlo, Consolas, Monaco, monospace;
}

.article-text .article-text-style-bold {
  font-weight: bold;
}

.article-text .article-text-style-italic {
  font-style: italic;
}

.article-text .article-text-style-strikethrough {
  text-decoration: line-through;
}

@media only screen and (min-width: 768px) {
  .article-text {
    font-size: 0.875vw;
  }

  .article-text h4 {
    font-size: 1vw;
  }
  
  .article-text h3 {
    font-size: 1.2vw;
  }
  
  .article-text h2 {
    font-size: 1.4vw;
  }
  
  .article-text h1 {
    font-size: 1.6vw;
  }
}

.article-text a {
  overflow: hidden;
  text-decoration: underline 1px solid #9d33ff;
  text-underline-offset: 0.2em;
  color: #9d33ff;
  transition: text-decoration 0.3s;
}

.article-text a:hover {
  text-decoration: underline 1px solid transparent;
}

.article-text ul {
  margin-left: 1em;
}

.article-text ul li {
  list-style: disc;
  margin: 0.75em;
}

.article-text ul li p {
  margin: 0;
  display: inline;
}

.article-text ol {
  margin-left: 1em;
}

.article-text ol li {
  list-style-type: decimal;
  margin: 0.75em;
}

.article-text ol li p {
  margin: 0;
  display: inline;
}

/* article comments */
.article-comments {
  margin-top: 2em;
}

.article-comments .article-comments-header {
  padding: 2.5em 0;
}

.article-comments .article-comments-header .article-comments-label {
  font-size: 3.9vw;
}

.article-comments .article-comments-header .article-comments-label-no {
  font-size: 3.9vw;
  color: #888888;
}

.article-comments article::before {
  display: block;
  content: " ";
  background-color: #555555;
  height: 0.1vw;
  margin-bottom: 2.5em;
}

@media only screen and (min-width: 768px) {
  .article-comments {
    margin-top: 2em;
  }

  .article-comments .article-comments-header {
    padding: 2.5em 0;
  }

  .article-comments .article-comments-header .article-comments-label {
    font-size: 1.2vw;
  }

  .article-comments .article-comments-header .article-comments-label-no {
    font-size: 1.2vw;
  }

  .article-comments article::before {
    height: 1px;
  }

}

/* article-list */
@media only screen and (min-width: 768px) {
  .article-list-width {
    max-width: 1000px;
  }
}

.article-list {
  margin: 2.5em 0
}

.article-list ul {
  margin-left: 0;
}

.article-list ul li {
  list-style-type: none;
}

.article-list ul li + li::before {
  display: block;
  content: " ";
  background-color: #555555;
  height: 0.1vw;
  margin-bottom: 1em;
}

@media only screen and (min-width: 768px) {
  .article-list ul li + li::before {
    height: 1px;
  }
}

.article-list-item {
  display: flex;
  flex-direction: row;
}

.article-list-date {
  font-size: 0.8em;
  margin: auto 0.5vw;
  width: 10ch;
  flex-shrink: 0;
}

.article-list-header {
  display: flex;
  justify-content: space-between;
}

.article-list-language-selector {
  margin: auto 0;
}

.article-list-language-selector span {
  font-size: 0.8em;
}

.article-list-language-selector select {
  appearance: auto;
  border: solid 1px #ddd;
  border-radius: 8px;
  min-width: 5ch;
  text-align: center;
  background-color: #222222;
  margin-left: 0.5vw;
}

.article-list-language-selector select option {
  background-color: #222222;
}

/* forum-tag-list */
.forum-tag-list {
  margin: 5em auto;
}

.forum-tag-button {
  margin: 2em;
}

/* support-page */

.support-button {
  flex-wrap: wrap;
}

.support-split {
  display: block;
  content: " ";
  background-color: #555555;
  height: 0.1vw;
  margin: 2vw 0;
}

@media only screen and (min-width: 768px) {
  .support-split {
    height: 1px;
  }
}

.support-button a {
  margin: 1em;
}

.community-close-notice {
  line-height: 2;
}

@media only screen and (max-width: 767px) {
  .community-close-notice {
    margin: 0 2vw;
  }
}

.community-close-notice h1 {
  line-height: 2;
}

.community-close-notice h2 {
  line-height: 2;
}

.community-close-notice h3 {
  line-height: 2;
}
