:root {
  --blue: #1a286d;
  --ink: #000;
  --rule: #d4d4d4;
  --gray: #d9d9d9;
  --soft: #f7f7f7;
  --header: 88px;
  --gutter: clamp(24px, 8.333vw, 120px);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: calc(var(--header) + 24px);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding-top: var(--header);
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
  font-weight: 500;
  font-feature-settings: "palt" 1;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
h1,
h2,
h3,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: none;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #6386dc;
  outline-offset: 5px;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.06em;
}
h2 {
  font-size: 40px;
}
p {
  font-size: 17px;
  line-height: 2;
}
main {
  overflow: clip;
}
.container {
  width: min(1200px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.narrow {
  width: min(880px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  z-index: 100;
  left: 20px;
  top: -100px;
  background: #fff;
  padding: 8px 20px;
}
.skip-link:focus {
  top: 12px;
}
/* Shared header, drawer and footer */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header);
  z-index: 30;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 24px;
}
.brand {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-tel img {
  width: 209px;
  height: auto;
}
.header-fax {
  width: 216px;
  height: auto;
}
.cta:hover {
  opacity: 0.8;
}
.menu-toggle {
  width: 32px;
  height: 44px;
  display: grid;
  place-items: center;
}
.menu-dialog {
  padding: 0;
  border: 0;
  margin: 0 0 0 auto;
  width: min(400px, 90vw);
  height: 100dvh;
  max-height: none;
  max-width: none;
  background: transparent;
  color: white;
  overflow: visible;
}
.menu-dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
  opacity: 0;
  transition: opacity 0.4s;
}
.menu-panel {
  height: 100%;
  overflow-y: auto;
  background: var(--blue);
  padding: 130px 42px 50px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
}
.menu-dialog.is-open .menu-panel {
  transform: translateX(0);
}
.menu-dialog.is-open::backdrop {
  opacity: 1;
}
.close-button {
  font-family: Arial, sans-serif;
  font-weight: 300;
  font-size: 38px;
  line-height: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: inherit;
}
.menu-close {
  position: absolute;
  right: 20px;
  top: 20px;
}
.menu-panel ul {
  list-style: none;
  padding: 0;
}
.menu-panel li + li {
  margin-top: 12px;
}
.menu-panel nav a {
  font-size: 26px;
  font-weight: 700;
  display: block;
  line-height: 1.7;
}
.menu-panel a:hover {
  opacity: 0.7;
}
.menu-panel a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 8px;
}
.menu-phone {
  display: block;
  margin-top: 42px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.menu-phone small {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}
.site-footer {
  background: var(--blue);
  color: white;
  padding: 48px max(32px, calc((100vw - 1300px) / 2)) 18px;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 100px;
  min-height: 170px;
}
.footer-brand {
  font-weight: 700;
  font-size: 35px;
  line-height: 1.3;
}
.site-footer address {
  font-style: normal;
  font-size: 20px;
  line-height: 1.6;
}
.footer-rule {
  height: 1px;
  background: currentColor;
  margin: 20px 0 10px;
}
.copyright {
  font-size: 14px;
  display: block;
  line-height: 1.5;
}
/* Image slots and enlargement */
.photo {
  display: block;
  overflow: hidden;
  background: var(--gray);
  width: 100%;
  aspect-ratio: 285/200;
  text-align: left;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.photo[data-zoom] {
  cursor: zoom-in;
}
.photo[data-zoom]:hover img {
  transform: scale(1.025);
}
figcaption {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 10px;
}
.lightbox {
  border: 0;
  background: none;
  color: #fff;
  padding: 60px 0 24px;
  width: min(1100px, calc(100vw - 40px));
  max-width: none;
  max-height: 95dvh;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgb(0 0 0 / 0.88);
}
.lightbox-inner {
  position: relative;
}
.lightbox-close {
  position: absolute;
  right: -8px;
  top: -58px;
}
.lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: 74dvh;
  object-fit: contain;
  margin: auto;
}
.lightbox figcaption {
  text-align: center;
  margin-top: 15px;
  font-size: 16px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
}
.gallery figure {
  min-width: 0;
}
/* Top page */
.home-hero {
  position: relative;
  padding-bottom: 72px;
}
.marquee {
  overflow: hidden;
}
.marquee-track {
  will-change: transform;
  backface-visibility: hidden;
  display: flex;
  width: max-content;
  animation: marquee 152s linear infinite;
  transform: translateX(-228px);
}
.marquee-set {
  display: flex;
  gap: 10px;
  padding-right: 10px;
  flex-shrink: 0;
}
.marquee-set .photo {
  width: clamp(280px, 32.36vw, 466px);
  height: clamp(280px, 32.5vw, 468px);
  aspect-ratio: auto;
}
.hero-wordmark {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: Roboto, Arial, sans-serif;
  font-size: clamp(80px, 13.333vw, 192px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  color: var(--blue);
  pointer-events: none;
}
.marquee-track:not(.ready) {
  animation: none;
}
@keyframes marquee {
  from {
    transform: translateX(-228px);
  }
  to {
    transform: translateX(calc(-50% - 228px));
  }
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 668fr) minmax(0, 421fr);
  gap: 115px;
  align-items: start;
}
.intro-home {
  margin-top: 20px;
}
.intro-heading {
  letter-spacing: -0.08em;
  line-height: 1.45;
}
.intro-heading span {
  font-size: clamp(32px, 4.1vw, 59px);
  display: block;
  white-space: nowrap;
}
.intro-heading strong {
  font-size: clamp(36px, 4.79vw, 69px);
  display: block;
  white-space: nowrap;
}
.intro-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 112px;
}
.intro-photos .photo {
  aspect-ratio: 215/123;
  border-radius: 5px;
}
.intro-copy p {
  line-height: 2;
}
.intro-copy .cta,
.intro-copy .text-link {
  margin-top: 64px;
}
.cta {
  letter-spacing: 0.07em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 7px 7px 7px 20px;
  min-width: 248px;
  min-height: 50px;
  border-radius: 3px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  transition: opacity 0.2s;
}
.cta-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #fff;
  border-radius: 2px;
  flex-shrink: 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 5px;
}
.text-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 182px;
  height: 2px;
  background: var(--blue);
}
.home-works {
  position: relative;
  margin-top: 160px;
  display: grid;
  grid-template-columns: 352px 1fr;
  gap: 20px;
  align-items: end;
  min-height: 450px;
}
.home-works > .photo {
  aspect-ratio: 828/391;
  border-radius: 5px;
  min-height: 391px;
}
.home-works-copy {
  position: relative;
  z-index: 1;
}
.home-works h2 {
  font-size: 121px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
  margin-bottom: 24px;
}
.home-works h3 {
  font-size: 42px;
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.home-works p {
  margin-top: 36px;
}
.home-works .cta {
  margin-top: 64px;
}
.feature-links {
  width: min(1300px, calc(100% - 80px));
  margin: 169px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.feature-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}
.feature-card .photo {
  aspect-ratio: 426.667/482;
}
.feature-card > span {
  position: absolute;
  left: 28px;
  top: 20px;
  font-size: 33.505px;
  line-height: calc(54.566 / 33.505);
  letter-spacing: -0.08em;
  font-weight: 400;
  color: #fff;
}
.feature-card:hover img {
  transform: scale(1.03);
}
/* Company */
.intro-company {
  margin-top: 110px;
  margin-bottom: 58px;
}
.intro-company .intro-photos {
  margin-top: 112px;
}
.message {
  display: grid;
  grid-template-columns: 282px minmax(0, 508px);
  gap: 90px;
  padding: 104px 160px 80px;
  min-height: 592px;
  position: relative;
  background: var(--blue) url("fbcb0.svg") center/cover no-repeat;
  color: #fff;
  border-radius: 5px;
}
.message .photo {
  aspect-ratio: 282/337;
  border-radius: 6px;
}
.message-copy h2 {
  font-size: 27px;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 26px;
}
.message-copy p {
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
}
.signature {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  margin-top: 40px;
  font-size: 15px;
}
.signature img {
  flex-shrink: 0;
}
.company-section {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 84px;
  margin-top: 110px;
}
.company-section h2 {
  line-height: 1.4;
}
.data-table {
  font-size: 18px;
  line-height: 1.7;
}
.table-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  padding: 0 0 18px;
  margin-bottom: 30px;
  box-shadow: inset 0 -1px var(--rule);
}
.table-row:last-child {
  margin-bottom: 0;
}
.table-row dd {
  overflow-wrap: anywhere;
  letter-spacing: -0.01em;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.equipment-grid .photo {
  aspect-ratio: 265.333/219;
}
.office {
  margin-top: 112px;
  margin-bottom: 190px;
}
/* Work history */
.works-intro {
  display: grid;
  grid-template-columns: 570px minmax(0, 1fr);
  gap: 62px;
  margin-top: 110px;
  align-items: start;
}
.works-intro h1 {
  font-size: 103.7px;
  letter-spacing: -0.03em;
  line-height: 1.12;
  white-space: nowrap;
}
.works-intro h2 {
  font-size: 48.4px;
  margin: 14px 0 26px;
  letter-spacing: -0.08em;
}
.works-intro p {
  max-width: 510px;
}
.works-intro > .photo {
  aspect-ratio: 568/296;
  border-radius: 5px;
  margin-top: 13px;
}
.works-gallery {
  margin-top: 105px;
}
.annual-works {
  margin-top: 100px;
  margin-bottom: 165px;
}
.annual-works h2 {
  margin-bottom: 20px;
}
.year {
  box-shadow: inset 0 -1px var(--rule);
  padding-bottom: 18px;
  margin-bottom: 20px;
}
.year summary {
  position: relative;
  list-style: none;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
  padding: 0 52px 0 0;
  cursor: pointer;
}
.year summary::-webkit-details-marker {
  display: none;
}
.year-icon {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 25px;
  height: 25px;
}
.year[open] .year-icon img {
  visibility: hidden;
}
.year[open] .year-icon:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 3px;
  background: #000;
}
.year-content {
  font-size: 18px;
  line-height: 1.7;
  padding-top: 18px;
}
.year-content ul {
  padding-left: 28px;
}
/* Training */
.training-intro {
  display: grid;
  grid-template-columns: 570px minmax(0, 1fr);
  gap: 62px;
  margin-top: 110px;
  margin-bottom: 105px;
}
.training-intro h1 {
  font-size: 90px;
  letter-spacing: -0.05em;
  line-height: 1.25;
  margin-bottom: 35px;
}
.training-intro h2 {
  font-size: 40px;
  display: inline-block;
  padding: 20px 0;
  box-shadow:
    inset 0 2px currentColor,
    inset 0 -2px currentColor;
  letter-spacing: -0.06em;
}
.training-copy p + p {
  margin-top: 22px;
}
.training-section {
  margin-top: 130px;
}
.training-section h2 {
  margin-bottom: 32px;
  font-size: 40px;
  letter-spacing: -0.08em;
}
.training-section:last-child {
  margin-bottom: 200px;
}
/* Business and recruitment */
.page-banner {
  height: 285px;
  aspect-ratio: auto;
  margin-top: 36px;
}
.page-intro {
  display: grid;
  grid-template-columns: 570px minmax(0, 1fr);
  gap: 81px;
  margin-top: 48px;
  margin-bottom: 120px;
  min-height: 240px;
}
.page-intro h1 {
  font-size: 30px;
  margin-bottom: 36px;
}
.page-intro h2 {
  font-size: 50px;
  line-height: 1.3;
  letter-spacing: -0.06em;
}
.soft-section {
  background: var(--soft);
  padding: 80px 0 130px;
}
.soft-section h2 motion-line {
  margin-inline: auto;
}
.soft-section h2 {
  text-align: center;
  margin-bottom: 32px;
}
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 70px 30px;
}
.three-columns .photo {
  aspect-ratio: 380/240;
  border-radius: 5px;
}
.three-columns h3 {
  font-size: 24px;
  letter-spacing: -0.08em;
  margin-top: 22px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.three-columns p {
  font-size: 15px;
  line-height: 2.25;
}
.strength {
  display: grid;
  grid-template-columns: 568px minmax(0, 1fr);
  gap: 62px;
  margin-top: 190px;
  margin-bottom: 170px;
}
.strength > .photo {
  aspect-ratio: 568/436;
  border-radius: 5px;
}
.strength h2 {
  font-size: 48.4px;
  letter-spacing: -0.06em;
  line-height: 1.45;
  margin-bottom: 25px;
}
.strength ol {
  list-style: none;
  counter-reset: strength;
  padding: 0;
  margin-top: 45px;
}
.strength li {
  font-size: 18px;
  box-shadow: inset 0 -1px var(--rule);
  padding: 12px 0;
  display: flex;
  gap: 24px;
  counter-increment: strength;
}
.strength li:before {
  content: counter(strength, decimal-leading-zero);
}
.recruitment {
  margin-top: 150px;
  margin-bottom: 230px;
}
.recruitment h2 {
  margin-bottom: 25px;
}
.tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 45px;
}
.tabs button {
  color: #bcbcbc;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  padding-bottom: 5px;
  position: relative;
}
.tabs button[aria-selected="true"] {
  color: #000;
  box-shadow: inset 0 -2px currentColor;
}
.year-content li + li {
  margin-top: 18px;
}
@media (max-width: 1199px) {
  .header-fax {
    display: none;
  }
  .home-works h2 {
    font-size: 8.4vw;
  }
  .home-works h3 {
    font-size: 3vw;
  }
  .home-works > .photo {
    min-height: 0;
  }
  .message {
    padding: 70px 8%;
    grid-template-columns: 32% minmax(0, 1fr);
    gap: 60px;
  }
  .company-section {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
  }
  .table-row {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .three-columns h3 {
    font-size: 21px;
  }
  .site-footer address {
    font-size: 18px;
  }
}
/* Match the business photo to the full height of its accompanying copy. */
@media (min-width: 768px) {
  .strength {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4.3vw, 62px);
    align-items: stretch;
  }
  .strength > .photo {
    position: relative;
    aspect-ratio: auto;
    min-height: 0;
  }
  .strength > .photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .strength > div:last-child {
    min-width: 0;
    container-type: inline-size;
  }
  .strength h2 {
    font-size: max(24px, calc(100cqw * 48.436 / 569));
  }
}
/* Align business and recruitment introductions at both ends. */
@media (min-width: 768px) {
  .page-intro {
    grid-template-columns: minmax(0, 570fr) minmax(0, 549fr);
    gap: clamp(32px, 5.625vw, 81px);
    align-items: stretch;
    min-height: 0;
  }
  .page-intro > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 36px;
    min-width: 0;
    container-type: inline-size;
  }
  .page-intro h1 {
    margin-bottom: 0;
  }
  .page-intro h2 {
    font-size: max(23px, calc(100cqw * 50 / 570));
    line-height: 1.22;
    letter-spacing: -0.08em;
  }
  .page-intro > p {
    min-width: 0;
  }
}
/* Keep desktop introduction columns aligned as their content reflows. */
@media (min-width: 768px) {
  .intro {
    align-items: stretch;
    gap: clamp(32px, 7.98vw, 115px);
  }
  .intro-lead,
  .intro-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 48px;
  }
  .intro-lead {
    container-type: inline-size;
  }
  .intro-heading span {
    font-size: max(23px, calc(100cqw * 59 / 665.546));
  }
  .intro-heading strong {
    font-size: max(27px, calc(100cqw * 69 / 665.546));
  }
  .intro-photos,
  .intro-company .intro-photos {
    margin-top: auto;
  }
  .intro-copy .cta,
  .intro-copy .text-link {
    align-self: flex-start;
    margin-top: auto;
    max-width: 100%;
  }
  .intro-copy .cta {
    min-width: 0;
    gap: clamp(16px, 2.9vw, 42px);
  }
  .intro-copy .cta-icon {
    flex-shrink: 0;
  }
  .works-intro,
  .training-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4.3vw, 62px);
    align-items: stretch;
  }
  .works-intro > div:first-child,
  .training-intro > div:first-child {
    min-width: 0;
    container-type: inline-size;
  }
  .works-intro h1 {
    font-size: max(48px, calc(100cqw * 103.717 / 569));
  }
  .works-intro h2 {
    font-size: max(24px, calc(100cqw * 48.436 / 569));
  }
  .works-intro p {
    max-width: none;
  }
  .works-intro > .photo {
    position: relative;
    aspect-ratio: auto;
    margin-top: 0;
    min-height: 0;
  }
  .works-intro > .photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .training-intro > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 35px;
  }
  .training-intro h1 {
    font-size: max(46px, calc(100cqw * 90 / 569));
    line-height: calc(98 / 90);
    letter-spacing: -0.03em;
    margin-bottom: 0;
  }
  .training-intro h2 {
    font-size: max(21px, 7cqw);
    align-self: flex-start;
  }
  .training-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    gap: 22px;
  }
  .training-copy p + p {
    margin-top: 0;
  }
}
@media (min-width: 1441px) {
  .intro-heading span {
    font-size: 59px;
  }
  .intro-heading strong {
    font-size: 69px;
  }
}
/* Keep headings grouped when narrower desktop columns make copy taller. */
@media (min-width: 768px) and (max-width: 1279px) {
  .page-intro > div {
    justify-content: flex-start;
    gap: clamp(28px, 3.5vw, 44px);
  }
  .page-intro {
    gap: clamp(28px, 3.5vw, 44px);
  }
}
@media (max-width: 767px) {
  :root {
    --header: 76px;
    --gutter: 24px;
  }
  body {
    font-size: 15px;
  }
  .site-header {
    padding: 0 20px;
    gap: 10px;
  }
  .brand {
    font-size: 22px;
  }
  .header-actions {
    gap: 14px;
  }
  .header-tel img {
    width: 148px;
    height: auto;
  }
  .menu-toggle {
    width: 28px;
  }
  .menu-panel {
    padding: 110px 32px 40px;
  }
  .menu-panel nav a {
    font-size: 24px;
  }
  .menu-phone {
    font-size: 28px;
  }
  .menu-close {
    right: 16px;
    top: 14px;
  }
  h2 {
    font-size: 28px;
  }
  p {
    font-size: 15px;
    line-height: 2;
  }
  .site-footer {
    padding: 36px 24px 20px;
  }
  .footer-main {
    display: block;
    min-height: 0;
  }
  .footer-brand {
    font-size: 27px;
    display: inline-block;
    margin-bottom: 24px;
  }
  .site-footer address {
    font-size: 14px;
    line-height: 1.85;
  }
  .footer-rule {
    margin-top: 30px;
  }
  .copyright {
    font-size: 10px;
  }
  .home-hero {
    padding-bottom: 30px;
  }
  .marquee-set .photo {
    width: 74vw;
    height: 74vw;
    max-height: 380px;
    max-width: 380px;
  }
  .hero-wordmark {
    font-size: max(40px, 13.1vw);
  }
  .marquee-track {
    animation-duration: 152s;
  }
  .intro {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .intro-home {
    margin-top: 28px;
  }
  .intro-heading span {
    font-size: clamp(25px, 6.45vw, 44px);
    letter-spacing: -0.08em;
  }
  .intro-heading strong {
    font-size: clamp(29px, 7.5vw, 51px);
    letter-spacing: -0.08em;
  }
  .intro-lead {
    width: 100%;
  }
  .intro-photos,
  .intro-company .intro-photos {
    margin-top: 34px;
  }
  .intro-copy .cta,
  .intro-copy .text-link {
    margin-top: 28px;
  }
  .cta {
    font-size: 14px;
    min-width: 225px;
    min-height: 48px;
  }
  .home-works {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    margin-top: 80px;
    min-height: 0;
  }
  .home-works h2 {
    font-size: clamp(52px, 14.2vw, 80px);
    margin-bottom: 10px;
  }
  .home-works h3 {
    font-size: 26px;
  }
  .home-works p {
    margin-top: 24px;
    max-width: 100%;
  }
  .home-works .cta {
    margin-top: 28px;
  }
  .home-works > .photo {
    aspect-ratio: 828/500;
  }
  .feature-links {
    width: calc(100% - 48px);
    grid-template-columns: 1fr;
    margin: 72px auto;
    gap: 16px;
  }
  .feature-card .photo {
    aspect-ratio: 1.65;
  }
  .feature-card > span {
    font-size: 26px;
    left: 22px;
    top: 16px;
  }
  .intro-company {
    margin-top: 50px;
    margin-bottom: 55px;
  }
  .message {
    display: flex;
    flex-direction: column;
    padding: 32px 25px;
    gap: 32px;
    min-height: 0;
  }
  .message-portrait {
    width: 65%;
    max-width: 282px;
  }
  .message-copy h2 {
    font-size: 23px;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  .message-copy p {
    font-size: 14px;
  }
  .signature {
    gap: 16px;
    margin-top: 30px;
    font-size: 13px;
  }
  .signature img {
    width: 125px;
    height: auto;
  }
  .company-section {
    display: block;
    margin-top: 65px;
  }
  .company-section h2 {
    margin-bottom: 25px;
  }
  .data-table {
    font-size: 14px;
  }
  .table-row {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .office {
    margin-bottom: 80px;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  figcaption {
    font-size: 12px;
    margin-top: 8px;
  }
  .works-intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 48px;
  }
  .works-intro h1 {
    font-size: clamp(48px, 13.3vw, 80px);
  }
  .works-intro h2 {
    font-size: 26px;
    margin: 10px 0 20px;
  }
  .works-intro > .photo {
    margin: 0;
    aspect-ratio: 568/330;
  }
  .works-gallery {
    margin-top: 50px;
  }
  .annual-works {
    margin-top: 60px;
    margin-bottom: 80px;
  }
  .year summary {
    font-size: 18px;
    line-height: 1.6;
  }
  .year-icon {
    top: 3px;
    right: 2px;
    transform: scale(0.8);
  }
  .year-content {
    font-size: 14px;
    padding-top: 14px;
  }
  .year-content ul {
    padding-left: 20px;
  }
  .training-intro {
    display: block;
    margin-top: 48px;
    margin-bottom: 60px;
  }
  .training-intro h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 25px;
  }
  .training-intro h2 {
    font-size: 24px;
    padding: 15px 0;
  }
  .training-copy {
    margin-top: 32px;
  }
  .training-section {
    margin-top: 64px;
  }
  .training-section h2 {
    font-size: 26px;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  .training-section:last-child {
    margin-bottom: 80px;
  }
  .page-banner {
    margin-top: 20px;
    height: 180px;
  }
  .page-intro {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 35px;
    margin-bottom: 60px;
    min-height: 0;
  }
  .page-intro h1 {
    font-size: 21px;
    margin-bottom: 20px;
  }
  .page-intro h2 {
    font-size: clamp(23px, 7.2vw, 32px);
    line-height: 1.4;
  }
  .soft-section {
    padding: 52px 0 60px;
  }
  .soft-section h2 {
    font-size: 28px;
    margin-bottom: 28px;
  }
  .three-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .three-columns h3 {
    font-size: 23px;
    margin-top: 18px;
    margin-bottom: 10px;
  }
  .three-columns p {
    font-size: 15px;
    line-height: 2;
  }
  .strength {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 65px;
    margin-bottom: 80px;
  }
  .strength h2 {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .strength ol {
    margin-top: 25px;
  }
  .strength li {
    font-size: 14px;
    gap: 16px;
  }
  .recruitment {
    margin-top: 65px;
    margin-bottom: 90px;
  }
  .tabs {
    margin-bottom: 28px;
    gap: 24px;
  }
  .tabs button {
    font-size: 18px;
  }
  .recruit-table .table-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .lightbox {
    width: calc(100vw - 32px);
  }
  .lightbox figcaption {
    font-size: 14px;
  }
  .lightbox-image {
    max-height: 70dvh;
  }
}
@media (max-width: 374px) {
  .site-header {
    padding-inline: 14px;
  }
  .brand {
    font-size: 20px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-tel img {
    width: 130px;
  }
  .intro-heading span {
    font-size: 23px;
  }
  .intro-heading strong {
    font-size: 27px;
  }
  .training-intro h1 {
    font-size: 46px;
  }
  .training-intro h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.menu-phone.menu-fax {
  margin-top: 24px;
}

/* Share image, heading and body rows across the recruitment cards. */
@media (min-width: 768px) {
  .benefits .three-columns {
    row-gap: 0;
  }
  .benefits .three-columns > article {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
    min-width: 0;
  }
  .benefits .three-columns h3,
  .benefits .three-columns p {
    align-self: start;
  }
}

/* Keep the training headings together on narrower desktop screens. */
@media (min-width: 768px) and (max-width: 1279px) {
  .training-intro > div:first-child {
    justify-content: flex-start;
    gap: clamp(28px, 3.5vw, 44px);
  }
  .training-intro {
    gap: clamp(28px, 3.5vw, 44px);
  }
  .training-copy {
    justify-content: flex-start;
  }
}

/* Preserve the overlapping headline while aligning the photo and CTA bottoms. */
@media (min-width: 768px) {
  .home-works {
    align-items: stretch;
    min-height: 0;
  }
  .home-works > .photo {
    position: relative;
    aspect-ratio: auto;
    min-height: 0;
    margin-top: clamp(32px, 4.1vw, 59px);
  }
  .home-works > .photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .home-works-copy {
    min-width: 0;
  }
}

/* Give the copy and CTA enough room before stretching the work photo. */
@media (min-width: 768px) {
  .home-works {
    column-gap: clamp(28px, 3vw, 44px);
  }
  .home-works .cta {
    min-width: 0;
    max-width: 100%;
    gap: 24px;
  }
  .home-works .cta-icon {
    flex-shrink: 0;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .home-works {
    grid-template-columns: minmax(248px, 42%) minmax(0, 1fr);
  }
  .home-works p {
    font-size: clamp(15px, 1.42vw, 17px);
    line-height: 1.9;
    margin-top: 24px;
  }
  .home-works .cta {
    margin-top: 32px;
    font-size: 15px;
    gap: 16px;
  }
  .home-works h2 {
    margin-bottom: 18px;
  }
}

/* Tablet and narrow desktop: one wide photo above two smaller ones. */
@media (min-width: 768px) and (max-width: 1279px) {
  .intro {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(32px, 4.3vw, 55px);
  }
  .intro-lead {
    gap: 32px;
  }
  .intro-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(120px, 14vw, 176px) clamp(72px, 8vw, 100px);
    gap: 12px;
  }
  .intro-photos > .photo:first-child {
    grid-column: 1/-1;
  }
  .intro-photos > .photo {
    position: relative;
    aspect-ratio: auto;
    min-height: 0;
  }
  .intro-photos > .photo img {
    position: absolute;
    inset: 0;
  }
  .intro-copy {
    gap: 28px;
  }
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  pointer-events: none;
}
.feature-card > span {
  z-index: 1;
}
/* Line masks reveal headings without moving their surrounding boxes. */
.reveal-title-pending:not(.is-revealed) {
  visibility: hidden;
}
.reveal-title-pending:has(motion-line) {
  visibility: visible;
}
motion-line {
  display: block;
  width: max-content;
  max-width: none;
  overflow: hidden;
  padding-block: 0.12em;
  margin-block: -0.12em;
}
motion-text {
  display: block;
  white-space: pre;
  opacity: 0;
  transform: translateY(110%);
  transition:
    transform 1.2s cubic-bezier(0.35, 0.75, 0.1, 1),
    opacity 1.2s cubic-bezier(0.35, 0.75, 0.1, 1);
  transition-delay: var(--line-delay, 0s);
}
.is-revealed motion-text {
  opacity: 1;
  transform: translateY(0);
}
.reveal-copy {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.reveal-copy.is-revealed {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-title-pending {
    visibility: visible !important;
  }
  .reveal-copy,
  motion-text {
    opacity: 1;
    transform: none;
  }
}
@media print {
  .reveal-title-pending {
    visibility: visible !important;
  }
  .reveal-copy,
  motion-text {
    opacity: 1;
    transform: none;
  }
}

/* Photo frames fade in; hero marquee and lightbox images stay unaffected. */
.reveal-photo {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  transition-delay: var(--photo-delay, 0s);
}
.reveal-photo.photo-revealed {
  opacity: 1;
}
.reveal-photo:focus-within {
  opacity: 1;
  transition-delay: 0s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-photo {
    opacity: 1;
    transition: none;
  }
}
@media print {
  .reveal-photo {
    opacity: 1;
  }
}
