:root {
  --primary: #64cab2;
  --ink: #1a1c23;
  --ink-soft: #313339;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-soft: rgba(255, 255, 255, 0.38);
  --border: rgba(255, 255, 255, 0.2);
  --display: "fort-xcondensed", Impact, sans-serif;
  --body: "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 0.694vw;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: #fff;
  background: var(--ink);
  font-family: var(--body);
  font-size: clamp(10px, 1.6rem, 16px);
  font-weight: 700;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 52% 74%, rgba(41, 155, 135, 0.62), transparent 38%), #061116;
  content: "";
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.display {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.83;
  text-transform: uppercase;
}

.display--hero {
  font-size: clamp(64px, 16rem, 184px);
}

.display--hero > span {
  display: block;
}

.hero-line--mobile {
  display: none !important;
}

.display--hero em {
  color: var(--primary);
  font-style: inherit;
}

.display--sub {
  font-size: clamp(54px, 8.3vw, 120px);
}

.section-inner {
  width: min(1320px, calc(100% - 120px));
  margin: 0 auto;
}

.section {
  position: relative;
}

.section-heading {
  position: relative;
  z-index: 1;
}

.section-heading > .display {
  font-size: clamp(64px, 12rem, 176px);
}

.section-kicker {
  margin: 0 0 16px;
  font-size: clamp(10px, 1.2rem, 14px);
  line-height: 1.2;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-family: var(--display);
  font-size: clamp(16px, 2rem, 24px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.text-link span,
.arrow-box,
.outline-arrow {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  transition: transform 240ms ease, background 240ms ease, color 240ms ease;
}

a:hover .text-link span,
a:hover > .arrow-box,
a:hover .outline-arrow,
.text-link:hover span {
  color: var(--ink);
  background: #fff;
  transform: translateX(4px);
}

.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 0 20px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(90deg, rgba(40, 37, 35, 0.82), rgba(52, 126, 153, 0.72));
  backdrop-filter: blur(38px);
}

.brand,
.footer-brand {
  width: 120px;
  flex: 0 0 auto;
}

.brand img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
  margin-right: 24px;
  font-family: var(--display);
  font-size: clamp(14px, 1.6rem, 16px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.desktop-nav a,
.footer-nav a {
  transition: opacity 200ms ease;
}

.desktop-nav a:hover,
.footer-nav a:hover {
  opacity: 0.5;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  padding: 6px 6px 6px 16px;
  background: var(--primary);
  font-family: var(--display);
  font-size: clamp(14px, 1.6rem, 16px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.header-contact .arrow-box {
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.menu-trigger {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}

.menu-trigger span {
  width: 2px;
  height: 2px;
  border-radius: 100%;
  background: #fff;
}

.global-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 46.875% 53.125%;
  visibility: hidden;
  opacity: 0;
  background: var(--ink);
  transition: opacity 240ms ease, visibility 240ms ease;
}

body.menu-open .global-menu {
  visibility: visible;
  opacity: 1;
}

.menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}

.menu-close span {
  position: absolute;
  top: 16px;
  left: 8px;
  width: 18px;
  height: 1px;
  background: #fff;
}

.menu-close span:first-child {
  transform: rotate(45deg);
}

.menu-close span:last-child {
  transform: rotate(-45deg);
}

.global-menu__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px;
}

.global-menu__visual img {
  width: min(100%, 580px);
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.global-menu__content {
  overflow-y: auto;
  padding: 120px 80px 80px 60px;
}

.global-menu__content nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.global-menu__content nav strong {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 56px);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.global-menu__content nav span {
  color: var(--muted);
  font-size: 12px;
}

.menu-contact {
  display: block;
  margin-top: 40px;
  padding: 30px;
  background: var(--ink-soft);
}

.menu-contact strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 54px;
  font-style: italic;
  line-height: 0.9;
  text-transform: uppercase;
}

.menu-contact__footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 80px;
  color: var(--muted);
  font-size: 12px;
}

.menu-contact__footer b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #fff;
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 400;
}

.hero {
  position: relative;
  min-height: 930px;
  padding: 100px 60px 60px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
    url("https://n1-inc.co.jp/wp-content/themes/swell_child/img/top/fvbg.png") center / cover;
  content: "";
  transform: scale(1.12);
  filter: blur(20px);
  opacity: 0;
  transition: transform 1400ms cubic-bezier(0.16, 1, 0.3, 1), filter 1400ms ease, opacity 500ms ease;
}

.hero.is-ready::before {
  transform: scale(1);
  filter: blur(0);
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  position: relative;
  z-index: 4;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 22px;
  font-size: clamp(32px, 4rem, 48px);
  font-weight: 900;
  line-height: 1.4;
  transform: skewX(-12deg);
}

