/*@include keyframes(sprite-image) {
    0% {
        @include translate(0, 0);
    }
    100% {
        @include translate(0, -100%);
    }
}*/
:root {
  --gap: 16px;
  --radius: 20px;
  --accent:#7c9aff;
  --accent2:#9d7cff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  color: #111111;
  background: #ffffff;
}

.sp_only {
  display: none;
}

.ad {
  margin: 20px auto;
  text-align: center;
}

@media (max-width: 767px) {
  .sp_only {
    display: block;
  }
  .sp_none {
    display: none;
  }
  .ad {
    text-align: left;
    margin: 0;
  }
}
.lang-switch {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 10px 20px;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
}
.lang-switch a {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: #121224;
  border: 1px solid #2d2d44;
  color: #d5d9ff;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.lang-switch a:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #0b0b14;
}
.lang-switch a.active {
  background: linear-gradient(90deg, #2a335a, #2f2b55);
  color: #fff;
}
@media (max-width: 767px) {
  .lang-switch {
    position: static;
    justify-content: center;
  }
}

.siteHeader {
  padding: 16px 20px;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}
.siteHeader h1 {
  text-align: center;
  font-size: 20px;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
@media (max-width: 767px) {
  .siteHeader {
    position: static;
  }
}

.toolTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.toolTabs button {
  padding: 8px 12px;
  border: 1px solid #eaeaea;
  background: #f7f7f7;
  border-radius: 999px;
  cursor: pointer;
  color: #111111;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
.toolTabs button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.toolTabs button[aria-selected=true] {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.container {
  padding: 24px 20px;
}

.toolsHost {
  gap: var(--gap);
  max-width: 980px;
  margin: 0 auto;
}

.card {
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 12px 24px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.16s ease, border-color 0.16s ease;
}
.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.card:hover {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 14px 28px rgba(0, 0, 0, 0.08);
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
  flex-wrap: wrap;
}
.row label {
  min-width: 130px;
  font-size: 13px;
  color: #666666;
}

input[type=text],
input[type=number],
input[type=password],
input.password,
textarea,
select {
  padding: 10px 12px;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  min-width: 240px;
  background: #ffffff;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
input[type=text]:focus,
input[type=number]:focus,
input[type=password]:focus,
input.password:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

select {
  background: #f7f7f7;
}

textarea {
  width: 100%;
  min-height: 140px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

button.btn {
  padding: 10px 14px;
  border: 1px solid #eaeaea;
  background: #ffffff;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}
button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}
button.btn.primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}
button.btn.primary:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.help {
  font-size: 12px;
  color: #666666;
}

table {
  width: 100%;
  border-collapse: collapse;
}
table td,
table th {
  border: 1px solid #eaeaea;
  padding: 8px;
  font-size: 13px;
}
table td input {
  min-width: 0;
  width: 100%;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.08);
}

input, select, textarea, button {
  font-size: 16px;
}

.toolTabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
.toolTabs button {
  scroll-snap-align: start;
  white-space: nowrap;
}

.container {
  padding: 16px 14px;
}

@media (min-width: 1024px) {
  .toolsHost {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 14px;
}
@media (min-width: 768px) {
  .card {
    padding: 16px;
  }
}

.row {
  align-items: stretch;
}
.row label {
  min-width: 0;
  width: 100%;
  margin-bottom: 6px;
}
.row input[type=text],
.row input[type=number],
.row input[type=password],
.row input.password,
.row textarea,
.row select {
  min-width: 0;
  width: 100%;
}
@media (min-width: 768px) {
  .row {
    align-items: center;
  }
  .row label {
    width: auto;
    min-width: 130px;
    margin-bottom: 0;
  }
}

.actions {
  gap: 10px;
}
.actions button.btn {
  width: 100%;
}
@media (min-width: 480px) {
  .actions button.btn {
    width: auto;
  }
}

select {
  min-height: 40px;
}

textarea {
  min-height: 120px;
}

table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}
table td, table th {
  white-space: nowrap;
}

table::after {
  content: "";
  pointer-events: none;
  position: sticky;
  right: 0;
  top: 0;
  height: 100%;
  width: 16px;
  background: linear-gradient(to left, rgb(255, 255, 255), rgba(255, 255, 255, 0));
  display: inline-block;
}

.siteHeader {
  padding: 12px 14px;
}
.siteHeader h1 {
  font-size: 18px;
}
@media (min-width: 768px) {
  .siteHeader {
    padding: 16px 20px;
  }
  .siteHeader h1 {
    font-size: 20px;
  }
}

.about,
.notes {
  margin: 40px auto;
  padding: 24px 20px;
  border: 1px solid #eaeaea;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 12px 24px rgba(0, 0, 0, 0.04);
  max-width: 980px;
}
.about h2,
.notes h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.about h3,
.notes h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 10px;
}
.about p,
.notes p {
  margin: 0 0 12px;
  line-height: 1.7;
  color: #111111;
}
.about ul,
.notes ul {
  padding-left: 1.2em;
  margin: 0 0 12px;
}
.about ul li,
.notes ul li {
  list-style: disc;
  margin: 6px 0;
  line-height: 1.6;
  color: #111111;
}
.about ul li strong,
.notes ul li strong {
  color: #111111;
}
.about ul li code,
.notes ul li code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #f7f7f7;
  padding: 2px 4px;
  border-radius: 6px;
  font-size: 90%;
}

.site-footer {
  margin-top: 60px;
  padding: 32px 20px;
  text-align: center;
  background: #f7f7f7;
  border-top: 1px solid #eaeaea;
  color: #666666;
}
.site-footer .footer-links {
  margin-bottom: 12px;
}
.site-footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}
.site-footer .footer-links ul li {
  display: inline;
  font-size: 14px;
}
.site-footer .footer-links ul li a {
  color: #111111;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-footer .footer-links ul li a:hover {
  background: #111111;
  color: #ffffff;
}
.site-footer address {
  font-style: normal;
  margin-bottom: 6px;
}
.site-footer address a {
  color: #111111;
  text-decoration: none;
}
.site-footer address a:hover {
  text-decoration: underline;
}
.site-footer .legal {
  font-size: 12px;
  color: #666666;
  display: block;
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .about,
  .notes {
    margin: 24px auto;
    padding: 20px 14px;
  }
  .site-footer {
    padding: 24px 14px;
  }
  .site-footer .footer-links ul {
    flex-direction: column;
    gap: 6px;
  }
}