/* Shared top + all service pages: navigation and scroll animations. */
.pi-global-header,.pi-global-header *,.pi-mobile-drawer,.pi-mobile-drawer * {
  box-sizing: border-box;
}
.pi-global-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  height: 80px !important;
  z-index: 10020 !important;
  background: rgba(3,11,22,.90) !important;
  border-bottom: 1px solid rgba(133,197,241,.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .24s ease,box-shadow .24s ease;
}
.pi-global-header.pi-home-header:not(.pi-is-scrolled) {
  background: rgba(0,0,0,.30) !important;
  border-color: transparent;
}
.pi-global-header.pi-is-scrolled,.pi-global-header.pi-menu-open {
  background: rgba(3,11,22,.97) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.23);
}
.pi-header-inner {
  height: 100%;
  width: min(calc(100% - 74px),1430px);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pi-global-brand {
  position: relative;
  z-index: 10025;
  flex: 0 1 auto;
  min-width: 0;
  display: block;
  line-height: 1;
}
.pi-global-brand img {
  display: block;
  height: auto;
  width: clamp(190px,19vw,254px) !important;
  max-width: 100%;
  object-fit: contain;
}
.pi-global-nav {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(16px,2.4vw,35px) !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.pi-global-nav a {
  color: rgba(237,246,255,.88) !important;
  display: inline-block !important;
  position: relative;
  font: 600 10px/1.5 'DM Sans',Arial,sans-serif !important;
  letter-spacing: .12em;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: color .23s;
}
.pi-global-nav a:not(.pi-nav-contact)::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 100%;
  height: 1px;
  background: #65ceff;
  transition: right .25s;
}
.pi-global-nav a:hover,.pi-global-nav a[aria-current="page"] {
  color: #fff !important;
}
.pi-global-nav a:hover::after,.pi-global-nav a[aria-current="page"]::after {
  right: 0;
}
.pi-global-nav .pi-nav-contact {
  padding: 12px 18px !important;
  border: 1px solid rgba(219,238,253,.5);
  border-radius: 40px !important;
}
.pi-global-nav .pi-nav-contact span {
  font-size: 14px;
  margin-left: 5px;
}
.pi-global-nav .pi-nav-contact:hover {
  background: rgba(38,141,224,.16);
}
.pi-menu-toggle {
  display: none !important;
  flex: 0 0 46px !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(162,219,255,.56) !important;
  border-radius: 50% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: rgba(4,25,45,.75) !important;
  color: #fff !important;
  line-height: 0 !important;
  position: relative !important;
  z-index: 10025 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transform: none !important;
}
.pi-menu-toggle span {
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 2px !important;
  min-height: 2px !important;
  max-height: 2px !important;
  flex: 0 0 2px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: currentColor !important;
  opacity: 1 !important;
  transform-origin: center;
  transition: transform .24s ease,opacity .19s ease;
}
.pi-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg) !important;
}
.pi-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0 !important;
  transform: none !important;
}
.pi-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg) !important;
}
.pi-mobile-drawer[hidden] {
  display: none !important;
}
.pi-mobile-drawer {
  position: fixed !important;
  z-index: 10010 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 94px max(22px,5.5vw) 28px !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: radial-gradient(ellipse at 83% 76%,rgba(33,97,159,.32),transparent 51%),#06101e !important;
  display: flex;
  flex-direction: column;
  color: #fff;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
}
.pi-mobile-drawer-inner {
  width: min(650px,100%);
  margin: auto auto 0;
  display: flex;
  flex-direction: column;
}
.pi-mobile-drawer-inner a {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(180,224,254,.16);
  color: #f6fbff !important;
  font: 500 clamp(17px,4.8vw,29px)/1.28 'DM Sans','Noto Sans JP',sans-serif !important;
  letter-spacing: .03em !important;
  white-space: normal !important;
  text-decoration: none !important;
}
.pi-mobile-drawer-inner a[aria-current="page"] {
  color: #76d5ff !important;
}
.pi-menu-number {
  display: inline-block;
  min-width: 24px;
  color: #6db8e2 !important;
  font: 600 10px 'DM Sans',sans-serif !important;
}
.pi-mobile-drawer-note {
  margin: 28px auto 0 !important;
  width: min(650px,100%);
  font: 600 10px 'DM Sans',Arial,sans-serif !important;
  letter-spacing: .28em;
  color: #78aacb;
}
body.pi-nav-locked {
  overflow: hidden !important;
  touch-action: none;
}
.pi-menu-toggle:focus-visible,.pi-mobile-drawer a:focus-visible {
  outline: 2px solid #6ed5ff !important;
  outline-offset: 4px;
}
@media(max-width:900px) {
  .pi-global-header {
    height: 72px !important;
  }
  .pi-header-inner {
    width: calc(100% - 36px);
    gap: 10px;
  }
  .pi-global-brand img {
    width: min(240px,65vw) !important;
  }
  .pi-global-nav {
    display: none !important;
  }
  .pi-menu-toggle {
    display: flex !important;
  }
}
@media(max-width:380px) {
  .pi-global-brand img {
    width: min(215px,65vw) !important;
  }
  .pi-menu-toggle {
    width: 43px !important;
    min-width: 43px !important;
    max-width: 43px !important;
    flex-basis: 43px !important;
    height: 43px !important;
    min-height: 43px !important;
    max-height: 43px !important;
  }
}
/* Shared reveal motion. Always visible by default if scripts don't initialize. */
[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}
.pi-motion-ready [data-reveal]:not(.is-visible) {
  opacity: 0 !important;
  transform: translate3d(0,26px,0) !important;
}
.pi-motion-ready [data-reveal].is-visible {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}
.pi-motion-ready [data-reveal] {
  transition: opacity .75s ease,transform .9s cubic-bezier(.2,1,.25,1) !important;
}
/* Photography and detail pages follow the service-top's left-to-right image wipe. */
[data-image-reveal] {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}
.pi-motion-ready [data-image-reveal]:not(.is-visible) {
  clip-path: inset(0 100% 0 0) !important;
  opacity: 1 !important;
  transform: none !important;
}
.pi-motion-ready [data-image-reveal].is-visible {
  clip-path: inset(0 0 0 0) !important;
  opacity: 1 !important;
  transform: none !important;
}
.pi-motion-ready [data-image-reveal] {
  transition: clip-path 1s cubic-bezier(.25,1,.32,1) !important;
}
/* The legacy service-top's inner image mask is now controlled by the parent. */
.pi-motion-ready .reveal-image .feature-image {
  clip-path: none !important;
}
/* Defensive: do not let old detail-page CSS re-hide a photo after the shared reveal. */
.pi-motion-ready .offer-photo.image-reveal,.pi-motion-ready .offer-photo.image-reveal.is-visible {
  opacity: 1 !important;
}
@media(prefers-reduced-motion:reduce) {
  .pi-motion-ready [data-reveal],.pi-motion-ready [data-image-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}


/* ---- 2026-11-05 update: dropdown, mobile indent, curved footer ---- */
.pi-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.pi-nav-service > a {
  padding-right: 14px !important;
}

.pi-nav-service > a::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-68%) rotate(45deg);
  transform-origin: center;
  opacity: .76;
  transition: transform .22s ease, opacity .22s ease;
}

