/* @import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@100..700&icon_names=arrow_cool_down,arrow_forward,calendar_add_on,cards_stack,check,chevron_backward,chevron_forward,close,delete,drag_handle,edit,keyboard_arrow_down,keyboard_arrow_up,live_tv,logout,menu_open,move_group,play_circle,read_more,search,storefront,swipe_right,upload"); */
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@200..400&icon_names=add_circle,arrow_downward,arrow_drop_down,arrow_right,arrow_upward,build,check_circle,close,compress,convert_to_text,copy_all,dark_mode,data_check,delete,delete_forever,download,draft,file_save,format_indent_increase,help,home,info,language,menu,schedule,text_compare,upload_file,warning");
/* ========================================
   Reset
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
  outline: none;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
a {
  color: inherit;
}
#root,
#__next {
  isolation: isolate;
}
.wrapper {
  position: relative;
  max-width: var(--maxWidth);
  margin: 0 auto;
  padding: var(--pd);
}
::placeholder {
  color: rgb(0 0 0/0.25);
}
html[data-theme="dark"] ::placeholder {
  color: rgb(255 255 255/0.25);
}
/* ========================================
   Common Base
======================================== */
:root {
  --pd: 24px;
  --maxWidth: 1680px;
  --font_Inter: "Inter", sans-serif;
}
@media screen and (max-width: 1000px) {
  :root {
    --pd: 20px;
  }
}
@media screen and (max-width: 767px) {
  :root {
    --pd: 10px;
  }
}
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: unset;
  overflow-x: hidden;
  overflow-y: auto;
  /* scrollbar-gutter: stable; */
  background-color: var(--panel-bg);
}
html[data-theme="dark"] {
  background-color: var(--panel-bg);
}
html.has-vscroll.is-drawer-open {
  scrollbar-gutter: stable;
}
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background-color: var(--panel-border);
}
::-webkit-scrollbar-thumb {
  background-color: #777;
  border-radius: 6px;
  border: 1px solid var(--panel-border);
  border-width: 2px;
}
.workbench ::-webkit-scrollbar-thumb {
  border-width: 3px 1px 3px 3px;
}
html[data-theme="dark"] ::-webkit-scrollbar-track {
  background-color: var(--panel-bg);
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background-color: var(--inspector-panel-border);
  border-color: var(--panel-bg);
}
body {
  margin: 0;
  font-family: "Inter", 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino bodyKaku Gothic ProN', 'メイリオ', Meiryo, Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg, #f7f7f7);
  color: var(--text, #222);
  font-size: 15px;
  height: 100%;
}
/* body {
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100lvh;
  background: url("../../images/bg.png") center center/cover no-repeat;
  z-index: -1;
  opacity: 0.1;
}
html[data-theme="dark"] body::before {
  mix-blend-mode: multiply;
  opacity: 1;
} */
img {
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
em,
b {
  font-style: inherit;
  ont-weight: 400;
}
i {
  font-family: var(--font_Inter);
  font-style: inherit;
  font-weight: 400;
  /* letter-spacing: 0.05em; */
}
/* ========================================
   Common Layout
======================================== */
#page-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: 100dvh;
}
#page-container > main#main-contents {
  flex: 1;
}
main#main-contents {
  opacity: 0;
}
html.page-start main#main-contents {
  opacity: 1;
  transition: opacity 0.6s 0.1s;
}
.tool-container {
  max-width: var(--maxWidth);
  margin: 0 auto;
  padding: 24px var(--pd) 40px;
}
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border, #ddd);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow, 0 2px 8px rgba(0, 0, 0, 0.04));
  margin-top: 20px;
}
.tool-container h1 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  position: relative;
  padding-left: 42px;
}
.tool-container h1::before {
  content: 'build';
  vertical-align: middle;
  font-family: 'Material Symbols Outlined';
  font-size: 38px;
  line-height: 1;
  font-weight: 200;
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}
.tool-container h1 span.tool-title-ja {
  display: block;
  font-size: 14px;
  margin-top: 4px;
  font-weight: bold;
}
.lead {
  color: var(--text);
  font-size: 14px;
}
@media screen and (max-width: 767px) {
  .panel {
    padding: 16px 10px;
  }
  .tool-container h1 {
    font-size: 20px;
    padding-left: 34px;
  }
  .tool-container h1::before {
    font-size: 30px;
  }
  .tool-container h1 span.tool-title-ja {
    font-size: 11px;
    margin-top: 4px;
  }
  .lead {
    font-size: 13px;
  }
}

