:root {
  interpolate-size: allow-keywords;
  --mono-font: bold 100% "Lekton", monospace;
}
:root {
  font-size: 0.875rem;
}
@media (min-width: 360px) {
  :root {
    font-size: calc(0.875rem + ((1vw - 0.225rem) * 0.27272727));
  }
}
@media (min-width: 2561px) {
  :root {
    font-size: 1.25rem;
  }
}
html.SansSerif-font {
  font-family: sans-serif;
}
html.Serif-font {
  font-family: serif;
}
html.oswald-font {
  font-family: 'oswald', sans-serif;
}
html.IMBPlexSans-font {
  font-family: "IBM Plex Sans JP", sans-serif;
}
body {
  touch-action: none;
  user-select: auto;
  opacity: 0;
}
body a {
  color: var(--text-main);
}
/* --- モバイル専用要素の制御 --- */
/* bodyにisMobileが「ついていない」時（＝PC時）は消す */
body:not(.is-state-mobile) [data-mobile-only] {
  display: none !important;
}
/* --- PC専用要素の制御 --- */
/* bodyにisMobileが「ついている」時（＝モバイル時）は消す */
body.is-state-mobile [data-pc-only] {
  display: none !important;
}
header {
  display: flex;
  justify-content: space-between;
}
header > * {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
header div.appTitle {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
header .loginStatus {
  position: relative;
  height: -webkit-fill-available;
}
header .loginStatus a {
  display: contents;
}
header .loginStatus > a > div {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 1em;
  white-space: nowrap;
  overflow-x: clip;
  transition: all 0.35s ease;
  border-radius: var(--radius);
}
header .loginStatus > a > div:hover {
  width: max-content;
  padding: 0 1em;
  background: #77777720;
}
header .loginStatus .loggedIn .icon {
  color: orange;
}
header .loginStatus .notLoggedIn a {
  color: red !important;
}
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 ';
}
section.statusBar {
  padding: 0 1rem;
  height: 1.5rem;
  border-top: 2px solid var(--background-bg);
  background: var(--section-bg);
  display: flex;
  align-items: center;
  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 {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 0 1rem;
  background: var(--background-bg);
  padding: 0.25rem 0.75rem;
  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.buttons {
  gap: 0 0.3rem;
}
section.bottom ul.buttons > * {
  cursor: pointer;
}
section.bottom ul.buttons a {
  display: contents;
}
section.bottom ul.buttons li {
  padding: 0 0.3rem;
  background: var(--content-bg);
  border-radius: var(--radius);
  height: 2.5rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: all 0.2s;
  line-height: 1;
}
section.bottom ul.buttons li:hover {
  background: var(--accent-color);
  color: var(--accent-text-color);
}
input[type=text] {
  border: none;
  outline: 1px solid var(--border-color);
  outline-offset: -1px;
  border-radius: 0.2rem;
  background: var(--content-bg);
}
input[type=text]::placeholder {
  transition: opacity 0.3s;
}
input[type=text]:focus::placeholder {
  opacity: 0;
}
.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;
}
.hide {
  visibility: hidden;
}
.on {
  background: orange !important;
}
.active {
  background: orange !important;
}
.btn {
  white-space: nowrap;
  padding: 0 0.25rem;
  border-radius: 0.2rem;
}
.btn.btnDel {
  background: red;
}
.btn[data-name="btnUp"] {
  line-height: 0.5;
}
.btn[data-name="btnDown"] {
  line-height: 0.5;
}
.material-symbols-outlined {
  display: flex;
  font-size: 1.1em !important;
}
.highlight {
  background: #ffffcc !important;
}
.red {
  color: red;
}
.blue {
  color: blue;
}
.strong {
  font-weight: strong;
}
svg {
  pointer-events: none;
}
.mainContainer {
  padding: 0.5rem 0.75rem;
  height: calc(100svh - 7.5rem);
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mainContainer::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Edge */
}
.mainContainer h1 {
  font-size: 90%;
  font-weight: bold;
}
.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;
}
.clickToInputField {
  align-items: center !important;
  outline-offset: -1px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}
.clickToInputField.focus {
  background: #ffffee17;
}
.clickToInputField:focus {
  background: #ffffee17;
}
.clickToInputField:hover {
  outline: 1px dotted #d0d02d80;
}
.clickToInputField input {
  padding: 0;
  border: none;
  text-align: inherit;
  width: 100%;
  max-width: 100%;
}
.clickToInputField input[type=text] {
  outline: none !important;
}
.focusToInputField {
  align-items: center !important;
  outline: 1px solid #41b6d440;
  outline-offset: -1px;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  min-height: 1.25rem;
}
.focusToInputField.focus {
  background: #ffffee17;
}
.focusToInputField.focusin {
  outline: 1px solid #d0d02d80 !important;
}
.focusToInputField:focus {
  background: #ffffee17;
}
.focusToInputField:hover {
  outline: 1px dotted #d0d02d80;
}
.focusToInputField input {
  padding: 0;
  border: none;
  text-align: inherit;
  width: 100%;
  max-width: 100%;
}
.focusToInputField input[type=text] {
  outline: none !important;
}
.focusToInputField textarea {
  padding: 0;
  border: none;
  text-align: inherit;
  width: 100%;
  height: auto;
  min-height: 1em;
  align-self: center;
  /* 親が flex ならこれで縦中央 */
  /* モダンブラウザならこれで中身に合わせて勝手に広がる */
  field-sizing: content;
  line-height: inherit;
  resize: none;
}
.focusToTextareaField {
  outline: 1px solid #41b6d440;
  outline-offset: -1px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-width: 3em;
  min-height: 1.5rem;
  white-space: pre;
}
.focusToTextareaField.focus {
  outline: 1px dotted #d0d02d80;
}
.focusToTextareaField.focusin {
  outline: 1px solid #d0d02d80 !important;
}
.focusToTextareaField:hover {
  outline: 1px dotted #d0d02d80;
}
.focusToTextareaField textarea {
  padding: 0;
  border: none;
  text-align: inherit;
  width: 100%;
  height: 100%;
  line-height: inherit;
}
.isMobile {
  display: none !important;
}
.isPC {
  display: none;
}
@keyframes blinking {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
