:root {
  --ink: #111315;
  --muted: #606568;
  --paper: #ffffff;
  --soft: #f3f4f2;
  --line: #d9ddda;
  --red: #e51b23;
  --teal: #287f7a;
  --yellow: #d99c18;
  --green: #5b806e;
  --page: 1160px;
  --header-height: 72px;
  --scroll-progress: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-height) + 18px);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  padding-top: var(--header-height);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

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

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

button {
  font: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.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;
}

.page-width {
  width: min(calc(100% - 48px), var(--page));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-inline: max(24px, calc((100vw - var(--page)) / 2));
  background: rgba(17, 19, 21, 0.97);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: top 180ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled {
  background: rgba(17, 19, 21, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.brand {
  display: block;
  width: 224px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav > a:not(.nav-contact),
.mobile-menu a,
.site-footer a {
  color: inherit;
}

.desktop-nav > a:not(.nav-contact) {
  position: relative;
  padding-block: 8px;
}

.desktop-nav > a:not(.nav-contact)::after {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav > a:not(.nav-contact):hover::after,
.desktop-nav > a:not(.nav-contact):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  background: var(--red);
  color: white;
}

.nav-contact svg,
.button svg,
.text-link svg,
.work-card__body svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.menu-button,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 650px;
  height: 76svh;
  max-height: 820px;
  overflow: hidden;
  background: #151719;
  color: white;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  inset: -8% 0;
  container-type: size;
  overflow: hidden;
  transform: translate3d(0, var(--hero-shift, 0px), 0) scale(1.04);
  transform-origin: center;
  will-change: transform;
}

.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6) saturate(0.82);
  opacity: 0;
  pointer-events: none;
}

.hero-media video.is-playing {
  opacity: 1;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.hero-overlay::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 65%;
  content: "";
  background: rgba(0, 0, 0, 0.25);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 76px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.eyebrow--light {
  color: white;
}

.hero h1 {
  max-width: 760px;
  font-size: 68px;
  line-height: 1.08;
}

.hero h1 span {
  display: block;
  color: white;
}

.hero-lead {
  margin-top: 22px;
  font-size: 23px;
  font-weight: 700;
}

.hero-description {
  max-width: 700px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button svg,
.text-link svg,
.work-card__body svg {
  transition: transform 180ms ease;
}

.button:hover svg,
.button:focus-visible svg,
.text-link:hover svg,
.text-link:focus-visible svg,
.work-card:hover .work-card__body svg,
.work-card:focus-visible .work-card__body svg {
  transform: translate(3px, -3px);
}

.button--primary {
  background: var(--red);
  color: white;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #c9141c;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: white;
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: white;
  color: var(--ink);
  border-color: white;
}

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

.button--dark:hover,
.button--dark:focus-visible {
  background: var(--red);
}

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

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

.news-strip {
  background: var(--ink);
  color: white;
}

.news-strip__inner {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 68px;
  font-size: 13px;
}

.news-strip__label {
  color: var(--red);
  font-weight: 800;
}

.news-strip time {
  color: rgba(255, 255, 255, 0.64);
}

.news-strip a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  color: inherit;
}

.news-strip a svg {
  flex: 0 0 auto;
  width: 16px;
}

.section {
  padding-block: 112px;
}

html.is-motion-ready [data-reveal] {
  opacity: 0;
  translate: 0 42px;
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.is-motion-ready [data-reveal="left"] {
  translate: -54px 0;
}

html.is-motion-ready [data-reveal="right"] {
  translate: 54px 0;
}

html.is-motion-ready [data-reveal].is-visible {
  opacity: 1;
  translate: 0 0;
}

.section--soft {
  background: var(--soft);
}

.intro {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 640px;
  overflow: hidden;
  color: white;
}

.intro-background,
.intro-overlay {
  position: absolute;
  inset: 0;
}

.intro-background {
  inset: -14% 0;
  background-image: url("./about-background.jpg");
  background-position: center;
  background-size: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.04);
  will-change: transform;
}

.intro-overlay {
  background: rgba(0, 0, 0, 0.66);
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 90px;
  align-items: start;
}

.intro h2,
.section-heading h2,
.contact-band h2 {
  font-size: 42px;
}

.intro h2 span {
  white-space: nowrap;
}

.intro-copy {
  padding-top: 34px;
}

.intro-copy > p {
  color: rgba(255, 255, 255, 0.88);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
}

.intro .text-link {
  color: inherit;
}

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 64px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading::after {
  position: absolute;
  right: 0;
  bottom: -20px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-heading.is-inview::after {
  transform: scaleX(1);
}

.section-heading > p {
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}

.work-card {
  display: block;
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.work-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9ece9;
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease;
  transform-style: preserve-3d;
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--media-y, 0px), 0) scale(var(--media-scale, 1.07));
  transition: transform 320ms ease;
  will-change: transform;
}

.work-card__media--logo {
  padding: 12%;
  background: white;
}

.work-card__media--logo img {
  object-fit: contain;
  --media-scale: 1;
}

.work-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 94px;
  padding: 22px 20px;
}

.work-card__body h3 {
  font-size: 16px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.service-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: 70px;
  align-items: center;
  padding-block: 74px;
  border-top: 1px solid var(--line);
}

.service-panel--reverse .service-panel__copy {
  order: 2;
}

.service-panel--reverse .service-panel__visual {
  order: 1;
}

