/* CSS Reset */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-size: 1em;
  line-height: 1.5em;
  scroll-behavior: smooth;
  overscroll-behavior-y: none; /* Chrome Pull-to-Refresh Off */
  text-rendering: optimizeSpeed;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-size-adjust: inherit;
}

#root, #__next {
  isolation: isolate;
}

/* Style for MACS */

body {
  background-color: ##f4f6f8;
  min-width: 22rem;
}

h1, h2, h3 {
  white-space: nowrap;
  font-weight: normal;
  color: white;
  padding: 0 0.7em;
}

h1 {
  font-size: 1.2em;
  line-height: 1.6;
  background-color: #192f60;
  border-top: 1px solid #1e50a2;
  border-bottom: 1px solid black;
}

h2 {
  font-size: 1.1em;
  font-weight: normal;
  line-height: 1.7;
  background-color: #26499d;
  border-top: 1px solid #4169b4;
  border-bottom: 1px solid #001e43;
}

h3 {
  font-size: 1em;
  line-height: 1.9;
  background-color: #4169e1; /* royalblue */
  padding: 0 0.7em;
  border-top: 1px solid #7a99cf;
  border-bottom: 1px solid #192f60;
}

h4 {
  font-size: 1em;
  font-weight: normal;
  line-height: 1.6;
  color: #19448e;
  background-color: #f3f3f3; /* silverwhite #efefef */ /* smokewhite #f5f5f5 */
  padding: 0 0.4em;
  border-top: 1px solid #1e50a2;
  border-left: 6px solid #1e50a2;
}

p {
  margin: 0.7em 0.7em;
  /*padding: 0.7em 0.7em;*/
}

button,
[type=button],
[type=reset],
[type=submit] {
  color: black;
  line-height: 1.4;
  height: 2.2em;
  border-radius: 8px;
  border-width: 1px;
  border-color: #aaaaaa;
  padding: 0 0.7em;
  background-color: #fcfafa;
  cursor: pointer;
}

.disabled,
button:disabled,
[type=button]:disabled,
[type=reset]:disabled,
[type=submit]:disabled {
  color: silver;
  opacity: 0.5;
  cursor: default;
}

select {
  border-radius: 5px;
  border-width: 1px;
  border-color: #999999;
  background-color: #fcfafa;
  cursor: pointer;
}

input[type=text], select {
  color: black;
  line-height: 1.4;
  height: 2.1em;
  padding: 0 0.3em;
  max-width: 90%;
}

/* Firefox */
@-moz-document url-prefix() {
  select {
    padding-left: 0.5em;
  }
}

input[type=checkbox] {
  width: 1.6em;
  height: 1.6em;
  line-height: 1.6;
  margin: 0 0.4em 0.2em 0;
  vertical-align: middle;
  accent-color: #1074ff;
  cursor: pointer;
}

p.node, p.item {
  white-space: nowrap;
}

p.node {
  line-height: 1.5;
  margin-top: 0.9em;
}

p.item {
  line-height: 1.5;
  margin-left: 2.0em;
}

button.help {
  height: 1.9em;
  margin-right: 0.8em;
  padding: 0 0.2em;
  min-width: 3em;
  background-color: #fafdfa;
}

.next, .back {
  min-width: 5.0em;
}

.back {
  margin-right: 1.6em;
}

.jump {
  padding: 0 0.4em;
  min-width: 12.0em;
}

ul {
  list-style: none;
  line-height: 1.5;
  margin: 0.3em 0.8em;
  /*padding-left: 0.8em;*/
}

ul ul {
  list-style: none;
  line-height: 1.4;
  margin: 0 0 0 0.7em;
  /*padding-left: 0.2em;*/
}

li {
  position: relative;
  padding-left: 0.8em;
}

li:before {
  content: "";
  position: absolute;
  display: inline-block;
}

div > ul > li:before {
  top: 0.35em;
  left: 0;
  width: 0;
  height: 0;
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.6em solid #4d5aaf;
}

