body[data-page="nightshift"] {
  --ns-navy: #0b2442;
  --ns-cyan: #16b8c8;
  --ns-cyan-dark: #078ca6;
  --ns-ink: #0d2340;
  --ns-muted: #526578;
  --ns-line: #d8e0e7;
  --ns-pale: #f2f6f8;
  --ns-mint: #edf7f5;
  --ns-warm: #f8f5ef;
  --ns-blue-wash: #eef3f8;
  --ns-sage-wash: #f1f7f2;
  color: var(--ns-ink);
}

body[data-page="nightshift"] .site-header {
  height: var(--header);
  background: rgba(255, 255, 255, .98);
  border-color: #e2e7eb;
}

body[data-page="nightshift"] .site-nav {
  gap: 34px;
}

body[data-page="nightshift"] .nav__link {
  color: var(--ns-ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: .86rem;
  font-weight: 500;
}

body[data-page="nightshift"] .nav-cta {
  min-height: 50px;
  padding-inline: 26px;
  background: var(--ns-navy);
}

body[data-page="nightshift"] h1,
body[data-page="nightshift"] h2,
body[data-page="nightshift"] h3 {
  color: var(--ns-ink);
}

.ns-hero {
  position: relative;
  min-height: 742px;
  background: url("assets/nightshift-room.webp") center center / cover no-repeat;
  isolation: isolate;
}

.ns-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(4, 18, 32, .46);
}

.ns-hero__inner {
  min-height: 742px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 72px;
}

.ns-product-name {
  margin-bottom: 26px;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 600;
}

body[data-page="nightshift"] .ns-hero h1 {
  max-width: 960px;
  margin-bottom: 26px;
  color: #fff;
  font-size: clamp(3rem, 4vw, 3.65rem);
  line-height: 1.35;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .2);
}

.ns-hero h1 span { display: block; white-space: nowrap; }
.ns-mobile-break { display: none; }

.ns-hero__lead {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 1.08rem;
  line-height: 2;
}

.ns-hero .action-row {
  gap: 28px;
  margin-top: 34px;
}

.ns-button--cyan {
  min-height: 56px;
  padding-inline: 30px;
  border: 1px solid var(--ns-cyan);
  border-radius: 3px;
  background: var(--ns-cyan);
  color: #fff;
}

.ns-button--cyan:hover {
  border-color: var(--ns-cyan-dark);
  background: var(--ns-cyan-dark);
}

.ns-hero__link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.ns-hero__link:hover { color: #bff7fb; }

.ns-section {
  padding: 82px 0;
  border-top: 0;
  scroll-margin-top: 96px;
}

.ns-section > .shell > h2,
.ns-product > .shell > h2,
.ns-faq h2 {
  margin-bottom: 46px;
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.45;
}

.ns-problem {
  padding-top: 66px;
  background: #fff;
}

.ns-pain-list {
  border-top: 1px solid var(--ns-line);
}

.ns-pain-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  min-height: 102px;
  border-bottom: 1px solid var(--ns-line);
}

.ns-pain-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.ns-pain-list h3 { max-width: 900px; margin: 0; font-size: 1.08rem; }

.ns-problem__conclusion {
  margin: 34px 0 0;
  color: var(--ns-navy);
  font-size: 1.12rem;
  font-weight: 700;
  text-align: center;
}

.ns-solution {
  background: var(--ns-mint);
}

.ns-section-intro {
  margin: 0 0 18px;
  color: var(--ns-cyan-dark);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.ns-section-intro::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 12px auto 0;
  background: var(--ns-cyan);
}

.ns-section-intro--left {
  text-align: left;
}

.ns-section-intro--left::after {
  margin-left: 0;
}

.ns-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 70px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ns-process li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-width: 0;
  color: var(--ns-navy);
  text-align: center;
}

.ns-process li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 41px;
  left: calc(50% + 54px);
  width: calc(100% - 38px);
  height: 1px;
  background: #a9b5bf;
}