.hero__media {
  position: relative;
  z-index: 1;
  width: min(32.87%, 474px);
  height: 520px;
  margin: -52px auto 0;
  overflow: hidden;
}

.hero__slides,
.hero__slide {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__slide {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
}

.hero__slide.is-active {
  z-index: 2;
  clip-path: inset(0);
  transition: clip-path 1200ms cubic-bezier(0.7, 0, 0.3, 1);
}

.hero__slide.is-previous {
  z-index: 1;
  clip-path: inset(0);
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__description {
  position: absolute;
  right: 0;
  z-index: 2;
  bottom: 98px;
  width: min(30%, 440px);
  margin: 0;
  font-size: clamp(10px, 1.1rem, 12px);
  font-weight: 700;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease 800ms, transform 900ms cubic-bezier(0.16, 1, 0.3, 1) 800ms;
}

.hero.is-ready .hero__description {
  opacity: 1;
  transform: translateY(0);
}

.service {
  padding: 160px 0 0;
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.service-intro {
  padding-top: 60px;
}

.service-intro__image {
  width: 51.1%;
}

.service-intro__image img {
  width: 100%;
}

.service-intro__copy {
  width: 42.5%;
}

.service-intro__copy h3 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3.2rem, 40px);
  font-weight: 900;
  line-height: 1.6;
}

.service-intro__copy p {
  margin: 0;
  font-size: clamp(12px, 1.6rem, 16px);
  line-height: 2;
}

.service-intro__copy .text-link {
  margin-top: 60px;
}

.service-list-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 100px;
}

.service-list-heading p {
  margin: 0 0 8px;
  font-size: clamp(11px, 1.2rem, 14px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  position: relative;
  display: block;
  aspect-ratio: 1.69;
  overflow: hidden;
  background: #6b6b6b var(--card-image) center / cover no-repeat;
}

.service-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.58);
  content: "";
  transition: background 300ms ease;
}

.service-card:hover::after {
  background: rgba(0, 0, 0, 0.4);
}

.service-card__number,
.service-card__footer {
  position: absolute;
  z-index: 1;
}

.service-card__number {
  top: 36px;
  left: 30px;
  font-family: var(--display);
  font-size: clamp(48px, 5vw, 72px);
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
}

.service-card__footer {
  right: 30px;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.service-card__footer span {
  color: var(--muted);
  font-size: clamp(10px, 1.4rem, 14px);
  line-height: 1.4;
}

.service-card__footer b {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 64px);
  font-style: italic;
  line-height: 0.8;
}

.service-card__footer i {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #fff;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  transition: transform 240ms ease, background 240ms ease, color 240ms ease;
}

.service-card:hover .service-card__footer i {
  color: var(--ink);
  background: #fff;
  transform: translateX(4px);
}

.member {
  padding: 160px 0 0;
  overflow: hidden;
}

.member::before {
  position: absolute;
  inset: 20% 0 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 55%, rgba(40, 153, 133, 0.75), transparent 40%);
  content: "";
  pointer-events: none;
}

.member-marquee {
  width: 100%;
  margin-top: -60px;
  overflow: hidden;
}

.member-marquee__track {
  display: flex;
  width: max-content;
  animation: member-scroll 70s linear infinite;
}

.member-marquee img {
  width: min(2080px, 145vw);
  max-width: none;
  height: auto;
  filter: brightness(0.66) saturate(0.85);
}

.member__link-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 60px;
}

@keyframes member-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.recruit {
  margin-top: 160px;
  overflow: hidden;
}

.recruit__link {
  position: relative;
  display: block;
  color: #fff;
}

.recruit__image {
  min-height: min(43.33vw, 624px);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.22)),
    url("https://n1-inc.co.jp/wp-content/themes/swell_child/img/common/recruit.png") center / cover no-repeat;
  transition: transform 500ms ease;
}

.recruit__link:hover .recruit__image {
  transform: scale(1.02);
}

.recruit__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 100px;
  padding-bottom: 60px;
}

.recruit__copy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.recruit__copy p {
  margin: 0;
  font-size: clamp(12px, 1.6rem, 16px);
  line-height: 1.8;
}

.outline-arrow {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.footer {
  padding: 60px 0 20px;
  background: var(--ink);
}

.footer-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.footer-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 34px 40px 24px;
  background: var(--ink-soft);
}

.footer-card .section-kicker {
  margin-bottom: 8px;
}

.footer-card > span:last-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  color: var(--muted-soft);
  font-size: clamp(10px, 1.2rem, 14px);
}

.footer-card > span:last-child b {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 400;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 70px 0 54px;
}

