body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    sans-serif;
  background: #f7f5f0;
}

.hero {
  background: linear-gradient(120deg, #f6b087 0%, #80c3eb 100%);
}

.hero-text {
  font-size: 14px;
  margin-top: 6px;
}

.logo-caption {
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  gap: 12px;
}

.btn-primary {
  --bs-btn-bg: #2f3a45;
  --bs-btn-border-color: #2f3a45;
  --bs-btn-hover-bg: #25303a;
  --bs-btn-hover-border-color: #25303a;
  --bs-btn-active-bg: #1f2831;
  --bs-btn-active-border-color: #1f2831;
}

.navbar-toggler {
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible,
.navbar-toggler:active {
  box-shadow: none;
  outline: 0;
  border-width: 1px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom-width: 1px;
  background: #ffffff;
}

.navbar-logo {
  display: none;
  align-items: center;
  gap: 8px;
}

.navbar.show-logo .navbar-logo {
  display: inline-flex;
}

.lang-switch .btn-outline-dark {
  color: #1b1b1b;
  background: #f6f6f6;
}

.lang-switch .btn-outline-dark:hover,
.lang-switch .btn-outline-dark:focus {
  color: #ffffff;
  background: #212529;
}

.breadcrumb-bar {
  font-size: 12px;
  background: #f7f5f0;
}

.navbar-nav .nav-item + .nav-item {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
  .navbar-nav .nav-item + .nav-item {
    border-top: 0;
  }
}

.toggler-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.editor-shell {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.editor-tabs .nav-link {
  color: #1b1b1b;
  border-radius: 0;
}

.editor-tabs .nav-link.active {
  background: #f3f4f5;
  border-color: transparent;
  color: #1b1b1b;
}

.editor-pane {
  background: #f9fafb;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.editor-code textarea {
  font-family: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo,
    Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  min-height: 360px;
}

.preview-surface {
  min-height: 360px;
  background: #ffffff;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.preview-surface img {
  max-width: 100%;
  height: auto;
}

.text-color-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.text-color-swatches {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.text-color-swatches button {
  width: 100%;
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #111827;
  padding: 0;
}

.text-color-swatches button[data-color] {
  background: var(--swatch-color, #ffffff);
}

.text-color-swatches button[data-color="picker"],
.text-color-swatches button[data-color="clear"] {
  padding: 0;
  font-size: 11px;
  color: #111827;
  background: #f3f4f5;
}

.text-color-swatches button[data-color="clear"] {
  background: #ffe4e6;
  color: #9f1239;
}

.text-color-popover {
  position: absolute;
  z-index: 1080;
  min-width: 240px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
  display: none;
}

.text-color-popover.show {
  display: block;
}

.text-color-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
  margin-bottom: 8px;
}

.text-color-picker-body {
  display: grid;
  gap: 10px;
}

.text-color-picker-canvas-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.text-color-picker-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.text-color-picker-thumb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4);
  pointer-events: none;
  transform: translate(-6px, -6px);
}

.text-color-hue {
  width: 100%;
}

.text-color-picker-fields {
  display: grid;
  gap: 8px;
}

.text-color-rgb {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.text-color-field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #475569;
}

.text-color-field input {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0 6px;
  font-size: 12px;
  color: #111827;
}

.text-color-close {
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  line-height: 1;
}

.html-warning-item {
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.html-warning-item:last-child {
  margin-bottom: 0;
}
