:root {
  --navy: #00003e;
  --blue: #0f6d9c;
  --cyan: #23a8d8;
  --ink: #333;
  --muted: #666;
  --paper: #fff;
  --line: #d7d7d7;
  --max: 1920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 280px;
  color: var(--muted);
  background: #ddd url("../images/ui/bkgbright.png") repeat;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--cyan); }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: .6rem .85rem;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.site-main,
.site-footer {
  width: min(calc(100% - clamp(24px, 2.5vw, 48px)), var(--max));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  min-height: 80px;
  align-items: center;
  gap: 28px;
  padding: 10px 40px;
  background: var(--navy);
}

.brand {
  display: flex;
  flex: 0 0 auto;
  width: 143px;
  max-width: 40vw;
  height: 36px;
  align-items: center;
}
.brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 36px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 3px;
  color: #fff;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.main-nav { margin-left: auto; }
.main-nav ul { margin: 0; padding: 0; list-style: none; }
.main-nav > ul { display: flex; align-items: stretch; }
.main-nav li { position: relative; }
.main-nav a,
.main-nav button {
  display: block;
  min-height: 45px;
  padding: 11px 25px;
  border: 0;
  border-top: 1px solid transparent;
  color: #ccc;
  background: transparent;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav button:hover,
.main-nav button:focus-visible {
  border-top-color: #666;
  color: #fff;
  background: transparent;
}
.main-nav .active {
  border-top-color: #393939;
  color: #fff;
  background: transparent;
}
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  min-width: 310px;
  background: #393939;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.submenu li { border-bottom: 1px dotted #444; }
.submenu li:last-child { border-bottom: 0; }
.submenu a { min-height: 0; padding: 10px 18px; color: #aaa; white-space: normal; }
.submenu a:hover,
.submenu a:focus-visible,
.submenu .active { border-top-color: transparent; color: #ccc; background: #444; }
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.open .submenu { display: block; }

.language-switcher { display: flex; align-items: center; gap: 7px; }
.language-switcher a {
  display: grid;
  width: 30px;
  height: 26px;
  place-items: center;
  border: 1px solid transparent;
}
.language-switcher a[aria-current="page"] { border-color: #fff; }
.language-switcher img { width: 18px; height: 12px; }

.site-main { background: var(--paper); }

.hero {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 31.4vw, 560px);
  background: var(--navy);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, calc(100% - 36px));
  max-width: none;
  padding: 0;
  color: #fff;
  background: transparent;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0,0,0,.9);
  transform: translate(-50%, -50%);
}
.hero-caption strong { display: block; font-size: clamp(1.5rem, 3.4vw, 3rem); font-weight: 400; line-height: 1; }
.hero-caption span { display: block; margin-top: 6px; font-size: clamp(.95rem, 1.6vw, 1.35rem); line-height: 1.3; }
.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: 26px/1 Arial, Helvetica, sans-serif;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity .2s ease;
}
.hero-control:hover,
.hero-control:focus-visible { background: transparent; opacity: 1; }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .2s ease;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  box-shadow: 0 1px 3px rgba(0,0,0,.55);
  cursor: pointer;
}
.hero-dot:hover,
.hero-dot:focus-visible,
.hero-dot.is-active { background: #fff; }
.hero:hover .hero-control,
.hero:hover .hero-dots,
.hero:focus-within .hero-control,
.hero:focus-within .hero-dots {
  opacity: .72;
  pointer-events: auto;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  background: #000;
  list-style: none;
}
.quick-links a {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 82px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-right: 1px solid #252525;
  color: #aaa;
  background: #000;
}
.quick-links li:last-child a { border-right: 0; }
.quick-links a:hover, .quick-links a:focus-visible { color: #d0d0d0; background: #080808; }
.quick-links img { max-height: 54px; margin: auto; }
.quick-links strong { display: block; line-height: 1.25; }
.quick-links small { display: block; color: #777; line-height: 1.25; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.service-card { position: relative; overflow: hidden; min-height: 180px; color: #fff; background: var(--navy); }
.service-card img { width: 100%; height: 180px; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.service-card span {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  color: #fff;
  background: rgba(0,0,62,.72);
  line-height: 1.3;
  text-align: center;
  transform: translateY(-50%);
}
.service-card:hover img, .service-card:focus-visible img { transform: scale(1.035); filter: grayscale(0); }

.page-banner {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 0;
  justify-content: center;
  overflow: hidden;
  clear: both;
  background: #000;
}
.page-banner img {
  display: block;
  width: min(100%, 850px);
  height: auto;
  object-fit: contain;
}
.page-banner h1 {
  position: absolute;
  left: clamp(20px, 6vw, 78px);
  bottom: 28px;
  max-width: min(850px, calc(100% - 40px));
  margin: 0;
  padding: 12px 18px;
  color: #fff;
  background: rgba(0,0,62,.82);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
}

.content { padding: clamp(28px, 5vw, 64px) clamp(20px, 7vw, 88px); }
.content.narrow { max-width: 980px; margin-inline: auto; }
.content h1, .content h2, .content h3 { color: var(--navy); font-weight: 400; line-height: 1.25; }
.content h1 { margin-top: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.content h2 { margin: 1.8rem 0 .55rem; font-size: 1.55rem; }
.content h3 { margin: 1.5rem 0 .4rem; font-size: 1.2rem; }
.content p { margin: 0 0 1rem; }
.content-lead { color: var(--navy); font-size: 1.2rem; }

.image-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.image-row img { width: 100%; height: 160px; object-fit: cover; }
.feature-list { margin: 1.25rem 0; padding: 0; list-style: none; }
.feature-list li { position: relative; margin: .65rem 0; padding-left: 30px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; background: url("../images/about/apply_f2.png") center/contain no-repeat; }

.customer-list { columns: 2; column-gap: 56px; padding-left: 1.5rem; }
.customer-list li { break-inside: avoid; margin-bottom: .3rem; }
.achievement { padding: 1px 0 18px; border-bottom: 1px solid var(--line); }
.achievement:last-child { border: 0; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .55fr); gap: clamp(28px, 6vw, 72px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; margin: 0 0 14px; color: var(--ink); }
input, textarea {
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  border: 1px solid #bbb;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); outline: 2px solid rgba(15,109,156,.18); }
.button {
  display: inline-block;
  padding: 11px 22px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: var(--navy);
  font: inherit;
  cursor: pointer;
}
.button:hover, .button:focus-visible { background: var(--blue); color: #fff; }
.notice { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--blue); background: #eef6fa; color: var(--ink); }
.notice.error { border-color: #a40000; background: #fff1f1; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha-area { min-height: 32px; margin: 8px 0 12px; }
.captcha-status { margin: 7px 0 0; color: var(--muted); font-size: .85rem; }
.captcha-status.error { color: #a40000; }
.button:disabled { cursor: not-allowed; opacity: .5; }

.site-footer {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 5px 12px;
  border-right: 1px solid #ebebeb;
  border-left: 1px solid #ebebeb;
  color: #777;
  background: #000;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}
.site-footer p { margin: 0; }

@media (min-width: 1440px) {
  body { font-size: 16px; }

  .site-header {
    min-height: 92px;
    gap: 40px;
    padding: 14px clamp(44px, 4vw, 76px);
  }

  .main-nav a,
  .main-nav button {
    min-height: 52px;
    padding: 14px clamp(25px, 2vw, 38px);
  }

  .quick-links a {
    grid-template-columns: 68px 1fr;
    min-height: 104px;
    gap: 16px;
    padding: 16px clamp(22px, 2vw, 38px);
  }

  .quick-links img { max-height: 64px; }
  .quick-links strong { font-size: 1.05rem; }

  .service-card,
  .service-card img {
    min-height: 240px;
    height: 240px;
  }

  .service-card span {
    min-height: 80px;
    padding-inline: 24px;
    font-size: 1.05rem;
  }

  .page-banner img { width: min(100%, 1100px); }
  .content { padding-inline: clamp(88px, 8vw, 150px); }
  .site-footer { min-height: 34px; }
}

@media (min-width: 1440px) and (min-height: 700px) {
  body.home-page {
    display: grid;
    height: 100vh;
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .home-page .site-main {
    display: grid;
    min-height: 0;
    grid-template-rows: auto 72px minmax(110px, 1fr);
  }

  .home-page .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 1280 / 402;
  }

  .home-page .quick-links a {
    min-height: 72px;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    padding: 8px 18px;
  }

  .home-page .quick-links img { max-height: 44px; }
  .home-page .quick-links strong { font-size: .9rem; }
  .home-page .quick-links small { font-size: .75rem; }

  .home-page .service-card,
  .home-page .service-card img {
    height: 100%;
    min-height: 0;
  }

  .home-page .service-card span {
    min-height: 58px;
    padding-block: 7px;
    font-size: .9rem;
  }
}

@media (min-width: 961px) and (max-width: 1439px) and (min-height: 700px) {
  body.home-page {
    display: grid;
    height: 100vh;
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
  }

  .home-page .site-main {
    display: grid;
    min-height: 0;
    grid-template-rows: auto 64px minmax(100px, 1fr);
  }

  .home-page .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 1280 / 402;
  }

  .home-page .quick-links a {
    min-height: 64px;
    grid-template-columns: 42px 1fr;
    gap: 8px;
    padding: 6px 12px;
  }

  .home-page .quick-links img { max-height: 40px; }
  .home-page .quick-links strong { font-size: .85rem; }
  .home-page .quick-links small { font-size: .72rem; }

  .home-page .service-card,
  .home-page .service-card img {
    height: 100%;
    min-height: 0;
  }

  .home-page .service-card span {
    min-height: 54px;
    padding-block: 6px;
    font-size: .85rem;
  }
}

@media (max-width: 960px) {
  .site-header { flex-wrap: wrap; padding: 14px 20px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; order: 3; width: 100%; margin: 0; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { display: block; }
  .main-nav a, .main-nav button { width: 100%; padding: 11px 8px; text-align: left; }
  .submenu { position: static; min-width: 0; padding-left: 18px; box-shadow: none; }
  .language-switcher { margin-left: 4px; }
  .quick-links a { border-right: 0; border-bottom: 1px solid #252525; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header, .site-main, .site-footer { width: 100%; }
  .site-header { min-height: 72px; }
  .hero { height: 300px; }
  .hero-caption { width: calc(100% - 36px); }
  .hero-control { width: 38px; height: 38px; font-size: 24px; }
  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
  .quick-links, .service-grid, .contact-layout, .form-row, .image-row { grid-template-columns: 1fr; }
  .service-card, .service-card img { min-height: 210px; height: 210px; }
  .page-banner img { width: 100%; height: auto; }
  .customer-list { columns: 1; }
  .content { padding: 30px 20px; }
}

@media (hover: none) {
  .hero .hero-control,
  .hero .hero-dots {
    opacity: .65;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