.breadcrumbs {
  color: var(--muted, #666);
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0 var(--pd);
  /* border-top: 1px solid #fff;
  border-bottom: 1px solid #fff; */
  color: #fff;
  position: fixed;
  left: 0;
  top: 55px;
  z-index: 11;
  width: 100%;
  font-size: 12px;
  line-height: 1;
  height: 24px;
  backdrop-filter: blur(4px);
}
.breadcrumbs::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background-color: var(--muted);
  opacity: 0.7;
}
html[data-theme="dark"] .breadcrumbs::after {
  background-color: var(--inspector-panel-bg);
}
.breadcrumbs > a,
.breadcrumbs > span {
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  line-height: inherit
}
/* .breadcrumbs > a::before {
	content: '';
	width: 12px;
	height: 100%;
	position: absolute;
	right: 1px;
	top: 0;
	z-index: -1;
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
  background-color: var(--panel-bg);
} */
.breadcrumbs > a::after {
  content: 'arrow_right';
  vertical-align: middle;
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  width: 30px;
  z-index: -2;
  text-align: center;
}
.breadcrumbs > a:hover {
  color: var(--accent);
}
.breadcrumbs span.material-symbols-outlined {
  display: block;
  height: 16px;
  font-size: 20px;
  font-weight: 300;
  line-height: 16px;
  margin-right: 1px;
  margin-top: -3px;
}
.page-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}
/* ========================================
   Common Form / Button
======================================== */
button {
  padding: 4px 14px;
  border: 1px solid var(--control-border);
  /* background: var(--control-bg, #fff); */
  background: linear-gradient(to bottom, #fff 0%, #f4f4f4 100%);
  border-radius: 8px;
  cursor: pointer;
  /* transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  line-height: 1.2;
  /* white-space: nowrap; */
}
button:hover {
  /* background: var(--control-hover, #f1f1f1); */
  /* background: linear-gradient(to bottom, #fff 0%, #e4e4e4 100%); */
  border-color: var(--accent);
  color: var(--accent);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
html[data-theme="dark"] button {
  background: linear-gradient(to bottom, var(--panel-border) 0%, var(--panel-bg) 100%);
}
html[data-theme="dark"] button:hover {
  /* background: var(--control-hover, #f1f1f1); */
  /* transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease; */
  filter: brightness(1.2);
}
button:disabled {
  opacity: 0.45;
  /* cursor: not-allowed; */
  pointer-events: none;
}
/* button:disabled:hover {
  background: var(--control-bg, #fff);
} */
select,
input[type="text"],
textarea {
  background: var(--control-bg, #fff);
  border: 1px solid var(--control-border, #ccc);
  border-radius: 8px;
  padding: 4px 10px;
}
select {
  padding: 4px 6px;
  font-size: 13px;
}
label {
  font-size: 14px;
}
button,
select,
input[type="text"],
textarea {
  min-height: 38px;
}
input[type="text"],
textarea {
  font-weight: 500;
}
select,
button {
  font-weight: 600;
}
input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent);
}
/* ========================================
   Button icon
======================================== */
button::before,
button::after {
  content: '';
  vertical-align: middle;
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  color: var(--accent);
}
button::before {
  margin-right: 5px;
  margin-left: -3px;
}
button#resetBtn::before,
button#clearBtn::before,
button#clearAllBtn::before {
  content: 'delete';
  color: var(--accent2);
}
button.delete::before {
  content: 'delete_forever';
  color: var(--accent2);
}
button#resetBtn:hover,
button#clearBtn:hover,
button#clearAllBtn:hover,
button.delete:hover {
  color: var(--accent2);
  border-color: var(--accent2);
}
button#uploadOpenBtn::before {
  content: 'upload_file';
}
button#chooseFileBtn::before {
  content: 'draft';
}
button#downloadBtn::before {
  content: 'file_save';
}
button.copy::before,
button#copyBtn::before {
  content: 'copy_all';
}
button.add::before {
  content: 'add_circle';
}
.middle-actions {
  padding-top: 40px;
}
@media (max-width: 767px) {
  .middle-actions {
    padding-top: 0;
  }
}
.middle-actions button {
  position: relative;
  padding-right: 9px;
  padding-left: 10px;
}
.middle-actions button::before {
  margin-right: -4px;
}
.middle-actions button::after {
  content: 'arrow_right';
  font-size: 28px;
  line-height: 1;
  width: 12px;
  height: 28px;
  margin-left: -8px;
}
@media screen and (max-width: 979px) {
  .middle-actions button {
    justify-content: center;
    gap: 0 8px
  }
  .middle-actions button::before {
    margin-right: -4px;
  }
  .middle-actions button::after {
    content: 'arrow_drop_down';
    margin-left: 0;
  }
}
.middle-actions button {
  border-color: var(--accent);
  color: #fff;
  color: var(--accent);
}
.middle-actions button:hover {
  background: var(--accent);
  color: #fff;
}
.middle-actions button:hover::before,
.middle-actions button:hover::after {
  color: #fff;
}
button#treeSearchPrevBtn:before {
  content: 'arrow_upward';
  margin: 0 -5px;
  color: var(--text);
}
button#treeSearchNextBtn:before {
  content: 'arrow_downward';
  margin: 0 -5px;
  color: var(--text);
}
button#validateBtn::before {
  content: 'data_check';
}
button#formatBtn::before {
  content: 'format_indent_increase';
}
button#minifyBtn::before {
  content: 'compress';
}
/* button#encodeBtn::before {
  content: 'convert_to_text';
  margin-right: 3px;
  margin-left: -7px;
}
button#decodeBtn::before {
  content: 'convert_to_text';
  margin-right: 3px;
  margin-left: -7px;
} */
button#useCurrentLocalTimeBtn::before,
button#useCurrentTimestampBtn::before {
  content: 'schedule';
}
/* ========================================
   Common Components
======================================== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 12px;
}
section.tool-shell > .toolbar {
  margin-bottom: 0;
}
.toolbar-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-height: 38px;
}
.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.toolbar .control-chip-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 5px;
}
.toolbar-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #222);
}
.radio-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.radio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-chip span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--control-border, #ccc);
  border-radius: 999px;
  background: var(--control-bg, #fff);
  color: var(--text, #222);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.radio-chip input:checked + span {
  background: var(--control-hover, #f1f1f1);
  border-color: var(--control-border, #ccc);
  font-weight: bold;
}
.form-choice {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  line-height: 1.4;
  user-select: none;
}
.form-choice input[type="radio"],
.form-choice input[type="checkbox"] {
  margin: 0;
  inline-size: 16px;
  block-size: 16px;
  accent-color: var(--form-accent);
  cursor: pointer;
  flex: 0 0 auto;
}
.form-choice span {
  cursor: pointer;
}
.toolbar .form-choice,
.current-time-bar .form-choice {
  margin-right: 12px;
}
.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.notice-bar {
  width: 100%;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  border: 2px solid transparent;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.notice-bar.is-info {
  background: var(--info-bg, #eef6ff);
  color: var(--info-text, #184c8c);
  border-color: var(--info-border, #cfe3ff);
}
.notice-bar.is-success {
  background: var(--success-bg, #eefbf1);
  color: var(--success-text, #1d6b33);
  border-color: var(--success-border, #ccefd5);
}
.notice-bar.is-error {
  background: var(--error-bg, #fff1f1);
  color: var(--error-text, #9b1c1c);
  border-color: var(--error-border, #f0caca);
}
.notice-bar::before {
  content: '';
  ertical-align: middle;
  font-family: 'Material Symbols Outlined';
  font-size: 32px;
  line-height: 1;
  font-weight: 300;
  margin-right: 3px;
}
.notice-bar.is-info::before {
  content: 'info';
}
.notice-bar.is-success::before {
  content: 'check_circle';
}
.notice-bar.is-error::before {
  content: 'warning';
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.field-label {
  font-weight: bold;
  font-size: 14px;
}
.field-top-actions {
  min-height: 42px;
}
.field-side-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.section-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: bold;
}
.section-toggle-icon {
  font-size: 18px;
  line-height: 1;
}
.section-content.is-collapsed {
  display: none;
}
span.help {
  display: block;
  position: relative;
  width: 22px;
  height: 22px;
  margin-left: -20px;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  span.help {
    display: none;
  }
}
span.help::before {
  content: 'help';
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  color: var(--accent);
  width: 24px;
  height: 24px;
}
span.help em {
  display: none;
  position: absolute;
  z-index: 20;
  left: calc(100% + 5px);
  top: 0;
  background: var(--base);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 2px 5px 5px rgb(0 0 0/0.1);
}
span.help:hover em {
  display: block;
}
span.help b {
  font-weight: bold;
  color: var(--accent);
}
/* ========================================
   Common Modal
======================================== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-overlay, rgba(0, 0, 0, 0.6));
}
.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  /* margin: 8vh auto 0; */
  background: var(--modal-bg, #fff);
  border: 1px solid var(--panel-border, #ddd);
  border-radius: 14px;
  box-shadow: var(--shadow, 0 2px 8px rgba(0, 0, 0, 0.04));
  padding: 18px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-title {
  margin: 0;
  font-size: 20px;
}
.modal-close-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  justify-content: center;
}
.modal-body {
  margin-top: 14px;
}
.drop-zone {
  padding: 18px;
  border: 2px dashed var(--control-border, #ccc);
  border-radius: 10px;
  background: var(--soft-bg, #fafafa);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.drop-zone-title {
  font-weight: bold;
  font-size: 14px;
}
.drop-zone-text {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted, #555);
}
.drop-zone.is-dragover {
  background: var(--control-hover, #f1f1f1);
  border-color: var(--accent-border, #7b1fa2);
  transform: scale(1.01);
}
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.file-name {
  font-size: 13px;
  color: var(--muted, #555);
}
/* ========================================
   Common Utility
======================================== */
.is-hidden {
  display: none !important;
}
/* ========================================
   Common Responsive
======================================== */
@media (max-width: 767px) {
  .field-side-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .modal-dialog {
    width: min(94vw, 560px);
    margin-top: 5vh;
  }
}
/* add */
/* ========================================
   Include Header
======================================== */
#site-header {
  height: calc(55px + 24px);
}
.site-header {
  /* border-bottom: 1px solid var(--panel-border, #ddd);
  background: var(--panel-bg, #fff); */
  height: 100%;
  position: relative;
}
.site-header .site-header__outer {
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 55px;
  /* border-bottom: 1px solid var(--panel-border, #ddd); */
  transition: height 0.2s;
  backdrop-filter: blur(5px);
}
/* html:not(.is-at-top) .site-header .site-header__outer {
  height: 50px;
} */
.site-header .site-header__outer::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: var(--bg);
  opacity: 0.8;
}
@media screen and (max-width: 767px) {
  .site-header .site-header__outer {
    background: var(--bg);
  }
}
.site-header__inner {
  /* max-width: 1280px; */
  margin: 0 auto;
  padding: 5px var(--pd);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}
.site-header__brand {
  /* min-width: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px; */
}
.site-logo {
  /* display: block; */
  text-decoration: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0 15px;
}
.site-logo img {
  display: block;
  height: 34px;
}
.site-logo img.logo-dark {
  display: none;
}
html[data-theme="dark"] .site-logo img.logo-light {
  display: none;
}
html[data-theme="dark"] .site-logo img.logo-dark {
  display: block;
}
.site-tagline {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  color: var(--muted);
  /* text-align: right; */
}
@media screen and (max-width: 767px) {
  .site-logo img {
    height: 25px;
  }
  .site-tagline {
    margin: 0;
    font-size: 10px;
    text-align: right;
  }
}
.site-header__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 18px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.site-nav a {
  color: var(--text, #222);
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 767px) {
  /* #site-header {
    min-height: 120px;
  } */
  /* .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  } */
  .site-nav {
    width: 100%;
  }
}
/* ----- */
.fallback-nav {
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 10px var(--pd);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border-bottom: 1px solid var(--panel-border, #ddd);
}
.fallback-nav a {
  color: var(--text, #222);
  text-decoration: none;
}
/* dark */
.site-footer {
  border-top: 1px solid var(--panel-border, #ddd);
  background: var(--bg);
}
.site-footer__inner {
  /* max-width: 1280px; */
  margin: 0 auto;
  padding: 10px var(--pd);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0 20px;
}
.site-footer__main {
  /* margin: 0 0 14px; */
}
.site-footer__main .site-logo img {
  height: 22px;
}
.site-footer__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text, #222);
}
.site-footer__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted, #666);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
}
.site-footer__nav a {
  color: var(--text, #222);
  text-decoration: none;
}
.site-footer .link,
.site-footer .right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0 20px;
}
.site-footer .link a {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}
.site-footer .link a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
.site-footer__copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted, #666);
}
@media screen and (max-width: 767px) {
  .site-header .site-logo {
    display: block;
  }
  .site-footer__main .site-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
  }
  .site-footer__main .site-logo img {
    height: 25px;
  }
  .site-footer__inner {
    display: block;
    text-align: center;
  }
  .site-footer .link {
    justify-content: center;
  }
  .site-footer .right {
    display: block;
  }
  .site-footer .link a {
    font-size: 12px;
  }
  .site-footer__copy {
    margin-top: 20px;
  }
}
/* .theme-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
} */
@media (max-width: 767px) {
  /* #site-footer {
    min-height: 160px;
  } */
  /* .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  } */
  .site-header__right {
    width: 100%;
    justify-content: flex-start;
  }
  /* .site-nav,
  .theme-switch {
    width: 100%;
  } */
  .site-nav {
    width: 100%;
  }
}
/* .hosts-error body {
  opacity: 0.35;
}

.site-lock-message {
  position: fixed;
  inset: 16px 16px auto 16px;
  z-index: 99999;
  padding: 14px 16px;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  background: #fff;
  color: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.6;
}

html[data-theme="dark"] .site-lock-message {
  background: #1b1b1b;
  color: #f3f3f3;
  border-color: #444;
} */
/* add */
/* #site-header:not(.is-loaded)::before,
#site-footer:not(.is-loaded)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--panel-bg, #fff);
  pointer-events: none;
} */
/*　ダークモードボタン 修正*/
.theme-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.toolbar-label {
  font-size: 14px;
  line-height: 1.4;
}
.theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-width: 160px;
  padding: 2px;
  border: 1px solid #ccc;
  border-radius: 9999px;
  background: #f3f3f3;
}
.theme-option {
  position: relative;
  z-index: 2;
  margin: 0;
  cursor: pointer;
}
.theme-option:has(input:checked) {
  cursor: default;
}
.theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.theme-option span {
  display: block;
  padding: 4px 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: #555;
  user-select: none;
  transition: color 0.2s ease;
}
.theme-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 9999px;
  background: var(--accent);
  transition: transform 0.25s ease;
  /* transform: translateX(100%); */
}
/* 選択中テキスト色 */
.theme-option input:checked + span {
  color: #fff;
}
/* 非選択側は濃いグレー */
.theme-option input:not(:checked) + span {
  color: #555;
}
/* Dark が選択されたらスライダーを右へ */
.theme-toggle:has(input[value="dark"]:checked) .theme-slider {
  transform: translateX(100%);
}
/*サイドバー --------------*/
/* .menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--panel-border, #ddd);
  border-radius: 10px;
  background: var(--panel-bg, #fff);
  cursor: pointer;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text, #222);
  border-radius: 999px;
} */
.site-header__right .menuBtn {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0 10px;
}
.site-header__right .menuBtn i {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .site-header__right .menuBtn i {
    display: none;
  }
}
#menuToggleBtn {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}
.site-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  /* background: rgba(0, 0, 0, 0.4); */
}
body::after {
  content: '';
  width: 100%;
  height: 120lvh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9989;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity 0.5s;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, -1px);
}
html.is-drawer-open body::after {
  opacity: 1;
}
.site-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9991;
  width: min(360px, 86vw);
  height: 100dvh;
  padding: 6px var(--pd);
  background: var(--panel-bg, #fff);
  border-left: 1px solid var(--panel-border, #ddd);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  overflow-y: auto;
}
html.is-drawer-open .site-drawer {
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}
@media screen and (max-width: 767px) {
  .site-drawer {
    padding-bottom: 40px;
  }
}

.site-drawer.is-open {
  transform: translateX(0);
}
.site-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.site-drawer__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text, #222);
}
.site-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--panel-border, #ddd);
  border-radius: 10px;
  background: var(--panel-bg, #fff);
  color: var(--text, #222);
  cursor: pointer;
}
#menuToggleBtn span.material-symbols-outlined,
.site-drawer__close span.material-symbols-outlined {
  display: block;
  height: 26px;
  font-size: 26px;
  font-weight: 300;
  line-height: 26px;
}
.site-drawer__lang {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0 15px;
}
.site-drawer__lang ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  min-width: 160px;
  padding: 2px;
  border: 1px solid #ccc;
  border-radius: 9999px;
  background: #f3f3f3;
  user-select: none;
  text-align: center;
}
.site-drawer__lang ul li {
  flex: 1;
  min-width: 67px;
  /* display: flex;
  justify-content: flex-end;
  align-items: center; */
  font-size: 12px;
  line-height: 1.2;
  color: #555;
  width: 50%;
  height: 100%;
}
/* .site-drawer__lang ul li:nth-child(N+2)::before {
  content: '/';
  margin-right: 10px;
} */
.site-drawer__lang ul li span {
  /* color: var(--accent);
  font-weight: bold; */
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  padding: 4px 4px;
}
.site-drawer__lang ul li a {
  text-decoration: none;
}
.site-drawer__lang ul li a:hover {
  opacity: 0.7;
}
.site-drawer__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.site-drawer__body .label {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0 2px;
}
.site-drawer__body .label span.material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
  height: 18px;
}
.site-drawer__body .label p {
  font-size: 13px;
  line-height: 1;
  font-weight: 600;
}
/* .site-drawer__body > * + * {
  margin-top: 10px;
} */
.site-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 15px;
}
.site-drawer__nav a {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--control-border, #ccc);
  border-radius: 10px;
  background: linear-gradient(to bottom, #fff 0%, #f4f4f4 100%);
  color: var(--text, #222);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
}
@media screen and (max-width: 767px) {
  .site-drawer__nav a {
    padding: 6px 14px;
    font-size: 13px;
  }
}
.site-drawer__nav a.home {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0 8px;
}
.site-drawer__nav a.tool::before {
  content: 'build';
  display: inline-block;
  vertical-align: middle;
  font-family: 'Material Symbols Outlined';
  font-size: 26px;
  line-height: 1;
  font-weight: 200;
  color: var(--accent);
  width: 26px;
  height: 26px;
  margin-top: -2px;
  margin-left: -4px;
  margin-right: 4px;
}
html[data-theme="dark"] .site-drawer__nav a {
  background: linear-gradient(to bottom, var(--panel-border) 0%, var(--panel-bg) 100%);
}
.site-drawer__nav a span.material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}
.site-drawer__nav a:hover {
  border-color: var(--accent, #f97316);
  color: var(--accent-hover);
}
html.is-drawer-open,
html.is-drawer-open body {
  overflow: hidden;
}
@media (max-width: 767px) {
  /* .site-nav,
  .theme-switch {
    display: none;
  } */
  .site-header__right {
    width: auto;
    margin-left: auto;
  }
}
/* add */
/* Inspector */
.inspector-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--inspector-panel-border);
  border-radius: 8px;
  background: var(--inspector-panel-bg);
}
.inspector-layout {
  display: grid;
  gap: 14px;
  align-items: stretch;
}
.inspector-layout--two-col {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.inspector-layout--single {
  grid-template-columns: 1fr;
}
.inspector-child-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--inspector-child-border);
  border-radius: 8px;
  background: var(--inspector-child-bg);
}
.inspector-heading {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--inspector-heading-color);
}
.inspector-surface {
  /* min-height: 140px; */
  /* padding: 12px;
  border: 1px solid var(--inspector-surface-border);
  border-radius: 8px;
  background: var(--inspector-surface-bg); */
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-card {
  padding: 10px 12px;
  border: 1px solid var(--inspector-card-border);
  border-radius: 10px;
  background: var(--inspector-card-bg);
  min-width: 0;
}
.detail-card-label {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--inspector-label-color);
}
.detail-card-value {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--inspector-value-color);
  word-break: break-word;
}
.detail-card-value.detail-value-ok {
  color: var(--success-text);
}
.detail-card-value.detail-value-error {
  color: var(--error-text);
}
@media (max-width: 900px) {
  .inspector-layout--two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
#detailView:not(:has(*)) {
  opacity: 0.45;
  pointer-events: none;
}
.workbench textarea {
  border-width: 2px;
}
.workbench textarea#output:focus {
  border-color: var(--control-border);
}
/* add */
@media screen and (min-width: 980px) {
  .tbv {
    display: none !important;
  }
  .spv {
    display: none !important;
  }
}
@media screen and (min-width: 768px) and (max-width: 979px) {
  .pcv {
    display: none !important;
  }
  .spv {
    display: none !important;
  }
}
@media screen and (max-width: 767px) {
  .pcv {
    display: none !important;
  }
  .tbv {
    display: none !important;
  }
}
#privacy-policy {
  margin: 50px auto;
  max-width: 1000px;
}
#privacy-policy h1 {
  font-size: 26px;
  line-height: 1.4;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 5px;
  border-bottom: 1px dotted var(--muted);
}
#privacy-policy h2 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: bold;
  margin: 30px 0 15px;
}
#privacy-policy p {
  font-size: 14px;
}
#privacy-policy p + p {
  margin-top: 1em;
}
#privacy-policy ul {
  margin: 1em 0;
}
#privacy-policy ul li {
  padding-left: 1em;
  position: relative;
}
#privacy-policy ul li::after {
  content: '・';
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
}
#privacy-policy a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}
#site-index {
  height: 100dvh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
#site-index h1 {
  width: min(90%,340px);
  margin: 0 auto 30px;
}
#site-index h1 img {
  display: block;
  width: 100%;
}
#site-index .flex {
  display: flex;
  justify-content: center;
  align-items: center;
}
#site-index .flex > p:nth-child(N+2)::before {
  content: '｜';
  font-weight: 300;
  opacity: 0.7;
  margin: 0 15px;
}
#site-index a {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}
#site-index a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* add */
.tool-shell {
  margin-top: 30px;
}
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: 'arrow_drop_down';
  vertical-align: middle;
  font-family: 'Material Symbols Outlined';
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  width: 28px;
  height: 28px;
  color: var(--muted);
  position: absolute;
  right: 4px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  z-index: 10;
  pointer-events: none;
}
a.primary-link {
  text-decoration: none;
  font-weight: 500;
}
a.primary-link::before {
  content: 'arrow_right';
  vertical-align: middle;
  font-family: 'Material Symbols Outlined';
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  width: 30px;
  margin-right: 1px;
}
a.primary-link span {
  text-decoration: underline;
}
a.primary-link:hover span {
  text-decoration: none;
  color: var(--accent);
}