:root {
  --ink: #1d2433;
  --muted: #5b6473;
  --line: #d5d9e0;
  --paper: #fbfaf7;
  --accent: #1f4e8c;
  --warn: #9b2c2c;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
body { margin: 0; line-height: 1.7; }
.site-header { border-bottom: 3px double var(--line); padding: 0.75rem 1.25rem; background: #fff; }
.site-name { color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: 0.05em; }
.site-main { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.site-footer { border-top: 1px solid var(--line); padding: 1rem 1.25rem; color: var(--muted); font-size: 0.85rem; }
h1 { font-size: 1.6rem; margin: 0.5rem 0; }
.lead { color: var(--muted); }
.lengthen-form { display: grid; gap: 0.75rem; margin: 1.5rem 0; }
.field-label { font-weight: 700; }
input[type="url"] { font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; }
.lengths { border: 1px solid var(--line); border-radius: 4px; display: flex; gap: 1.25rem; flex-wrap: wrap; }
button { font: inherit; padding: 0.55rem 1.2rem; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; justify-self: start; }
.error { color: var(--warn); font-weight: 700; }
.result textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: 0.8rem; word-break: break-all; }
.result-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.copy-status { color: var(--muted); font-size: 0.85rem; }
.relay-loading-title { font-weight: 700; }
.progress { height: 0.6rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); }
.progress-note { color: var(--muted); font-size: 0.85rem; }
.dest-host { font-size: 1.25rem; color: var(--warn); }
.dest-url { font-family: ui-monospace, monospace; font-size: 0.85rem; word-break: break-all; background: #fff; border: 1px solid var(--line); padding: 0.5rem 0.75rem; }
.go-button { display: inline-block; padding: 0.55rem 1.6rem; border-radius: 4px; background: var(--accent); color: #fff; text-decoration: none; }
.relay-note { color: var(--muted); font-size: 0.85rem; }
.dest-host-note { color: var(--muted); font-size: 0.85rem; }