.footer-brand {
  width: 160px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 50px;
  width: 66%;
  font-family: var(--display);
  font-size: clamp(14px, 1.8rem, 20px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-nav div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav div a:not(:first-child) {
  color: var(--muted-soft);
  font-family: var(--body);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-soft);
  font-size: 10px;
}

.footer-bottom a:hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 2.6666vw;
  }

  body {
    font-size: 1.4rem;
  }

  .section-inner {
    width: calc(100% - 48px);
  }

  .display--hero {
    font-size: 6.4rem;
  }

  .display--sub {
    font-size: 4.8rem;
  }

  .section-heading > .display {
    font-size: 6.4rem;
  }

  .section-kicker {
    margin-bottom: 10px;
    font-size: 1.2rem;
  }

  .text-link {
    gap: 14px;
    font-size: 1.8rem;
  }

  .text-link span,
  .arrow-box {
    width: 28px;
    height: 28px;
  }

  .site-header {
    top: 12px;
    padding: 0 20px;
  }

  .site-header__inner {
    min-height: 52px;
    padding: 8px 12px;
  }

  .brand {
    width: 100px;
  }

  .desktop-nav,
  .header-contact {
    display: none;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .menu-trigger {
    width: 32px;
    height: 32px;
  }

  .global-menu {
    display: block;
    overflow-y: auto;
  }

  .global-menu__visual {
    display: none;
  }

  .global-menu__content {
    min-height: 100%;
    padding: 80px 32px 60px;
  }

  .global-menu__content nav a {
    padding: 20px 0;
  }

  .global-menu__content nav strong {
    font-size: 2.8rem;
  }

  .global-menu__content nav span {
    font-size: 1rem;
  }

  .menu-contact {
    margin-top: 28px;
    padding: 24px;
  }

  .menu-contact strong {
    font-size: 4.8rem;
  }

  .menu-contact__footer {
    margin-top: 48px;
    font-size: 1rem;
  }

  .menu-close {
    top: 20px;
    right: 32px;
  }

  .hero {
    min-height: 0;
    padding: 136px 24px 26px;
  }

  .hero::before {
    background-position: 61% center;
  }

  .hero__eyebrow {
    margin-bottom: 10px;
    font-size: 2.4rem;
    line-height: 1.45;
  }

  .hero__media {
    width: 72%;
    height: 290px;
    margin-top: -24px;
  }

  .display--hero > .hero-line--desktop {
    display: none !important;
  }

  .display--hero > .hero-line--mobile {
    display: block !important;
  }

  .hero__description {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
    color: var(--muted-soft);
    text-align: center;
    font-size: 1rem;
    line-height: 1.8;
  }

  .service,
  .member {
    padding-top: 80px;
  }

  .split {
    display: block;
  }

  .service-intro {
    padding-top: 40px;
  }

  .service-intro__image,
  .service-intro__copy {
    width: 100%;
  }

  .service-intro__copy {
    padding-top: 30px;
  }

  .service-intro__copy h3 {
    margin-bottom: 16px;
    font-size: 2.4rem;
  }

  .service-intro__copy p {
    font-size: 1.4rem;
  }

  .service-intro__copy .text-link {
    margin-top: 32px;
  }

  .desktop-only {
    display: none;
  }

  .service-list-heading {
    display: block;
    margin-top: 72px;
  }

  .service-list-heading p {
    margin-top: 12px;
    font-size: 1.2rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 36px;
  }

  .service-card__number {
    top: 20px;
    left: 20px;
    font-size: 3.6rem;
  }

  .service-card__footer {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .service-card__footer span {
    font-size: 1rem;
  }

  .service-card__footer b {
    font-size: 3.6rem;
  }

  .service-card__footer i {
    width: 28px;
    height: 28px;
  }

  .member-marquee {
    margin-top: -28px;
  }

  .member-marquee img {
    width: 1200px;
  }

  .member__link-wrap {
    padding-top: 32px;
  }

  .recruit {
    margin-top: 80px;
  }

  .recruit__image {
    min-height: 430px;
    background-position: 42% center;
  }

  .recruit__content {
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .recruit__copy {
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }

  .recruit__copy p {
    font-size: 1.2rem;
  }

  .outline-arrow {
    width: 34px;
    height: 34px;
  }

  .footer {
    padding-top: 32px;
  }

  .footer-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-card {
    min-height: 210px;
    padding: 24px;
  }

  .footer-card > span:last-child {
    font-size: 1rem;
  }

  .footer-main {
    display: block;
    padding: 48px 0 32px;
  }

  .footer-brand {
    width: 120px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    width: 100%;
    margin-top: 36px;
    font-size: 1.6rem;
  }

  .footer-nav div a:not(:first-child) {
    font-size: 1rem;
  }

  .footer-bottom {
    font-size: 0.9rem;
  }
}