/*
div > ul > li:before {
  top: 0.35em;
  left: 0;
  width: 0.5em;
  height: 0.5em;
  background-color: #4d5aaf;
}
*/

div > ul > ul > li:before {
  top: 0.35em;
  left: 0;
  width: 0.5em;
  height: 0.5em;
  background-color: #4169e1;
  border-radius: 50%;
}

#header {
  position: fixed;
  width: 100%;
  z-index: 1;
}

.underhead * {
  color: transparent;
  border-color: transparent;
  background: transparent;
}

#main {
  overflow: auto;
  background-color: #eaedf7;
  /*padding-bottom: 0.4em;*/
  border-top: 1px solid white;
  border-bottom: 1px solid gray;
  min-height: 14.7em;
}

#navi {
  background-color: #b0c4de; /* lightsteelblue */
  border-top: 1px solid #f0f8ff; /* aliceblue */
  border-bottom: 1px solid #696969; /* dimgray */
}

#navi .disabled {
  pointer-events: none;
  cursor: default;
}

#navi * {
  vertical-align: middle;
}

#navi p {
  white-space: nowrap;
}

p.left, p.scaler {
  display: inline-block;
  line-height: 1;
  text-align: left;
  width: calc(100% - 7rem);
  max-width: calc(30rem - 6rem);
}

p.left, p.scaler {
  margin: 0 0 0.7em 0.7em;
}

p.right, p.spiner {
  display: inline-block;
  line-height: 1;
  width: 5rem;
  text-align: right;
}

p.right {
  vertical-align: bottom;
  margin: 0 0.2em 0.7em 0;
}

p.right button, p.spiner button, .bset {
  margin: 0;
  padding: 0;
  width: 2rem;
  height: 2rem;
  text-align: center;
}

p.right button {
  font-size: 1.13rem;
}

#setting {
  background-color: #bbdbf3; /* frostyblue */
  border-top: 1px solid #fafdff; /* snowwhite */
  border-bottom: 1px solid #8da0b6; /* frenchgray */
  height: 4.0rem;
}


p.scaler {
  margin: 0.2rem 0 1rem 0.7em;
  vertical-align: bottom;
  white-space: nowrap;
}

p.scaler * {
  line-height: 2.1rem;
  vertical-align: bottom;
}

p.scaler input[type=range] {
  width: 7rem;
  height: 2rem;
  /*padding-bottom: 4px;*/
  cursor: pointer;
}

.small {
  font-size: 0.82rem;
}

.large {
  font-size: 1.13rem;
}

.ssize {
  font-size: 1.0rem;
  border: solid 1px #808080;
}

#rsize {
  border: solid 1px #808080;
}

p.spiner {
  vertical-align: middle;
  margin: 1rem 0.2em 1rem 0;
}

p.spiner * {
  margin: 0;
  padding: 0;
  font-size: 1.0rem;
  line-height: 2.0rem;
}

p.spiner button {
  font-size: 1.063rem;
}

p.spiner input[type=number] {
  width: 1.0rem;
  height: 2.0rem;
  text-align: center;
  border: solid 1px #808080;
  display: none;
}

input[type=number],
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
  -moz-appearance:textfield;
}

#footer button {
  margin-right: 0.3em;
  pointer-events: none;
  cursor: default;
}

#footer h3 {
  white-space: normal;
}

#setopen {
  display: none;
}

#wait {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding-top: 4.0em;
  background-color: #444444;
  opacity: 0.5;
  display: none;
}

div#wait p {
  font-size: 1.0rem;
  opacity: 1.0;
  color: white;
  text-align: center;
}

div#wait img {
  margin: 0 auto;
}

.loader,
.loader:after {
  border-radius: 50%;
  width: 12rem;
  height: 12rem;
}

.loader {
  margin: 60px auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1rem solid rgba(255, 255, 255, 0.2);
  border-right: 1.1rem solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1rem solid rgba(255, 255, 255, 0.2);
  border-left: 1.1rem solid #ffffff;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
