:root {
  --citron: #f4c400;
  --citron-soft: #f8db54;
  --ink: #151512;
  --muted: #696962;
  --paper: #f3f1e9;
  --white: #fffef9;
  --hero: #e5e5df;
  --header: #fbfaf6;
  --line: rgba(21, 21, 18, 0.18);
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  width: 100%;
  max-width: 100vw;
  padding: 0 4vw;
  background: rgba(251, 250, 246, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition:
    background 0.3s ease,
    height 0.3s ease,
    border 0.3s ease;
}

.site-header.is-scrolled {
  height: 82px;
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 8px 30px rgba(21, 21, 18, 0.06);
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.08);
}

.brand span {
  display: flex;
  flex-direction: column;
}

.brand small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.5vw, 3rem);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
}

.global-nav a {
  text-decoration: none;
}

.global-nav a:not(.nav-contact) {
  position: relative;
}

.global-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.global-nav a:not(.nav-contact):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 46px;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-contact:hover {
  background: var(--citron);
  color: var(--ink);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  min-height: 100svh;
  padding: 154px 4vw 56px;
  overflow: hidden;
  background: var(--hero);
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(21, 21, 18, 0.1);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  width: min(750px, 60vw);
  margin: 2vh 0 7vh 6vw;
}

.eyebrow,
.section-index,
.group-number {
  margin: 0;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.hero .eyebrow::before {
  width: 34px;
  height: 8px;
  background: var(--citron);
  content: "";
}

.hero h1 {
  margin: 1.4rem 0 2rem;
  font-size: clamp(4.2rem, 8.6vw, 9.4rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.91;
}

.hero h1 em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--ink);
  color: var(--citron);
}

.hero-lead {
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 224px;
  min-height: 58px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-dark {
  border: 1px solid var(--ink);
  background: var(--citron);
  color: var(--ink);
}

.button-dark:hover {
  background: var(--ink);
  color: white;
}

.text-link,
.external-link,
.address-card a,
.form-shell > p a {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: -3vw;
  width: min(45vw, 680px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-en);
  font-size: clamp(14rem, 30vw, 32rem);
  font-weight: 600;
  letter-spacing: -0.14em;
  line-height: 0.7;
  color: rgba(21, 21, 18, 0.06);
  transform: translate(-55%, -50%);
  -webkit-text-stroke: 2px rgba(21, 21, 18, 0.24);
}

.orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(21, 21, 18, 0.22);
  border-radius: 50%;
}

.orbit-one::after,
.orbit-two::after {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--citron);
  border: 1px solid var(--ink);
  content: "";
}

.orbit-one {
  animation: rotate 22s linear infinite;
}

.orbit-one::after {
  top: 21%;
  right: 8%;
}

.orbit-two {
  inset: 12%;
  animation: rotate 15s linear infinite reverse;
}

.orbit-two::after {
  bottom: 5%;
  left: 28%;
}

.hero-side-note {
  position: absolute;
  right: 4%;
  bottom: 7%;
  margin: 0;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.6;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}

.hero-foot {
  position: absolute;
  right: 4vw;
  bottom: 25px;
  left: 4vw;
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 21, 18, 0.25);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero-foot p {
  margin: 0;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.section-pad {
  padding: clamp(6rem, 11vw, 10rem) 7vw;
}

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10vw;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.intro h2,
.section-heading h2,
.about h2,
.recruit h2,
.contact h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5.3vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.intro-copy {
  padding-top: 0.8rem;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.intro-copy p {
  margin: 0 0 1.6rem;
}

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

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-top: 1.2rem;
}

.section-heading > p {
  justify-self: end;
  max-width: 340px;
  margin: 0;
  color: var(--muted);
}

.service-group {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 7vw;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-bottom: 1px solid var(--line);
}

.service-group-head {
  position: sticky;
  top: 120px;
  align-self: start;
}

.service-group-head h3 {
  margin: 1.7rem 0 0.2rem;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.3;
}

.service-group-head > p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 13px;
}

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

.service-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.service-list summary {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  min-height: 96px;
  cursor: pointer;
  list-style: none;
}

.service-list summary::-webkit-details-marker {
  display: none;
}

.service-list summary span {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 11px;
}

