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

html,
body {
  background: #ffffff;
  color: #222222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: #222222;
  text-decoration: underline;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

@media (max-width: 768px) {
  .container {
    padding-top: max(56px, calc(env(safe-area-inset-top, 0px) + 32px));
  }
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 6px;
}

p {
  margin-bottom: 12px;
}

ul,
ol {
  margin: 0 0 12px 20px;
}

li {
  margin-bottom: 4px;
}

.muted {
  color: #666666;
  font-size: 14px;
  margin-bottom: 20px;
}

footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #dddddd;
  color: #666666;
  font-size: 14px;
}

footer a {
  margin-right: 16px;
}

form {
  margin-top: 16px;
}

.form-row {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #cccccc;
  background: #ffffff;
  color: #222222;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  padding: 8px 16px;
  border: 1px solid #999999;
  background: #f5f5f5;
  color: #222222;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hint {
  color: #666666;
  font-size: 13px;
  margin-top: 4px;
}

.status {
  display: none;
  margin: 12px 0;
  font-size: 14px;
}

.status.show {
  display: block;
}

.status.error {
  color: #8b0000;
}

.status.success {
  color: #333333;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
