: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;
}
.material-symbols-outlined {
  font-size: 1.3em;
  /* display: inline-block; */
  /* display: inline-flex; */
  align-items: center;
  vertical-align: sub;
}
.mainContainer {
  padding: 1rem;
  position: relative;
  overflow-y: scroll;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mainContainer::-webkit-scrollbar {
  display: none;
}
.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;
  /* 画面幅320px(1.5rem)から1600px(1.2rem)にかけて、画面が広がるほど小さくなるよう可変 */
  /* --- 設定値（ここを書き換えるだけで自動計算されます） --- */
  --f-max: 1.6;
  /* font-size: 320px時のサイズ (rem) */
  --f-min: 1.2;
  /* font-size: 1600px時のサイズ (rem) */
  --p-max: 0.8;
  /* padding: 320px時のサイズ (em) */
  --p-min: 0.3;
  /* padding: 1600px時のサイズ (em相当) */
  /* --- 内部計算（触らなくてOK） --- */
  --f-slope: calc((var(--f-min) - var(--f-max)) / 0.8);
  --p-slope: calc((var(--p-min) - var(--p-max)) / 0.8);
  /* 画面が広がるほど小さくなる可変font-size */
  font-size: clamp(calc(var(--f-min) * 1rem), calc(var(--f-max) * 1rem + (1vw - 0.2rem) * var(--f-slope)), calc(var(--f-max) * 1rem));
}
section.bottom ul {
  display: flex;
  align-items: stretch;
  gap: 0 1rem;
  overflow-x: scroll;
  scrollbar-width: none;
}
section.bottom ul a {
  display: contents;
}
section.bottom ul li {
  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.5em 0.3em;
  /* 画面幅320px(1em)から1600px(約0.5em相当)にかけて、画面が広がるほど小さくなるよう可変 */
  /* 画面が広がるほど小さくなる可変padding */
  --p-current: clamp(calc(var(--p-min) * 1em), calc(var(--p-max) * 1em + (1vw - 0.2rem) * var(--p-slope)), calc(var(--p-max) * 1em));
  padding-top: var(--p-current);
  padding-bottom: var(--p-current);
  /* padding-topの値の10%を左右に適用 */
  padding-left: calc(var(--p-current) * 0.5);
  padding-right: calc(var(--p-current) * 0.5);
  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;
}
.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;
}
svg {
  pointer-events: none;
}
.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;
}
