:root {
  --blue: #1e88e5;
  --blue-dark: #0f5fa8;
  --ink: #17202a;
  --ink-soft: #4b5563;
  --border: #e5e7eb;
  --surface: #f8fafc;
  --max-width: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 24px 35px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-header .logo img { height: 52px; width: auto; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--blue); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  background: url("img/hero.jpg") center/cover;
  color: #fff;
  padding: 96px 24px;
}
.hero-inner { max-width: var(--max-width); margin: 0 auto; }
.hero h1 {
  font-size: 34px;
  line-height: 1.35;
  margin: 0 0 14px;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.hero p { font-size: 15px; opacity: 0.92; margin: 0; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* Page hero (contact / privacy) */
.page-hero {
  background: url("img/hero.jpg") center/cover;
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 { margin: 0; font-size: 26px; text-shadow: 0 1px 3px rgba(0,0,0,0.35); }

/* Sections */
section { padding: 64px 0; }
.section-title {
  text-align: center;
  font-size: 22px;
  margin: 0 0 48px;
}

.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
}
.service:last-child { margin-bottom: 0; }
.service.reverse .service-media { order: 2; }
.service-media img { border-radius: 12px; }
.service h3 { font-size: 18px; margin: 0 0 12px; }
.service p { color: var(--ink-soft); margin: 0; font-size: 15px; }

@media (max-width: 720px) {
  .service, .service.reverse .service-media { grid-template-columns: 1fr; order: initial; }
  .service { grid-template-columns: 1fr; }
}

/* Company table */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.3px;
  background: #fff;
}
.company-table tr:nth-child(odd) { background: rgb(240, 240, 240); }
.company-table td {
  padding: 7.65px 15px;
}
.company-table td:first-child {
  width: 150px;
  font-weight: 600;
  color: var(--ink);
}

/* Contact form */
.contact-form { max-width: 640px; margin: 0 auto; }
.contact-intro { text-align: center; margin: 0 0 40px; font-size: 15px; }
.field { margin-bottom: 24px; }
.field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  color: #fff;
}
.badge.required { background: #e53935; }
.badge.optional { background: #9e9e9e; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 140px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 28px; }
.submit-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.submit-btn:hover { background: var(--blue-dark); }

/* Privacy policy */
.policy h2 { font-size: 17px; margin: 36px 0 12px; }
.policy p, .policy li { color: var(--ink-soft); font-size: 15px; }
.policy ul { padding-left: 20px; }

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-nav a { color: var(--ink-soft); }

@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: 14px; }
  .site-nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .hero { padding: 64px 20px; }
  .hero h1 { font-size: 26px; }
}
