/*
 * LONST TECH common.css v1.4.19
 * Site-wide design tokens, header, menu, footer, shared components.
 */
:root {
  --header-h: 70px;
  --rail-w: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-base: Arial, Helvetica, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --paper: #ffffff;
  --ink: #000000;
  --line: #000000;
  --accent: #000000;
  --accent-ink: #ffffff;
  --panel-bg: #ffffff;
  --panel-text: #000000;
  --hover-bg: #000000;
  --hover-text: #ffffff;
  --hero-bg: #000000;
  --hero-title: #ffffff;
  --hero-copy: #ffffff;
  --muted: rgba(0, 0, 0, .58);
}

html.theme-white,
body.theme-white {
  --paper: #ffffff;
  --ink: #000000;
  --line: #000000;
  --accent: #000000;
  --accent-ink: #ffffff;
  --panel-bg: #ffffff;
  --panel-text: #000000;
  --hover-bg: #000000;
  --hover-text: #ffffff;
  --hero-bg: #000000;
  --hero-title: #ffffff;
  --hero-copy: #ffffff;
  --muted: rgba(0, 0, 0, .58);
  color-scheme: light;
}

html.theme-black,
body.theme-black,
html[data-lonst-theme="black"] body {
  --paper: #000000;
  --ink: #ffffff;
  --line: #ffffff;
  --accent: #ffffff;
  --accent-ink: #000000;
  --panel-bg: #000000;
  --panel-text: #ffffff;
  --hover-bg: #ffffff;
  --hover-text: #000000;
  --hero-bg: #ffffff;
  --hero-title: #000000;
  --hero-copy: #000000;
  --muted: rgba(255, 255, 255, .64);
  color-scheme: dark;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-base);
  font-weight: 800;
  letter-spacing: -.035em;
  transition: background .34s var(--ease), color .34s var(--ease);
}

body.is-menu-open {
  overflow: hidden;
}

body.lang-ja .english-content,
body.lang-ja .lang-en-only,
body.lang-en .japanese-content,
body.lang-en .lang-ja-only {
  display: none;
}

::selection {
  background: var(--hover-bg);
  color: var(--hover-text);
}

button,
input,
textarea,
select {
  color: inherit;
}

sup {
  font-size: .38em;
  line-height: 1;
  margin-left: 1px;
  transform: translateY(-.2em);
}

.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: clamp(48px, 10vw, 140px);
  font-weight: 950;
  line-height: .8;
  animation: loaderOut .9s var(--ease) .45s forwards;
}

.loading span {
  transform: translateY(.08em);
  text-transform: uppercase;
}

@keyframes loaderOut {
  to {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: background .34s var(--ease), border-color .34s var(--ease), color .34s var(--ease);
}

.mark {
  width: var(--rail-w);
  height: var(--header-h);
  flex: 0 0 var(--rail-w);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.09em;
}

.mark-letter {
  display: block;
  color: currentColor;
  transform: translate(-1px, -1px);
}

.mark-ring,
.mark-dot {
  display: none;
}

.brand-mobile {
  display: none;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 42px);
  height: 100%;
  padding-left: clamp(30px, 4vw, 72px);
}

.global-nav a,
.panel-nav a,
.site-footer nav a {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 2px;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.global-nav a::after,
.filters button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;
  height: 4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}

.global-nav a:hover::after,
.global-nav a.is-active::after,
.global-nav a[aria-current="page"]::after,
.filters button:hover::after,
.filters button.is-current::after {
  transform: scaleX(1);
}

.contact-pill,
.menu-button,
.panel-contact,
.footer-contact,
.contact-form button,
.panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 950;
  letter-spacing: -.04em;
  line-height: 1;
  text-decoration: none;
  transition: transform .24s var(--ease), background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}

.contact-pill:hover,
.menu-button:hover,
.menu-button:focus-visible,
.menu-button[aria-expanded="true"],
body.is-menu-open .menu-button,
.panel-contact:hover,
.footer-contact:hover,
.contact-form button:hover,
.panel-close:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  transform: translateY(-1px);
  opacity: 1;
}

