: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;
}
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: 1em;
}
.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,
.focusToTextareaField {
  position: relative;
  /* 子の絶対配置の基準にする */
  width: 100%;
  max-width: 100%;
  /* 親を突き破らないための防波堤 */
  box-sizing: border-box;
}
.focusToInputField textarea,
.focusToTextareaField textarea {
  position: absolute;
  /* 親の領域を完全にトレースさせる */
  inset: 0;
  /* top, right, bottom, left すべて 0 */
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  line-height: inherit;
  resize: none;
  box-sizing: border-box;
  overflow: hidden;
  /* スクロールバーで幅が変わるのを防ぐ */
}
.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: 100%;
  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;
}
/* ネストをフル活用したモダンな記述 */
.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0 0 0 / 0.5);
  /* ここだけは透過させて背後を見せる */
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.modalOverlay.none {
  display: none;
}
.modalOverlay .modalWindow {
  width: min(90%, 500px);
  background: var(--section-bg);
  /* セクション背景を使用 */
  color: var(--text-color);
  border-radius: calc(var(--radius) * 3);
  /* 少し丸みを強調 */
  box-shadow: 0 20px 40px rgba(0 0 0 / 0.4);
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.modalOverlay .modalWindow .modalHeader {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--background-bg);
  /* ヘッダーを少し沈める */
  border-bottom: 1px solid var(--border-color);
}
.modalOverlay .modalWindow .modalHeader .modalTitle {
  font-weight: 700;
}
.modalOverlay .modalWindow .modalHeader .btn {
  color: var(--text-color);
  cursor: pointer;
  border-radius: var(--radius);
}
.modalOverlay .modalWindow .modalHeader .btn:hover {
  background: var(--btn-bg-hover-color);
}
.modalOverlay .modalWindow .modalBody {
  padding: 1.25rem;
  background: var(--content-bg);
  /* ボディはコンテンツ背景 */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modalOverlay .modalWindow .modalBody .modalSearch {
  position: sticky;
  top: -1.25rem;
  /* modalBodyのpadding分戻す */
  background: var(--content-bg);
  padding: 10px 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: 15px;
}
.modalOverlay .modalWindow .modalBody .modalSearch input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.1rem;
  outline: none;
  padding: 5px;
}
.modalOverlay .modalWindow .modalBody .modalSearch input::placeholder {
  color: var(--border-color);
}
.modalOverlay .modalWindow .modalBody .modalList {
  display: grid;
  gap: 10px;
}
.modalOverlay .modalWindow .modalBody .modalList li {
  padding: 1rem;
  background: var(--btn-bg-color);
  border: 1px solid var(--btn-border-color);
  color: var(--btn-text-color);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}
.modalOverlay .modalWindow .modalBody .modalList li:hover {
  background: var(--btn-bg-hover-color);
}
.modalOverlay .modalWindow .modalBody .modalList li:active {
  transform: scale(0.97);
}
.modalOverlay .modalWindow .modalBody .modalList li.clear {
  margin-top: 10px;
  background: var(--bg-highlight);
  /* 削除/解除はハイライト色 */
  color: var(--gray-24);
  /* ハイライト上の文字色固定 */
  justify-content: center;
  font-weight: bold;
}
@keyframes modalPop {
  from {
    transform: translateY(30px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes blinking {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