.ns-process-icon {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.ns-process .is-accent { color: var(--ns-cyan-dark); }

.ns-benefits {
  padding-block: 60px 72px;
  background: var(--ns-warm);
}

.ns-benefit-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--ns-line);
}

.ns-benefit-list article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px 14px;
  padding: 28px 36px;
  border-right: 1px solid var(--ns-line);
}

.ns-benefit-list article:last-child { border-right: 0; }
.ns-check-icon { width: 24px; height: 24px; object-fit: contain; }
.ns-benefit-list h3 { margin: 0; font-size: 1rem; }
.ns-benefit-list p { grid-column: 2; margin: 0; color: var(--ns-muted); font-size: .86rem; }

.ns-product {
  padding-block: 96px;
  background: #fff;
}
.ns-product > .shell > h2 { font-size: clamp(2rem, 2.5vw, 2.35rem); }

.ns-workflow-labels {
  display: grid;
  grid-template-columns: 1.05fr .95fr .95fr;
  gap: 44px;
  margin-bottom: 18px;
  color: var(--ns-ink);
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
}

.ns-workflow-labels span:not(:last-child)::after {
  content: "→";
  float: right;
  margin-right: -30px;
  color: #738496;
}

.ns-product-flow {
  display: grid;
  grid-template-columns: 1.05fr .95fr .95fr;
  gap: 44px;
  align-items: stretch;
}

.ns-room-panel,
.ns-event-panel,
.ns-summary-panel {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ns-line);
  border-radius: 4px;
  background: #fff;
}

.ns-room-panel {
  position: relative;
  min-height: 390px;
  overflow: hidden;
}

.ns-room-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.ns-room-status {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  padding: 16px 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 24px rgba(5, 25, 43, .12);
}

.ns-room-status strong,
.ns-room-status span { display: block; }
.ns-room-status strong { color: var(--ns-cyan-dark); }
.ns-room-status span { margin-top: 4px; color: var(--ns-muted); font-size: .82rem; }

.ns-event-panel,
.ns-summary-panel { padding: 30px 24px; }
.ns-event-panel h3,
.ns-summary-panel h3 { margin-bottom: 26px; font-size: 1.22rem; }

