﻿@media (max-width: 1040px) {
  .footer-inner img {
    width: 150px;
  }

  .works-gallery-preview {
    height: clamp(400px, 50vw, 520px);
    grid-template-columns: minmax(0, 1.3fr) minmax(150px, 0.9fr);
  }

  .site-header {
    padding: 0 22px;
  }

  .menu-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    color: #ffffff;
    font-weight: 800;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    display: none;
    width: 100%;
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 22px 22px;
    background: rgba(17, 19, 28, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(17, 19, 28, 0.22);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a,
  .site-nav .nav-button {
    justify-content: flex-start;
    color: #ffffff;
  }

  .hero-renewal {
    min-height: 84vh;
    padding-top: 122px;
  }

  .hero-renewal-visual {
    width: 100%;
    height: 100%;
  }

  .hero-renewal-oval {
    inset: 0;
  }

  .hero-renewal-oval img {
    object-position: center;
    transform: translate(-50%, -50%) scale(1.015);
  }

  .hero-renewal-copy {
    left: 50%;
    top: 50%;
    width: clamp(360px, 52vw, 540px);
    transform: translate(-50%, -50%);
  }

  .hero-renewal-copy img {
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
    animation: heroTextResponsiveIn 0.9s cubic-bezier(.16, 1, .3, 1) var(--copy-delay, 1.18s) forwards;
  }

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

  .fulltime-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .fulltime-intro-visual {
    width: min(420px, 100%);
    justify-self: center;
    margin-inline: auto;
  }

  .staff-info-block--application {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
    gap: 28px;
  }

  .staff-deco {
    opacity: 0.26;
  }

  .staff-deco--left {
    left: -280px;
    width: 380px;
  }

  .staff-deco--right {
    right: -340px;
    width: 460px;
  }

  .message-statements,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-copy-line {
    display: block;
    white-space: nowrap;
  }

  .message-copy {
    font-size: clamp(27px, 3.2vw, 34px);
  }

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

  .flow-list li:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .footer-inner img {
    width: 120px;
  }

  .works-gallery-intro {
    margin-top: 34px;
  }

  .works-gallery-preview {
    height: min(112vw, 470px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1.45fr) minmax(0, 0.8fr);
    gap: 7px;
  }

  .works-gallery-photo--main {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .works-gallery-view {
    right: 10px;
    bottom: 8px;
  }

  .site-logo img {
    width: 100px;
  }

  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 86vh;
    padding: 128px 20px 70px;
  }

  .hero-renewal {
    min-height: 78vh;
    padding: 112px 14px 58px;
  }

  .hero-renewal-visual {
    width: 100%;
    height: 100%;
  }

  .hero-renewal-oval {
    inset: 0;
  }

  .hero-renewal-oval img {
    object-position: center;
    transform: translate(-50%, -50%) scale(1.01);
  }

  .hero-renewal-copy {
    left: 50%;
    top: 50%;
    width: min(70vw, 330px);
    transform: translate(-50%, -50%);
  }

  .hero-renewal-copy-line--02 {
    --copy-line-width: 84%;
    margin-top: -13%;
    margin-left: 14%;
  }

  .subpage-main {
    padding-top: 62px;
  }

  .recruit-page-hero {
    padding: 92px 20px 68px;
  }

  .recruit-page-hero h1 {
    font-size: 30px;
  }

  .recruit-page-hero p:not(.section-label) {
    font-size: 16px;
  }

  .recruit-page-hero .recruit-lead p {
    font-size: 16px;
    line-height: 1.85;
  }

  .recruit-page-hero .recruit-lead-copy {
    font-size: 24px;
  }

  .recruit-lead {
    gap: 14px;
  }

  .recruit-type-nav {
    margin-top: 38px;
  }

  .recruit-type-nav a {
    min-height: 54px;
    padding-inline: 10px;
    font-size: 13px;
  }

  .fulltime-intro {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .fulltime-intro-visual {
    width: min(420px, 100%);
    margin-inline: auto;
  }

  .fulltime-block,
  .fulltime-fit-grid,
  .fulltime-contact {
    margin-top: 68px;
  }

  .fulltime-work-grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .fulltime-work-grid article {
    border-bottom: 1px solid var(--color-line);
  }

  .fulltime-features {
    padding: 26px 20px;
  }

  .fulltime-features > ul,
  .fulltime-fit-grid {
    grid-template-columns: 1fr;
  }

  .fulltime-details > div {
    grid-template-columns: 1fr;
  }

  .fulltime-details dt,
  .fulltime-details dd {
    padding: 17px 18px;
  }

  .fulltime-details dd ul {
    grid-template-columns: 1fr;
  }

  .fulltime-contact {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 28px 22px;
  }

  .staff-deco {
    opacity: 0.16;
  }

  .staff-deco--left {
    bottom: 80px;
    left: -270px;
    width: 330px;
  }

  .staff-deco--right {
    top: 42px;
    right: -330px;
    width: 380px;
  }

  .staff-info-block--application {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .staff-line-block {
    justify-items: start;
  }

  .staff-line-block .primary-button {
    width: 100%;
    min-width: 0;
  }

  .recruit-actions,
  .footer-inner {
    display: grid;
  }

  .primary-button,
  .nav-button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .instagram-link {
    margin-left: 0;
  }

  .footer-actions {
    justify-content: center;
    justify-self: center;
    width: 100%;
  }

  .footer-actions .primary-button {
    width: auto;
  }

  .section {
    padding: 76px 20px;
    --section-accent-top: 48px;
    scroll-margin-top: 78px;
  }

  .section-label {
    font-size: 14px;
  }

  .section h2 {
    font-size: 26px;
  }

  .section-title-row {
    display: block;
  }

  .section-title-note {
    margin-top: -6px;
    text-align: left;
    white-space: normal;
  }

  .message-statements {
    grid-template-columns: 1fr;
    gap: 42px;
    margin: 46px auto 56px;
  }

  .message-statement {
    padding: 0;
  }

  .message-copy {
    font-size: 28px;
    line-height: 1.65;
  }

  .message-heading {
    font-size: 22px;
  }

  .message-body {
    font-size: 15px;
    line-height: 2.05;
  }

  .message-body p + p {
    margin-top: 1.75em;
  }

  .business-window-grid {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    padding: 50px 20px 20px;
    min-height: 220px;
  }

  .flow-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
  }

  .company-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .modal {
    padding: 14px;
  }

  .modal-panel {
    padding: 26px 20px;
  }

}

@keyframes heroTextResponsiveIn {
  from {
    opacity: 0;
    -webkit-clip-path: inset(0 100% 0 0);
    clip-path: inset(0 100% 0 0);
  }

  12% {
    opacity: 1;
  }

  to {
    opacity: 1;
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
  }
}

@media (max-width: 1040px) and (prefers-reduced-motion: reduce) {
  .hero-renewal-copy img {
    -webkit-clip-path: inset(0 0 0 0);
    clip-path: inset(0 0 0 0);
    animation: none !important;
    opacity: 1;
  }
}


