:root {
  --bg-light: #ffffff;
  --text-light: #000000;
  --bg-dark: #121212;
  --text-dark: #f0f0f0;
  --card-light: #f9f9f9;
  --card-dark: #1f1f1f;
}

body {
  margin: 0;
  font-family: NotoSerifJP, Roboto, sans-serif, monospace;
  background-color: var(--bg-light);
  color: var(--text-light);
/*  transition: background-color 0.4s, color 0.4s;*/
}

body.darkMode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}
/*
.card {
  background-color: var(--card-light);
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 10px;
  width: 80%;
  transition: background-color 0.4s;
}
body.darkMode .card {
  background-color: var(--card-dark);
}
*/
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
}
body.darkMode .navbar {
  background-color: #121212;
}

.nav-left {
  margin-left: 13em;
  font-weight: bold;
}
.nav-right {
  display: flex;
  align-items: center;
}

/* トグルスイッチ */
.theme-switch {
  position: relative;
  display: inline-block;
  top: 27px;
  width: 50px;
  height: 28px;
}
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  background-color: #888;
  border-radius: 30px;
  position: absolute;
  cursor: pointer;
  inset: 0;
/*  transition: background-color 0.4s;*/
}
.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
/*  transition: transform 0.4s;*/
}
input:checked + .slider::before {
  transform: translateX(22px);
}
.slider .icon {
  position: absolute;
  top: -2px;
  font-size: 20px;
  pointer-events: none;
/*  transition: transform 0.3s;*/
}
input:checked + .slider .icon {
  transform: translateX(22px);
}

/* リセットボタン */
#resetBtn {
  position: absolute;
  top: 24px;
  left: 155px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

div {
	margin-bottom: 3em;
}
p {
    margin-top: 1em;
    margin-left: 5em;
    width: 850px;
    padding: 10px;
    line-height: 1.2em;
}
p.top {
    margin-top: 3em;
    margin-left: 5em;
    width: 850px;
    padding: 10px;
    line-height: 1.2em;
}
a {
    color: #008000;
}
a:link, li a:visited {
  text-decoration: none;
  color: #993300;
}
a:hover {
    color: #9E76B4;
    text-decoration: underline;
}
.bold {
    font-size: bold;
	font-weight: bolder;
}
.small {
    padding: 12px 0;
    font-size: small;
	vertical-align: top;
}
.red {
	color: red;
    font-size: small;
	font-weight: bolder;
}
.aka {
	color: red;
	font-weight: bolder;
}
.doubleline { /*二重取り消し線*/
background-image: url(doubleLine_orange.png);
background-repeat:repeat-x;
background-position: center;
}
.att {
	color: red;
	font-weight: bolder;
}
hr {
	margin-top: 2em;
	margin-bottom: 2em;
	margin-left: 5em;
	text-align: left;
	width: 800px;
	border: 1px blue;
	border-style:dotted none;
}
.colum {
    border: 1px solid skyblue;
    margin-top: 1em;
    margin-left: 6em;
    width: 460px;
    padding: 10px;
    line-height: 1.2em;
    font-size: 0.9em
}
.colum-1 {
    border: 1px solid skyblue;
    width: 700px;
    margin-top: 1em;
    margin-left: 6em;
    padding: 10px;
    line-height: 1.2em;
    font-size: 0.9em
}
.colum-2 {
    border: 1px solid skyblue;
    width: 700px;
    margin-top: -1em;
    margin-left: 6em;
    padding: 10px;
    line-height: 1.2em;
    font-size: 0.9em
}

.cont {
    margin-top: -2em;
    margin-left: 7em;
    width: 750px;
    padding: 10px;
    line-height: 1.2em;
    font-size: 0.9em
}
.xxsmall {
    margin-top: 3em;
    margin-left: 30em;
    width: 650px;
    padding: 10px;
    line-height: 1.2em;
    font-size: 10px;
	vertical-align: top;
}
.tyu {
    margin-bottom: -1.5em;
}
.kasi {
    margin-top: 1em;
    margin-left: 5em;
    width: 850px;
    padding: 10px;
    line-height: 1.7em;
}
.sa-b {
    margin-bottom: -1.2em;
}
.sa-t {
    margin-top: -1.2em;
}
.omake {
    margin-top: 3em;
    margin-left: 7em;
    width: 650px;
    padding: 10px;
    line-height: 1.2em;
    font-size: 8px;
	vertical-align: middle;
}
@font-face {
  font-family: 'NotoSerifJP';
  src: url('../../font/NotoSerifJP-Regular.otf') format('opentype');
}
