:root {
  interpolate-size: allow-keywords;
  --monoSpaceFontFamily: bold "Lekton", monospace;
}
html {
  font-family: var(--fontFamily);
}
body {
  touch-action: none;
}
body.notFocus:not(body.debug)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}
h1 {
  font-size: 80%;
  font-weight: bold;
}
header > * {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
header .saveStatus {
  opacity: 0.6;
}
header .saveStatus.saveFlag {
  opacity: 1;
  color: red;
}
header .saveStatus.saveHoldFlag {
  animation: blinking 1s ease-in-out infinite alternate;
}
header .lampStatus {
  font-size: 0.4rem;
  text-shadow: 0 0 2px #fff;
}
header .lampNetwork {
  font-size: 0.4rem;
  text-shadow: 0 0 2px #fff;
}
header .clock {
  visibility: hidden;
}
header .version::before {
  content: 'v ';
}
.material-symbols-outlined {
  font-size: 1.3em;
  /* display: inline-block; */
  /* display: inline-flex; */
  align-items: center;
  vertical-align: sub;
}
.mainContainer {
  padding: 1rem;
  height: calc(100svh - 8rem);
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mainContainer section {
  padding: 0.5rem;
  background: var(--section-bg);
}
.mainContainer table {
  border-collapse: collapse;
}
.mainContainer table tr th {
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--content-bg);
  white-space: nowrap;
}
.mainContainer table tr td {
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--border-color);
  background: var(--content-bg);
  text-align: right;
  white-space: nowrap;
}
.mainContainer table tr td.tC {
  text-align: center;
}
.mainContainer table tr td.sun {
  color: red;
}
.mainContainer table tr td.sat {
  color: blue;
}
.mainContainer table tr td .btnReturn {
  background: orange;
}
.mainContainer table tr td .btnDel {
  background: red;
}
.mainContainer .fcRed {
  color: red;
}
section.statusBar {
  padding: 0 1rem;
  height: 1.3rem;
  background: var(--section-bg);
  border-top: 1px solid var(--background-bg);
  display: flex;
  font-size: 80%;
}
section.statusBar ul {
  display: flex;
  gap: 1rem;
}
section.statusBar ul .message .error {
  color: red;
}
section.statusBar ul .message .confirm {
  color: red;
}
section.bottom {
  padding: 0.25rem 1rem;
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 0 1rem;
  font-size: calc(1.375rem + ((1vw - 0.2rem) * -0.375));
}
section.bottom ul {
  display: flex;
  align-items: center;
  gap: 0 1rem;
  overflow-x: scroll;
  scrollbar-width: none;
}
section.bottom ul a {
  display: contents;
}
section.bottom ul li {
  height: 3.2rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
section.bottom ul.buttons {
  gap: 0 0.3rem;
}
section.bottom ul.buttons > * {
  cursor: pointer;
}
section.bottom ul.buttons li {
  padding: 0 0.3rem;
  background: var(--content-bg);
  border-radius: var(--border-radius);
}
.settingBoard .inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.settingBoard .inner .title {
  text-align: center;
  font-weight: bold;
}
.settingBoard .inner ul {
  display: flex;
  gap: 0.5rem;
}
#debug {
  display: none;
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 70%;
  z-index: 1;
}
#debug .pay {
  display: flex;
  flex-direction: column;
}
.flex {
  display: flex;
}
.none {
  display: none !important;
}
.btn {
  padding: 0.25rem 0.5rem;
  line-height: 2;
  transition: background-color 0.2s;
}
.btn.active {
  background: orange;
}
.btn.on {
  background: orange;
}
.highlight {
  background: var(--bg-highlight) !important;
}
.red {
  color: red;
}
.blue {
  color: blue;
}
.strong {
  font-weight: strong;
}
svg {
  pointer-events: none;
}
.fs80 {
  font-size: 80%;
}
.loading {
  position: relative;
  min-height: 3rem;
}
.loading.fadeIn::before,
.loading.fadeIn::after {
  animation: fadeIn 0.3s ease-out forwards;
}
.loading.fadeOut::before,
.loading.fadeOut::after {
  animation: fadeOut 0.5s ease-out forwards;
}
.loading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: color-mix(in srgb, var(--content-bg) 90%, transparent);
  z-index: 998;
  opacity: 0;
  transition: height 0.3s;
}
.loading::after {
  content: '';
  background-color: #007bff;
  /* 適用したい色 */
  mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20class%3D%22svg1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%20100%20100%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2210%22%20r%3D%228%22%20fill%3D%22currentColor%22%20%2F%3E%3CanimateTransform%20attributeName%3D%22transform%22%20attributeType%3D%22XML%22%20type%3D%22rotate%22%20from%3D%220%200%200%22%20to%3D%22360%200%200%22%20dur%3D%221s%22%20repeatCount%3D%22indefinite%22%20%2F%3E%3C%2Fsvg%3E");
  /* 同じbase64データ */
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 1.5rem;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  transition: height 0.3s;
}
section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
section > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
section > div details::details-content {
  transition: height 0.4s, content-visibility 0.4s allow-discrete;
  height: 0;
  overflow: clip;
}
section > div details[open]::details-content {
  height: auto;
}
section > div details > div {
  padding: 1rem;
}
section > div details summary {
  padding: 0.5rem;
  background: var(--content-bg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none !important;
}
section > div details summary::before {
  font-family: 'Material Symbols Outlined';
  content: '\e037';
  display: inline-block;
  transition: transform 0.25s ease;
}
section > div details:not([open]) summary:hover {
  background: color-mix(in srgb, var(--content-bg) 10%, transparent);
}
section > div details[open] summary::before {
  transform: rotate(90deg);
}
section .layoutTable .body {
  overflow-x: scroll;
  scrollbar-width: none;
}
section .layoutTable .body table {
  font-family: var(--monoSpaceFontFamily);
}
section .layoutTable .body table thead tr th {
  color: var(--text-dim);
}
section .layoutTable .body table tr th {
  white-space: nowrap;
}
section .layoutTable .body table tr td {
  white-space: nowrap;
}
section .layoutBox .body {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 1rem;
}
section .layoutBox .body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
section .layoutBox .body ul li {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
  background: var(--content-bg);
}
section .layoutBox .body ul li i {
  display: block;
}
section .layoutBox .body ul li i:nth-of-type(1) {
  padding: 0.125rem 0.5rem;
  background: var(--section-bg);
  text-align: center;
  width: 100%;
  font-size: 85%;
  color: var(--text-dim);
}
section .layoutBox .body ul li i:nth-of-type(2) {
  padding: 0.5rem;
  font-family: var(--monoSpaceFontFamily);
}
section .layoutRowData textarea {
  font-family: var(--monoSpaceFontFamily);
}
@keyframes blinking {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
.hint {
  color: var(--text-dim);
  font-size: 0.7rem;
}
.hint p::before {
  content: '\f3e3';
  font-family: 'Material Symbols Outlined';
  margin-right: 0.2em;
  color: var(--col-orange);
  vertical-align: text-bottom;
}
