:root {
  --font-base: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #475569;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --accent: #0f172a;
  --border: #cbd5e1;
  --focus-ring: #0284c7;
  --success: #15803d;
  --error: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

body {
  font-family: var(--font-base);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--primary-hover);
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5rem 0.25rem;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 4rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: 2.25rem;
  line-height: 1.35;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  min-height: 48px;
}
.btn:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}
.card h3 {
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.price-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
}
.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.operator-box {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 3rem;
}
.operator-box h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.operator-table {
  width: 100%;
  border-collapse: collapse;
}
.operator-table th, .operator-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 1.05rem;
}
.operator-table th {
  width: 30%;
  background: var(--bg-alt);
  color: var(--text-main);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}
.form-help {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  display: none;
}
.form-status.error {
  display: block;
  background: #fee2e2;
  color: var(--error);
  border: 1px solid #fca5a5;
}

footer {
  background: var(--accent);
  color: #f8fafc;
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  list-style: none;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 1rem;
}
.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-copy {
  font-size: 0.95rem;
  color: #94a3b8;
  border-top: 1px solid #334155;
  padding-top: 1.5rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cookie-buttons {
  display: flex;
  gap: 0.75rem;
}
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  min-height: 40px;
}
.btn-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
}
.btn-decline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #cbd5e1;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .operator-table th, .operator-table td {
    display: block;
    width: 100%;
  }
  .operator-table th {
    border-bottom: none;
    padding-bottom: 0.25rem;
  }
}