:root {
  color-scheme: light;
  --ink: #262626;
  --navy: #292929;
  --text: #494949;
  --muted: #595959;
  --accent: #a14b0d;
  --ice: #ffe1c5;
  --surface: #f6f6f6;
  --line: #dedede;
  --header-height: 76px;
  --gutter: clamp(20px, 6vw, 92px);
  --section-space: clamp(68px, 8vw, 126px);
  --font: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-height); }
body { margin: 0; color: var(--ink); background: white; font: 16px/1.8 var(--font); }
h1, h2, h3, h4, p, dl, dd, ul, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.38; }
h2 { font-size: clamp(31px, 4.4vw, 56px); letter-spacing: -.045em; }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.025em; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #cb691f; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }

.shell { width: calc(100% - 2 * var(--gutter)); max-width: 1280px; margin-inline: auto; }
.section { padding-block: var(--section-space); }
.skip { position: fixed; z-index: 10; top: 0; left: 12px; padding: 8px 16px; background: white; transform: translateY(-110%); }
.skip:focus { top: 10px; transform: none; }
.eyebrow, .service-label {
  color: var(--accent);
  font: 700 12px/1.4 Inter, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .17em;
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.arrow { line-height: 1; font-family: Arial, sans-serif; font-size: 1.15em; }

.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid #e3eaf0; background: white; }
.masthead { display: flex; justify-content: space-between; align-items: stretch; min-height: calc(var(--header-height) - 1px); gap: 28px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 202px; height: auto; }
.main-nav { display: flex; align-items: stretch; justify-content: space-between; gap: clamp(19px, 2.7vw, 42px); }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.main-nav a:is(:hover, [aria-current="location"]) { color: var(--ink); }
.main-nav a:is(:hover, [aria-current="location"])::after { transform: scaleX(1); }

.hero { background: var(--navy); color: white; }
.hero-scene { position: relative; isolation: isolate; display: grid; align-items: center; min-height: calc(100vh - var(--header-height)); min-height: calc(100dvh - var(--header-height)); }
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}.hero-scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 17, 35, .48) 0%, rgba(6, 17, 35, .25) 48%, transparent 79%);
}
.hero-copy { padding-block: clamp(65px, 9vw, 138px); }
.hero .eyebrow { color: var(--ice); }
.hero h1 { font-size: clamp(45px, 6.1vw, 90px); letter-spacing: -.065em; line-height: 1.22; font-weight: 750; }
.hero-lead { max-width: 39rem; margin-top: 26px; color: #ebf3fc; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.85; }
.hero .button { margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 51px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  transition: background .18s ease;
}
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: #dfedfa; }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: #1d456a; }

.hero-facts { display: grid; grid-template-columns: 1fr auto; padding-block: 23px; }
.hero-facts > div { display: flex; align-items: baseline; gap: 17px; }
.hero-facts > div + div { padding-left: 31px; border-left: 1px solid #45556b; }
.hero-facts dt { color: #b9cadd; font-size: 12px; font-weight: 600; }
.hero-facts dd { font: 600 17px/1.4 Inter, Arial, sans-serif; letter-spacing: .02em; }
.separator { margin-inline: .26em; color: #9bb8d0; }

.section-heading { display: grid; grid-template-columns: 1fr minmax(0, 1fr); align-items: end; gap: 26px 46px; margin-bottom: 37px; }
.section-heading > p { max-width: 36em; color: var(--text); padding-bottom: 1px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2.1vw, 32px); }
.service { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); }
.service > img { width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; background: #e8e8e8; border-bottom: 1px solid var(--line); }
.service-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(19px, 2.5vw, 36px); }
.service-copy h3 { margin-top: 8px; }
.service-copy > p:not(.service-label) { flex: 1; margin-top: 13px; color: var(--text); }
.scope-list { padding: 0; list-style: none; color: var(--text); font-size: 14px; }
.service .scope-list { margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--line); }
.scope-list li { position: relative; padding-left: 14px; }
.scope-list li + li { margin-top: 4px; }
.scope-list li::before { content: ""; position: absolute; top: .82em; left: 0; width: 5px; height: 1px; background: var(--accent); }

.company { background: var(--surface); }
.company-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(34px, 7vw, 108px); align-items: center; }
.company-intro > p:not(.eyebrow) { margin-top: 19px; color: var(--text); }
.company-photo { position: relative; margin-top: 29px; }
.company-photo img { width: 100%; height: auto; aspect-ratio: 2.38; object-fit: cover; }
.company-photo figcaption { position: absolute; right: 0; bottom: 0; color: white; background: #292929; padding: 7px 13px; font: 600 11px/1.4 Inter, Arial, sans-serif; letter-spacing: .08em; }
.company-facts { border-top: 2px solid var(--navy); }
.company-facts > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 15px; padding: 15px 3px; border-bottom: 1px solid var(--line); }
.company-facts dt { font-size: 14px; font-weight: 700; }
.company-facts dd { color: var(--text); overflow-wrap: anywhere; }
.company-facts a { color: var(--accent); }