.pi-nav-service:hover > a::before,
.pi-nav-service:focus-within > a::before {
  transform: translateY(-40%) rotate(225deg);
  opacity: 1;
}

.pi-service-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 280px;
  padding: 14px 18px;
  border: 1px solid rgba(122,197,244,.28);
  border-radius: 18px;
  background: linear-gradient(180deg,rgba(8,21,37,.97),rgba(3,13,25,.98));
  box-shadow: 0 24px 55px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease, visibility .24s ease;
  z-index: 10030;
}

.pi-service-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  width: 14px;
  height: 14px;
  background: rgba(7,19,34,.98);
  border-left: 1px solid rgba(122,197,244,.28);
  border-top: 1px solid rgba(122,197,244,.28);
  transform: translateX(-50%) rotate(45deg);
}

.pi-nav-service:hover .pi-service-dropdown,
.pi-nav-service:focus-within .pi-service-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.pi-service-dropdown a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px !important;
  color: #f1f8ff !important;
  font: 500 12px/1.5 'DM Sans','Noto Sans JP',sans-serif !important;
  letter-spacing: .08em !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(128,179,214,.16);
}

.pi-service-dropdown a:last-child {
  border-bottom: 0;
}

.pi-service-dropdown a::after {
  display: none !important;
}

.pi-service-dropdown a span {
  font-size: 14px;
  color: #71d1ff;
}

.pi-service-dropdown a:hover,
.pi-service-dropdown a:focus-visible {
  color: #84ddff !important;
}

.pi-mobile-drawer-inner a.pi-service-child {
  padding-left: 18px;
  gap: 18px;
  font-size: clamp(15px,4.4vw,24px) !important;
}

.pi-mobile-drawer-inner a.pi-service-child .pi-menu-number {
  min-width: 28px;
}

.site-footer {
  position: relative;
  overflow: visible;
  background: #030c15;
}

.site-footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -80px;
  height: 100px;
  background: #030c15;
  clip-path: ellipse(77% 85% at 50% 100%);
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .pi-nav-item {
    display: none !important;
  }
}


/* 2026-11-05 footer/CTA/dropdown correction.
   Match the Recruit CTA while keeping all existing page content intact. */