.ns-event-panel ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ns-event-panel li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--ns-line);
  border-radius: 3px;
  color: var(--ns-muted);
  font-size: .84rem;
}
.ns-event-panel li strong { flex: 0 0 auto; padding: 4px 7px; border: 1px solid currentColor; border-radius: 2px; font-size: .7rem; }
.ns-event-panel .is-urgent { border-color: #d79238; color: #b66c05; }
.ns-event-panel .is-confirmed { color: var(--ns-cyan-dark); }

.ns-summary-panel dl { margin: 0; }
.ns-summary-panel dl > div { display: flex; justify-content: space-between; align-items: center; min-height: 66px; border-bottom: 1px solid var(--ns-line); }
.ns-summary-panel dt { color: var(--ns-ink); }
.ns-summary-panel dd { margin: 0; color: var(--ns-navy); font-size: 1.8rem; font-weight: 700; }
.ns-summary-panel dd small { margin-left: 3px; font-size: .7rem; font-weight: 500; }
.ns-summary-panel > p { margin: 22px 0 0; padding-left: 20px; border-left: 2px solid var(--ns-cyan); color: var(--ns-ink); font-size: .85rem; font-weight: 700; }

.ns-outcomes {
  margin-top: 48px;
  padding: 46px 48px 0;
  border-top: 1px solid var(--ns-line);
  background: var(--ns-blue-wash);
}
.ns-outcomes h2 { margin-bottom: 34px; text-align: center; font-size: 1.75rem; }
.ns-outcomes > div { display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: 38px; text-align: center; }
.ns-outcomes span { padding: 0 24px; border-right: 1px solid #aebbc6; font-weight: 700; }
.ns-outcomes span:last-child { border-right: 0; }

.ns-safety { background: var(--ns-blue-wash); }
.ns-safety__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.ns-safety__grid h2 { margin-bottom: 20px; font-size: clamp(2rem, 2.6vw, 2.35rem); }
.ns-safety__grid p { max-width: 520px; margin: 0; color: var(--ns-muted); }
.ns-safety-list { margin: 0; border-top: 1px solid var(--ns-line); }
.ns-safety-list > div { padding: 22px 0; border-bottom: 1px solid var(--ns-line); }
.ns-safety-list dt { display: flex; gap: 20px; align-items: center; color: var(--ns-ink); font-size: 1.02rem; font-weight: 700; }
.ns-safety__link { margin-top: 22px; }
.ns-safety-icon { width: 48px; height: 48px; object-fit: contain; }

.ns-fit { background: var(--ns-sage-wash); }
.ns-fit > .shell > h2 { margin-bottom: 30px; text-align: left; }
.ns-fit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 70px; margin: 0 0 28px; padding: 0; list-style: none; }
.ns-fit-list li { position: relative; padding-left: 30px; color: var(--ns-ink); font-weight: 600; }
.ns-fit-list li::before { content: ""; position: absolute; top: 2px; left: 0; width: 20px; height: 20px; background: url("assets/icon-check-cyan.png") center / contain no-repeat; }
.ns-fit p { margin: 0; color: var(--ns-muted); }

.ns-company-bridge { background: #fff; }
.ns-company-bridge__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 90px;
  align-items: center;
  padding-block: 18px;
  border-block: 1px solid var(--ns-line);
}
.ns-company-bridge h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
}
.ns-company-bridge__grid > div {
  padding-left: 48px;
  border-left: 1px solid var(--ns-line);
}
.ns-company-bridge p {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--ns-muted);
}

