html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html {
  margin: 0 auto;
}

ol, ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  margin: 0px;
  padding: 0px;
  text-align: left;
  line-height: 150%;
  overflow-x: hidden;
  font-family: sans-serif;
}

a { color: #0075FF }
a:hover { color: #0075FF }
a:visited { color: #0075FF }
a:active { color: #0075FF }

.bold {
  font-weight: bold;
}
.red {
  color: red;
}

/* カテゴリへのアンカーリンク用style */
ul.categories li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 90%;
  padding: 0.6rem 1.2rem 0.6rem 1.5rem;
  border-top: 1px solid #eee;
}
ul.categories li .item.name {
  flex-shrink: 11;
  flex-grow: 12;
  color: #0075FF;
  word-break: break-all;
}
ul.categories li .item.mark {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 1;
  flex-grow: 0;
  background-image: url('img/arrow_down.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 0.9rem auto;
}

/* FAQ用style */
ul.questions_and_answers li {
  display: block;
}

ul.questions_and_answers .question {
  display: flex;
  padding-top: 0.5em;
  color: #EB5505;
}
ul.questions_and_answers .question .content {
  font-weight: bold;
}

ul.questions_and_answers .answer {
  display: flex;
  margin-bottom: 0.3em;
}
ul.questions_and_answers .answer.end {
  display: flex;
  margin-bottom: 0;
}

ul.questions_and_answers .mark {
  box-sizing: content-box;
  width: 1.3em;
  flex-shrink: 1;
  flex-grow: 0;
  padding-left: 0.4em;
  text-align: center;
}

ul.questions_and_answers .content {
  box-sizing: content-box;
  flex-shrink: 11;
  flex-grow: 12;
  padding: 0 0.5em 0.5em 0;
}

ul.questions_and_answers .question .mark::before {
  content: "Q.";
  font-weight: bold;
}
ul.questions_and_answers .answer .mark::before {
  content: "A.";
}

ul.questions_and_answers .answer .mark {
  border-bottom: 1px solid #CDCDCD;
}
ul.questions_and_answers .answer .content {
  border-bottom: 1px solid #CDCDCD;
  padding-bottom: 0.7em;
}
ul.questions_and_answers .answer.end .mark {
  border-bottom: none;
}
ul.questions_and_answers .answer.end .content {
  border-bottom: none;
}

ul.questions_and_answers li ul.inquiry {
  list-style: disc outside;
  margin-left: 1.3em;
}
ul.questions_and_answers li ul.inquiry li {
  display: list-item;
}

ul.questions_and_answers li ol.setting {
  list-style-type: decimal;
  margin: 1em  0 1em 1.3em;
}
ul.questions_and_answers li ol li {
  display: list-item;
}

.blank {
  display: block;
  font-size: 85%;
  line-height: 100%;
  padding: 0;
  margin: 0;
  padding: 0;
}

.links {
  padding: 0.5em;
  background-color: #fefefe;
}

.category {
  background-color: #eee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.5rem 1.2rem 0.5rem 0.5rem;
}
.category .item.text {
  flex-shrink: 11;
  flex-grow: 12;
  word-break: break-all;
  padding-right: 0.2em;
}
.category .item.top {
  flex-shrink: 1;
  flex-grow: 0;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url('img/arrow_up.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 0.9rem auto;
  opacity: 0.5;
}

.footer {
  font-size: 80%;
  text-align: center;
  background-color: #eee;
  padding: 0.8em 0.5em;
}
.footer .copyright {
  font-size: 90%;
  font-family: monospace, serif;
}

@media (prefers-color-scheme: dark) {
  a,
  a:hover,
  a:visited,
  a:active {
    color: #3E9AF6
  }

  .red {
    color: #ff4040;
  }

  ul.categories li {
    border-top: 1px solid #3E3E3E;
  }
  ul.categories li .item.name {
    color: #3E9AF6;
  }
  ul.questions_and_answers .question {
    color: #FF9E44;
  }
  ul.questions_and_answers .answer .mark {
    border-bottom: 1px solid #3E3E3E;
  }
  ul.questions_and_answers .answer .content {
    border-bottom: 1px solid #3E3E3E;
  }

  .links {
    background-color: #1E1E1E;
  }
  .category {
    background-color: #3E3E3E;
  }
  .footer {
    background-color: #000;
    color: #969696;
  }
}