.contact-pill span,
.panel-contact span,
.footer-contact span {
  transition: transform .25s var(--ease);
}

.contact-pill:hover span,
.panel-contact:hover span,
.footer-contact:hover span {
  transform: translateX(5px);
}

.contact-pill {
  min-width: 134px;
  height: 39px;
  margin-left: auto;
  margin-right: 10px;
  font-size: 15px;
}

.menu-button {
  display: none;
  min-width: 96px;
  height: 39px;
  margin-left: auto;
  margin-right: 14px;
  padding: 0 18px;
  font-size: 14px;
  overflow: visible;
}

.menu-button .menu-text {
  color: inherit;
  background: transparent;
}

.menu-button .hamburger {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  flex: 0 0 18px;
  background: transparent;
  color: inherit;
}

.menu-button .hamburger::before,
.menu-button .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-button .hamburger::before {
  top: 2px;
}

.menu-button .hamburger::after {
  bottom: 2px;
}

.header-color,
.header-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
}

.header-color {
  margin-right: 8px;
}

.header-lang {
  margin-right: 22px;
}

.header-color button,
.header-lang button,
.panel-color button,
.panel-lang button,
.filters button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.035em;
  cursor: pointer;
  transition: transform .24s var(--ease), background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}

.header-color button,
.header-lang button,
.panel-color button,
.panel-lang button {
  min-width: 42px;
  height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

.header-color button:hover,
.header-lang button:hover,
.panel-color button:hover,
.panel-lang button:hover,
.header-color button.is-current,
.header-lang button.is-current,
.panel-color button.is-current,
.panel-lang button.is-current,
.filters button:hover,
.filters button.is-current {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.side-rail {
  position: fixed;
  z-index: 900;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: background .34s var(--ease), border-color .34s var(--ease), color .34s var(--ease);
}

.side-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  white-space: nowrap;
  font-size: 38px;
  font-weight: 950;
  line-height: .8;
  letter-spacing: -.06em;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.side-brand sup {
  margin-left: 5px;
  font-size: 9px;
}

.page-top {
  position: absolute;
  left: 50%;
  bottom: 78px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 58px;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 7px;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-align: center;
  transform: translateX(-50%);
  transition: transform .24s var(--ease), background .24s var(--ease), color .24s var(--ease);
}

.page-top:hover,
.page-top:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateX(-50%) translateY(-3px);
}

.scroll-sign {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 22px;
  height: 44px;
  font-size: 9px;
  white-space: nowrap;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: center;
}

.scroll-sign i {
  position: relative;
  display: block;
  width: 42px;
  height: 1px;
  background: currentColor;
}

.scroll-sign i::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}

.site-main {
  min-height: 100vh;
  margin-left: var(--rail-w);
  padding-top: var(--header-h);
  background: var(--paper);
}

.page {
  display: none;
}

.page.is-active,
body.static-page .page {
  display: block;
}

.page-shell {
  min-height: calc(100vh - var(--header-h));
  padding: clamp(60px, 7vw, 100px) clamp(36px, 5.5vw, 86px) 100px;
}

.page-shell-narrow,
.legal-shell {
  max-width: 1280px;
}

.page-title {
  max-width: 100%;
  margin: 0 0 clamp(26px, 4vw, 48px);
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 950;
  line-height: .78;
  letter-spacing: -.075em;
  overflow-wrap: anywhere;
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, .2);
  transition: opacity .25s var(--ease);
}

body.is-menu-open .menu-panel {
  pointer-events: auto;
  opacity: 1;
}

.panel-card {
  position: absolute;
  top: 10px;
  right: 14px;
  width: min(330px, calc(100vw - 28px));
  padding: 60px 34px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-bg);
  color: var(--panel-text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
  transform: translateY(-16px) scale(.96);
  transform-origin: top right;
  transition: transform .32s var(--ease);
}

body.is-menu-open .panel-card {
  transform: none;
}

.panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 94px;
  height: 36px;
  font-size: 12px;
}