.recruit-role { border-top: 1px solid var(--line); }
.recruit-role:last-of-type { border-bottom: 1px solid var(--line); }
.recruit-role summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 26px;
  gap: 11px 24px;
  align-items: center;
  padding: 23px 12px;
  list-style: none;
}
.recruit-role summary::-webkit-details-marker { display: none; }
.recruit-role summary:hover { background: var(--surface); }
.role-intro { color: var(--muted); font-size: 14px; }
.disclosure-icon { display: grid; place-items: center; position: relative; color: var(--accent); }
.disclosure-icon::before, .disclosure-icon::after { content: ""; width: 15px; height: 1px; background: currentColor; }
.disclosure-icon::after { position: absolute; transform: rotate(90deg); }
.recruit-role[open] .disclosure-icon::after { display: none; }
.role-details { max-width: 58rem; padding: 0 12px 28px; color: var(--text); }
.role-details h4 { margin-top: 15px; color: var(--ink); }
.role-details ul { margin-top: 6px; }
.recruit-contact { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 9px 28px; margin-top: 23px; color: var(--text); font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; }

.contact { background: white; color: var(--ink); border-block: 1px solid var(--line); }
.contact-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 18px; color: var(--muted); font-size: 12px; }
.contact-breadcrumb a { text-decoration: none; }
.contact-breadcrumb a:hover { text-decoration: underline; }
.contact-form, .contact-fallback { width: 100%; max-width: 720px; margin-inline: auto; padding-block: clamp(36px, 5vw, 54px) clamp(54px, 7vw, 90px); }
.contact-form h2 { font-size: clamp(26px, 4vw, 34px); }
.form-status:empty { display: none; }
.contact-form > p { margin-top: 10px; color: var(--text); font-size: 15px; }
.contact-form .form-pair { margin-top: 6px; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-form label { display: block; margin-top: 17px; color: var(--ink); font-size: 14px; font-weight: 650; }
.field-tag { margin-left: 5px; padding: 3px 5px; border-radius: 3px; background: #ededed; color: var(--muted); font-size: 11px; font-weight: 600; }
.contact-form label:has([required]) .field-tag { background: #fff0e3; color: var(--accent); }
.contact-form :is(input, textarea) {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 10px;
  border: 1px solid #acacac;
  border-radius: 4px;
  background: var(--surface);
  min-height: 46px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
.contact-form textarea { resize: vertical; min-height: 170px; }
.contact-form .button { margin-top: 16px; min-height: 48px; gap: 16px; border-radius: 4px; background: var(--accent); }
.contact-form .button:hover { background: #803a09; }
.contact-form :focus-visible { outline-color: var(--accent); }

.site-footer { background: #071325; color: #bbcadc; border-top: 1px solid #29405d; font-size: 12px; }
.footer-inner { padding-block: 22px; text-align: center; }

@media (max-width: 820px) {
  :root { --header-height: 92px; }
  .masthead { display: grid; grid-template-rows: 49px 42px; gap: 0; }
  .brand { justify-self: start; }
  .brand img { width: 150px; }
  .main-nav { gap: 0; }
  .main-nav a { font-size: clamp(11px, 3.4vw, 14px); }
  .service-grid { gap: 12px; }
  .service-copy { padding: 16px; }
  .service-copy > p, .scope-list { font-size: 13px; }
}

@media (max-width: 660px) {
  :root { --gutter: clamp(16px, 5vw, 26px); }
  .section-heading, .company-layout { grid-template-columns: 1fr; }
  .section-heading { gap: 13px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(36px, 9.7vw, 59px); }
  .hero-image { object-position: 52% 50%; }
  .hero-scene::before { background: linear-gradient(90deg, rgba(6, 17, 35, .8), rgba(6, 17, 35, .38)); }
  .hero-copy { padding-block: 67px; }
  .hero-copy .eyebrow { font-size: 10px; letter-spacing: .13em; }
  .desktop-break { display: none; }
  .hero-lead { margin-top: 19px; }
  .hero .button { margin-top: 24px; }
  .hero-facts { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 15px; }
  .hero-facts > div { display: block; }
  .hero-facts > div + div { padding-left: 12px; }
  .hero-facts dt { font-size: 11px; }
  .hero-facts dd { margin-top: 3px; font-size: 13px; }
  .service-grid { grid-template-columns: 1fr; gap: 18px; }
  .service-copy { padding: 20px; }
  .service-copy > p, .scope-list { font-size: 14px; }
  .company-facts > div { gap: 8px; }
  .recruit-role summary { grid-template-columns: minmax(0, 1fr) 26px; padding-inline: 5px; }
  .recruit-role summary .role-intro { grid-column: 1; grid-row: 2; }
  .recruit-role summary .disclosure-icon { grid-column: 2; grid-row: 1 / 3; }
  .role-details { padding-inline: 5px; }
}

@media (max-width: 440px) {
  .form-pair { grid-template-columns: 1fr; gap: 0; }
  .section { padding-block: 58px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Brand colors and section layout */
.site-header { background: #292929; border-bottom-color: #444444; }
.brand img { filter: brightness(0) invert(1); }
.main-nav a { color: #f5f5f5; }
.main-nav a:is(:hover, [aria-current="location"]) { color: #ffb477; }
.main-nav a::after { background: #eb8b42; }
.hero-image { object-position: center 58%; }
.hero-scene::before { background: linear-gradient(180deg, rgba(27,27,27,.56), rgba(27,27,27,.72)); }
.hero-copy { text-align: center; }
.hero-copy .eyebrow { justify-content: center; }
.hero h1 { font-size: clamp(32px, 5.1vw, 72px); line-height: 1.4; text-wrap: balance; }
.hero-lead { margin-inline: auto; max-width: 42em; }
.button-light { background: #ffffff; color: #292929; border-color: #ffffff; }
.button-light:hover { background: #ffead8; }
.company { background: white; }
.company-facts { border-top-color: #d37835; }
.services { background: var(--surface); }
.section-heading { display: block; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading > p { margin: 16px auto 0; }
.service { background: white; border: 0; border-bottom: 2px solid #d37835; }
.service-copy { padding: clamp(18px, 2.2vw, 30px); }
.site-footer { background: #292929; color: #e6e6e6; border: 0; }
@media (max-width: 660px) {
  .hero-copy { padding-block: 72px; }
  .hero h1 { max-width: none; margin-inline: auto; }
}

.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 30px; }
.hero-actions .button { margin-top: 0; }
.hero-careers { color: white; font-weight: 650; text-underline-offset: .35em; }
.hero-careers span { margin-left: .35em; }
.international-recruit { background: var(--surface); border-left: 3px solid var(--accent); padding: clamp(18px, 3vw, 30px); margin: 0 auto 28px; }
.international-recruit p { max-width: 76ch; margin: 8px 0 12px; color: var(--text); }
@media (max-width: 660px) { .hero h1 { font-size: clamp(27px, 7.8vw, 48px); } }

@media (max-height: 580px) {
  .hero-copy { padding-block: 24px; }
}

/* Keep the network layers visible on narrow screens. */
@media (max-width: 660px) {
  .hero-image { object-position: 68% center; }
}

.hero { background: #06132e; }
.hero-scene::before {
  background: linear-gradient(90deg, rgba(4, 14, 35, .36), transparent 78%);
}
@media (min-width: 821px) {
  .hero-copy { text-align: left; }
  .hero-copy .eyebrow, .hero-actions { justify-content: flex-start; }
  .hero-copy h1 { font-size: clamp(38px, 4.5vw, 64px); }
  .hero-lead { margin-inline: 0; max-width: 31em; }
}
@media (max-width: 820px) {
  .hero-image { object-position: center center;}
  .hero-scene::before {
    background: linear-gradient(180deg, rgba(4, 14, 35, .42), rgba(4, 14, 35, .77) 70%, rgba(4, 14, 35, .87));
  }
}
