:root {
  --main-cl: #444444;
  --foot-cl: #666;
  --body-bg: #fff;
  --main-bg: #f5f5f5;
  --foot-bg: #fff;
  --btn-bg:  #333;
  --nav-bg:  #ffffff;
  --nav-in:  #333;
  --nav-ul:  1px solid #333;
}
@media (prefers-color-scheme: dark) {
  :root {
    --main-cl: #ddd;
    --foot-cl: #888;
    --body-bg: #000;
    --main-bg: #222;
    --foot-bg: #111;
    --btn-bg:  #666;
    --nav-bg:  #222;
    --nav-in:  #aaa;
    --nav-ul:  1px solid #999;
  }
}

body {
  background: var(--body-bg);
}

.wrapper {
  position: relative;
  height: 100%;
  font-size: 17px;
  background: #F8F8F8;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  z-index: 2;
}

main {
  width: 100%;
  padding: 150px 0;
  background: var(--main-bg);
  color: var(--main-cl);
  font-family: 'M PLUS 1p', sans-serif;
}

main p {
  margin-bottom: 50px;
}

#top_btn {
  position: fixed;
  bottom: 10px;
  right: 10px;
  border-radius: 6px;
  color: var(--main-cl);
  padding: 6px 3px;
  z-index: 3;
}

.header {
  padding: 50px 0;
  background: #161616;
  color: #fff;
}

.header code {
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.footer {
  padding: 100px 0;
  background: var(--foot-bg);
  font-family: 'M PLUS 1p';
}
.footer a,
.footer a:visited,
#list a,
#list a:visited {
  color: var(--foot-cl);
  text-decoration: none;
}

.sigure {
  margin-right: 30px;
}

/* スマホ用 */
@media screen and (max-width: 480px) {
/*============
nav
=============*/
nav {
  display: block;
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  background: var(--nav-bg);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: all .5s;
  z-index: 4;
  opacity: 0;
}
.open nav {
  left: 0;
  opacity: 1;
}
nav .inner {
  padding: 25px;
}
nav .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav .inner ul p {
  color: var(--nav-in);
}
nav .inner ul li {
  position: relative;
  margin: 0;
  border-bottom: var(--nav-ul);
}
nav .inner ul li a {
  display: block;
  color: var(--nav-in);
  font-size: 14px;
  padding: 1em;
  text-decoration: none;
  transition-duration: 0.2s;
  font-family: 'M PLUS 1p', sans-serif;
}
nav .inner ul li a:hover {
  background: #e4e4e4;
}
@media screen and (max-width: 767px) {
  nav {
    left: -220px;
    width: 220px;
  }
}

/*============
.toggle_btn
=============*/
.toggle_btn {
  display: block;
  position: fixed;
  top: 30px;
  right: 30px;
  width: 30px;
  height: 30px;
  transition: all .5s;
  cursor: pointer;
  z-index: 4;
}

.toggle_btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--btn-bg);
  border-radius: 4px;
  transition: all .5s;
}
.toggle_btn span:nth-child(1) {
  top: 4px;
}
.toggle_btn span:nth-child(2) {
  top: 14px;
}
.toggle_btn span:nth-child(3) {
  bottom: 4px;
}
.open .toggle_btn span {
  background-color: #fff;
}
.open .toggle_btn span:nth-child(1) {
  -webkit-transform: translateY(10px) rotate(-315deg);
  transform: translateY(10px) rotate(-315deg);
}
.open .toggle_btn span:nth-child(2) {
  opacity: 0;
}
.open .toggle_btn span:nth-child(3) {
  -webkit-transform: translateY(-10px) rotate(315deg);
  transform: translateY(-10px) rotate(315deg);
}

/*============
#mask
=============*/
#mask {
  display: none;
  transition: all .5s;
}
.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 3;
  cursor: pointer;
}

#list {
  display: none
}
  
.header h1,
.contents h3 {
  margin-bottom: 30px;
  font-size: 20px;
  font-family: 'Noto Sans JP', sans-serif;
}

/* メインコンテンツ */
.wrapper {
  width: 99.5%;
  text-align: center;
}

.header code {
  font-size: 15px;
}

#top_btn {
  display: none;
}

table {
  border-collapse: collapse;
  border: solid 1px ;
  display: block;
  overflow-x: scroll;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  width: 99%
}

table th, table td {
  border: solid 1px #999999;
}

.fixed01 {
  position: sticky;
  left: 0;
  color: #fff;
  background: #333;
}
.fixed01::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 100%;
  height: 100%;
  border: 1px solid #999999;
}
.fixed02 {
  position: sticky;
  left: 0;
  color: #fff;
}
.fixed02::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0,0,0,0);
}

}

/* PC用　*/
@media screen and (min-width: 481px) {

nav {
  display: none;
}

/* メインコンテンツ */
.wrapper {
  width: 95.5%;
  text-align: left;
}

#list {
  font-size: 14.5px;
  position: relative;
  padding: 0 4.5%;
}

.header {
  text-align: center;
}

.header h1 {
  margin-bottom: 30px;
  font-size: 20px;
  font-family: 'Noto Sans JP', sans-serif;
}

.contents__inner {
  font-size: 17px;
  position: relative;
  left: 2.25%;
  width: 115%;
}

.footer {
  text-align: center;
}

table {
  border-collapse: collapse;
  border: solid 2px;
}

table th, table td {
  border: solid 1px #999999;
}

}