.service-number {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.service-panel h3 {
  font-size: 32px;
}

.service-lead {
  margin-top: 22px;
  color: var(--muted);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.service-tags li {
  padding: 6px 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #3d4244;
  font-size: 12px;
  font-weight: 700;
}

.service-panel__visual {
  min-width: 0;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.service-panel__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 74px;
  border-top: 1px solid var(--line);
}

.support-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.support-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #faf9f4;
  transform: translate3d(0, var(--media-y, 0px), 0) scale(1.05);
  will-change: transform;
}

.support-card > div {
  padding: 30px;
}

.support-card h3 {
  font-size: 23px;
}

.support-card div > p:last-child {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-item {
  min-height: 250px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.price-item > span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.price-item h3 {
  min-height: 54px;
  margin-top: 28px;
  font-size: 19px;
}

.price-item p {
  margin-top: 28px;
  color: var(--red);
}

.price-item strong {
  font-size: 25px;
}

.price-item small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.pricing-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.contact-band {
  position: relative;
  padding-block: 94px;
  background: var(--red);
  color: white;
  overflow: hidden;
}

.contact-band::before {
  position: absolute;
  top: -70%;
  right: 9%;
  width: 2px;
  height: 240%;
  content: "";
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(18deg) translate3d(0, var(--contact-shift, 0px), 0);
  transform-origin: center;
  will-change: transform;
}

.contact-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
}

.contact-band h2 {
  max-width: 780px;
}

.contact-band p:not(.eyebrow) {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer {
  padding: 66px 0 24px;
  background: var(--ink);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 80px;
  align-items: start;
}

.footer-brand img {
  width: 230px;
}

.footer-brand p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 14px 24px;
  font-size: 13px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.footer-bottom a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: white;
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .page-width {
    width: min(calc(100% - 40px), var(--page));
  }

  .site-header {
    padding-inline: 20px;
  }

  .brand {
    width: 176px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    color: white;
    border: 0;
  }

  .menu-button svg {
    width: 26px;
    height: 26px;
  }

  .mobile-menu {
    position: fixed;
    z-index: 85;
    inset: var(--header-height) 0 0;
    display: flex;
    flex-direction: column;
    padding: 30px 20px 40px;
    background: var(--ink);
    color: white;
    overflow-y: auto;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-menu__contact {
    margin-top: 22px;
    padding-inline: 18px;
    background: var(--red);
    border-bottom: 0 !important;
  }

  .hero {
    min-height: 520px;
    height: 68svh;
    max-height: 570px;
  }

  .hero-inner {
    padding-bottom: 46px;
  }

  .hero-overlay::after {
    width: 100%;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 18px;
  }

  .hero-description {
    display: none;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    min-height: 48px;
  }

  .news-strip__inner {
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    padding-block: 14px;
  }

  .news-strip time {
    font-size: 11px;
  }

  .news-strip a {
    grid-column: 1 / -1;
    margin-top: 6px;
    font-size: 12px;
  }

  .section {
    padding-block: 80px;
  }

  .intro-grid,
  .section-heading,
  .service-panel,
  .contact-band__inner {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    gap: 26px;
  }

  .intro {
    min-height: 600px;
  }

  .intro-background {
    background-position: 62% center;
  }

  .intro-copy {
    padding-top: 0;
  }

  .intro h2,
  .section-heading h2,
  .contact-band h2 {
    font-size: 32px;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 42px;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-panel {
    gap: 34px;
    padding-block: 58px;
  }

  .service-panel--reverse .service-panel__copy,
  .service-panel--reverse .service-panel__visual {
    order: initial;
  }

  .service-panel h3 {
    font-size: 28px;
  }

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

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

  .price-item {
    min-height: 0;
  }

  .contact-band__inner {
    gap: 32px;
  }

  .contact-band .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .page-width {
    width: calc(100% - 40px);
  }

  .brand {
    width: 154px;
  }

  .hero {
    min-height: 500px;
    height: 66svh;
    max-height: 550px;
  }

  .hero-inner {
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-lead {
    max-width: 330px;
    font-size: 17px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .section {
    padding-block: 68px;
  }

  .intro {
    min-height: 590px;
  }

  html.is-motion-ready [data-reveal="left"] {
    translate: -30px 0;
  }

  html.is-motion-ready [data-reveal="right"] {
    translate: 30px 0;
  }

  .intro h2,
  .section-heading h2,
  .contact-band h2 {
    font-size: 28px;
  }

  .intro h2 {
    font-size: 24px;
    line-height: 1.5;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .work-card__body {
    min-height: 78px;
  }

  .service-panel {
    padding-block: 50px;
  }

  .service-panel h3 {
    font-size: 25px;
  }

  .service-panel__visual img {
    width: calc(100% + 24px);
    max-width: none;
    margin-left: -12px;
  }

  .support-card > div,
  .price-item {
    padding: 24px;
  }

  .contact-band {
    padding-block: 68px;
  }

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

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

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar .mobile-menu {
    inset: calc(46px + var(--header-height)) 0 0;
  }

  body.admin-bar .site-header.is-scrolled {
    top: 0;
  }

  body.admin-bar .site-header.is-scrolled .mobile-menu {
    inset: var(--header-height) 0 0;
  }
}

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

  html.is-motion-ready [data-reveal] {
    opacity: 1;
    translate: none;
  }

  .hero-media,
  .intro-background,
  .service-panel__visual,
  .work-card__media,
  .work-card__media img,
  .support-card img,
  .contact-band::before {
    transform: none !important;
    will-change: auto;
  }

  .section-heading::after {
    transform: scaleX(1);
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
