:root {
  --bg: #1a1512;
  --bg-elevated: #241c17;
  --fg: #f7f1ea;
  --muted: #c4b5a5;
  --accent: #c9a27a;
  --danger: #e07a6a;
  --line: rgba(247, 241, 234, 0.12);
  --focus: #e8c9a8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #3a2a22 0%, transparent 55%),
    linear-gradient(165deg, #1a1512 0%, #0f0c0a 100%);
  color: var(--fg);
  line-height: 1.5;
}

a {
  color: var(--accent);
}

.shell {
  width: min(40rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.brand {
  margin: 0 0 1.5rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia,
    serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0 0 0.75rem;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia,
    serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1.35;
}

.lead,
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: rgba(36, 28, 23, 0.85);
  border: 1px solid var(--line);
  border-radius: 16px;
}

label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

input,
button,
textarea {
  font: inherit;
}

input[type="email"],
input[type="text"],
input[type="date"],
input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #120e0c;
  color: var(--fg);
}

input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.field {
  margin-bottom: 1rem;
}

.row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1512;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

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

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(224, 122, 106, 0.45);
}

.msg {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(201, 162, 122, 0.12);
  color: var(--fg);
  word-break: break-all;
}

.msg.error {
  background: rgba(224, 122, 106, 0.15);
  color: #ffd2cb;
}

.list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.list a.title {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
}

.meta {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
  max-width: 40rem;
}

.hero .brand {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia,
    serif;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
}

.hero .sub {
  margin: 1.5rem 0 0;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero .cta {
  margin-top: 2rem;
}

