@import url("./tokens.css");

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--bg0);
  background-image:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(155, 126, 184, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 100%, rgba(255, 220, 200, 0.25), transparent 50%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg0) 40%, #f7f2f0 100%);
  line-height: 1.7;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.shell {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.75rem 0 4.5rem;
}

/* タップしやすい最低サイズ（スマホ） */
button,
.btn,
a.sign {
  -webkit-tap-highlight-color: rgba(122, 95, 154, 0.15);
}

input,
textarea,
button {
  font-size: 16px; /* iOS のフォーカス時ズーム抑制 */
}

.kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4.5vw, 2.15rem);
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: var(--ink);
}

.lede {
  margin: 0 0 2.25rem;
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.98rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: var(--pad);
  box-shadow: var(--shadow-sm);
}

.btn {
  appearance: none;
  border: 1.5px solid var(--accent);
  background: var(--accent-wash);
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: #e4d6f2;
}

.btn:active {
  transform: translateY(1px);
}

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

.muted {
  color: var(--muted);
}

.foot {
  margin-top: 3.25rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent-deep);
}