:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-border: #e5e7eb;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
}

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

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-header__nav a {
  margin-left: 20px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-header__nav a:hover {
  color: var(--color-primary);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.hero {
  text-align: center;
  padding: 64px 24px;
  background: var(--color-bg-alt);
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.button:hover {
  background: var(--color-primary-dark);
}

main section {
  margin-bottom: 56px;
}

main section h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid var(--color-border);
  padding-bottom: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.feature-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}

.feature-card h3 {
  margin-top: 0;
}

.legal h1, .legal h2 {
  font-size: 1.4rem;
}

.legal h2 {
  margin-top: 2em;
  padding-top: 0.5em;
  border-top: 1px solid var(--color-border);
}

.legal ol {
  padding-left: 1.4em;
}

.legal .note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

table.info-table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
}

table.info-table th, table.info-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

table.info-table th {
  width: 30%;
  color: var(--color-text-muted);
  font-weight: 600;
}

.contact-form label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form .button {
  border: none;
  cursor: pointer;
}

.form-message {
  margin-top: 16px;
  font-weight: 600;
}

.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: #dc2626;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--color-text-muted);
  margin: 0 8px;
}
