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

html {
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  background: #0a0a0a;
  color: #e5e5e5;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.container {
  width: 100%;
  max-width: 480px;
}

/* Profile */
.profile {
  text-align: center;
  margin-bottom: 2.5rem;
}

.profile h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.profile p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #999;
}

/* Link Cards */
.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  display: block;
  padding: 1rem 1.25rem;
  background: #161616;
  border: 1px solid #252525;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #e5e5e5;
  transition: background 0.2s, border-color 0.2s;
}

.link-card:hover {
  background: #1e1e1e;
  border-color: #444;
}

.link-card .title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.link-card .desc {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #888;
}

/* Contact Form */
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.intro {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: #888;
  text-decoration: none;
}

.back-link:hover {
  color: #ccc;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  color: #aaa;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: #161616;
  border: 1px solid #252525;
  border-radius: 0.5rem;
  color: #e5e5e5;
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #555;
}

.field textarea {
  resize: none;
}

.cf-turnstile {
  margin-top: 1rem;
}

button[type="submit"] {
  margin-top: 1rem;
  padding: 0.625rem 1.5rem;
  background: #e5e5e5;
  color: #0a0a0a;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

button[type="submit"]:hover {
  opacity: 0.85;
}

.msg {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.msg.success {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.msg.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}