.panel-nav {
  display: grid;
  gap: 20px;
}

.panel-nav a {
  font-size: 28px;
  letter-spacing: -.05em;
}

.panel-contact {
  width: 100%;
  height: 54px;
  margin-top: 30px;
  font-size: 22px;
}

.panel-color,
.panel-lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-left: -34px;
  margin-right: -34px;
  padding: 17px 30px 18px;
  border-top: 1px solid var(--line);
}

.panel-color {
  margin-top: 26px;
}

.panel-lang {
  margin-bottom: -24px;
}

.panel-color span,
.panel-lang span {
  font-size: 13px;
}

.site-footer {
  margin-left: var(--rail-w);
  padding: clamp(44px, 6vw, 80px) clamp(24px, 5vw, 78px) 34px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.footer-marquee {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
  overflow: hidden;
}

.footer-marquee span {
  display: grid;
  min-height: 80px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: clamp(28px, 3vw, 44px);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 42px);
  margin-bottom: 30px;
}

.footer-contact {
  min-width: 156px;
  height: 44px;
  margin-bottom: 44px;
  font-size: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12px;
  letter-spacing: -.02em;
}

.footer-bottom a:hover,
.work-title a:hover,
.work-card a:hover,
.work-link:hover,
.section-head a:hover {
  opacity: .68;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

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

.home-works,
.works-grid,
.news-block,
.company-table,
.recruit-about {
  border-top: 1px solid var(--line);
}

.work-row,
.work-card {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.work-row-large {
  display: grid;
  grid-template-columns: minmax(220px, .75fr) minmax(500px, 2.3fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(34px, 5vw, 64px) clamp(22px, 5vw, 78px);
}

.work-row-wide {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(30px, 4vw, 54px) clamp(22px, 5vw, 78px);
}

.work-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.work-split .work-row {
  display: grid;
  gap: 28px;
  padding: 38px clamp(22px, 4vw, 54px) 44px;
}

.work-split .work-row + .work-row {
  border-left: 1px solid var(--line);
}

.work-title h2,
.work-card h2 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 950;
  line-height: .85;
  letter-spacing: -.07em;
}

.work-title p,
.work-card p {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -.03em;
}

.work-title a,
.work-card a,
.work-link {
  display: inline-flex;
  color: inherit;
  font-size: 14px;
  letter-spacing: -.03em;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thumb,
.image-thumb {
  position: relative;
  display: grid;
  height: clamp(120px, 16vw, 230px);
  overflow: hidden;
  background: color-mix(in srgb, var(--accent) 92%, var(--paper) 8%);
  isolation: isolate;
}

.image-thumb img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.06);
  transform: scale(1.001);
  transition: transform .55s var(--ease), filter .55s var(--ease), opacity .55s var(--ease);
}

.image-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

.work-row:hover .image-thumb img,
.work-card:hover .image-thumb img {
  transform: scale(1.045);
  filter: grayscale(.78) contrast(1.08);
}

.hero-thumb {
  height: clamp(220px, 26vw, 370px);
  background: var(--paper);
}

.about-thumb img {
  object-fit: contain;
  padding: clamp(10px, 2.2vw, 34px);
}

.body-copy {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin-top: 28px;
}

.body-copy p,
.lead-grid p,
.legal-copy p,
.legal-copy li,
.contact-lead p {
  font-weight: 700;
  letter-spacing: -.035em;
}

.body-copy p {
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.7;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: clamp(42px, 6vw, 80px) clamp(22px, 5vw, 78px) 12px;
}

.section-head h2 {
  font-size: clamp(50px, 7vw, 96px);
  line-height: .8;
  letter-spacing: -.07em;
}

.section-head a {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 16px;
  line-height: 1;
}

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

.news-item {
  display: grid;
  grid-template-columns: 170px 1fr 170px;
  gap: 24px;
  align-items: center;
  min-height: 94px;
  padding: 24px clamp(22px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
  transition: background .18s var(--ease), color .18s var(--ease);
}

.news-item:hover {
  background: var(--hover-bg);
  color: var(--hover-text);
  opacity: 1;
}

.news-item time {
  font-size: 16px;
}

.news-item span {
  font-size: clamp(22px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -.055em;
}

.news-item em {
  justify-self: end;
  font-size: 14px;
  font-style: normal;
  text-decoration: underline;
}

.company-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(42px, 6vw, 76px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-hero h2,
.recruit-hero h2,
.recruit-about h2 {
  font-size: clamp(50px, 7vw, 100px);
  font-weight: 950;
  line-height: .85;
  letter-spacing: -.075em;
}

.company-hero p,
.recruit-hero p,
.recruit-about p {
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.65;
  letter-spacing: -.04em;
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .global-nav {
    gap: clamp(16px, 1.8vw, 30px);
    padding-left: clamp(22px, 3vw, 48px);
  }

  .contact-pill {
    min-width: 116px;
    margin-right: 8px;
  }

  .header-color {
    margin-right: 6px;
  }

  .header-lang {
    margin-right: 14px;
  }

  .header-color button,
  .header-lang button {
    min-width: 42px;
    padding: 0 8px;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-h: 62px;
    --rail-w: 0px;
  }

  .site-main,
  .site-footer {
    margin-left: 0;
  }

  .global-nav,
  .contact-pill,
  .side-rail,
  .header-color,
  .header-lang {
    display: none;
  }

  .site-header {
    justify-content: flex-start;
  }

  .mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    font-size: 36px;
  }

  .brand-mobile {
    position: static;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100vw - 166px);
    margin: 0 8px 0 12px;
    overflow: hidden;
    font-size: clamp(21px, 5.8vw, 30px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.065em;
    white-space: nowrap;
  }

  .brand-mobile sup {
    flex: 0 0 auto;
    margin-left: 4px;
    font-size: 9px;
  }

  .menu-button {
    z-index: 3;
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .page-shell {
    padding: 46px 20px 82px;
  }

  .page-title {
    font-size: clamp(56px, 14vw, 108px);
  }

  .work-row-large,
  .work-row-wide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 20px 34px;
  }

  .work-row-wide .thumb {
    order: -1;
  }

  .work-split {
    grid-template-columns: 1fr 1fr;
  }

  .work-split .work-row {
    padding: 20px;
  }

  .work-title h2,
  .work-card h2 {
    font-size: clamp(28px, 8vw, 56px);
  }

  .thumb,
  .image-thumb {
    height: clamp(110px, 28vw, 180px);
  }

  .section-head {
    padding: 44px 20px 12px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 108px;
    padding: 22px 20px;
  }

  .news-item em {
    justify-self: start;
  }

  .company-hero {
    grid-template-columns: 1fr;
  }

  .footer-marquee {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  body {
    letter-spacing: -.04em;
  }

  .site-header {
    height: 51px;
  }

  .mark {
    width: 51px;
    height: 51px;
    flex-basis: 51px;
    font-size: 32px;
  }

  .brand-mobile {
    max-width: calc(100vw - 148px);
    margin-left: 8px;
    margin-right: 6px;
    font-size: clamp(19px, 5.4vw, 27px);
  }

  .brand-mobile sup {
    margin-left: 3px;
    font-size: 8px;
  }

  .menu-button {
    min-width: 78px;
    height: 34px;
    margin-right: 10px;
    padding: 0 13px;
    gap: 8px;
    font-size: 12px;
  }

  .site-main {
    padding-top: 51px;
  }

  .work-split {
    grid-template-columns: 1fr 1fr;
  }

  .work-split .thumb {
    height: 100px;
  }

  .work-split .work-title h2 {
    font-size: 23px;
    line-height: .92;
  }

  .work-split .work-title p {
    font-size: 9px;
  }

  .work-split .work-title a {
    font-size: 11px;
  }

  .footer-marquee {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
    justify-content: start;
  }
}

@media (max-width: 380px) {
  .brand-mobile {
    max-width: calc(100vw - 142px);
    font-size: 20px;
  }

  .menu-button {
    min-width: 68px;
    padding: 0 9px;
  }
}
