:root {
  --ink: #171717;
  --muted: #62605d;
  --paper: #f7f5f0;
  --line: #ded8cd;
  --accent: #0f766e;
  --accent-strong: #0b4f49;
  --rose: #b85f68;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.light {
  position: sticky;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 132px;
  height: 36px;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--white);
  background: #0b0b0b;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(23, 23, 23, 0.16);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #1f1f1f;
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.2);
  outline: none;
  transform: translateY(-1px);
}

.site-header.menu-open .menu-toggle {
  background: #0b0b0b;
  color: var(--white);
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.18);
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: calc(100% + 10px);
  right: clamp(18px, 4vw, 56px);
  display: grid;
  align-items: center;
  min-width: 210px;
  padding: 12px;
  gap: 4px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.12);
  box-shadow: 0 18px 48px rgba(23, 23, 23, 0.14);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-header.menu-open .site-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #f2f0eb;
  outline: none;
}

.nav-cta {
  padding: 8px 14px;
  border: 1px solid currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 88px) 80px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(10, 21, 20, 0.86), rgba(10, 21, 20, 0.46) 48%, rgba(10, 21, 20, 0.08));
}

.hero-content,
.app-copy {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.6);
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 6vw, 88px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 36px;
}

.section-lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
}

.work-band {
  background: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.work-copy {
  font-size: 18px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 22px;
  border-left: 4px solid var(--accent);
}

.text-link {
  color: var(--accent-strong);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.metrics {
  display: grid;
  border-top: 1px solid var(--line);
}

.metrics div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.metrics strong {
  color: var(--accent);
  font-size: 44px;
  line-height: 1;
}

.metrics span {
  align-self: end;
  color: var(--muted);
  font-weight: 800;
}

.services {
  background: var(--white);
}

.company {
  background: var(--white);
}

.company-copy {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.company-list {
  max-width: 980px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.company-list div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.company-list dt {
  color: var(--muted);
  font-weight: 800;
}

.company-list dd {
  margin: 0;
  font-weight: 700;
}

.services.compact {
  padding-top: 84px;
}

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

.service-grid article {
  min-height: 220px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper);
}

.service-grid p,
.work-copy p,
.policy p {
  color: var(--muted);
}

.works-summary {
  margin-top: 0;
}

.works-section {
  background: #eeebe4;
}

.work-card {
  display: block;
  max-width: 760px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(23, 23, 23, 0.12);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(23, 23, 23, 0.18);
  outline: none;
}

.work-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 4vw, 42px);
}

.work-card-copy h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.work-card-copy p {
  color: var(--muted);
  font-weight: 700;
}

.work-date {
  color: var(--rose);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.work-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  margin-top: 22px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.work-logo img {
  display: block;
  width: 100%;
  max-height: 72px;
  object-fit: contain;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--ink);
  color: var(--white);
}

.contact h2 {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  min-height: 78vh;
  padding: clamp(72px, 8vw, 112px) clamp(20px, 6vw, 88px);
  background: linear-gradient(135deg, #f7f5f0 0%, #ffffff 54%, #d9ebe8 100%);
}

.app-hero .lead {
  color: var(--muted);
}

.store-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  min-height: 62px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  font-weight: 800;
  text-align: center;
  border-radius: 8px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  height: 46px;
}

.store-badge img {
  display: block;
  width: auto;
  height: 100%;
}

.store-badge.is-disabled {
  opacity: 0.46;
  filter: grayscale(0.2);
}

.app-note {
  max-width: 900px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.install-notes {
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(48px, 7vw, 84px);
  background: var(--white);
}

.install-notes ul {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink);
  font-weight: 700;
}

.privacy-link-row {
  max-width: 720px;
  margin: 18px 0 0;
}

.privacy-link-row a {
  color: var(--accent-strong);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.install-notes p {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.phone-panel {
  display: grid;
  place-items: center;
  min-height: 520px;
}

.app-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  align-items: start;
  max-width: 980px;
}

.app-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(15, 118, 110, 0.18);
}

.phone {
  width: min(320px, 82vw);
  aspect-ratio: 0.54;
  padding: 18px;
  background: #101010;
  border-radius: 38px;
  box-shadow: 0 28px 80px rgba(15, 118, 110, 0.28);
}

.phone-top {
  width: 86px;
  height: 8px;
  margin: 0 auto 22px;
  background: #313131;
  border-radius: 999px;
}

.app-card,
.app-row {
  border-radius: 18px;
  background: #f7f5f0;
}

.app-card.big {
  display: grid;
  place-items: center;
  height: 170px;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, #f7f5f0, #c5e4df);
}

.app-row {
  height: 48px;
  margin-bottom: 14px;
}

.app-row.short {
  width: 72%;
}

.app-card:not(.big) {
  height: 150px;
  background: #22302f;
}

.policy-page {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 88px);
}

.policy {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--line);
}

.policy h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
}

.policy h2 {
  margin-top: 36px;
  font-size: 24px;
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
    color: var(--ink);
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .site-nav {
    right: 18px;
    font-size: 13px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 86px;
  }

  .hero-media {
    object-position: 68% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 21, 20, 0.78), rgba(10, 21, 20, 0.46));
  }

  .work-grid,
  .service-grid,
  .app-hero {
    grid-template-columns: 1fr;
  }

  .app-screens {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
  }

  .app-screens img {
    flex: 0 0 min(78vw, 320px);
    scroll-snap-align: start;
  }

  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .phone-panel {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 112px;
    height: 32px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-media {
    object-position: 72% center;
  }

  .store-placeholder {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