.ns-contact {
  padding: 76px 0;
  background: var(--ns-navy);
  scroll-margin-top: 82px;
}
.ns-contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
body[data-page="nightshift"] .ns-contact__copy h2 { margin-bottom: 22px; color: #fff; font-size: clamp(2rem, 3vw, 2.8rem); }

body[data-page="nightshift"] .ns-footer-logo {
  width: 180px;
  height: auto;
  padding: 0;
  background: transparent;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.ns-lead-form { padding: 28px; border: 0; border-radius: 4px; box-shadow: none; }
.ns-lead-form .form-progress { padding-bottom: 14px; border-bottom: 2px solid var(--ns-cyan); }
.ns-lead-form .form-progress strong { color: var(--ns-navy); }
.ns-lead-form .form-progress span { color: var(--ns-muted); }
.ns-lead-form .form-grid { gap: 14px; }
.ns-lead-form label { gap: 5px; font-size: .76rem; }
.ns-lead-form input,
.ns-lead-form select,
.ns-lead-form textarea { min-height: 44px; padding: 9px 11px; }
.ns-lead-form textarea { min-height: 102px; }
.ns-lead-form .form-actions { margin-top: 18px; }
.ns-lead-form .ns-button--cyan { min-height: 46px; }
.ns-lead-form .form-trust { margin-bottom: 0; }

.ns-faq { background: var(--ns-warm); }
.ns-faq h2 { text-align: left; }
.ns-faq .faq-list summary { padding-inline: 18px; }
.ns-faq .faq-list summary::before { order: 2; margin-left: auto; }
.ns-faq .faq-list details > p { margin-left: 18px; }

@media (max-width: 1080px) {
  body[data-page="nightshift"] .site-nav { gap: 18px; }
  .ns-product-flow,
  .ns-workflow-labels { gap: 20px; }
  .ns-event-panel,
  .ns-summary-panel { padding: 24px 18px; }
  .ns-contact__grid { gap: 48px; }
}

@media (max-width: 860px) {
  body[data-page="nightshift"] .site-header { height: 70px; }
  body[data-page="nightshift"] .site-nav { gap: 0; }
  .ns-hero,
  .ns-hero__inner { min-height: 680px; }
  .ns-hero { background-position: 62% center; }
  .ns-section { padding-block: 68px; }
  .ns-pain-list article { grid-template-columns: 52px 1fr; gap: 8px 18px; padding-block: 20px; }
  .ns-process { grid-template-columns: 1fr 1fr; gap: 42px 28px; }
  .ns-process li:nth-child(2)::after { display: none; }
  .ns-benefit-list { grid-template-columns: 1fr; }
  .ns-benefit-list article { border-right: 0; border-bottom: 1px solid var(--ns-line); }
  .ns-benefit-list article:last-child { border-bottom: 0; }
  .ns-workflow-labels { display: none; }
  .ns-product-flow { grid-template-columns: 1fr; }
  .ns-room-panel { min-height: 460px; }
  .ns-outcomes > div { grid-template-columns: 1fr; }
  .ns-outcomes span { padding-block: 14px; border-right: 0; border-bottom: 1px solid #c8d1d9; }
  .ns-outcomes span:last-child { border-bottom: 0; }
  .ns-safety__grid,
  .ns-contact__grid,
  .ns-company-bridge__grid { grid-template-columns: 1fr; gap: 34px; }
  .ns-company-bridge__grid > div {
    padding: 28px 0 0;
    border-top: 1px solid var(--ns-line);
    border-left: 0;
  }
  .ns-fit-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ns-hero,
  .ns-hero__inner { min-height: 700px; }
  .ns-hero { background-position: 66% center; }
  .ns-hero::before { background: rgba(4, 18, 32, .58); }
  .ns-hero__inner { justify-content: flex-end; padding-bottom: 54px; }
  .ns-product-name { margin-bottom: 18px; font-size: 1rem; }
  body[data-page="nightshift"] .ns-hero h1 { font-size: 2rem; line-height: 1.4; }
  .ns-hero h1 span { white-space: normal; }
  .ns-mobile-break { display: block; }
  .ns-hero__lead { font-size: .95rem; line-height: 1.85; }
  .ns-hero__lead br { display: none; }
  .ns-hero .action-row { width: 100%; gap: 12px; }
  .ns-hero__link { justify-content: center; width: 100%; }
  .ns-section { padding-block: 58px; }
  .ns-section > .shell > h2,
  .ns-product > .shell > h2,
  .ns-faq h2 { margin-bottom: 32px; text-align: left; font-size: 1.7rem; }
  .ns-pain-list article { grid-template-columns: 42px 1fr; }
  .ns-pain-icon { width: 36px; height: 36px; }
  .ns-pain-list h3 { font-size: .98rem; }
  .ns-problem__conclusion { text-align: left; font-size: 1rem; }
  .ns-process { grid-template-columns: 1fr; gap: 30px; }
  .ns-process li { grid-template-columns: 58px 1fr; justify-items: start; align-items: center; text-align: left; }
  .ns-process li:not(:last-child)::after { top: 58px; left: 28px; width: 1px; height: 30px; }
  .ns-process-icon { width: 56px; height: 56px; }
  .ns-benefit-list article { padding: 24px 8px; }
  .ns-room-panel { min-height: 360px; }
  .ns-event-panel li { align-items: flex-start; flex-direction: column; }
  .ns-outcomes { padding: 34px 18px 0; }
  .ns-outcomes h2 { text-align: left; font-size: 1.45rem; }
  .ns-safety__grid h2 { font-size: 1.75rem; }
  .ns-safety__grid h2 br { display: none; }
  .ns-contact { padding-block: 58px; }
  .ns-contact__copy h2 { font-size: 1.85rem; }
  .ns-contact__copy h2 br { display: none; }
  .ns-lead-form { padding: 22px 16px; }
  .ns-lead-form .form-grid { grid-template-columns: 1fr; }
  .ns-lead-form .form-grid .full { grid-column: auto; }
  .ns-lead-form .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .ns-lead-form .form-actions .button { width: 100%; }
}
