.service {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  overflow: hidden;
}

.service-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  background: #e7e3dd;
}

.service-visual {
  position: relative;
  display: block;
  width: 100%;
}

.image-note {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #182331e8;
  color: #fff;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: .02em;
}

.service-visual .image-note,
.about-image-note {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

.hero-image-note,
.welcome-image-note {
  position: absolute;
  top: 16px;
  right: 16px;
}

.office-registration > span {
  display: block;
  margin-top: 4px;
}

main[tabindex="-1"]:focus {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  body.nav-covering::after,
  .nav-revealing body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: linear-gradient(120deg, #111d2a, #252d3b);
    pointer-events: none;
  }

  .nav-revealing body::after {
    animation: nav-reveal 900ms cubic-bezier(.76, 0, .24, 1) both;
  }

  body.nav-covering::after {
    animation: nav-cover 650ms cubic-bezier(.76, 0, .24, 1) both;
  }

  .nav-revealing main {
    animation: nav-content-arrive 950ms cubic-bezier(.22, .61, .36, 1);
  }

  @keyframes nav-cover {
    from { transform: translateY(101%); }
    to { transform: translateY(0); }
  }

  @keyframes nav-reveal {
    from { clip-path: inset(0); }
    to { clip-path: inset(0 0 100% 0); visibility: hidden; }
  }

  @keyframes nav-content-arrive {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
  }
}

.service-copy {
  flex: 1;
  width: 100%;
  padding: 22px 24px 25px;
}

.service-title {
  display: block;
  margin: 14px 0 8px;
  font-size: 20px;
}

.service-description {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: #646c77;
}

.service:focus-visible {
  outline: 2px solid #526983;
  outline-offset: -3px;
}

.footer-end > .footer-legal {
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  text-decoration: underline;
}

.legal-content {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(50px, 8vw, 100px) 7%;
  overflow-wrap: anywhere;
}

.legal-content section + section {
  margin-top: 36px;
}

.legal-content h2 {
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -.025em;
  margin: 0 0 12px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #4d5663;
}

.legal-content .legal-date {
  font-size: 13px;
  margin: 0 0 34px;
}

.legal-content code {
  background: #f0f2f5;
  padding: 2px 4px;
  border-radius: 3px;
}

.legal-content a,
.contact-privacy a {
  color: #304c68;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-privacy {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
}

.welcome-pending body > .cookie-notice {
  visibility: visible;
}

.cookie-notice {
  position: fixed;
  z-index: 210;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 20px;
  background: #fff;
  color: #252d3b;
  border: 1px solid #dfe2e6;
  border-radius: 14px;
  box-shadow: 0 8px 32px #101c273b;
}

.cookie-notice > div {
  flex: 1 1 260px;
}

.cookie-notice h2 {
  margin: 0 0 5px;
  font-size: 16px;
  letter-spacing: -.02em;
  line-height: 1.35;
}

.cookie-notice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.cookie-notice a {
  color: #304c68;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice-dismiss {
  margin-inline-start: auto;
  min-height: 44px;
  padding: 9px 18px;
  color: #fff;
  background: #252d3b;
  border: 1px solid #252d3b;
  border-radius: 24px;
  font: inherit;
  font-size: 13px;
}

.cookie-notice :focus-visible {
  outline: 2px solid #526983;
  outline-offset: 3px;
}
