:root {
  --color-teal: #1d4f4f;
  --color-teal-dark: #163c3c;
  --color-ink: #1a1a1a;
  --color-paper: #ffffff;
  --color-mist: #f4f3ef;
  --color-line: #e2e0d8;
  --color-muted: #767469;
  --font-base: "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-teal);
  color: #fff;
}

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

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.main-nav a {
  opacity: 0.85;
  transition: opacity 0.2s;
}

.main-nav a:hover,
.main-nav a.is-current {
  opacity: 1;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
}

/* Section label */
.section-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.section-label--invert {
  color: rgba(255, 255, 255, 0.7);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content {
  padding-top: 64px;
  padding-bottom: 64px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 16px;
  max-width: 520px;
  opacity: 0.9;
}

/* Service */
.service {
  padding: 96px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--color-line);
}

.service-item {
  padding: 32px 12px;
  text-align: center;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.service-item:last-child {
  border-right: none;
}

.service-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-item h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Works */
.works {
  padding: 96px 0;
  background: var(--color-mist);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-head .section-label {
  margin-bottom: 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.work-card {
  display: block;
  position: relative;
}

.work-card--lg { grid-column: span 4; }
.work-card--pair { grid-column: span 2; }
.work-card--half { grid-column: span 3; }

.work-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d9d6cb, #c4c0b3);
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s;
}

.work-card--lg .work-thumb { aspect-ratio: 16 / 9; }

.work-card:hover .work-thumb {
  opacity: 0.85;
}

.work-thumb--01 { background: linear-gradient(135deg, #2f6f5e, #1d4f4f); }
.work-thumb--02 { background: linear-gradient(135deg, #e3b04b, #c98a2e); }
.work-thumb--03 { background: linear-gradient(135deg, #5c7a8a, #36505c); }
.work-thumb--04 { background: linear-gradient(135deg, #d98aa3, #b85a78); }
.work-thumb--05 { background: linear-gradient(135deg, #3f7fc1, #1d4f4f); }
.work-thumb--06 { background: linear-gradient(135deg, #6b6f76, #3a3d42); }

.work-category {
  display: block;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--color-muted);
}

.work-title {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.work-client {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-muted);
}

.works-note {
  margin-top: 40px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--color-muted);
}

/* Company */
.company {
  padding: 96px 0;
}

.company-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
}

.company-table {
  border-top: 1px solid var(--color-line);
}

.company-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
}

.company-row dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
}

.company-row dd {
  font-size: 14px;
  line-height: 1.9;
}

/* Contact */
.contact {
  padding: 120px 0;
  background: var(--color-teal);
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 36px;
}

.cta-button {
  display: inline-block;
  padding: 16px 48px;
  border: 1px solid #fff;
  font-size: 13px;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}

.cta-button:hover {
  background: #fff;
  color: var(--color-teal);
}

/* Footer */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-muted);
}

/* Responsive */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-teal-dark);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.is-open {
    max-height: 260px;
  }

  .main-nav a {
    padding: 16px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-toggle {
    display: flex;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-item:nth-child(2n) {
    border-right: none;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card--lg,
  .work-card--pair,
  .work-card--half {
    grid-column: span 2;
  }

  .container {
    padding: 0 20px;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