/* Continuous pointer hit area between SERVICE and its flyout. */
.pi-global-nav .pi-nav-service {
  isolation: isolate;
}
.pi-global-nav .pi-nav-service::after {
  content: '';
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 28px;
  z-index: 0;
  pointer-events: auto;
}
.pi-global-nav .pi-service-dropdown {
  top: calc(100% + 8px);
  z-index: 2;
}
.pi-global-nav .pi-service-dropdown::before {
  top: -7px;
  pointer-events: none;
}

/* Match the Recruit CTA's consistent dark treatment and vertical rhythm. */
.closing,
.web-detail-page .web-closing-light,
.marketing-page .mk-cta,
.system-page .sys-cta,
.photo-page .pv-cta {
  position: relative;
  isolation: isolate;
  min-height: 370px;
  padding: 98px 0 105px;
  background: radial-gradient(ellipse 80% 130% at 90% 50%,#123a60,#071d32 54%,#061321);
  color: #fff;
  border: 0;
  overflow: hidden;
}

/* Service overview uses the Recruit's copy-left / CTA-right composition. */
.closing:not(.web-closing-light) .closing-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 50px;
  align-items: center;
}
.closing:not(.web-closing-light) .closing-copy {
  min-width: 0;
}
.closing:not(.web-closing-light) .closing-label {
  margin: 0 0 23px;
}
.closing:not(.web-closing-light) .closing-big-type {
  display: none;
}

.web-detail-page .web-closing-light .closing-inner,
.marketing-page .mk-cta-grid,
.system-page .sys-cta-grid,
.photo-page .pv-cta-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 50px;
}

.closing h2,
.web-detail-page .web-closing-light h2,
.marketing-page .mk-cta h2,
.system-page .sys-cta h2,
.photo-page .pv-cta h2 {
  color: #fff;
  font: 500 clamp(33px,3.6vw,50px)/1.62 'Noto Serif JP',serif;
  margin: 0 0 18px;
}
.closing h2 em,
.web-detail-page .web-closing-light h2 em,
.marketing-page .mk-cta h2 em,
.system-page .sys-cta h2 em,
.photo-page .pv-cta h2 em {
  color: #91deff;
  font-style: normal;
}
.closing-label,
.web-detail-page .web-closing-light .closing-label,
.marketing-page .mk-cta-label,
.system-page .sys-cta-kicker,
.photo-page .pv-cta-label {
  color: #76cbf7;
  font: 700 10px 'DM Sans',sans-serif;
  letter-spacing: .2em;
  margin-bottom: 23px;
}
.closing p,
.web-detail-page .web-closing-light p,
.marketing-page .mk-cta p,
.system-page .sys-cta p,
.photo-page .pv-cta p {
  color: #a8c7dd;
  font: 400 13px/2 'Noto Sans JP',sans-serif;
}
.closing p { margin-bottom: 0; }

.closing .closing-cta,
.web-detail-page .web-closing-light .closing-cta,
.marketing-page .mk-cta-button,
.system-page .sys-cta-link,
.photo-page .pv-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 12px 13px 12px 24px;
  border: 1px solid #88b7d7;
  border-radius: 50px;
  background: #fff;
  color: #10344e;
  box-shadow: none;
  font: 600 12px 'Noto Sans JP',sans-serif;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease;
}
.closing .closing-cta:hover,
.web-detail-page .web-closing-light .closing-cta:hover,
.marketing-page .mk-cta-button:hover,
.system-page .sys-cta-link:hover,
.photo-page .pv-cta-button:hover {
  background: #d8f5ff;
  transform: translateY(-3px);
}
.closing .cta-arrow,
.web-detail-page .web-closing-light .cta-arrow,
.marketing-page .mk-cta-button span,
.system-page .sys-cta-link span,
.photo-page .pv-cta-button span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #0f719d;
  color: #fff;
  font-size: 18px;
}

/* A fully opaque footer, with its curved edge kept behind content. */
.site-footer {
  position: relative;
  isolation: isolate;
  z-index: 2;
  background: #030916;
  color: #acc1d3;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: -45px 0 auto;
  height: 62px;
  background: #030916;
  clip-path: ellipse(77% 85% at 50% 100%);
  pointer-events: none;
  z-index: -1;
}
.site-footer > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .closing,
  .web-detail-page .web-closing-light,
  .marketing-page .mk-cta,
  .system-page .sys-cta,
  .photo-page .pv-cta {
    min-height: 0;
    padding: 78px 0 85px;
  }
  .closing:not(.web-closing-light) .closing-inner,
  .web-detail-page .web-closing-light .closing-inner,
  .marketing-page .mk-cta-grid,
  .system-page .sys-cta-grid,
  .photo-page .pv-cta-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 30px;
  }
  .closing .closing-cta,
  .web-detail-page .web-closing-light .closing-cta,
  .marketing-page .mk-cta-button,
  .system-page .sys-cta-link,
  .photo-page .pv-cta-button {
    width: min(100%,420px);
  }
  .site-footer::before {
    top: -34px;
    height: 48px;
  }
}
