:root {
  --bg: #ffffff;
  --fg: #0b0b0b;
  --accent: #00e5a8;
  --muted: #f2f2f2;
  --border: #0b0b0b;
  --radius: 4px;
  --font-ui: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
    "Noto Mono", monospace;

  --warn: #ff6b00;
  --danger: #e5484d;
  --ok: #00a06a;
  --shadow: 6px 6px 0 var(--border);
}

html,
body {
  background: var(--bg);
  color: var(--fg);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}


.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--fg);
  border: 3px solid var(--border);
  border-radius: 2px;
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

.shell {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(12px, 3vw, 28px);
}

/* ============================================================ ヘッダー ==== */

.site-header {
  border-bottom: 4px solid var(--border);
  background: var(--bg);
}

.site-header__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-block: 8px;
}

.brand {
  display: inline-block;
  padding: 4px 12px;
  border: 3px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  background: var(--accent);
}


.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 3px solid transparent;
  border-radius: 2px;
}

.site-nav a:hover {
  background: var(--accent);
}

.site-nav a[aria-current="page"] {
  border-color: var(--border);
}

/* ============================================================ フッター ==== */

.site-footer {
  border-top: 4px solid var(--border);
  margin-top: 40px;
  padding-block: 20px 28px;
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  text-decoration: none;
}

.site-footer a:hover {
  background: var(--accent);
}

/* ============================================================== 一般要素 ==== */

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 2px 8px;
  border: 2px solid var(--border);
  border-radius: 2px;
  background: var(--muted);
  white-space: nowrap;
}

.tag--accent {
  background: var(--accent);
  font-weight: 700;
}

.tag--warn {
  background: var(--warn);
  color: var(--bg);
  font-weight: 700;
}


.tag--ok {
  background: var(--ok);
  color: #fff;
  font-weight: 700;
}

.tag--dashed {
  border-style: dashed;
  background: var(--bg);
}


/* 出力言語のチップ（LP本文内） */
.k {
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 1px 6px;
  border: 2px dashed var(--border);
  border-radius: 2px;
  font-size: 0.88em;
}

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 9px 16px;
  border: 3px solid var(--border);
  border-radius: 2px;
  background: var(--accent);
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  background: var(--fg);
  color: var(--bg);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn--ghost {
  background: var(--bg);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--accent);
  color: var(--fg);
}

.btn--sm {
  font-size: 0.82rem;
  padding: 4px 10px;
  border-width: 2px;
}


.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 入力系 */
.input,
.textarea,
.select {
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  color: var(--fg);
  background: var(--bg);
  border: 3px solid var(--border);
  border-radius: 2px;
  padding: 7px 10px;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--accent);
}

.textarea {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 200px;
}

.label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hint {
  font-size: 0.78rem;
  color: #555;
}

.err {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--danger);
}

/* タブ */
.tabs {
  display: inline-flex;
  border: 3px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.tab {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 12px;
  border: none;
  border-right: 3px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}

.tab:last-child {
  border-right: none;
}

.tab[aria-selected="true"] {
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
