:root {
  --text: #1f2933;
  --muted: #5f6b7a;
  --line: #e5eaf0;
  --bg: #ffffff;
  --bg-light: #f6f8fb;
  --accent: #1f5f99;
  --accent-dark: #17486f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 96px 0 88px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-inner {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 760px;
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

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

.section {
  padding: 76px 0;
}

.section-light {
  background: var(--bg-light);
}

.section-title {
  margin-bottom: 32px;
}

.section-title p {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.4;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card,
.work-item,
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}

.card h3,
.work-item h3 {
  margin: 0 0 12px;
  font-size: 19px;
  line-height: 1.5;
}

.card p,
.work-item p,
.contact-box p {
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tags span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
}

.works-list {
  display: grid;
  gap: 16px;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 180px;
  background: #fbfcfe;
  font-weight: 700;
}

.contact-section {
  background: #fff;
}

.contact-box {
  text-align: center;
}

.mail {
  margin-top: 18px !important;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent) !important;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 800px) {
  .header-inner {
    height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 6px;
  }

  .company-table td {
    padding-top: 6px;
  }
}