.service-list h4 {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

.service-list summary i {
  position: relative;
  width: 20px;
  height: 20px;
}

.service-list summary i::before,
.service-list summary i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.service-list summary i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.service-list details[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.detail-body {
  padding: 0 2.5rem 2.3rem 42px;
  color: #464640;
}

.detail-body p {
  max-width: 680px;
  margin: 0 0 1rem;
}

.detail-body .note {
  color: var(--muted);
  font-size: 12px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.inline-facts {
  display: flex;
  gap: 3rem;
  padding: 1.3rem 0;
  margin: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.inline-facts li {
  display: flex;
  flex-direction: column;
}

.inline-facts strong {
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 1.7rem;
}

.inline-facts span {
  font-size: 11px;
}

.office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 740px;
  background: var(--ink);
  color: white;
}

.office-image {
  min-height: 580px;
  overflow: hidden;
}

.office-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
  transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.office:hover .office-image img {
  transform: scale(1.025);
}

.office-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw;
}

.office-copy h2 {
  margin: 2.5rem 0 2rem;
  font-size: clamp(2rem, 3.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.office-copy > p:not(.section-index) {
  max-width: 530px;
  color: rgba(255, 255, 255, 0.68);
}

.address-card {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.address-card p {
  margin: 0 0 0.6rem;
}

.address-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--citron);
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 9vw;
  margin-top: 4rem;
}

.about-en {
  margin: 4rem 0 0;
  color: transparent;
  font-family: var(--font-en);
  font-size: clamp(3.2rem, 6vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.85;
  -webkit-text-stroke: 1px rgba(21, 21, 18, 0.25);
}

.company-table {
  margin: 0;
}

.company-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 1.65rem 0;
  border-top: 1px solid var(--line);
}

.company-table > div:last-child {
  border-bottom: 1px solid var(--line);
}

.company-table dt {
  color: var(--muted);
  font-size: 12px;
}

.company-table dd {
  margin: 0;
  font-weight: 500;
}

.company-table small {
  color: var(--muted);
  font-size: 11px;
}

.recruit {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--citron);
}

.recruit-inner {
  position: relative;
  z-index: 2;
}

.recruit h2 {
  max-width: 780px;
  margin: 3.5rem 0 2rem;
}

.recruit .button {
  margin-top: 2rem;
}

.button-light {
  background: white;
  color: var(--ink);
}

.button-light:hover {
  background: var(--ink);
  color: white;
}

.recruit-word {
  position: absolute;
  right: -2vw;
  bottom: -0.25em;
  margin: 0;
  color: transparent;
  font-family: var(--font-en);
  font-size: clamp(10rem, 25vw, 28rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.7;
  white-space: nowrap;
  -webkit-text-stroke: 2px rgba(21, 21, 18, 0.15);
}

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

.contact-head {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 6vw;
}

.contact h2 {
  margin-top: 2.5rem;
}

.contact-head > p {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.form-shell {
  margin-top: 5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.form-shell iframe {
  display: block;
  width: 100%;
  height: 820px;
  border: 0;
  background: white;
}

.form-shell > p {
  margin: 0;
  padding: 1rem 0.8rem 0.2rem;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-footer {
  padding: 5rem 7vw 2rem;
  background: var(--ink);
  color: white;
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: white;
  font-family: var(--font-en);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.footer-brand img {
  width: clamp(80px, 10vw, 128px);
  filter: grayscale(1) brightness(2);
}

.footer-brand span {
  display: flex;
  flex-direction: column;
}

.footer-brand small {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.back-to-top {
  font-size: 12px;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 82px;
    padding: 0 5vw;
  }

  .brand {
    gap: 0.7rem;
    font-size: 16px;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .menu-button {
    position: relative;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    place-content: center;
  }

  .menu-button > span:not(.sr-only) {
    display: block;
    width: 24px;
    height: 1px;
    margin: 4px 0;
    background: currentColor;
    transition: transform 0.25s ease;
  }

  .menu-button[aria-expanded="true"] > span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .global-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: 18vh 8vw 10vh;
    visibility: hidden;
    background: var(--header);
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(-15px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
  }

  .global-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-contact {
    min-width: 0;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
  }

  .hero {
    min-height: 760px;
    padding: 126px 6vw 60px;
  }

  .hero::before {
    left: 60%;
  }

  .hero-copy {
    width: auto;
    min-width: 0;
    margin: 5vh 0 16vh;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 17vw, 7rem);
  }

  .hero-visual {
    top: 57%;
    right: -38vw;
    width: 90vw;
    opacity: 0.33;
  }

  .hero-side-note {
    display: none;
  }

  .section-pad {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .intro-grid,
  .section-heading,
  .service-group,
  .about-grid,
  .contact-head {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 3rem;
  }

  .section-heading {
    gap: 2rem;
  }

  .section-heading > p {
    justify-self: start;
  }

  .service-group {
    gap: 3rem;
  }

  .service-group-head {
    position: static;
  }

  .office {
    grid-template-columns: 1fr;
  }

  .office-image {
    min-height: 520px;
  }

  .office-copy {
    padding: 5rem 7vw 6rem;
  }

  .about-grid {
    gap: 4rem;
  }

  .about-en {
    display: none;
  }

  .contact-head {
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .desktop-only {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero h1 {
    margin-top: 2rem;
    font-size: min(16.8vw, 4.4rem);
    line-height: 0.96;
  }

  .hero h1 em {
    -webkit-text-stroke-width: 1.5px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.8rem;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .hero-foot p:last-child {
    display: none;
  }

  .service-list summary {
    grid-template-columns: 32px 1fr 20px;
    min-height: 82px;
  }

  .detail-body {
    padding-right: 0.5rem;
    padding-left: 32px;
  }

  .inline-facts {
    gap: 1.4rem;
  }

  .inline-facts strong {
    font-size: 1.4rem;
  }

  .office-image {
    min-height: 430px;
  }

  .company-table > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .recruit {
    min-height: 580px;
  }

  .form-shell {
    margin-right: -2vw;
    margin-left: -2vw;
    padding: 0.4rem;
  }

  .form-shell iframe {
    height: 760px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 2rem;
  }

  .footer-brand {
    width: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}
