@font-face { font-family: Prompt; src: url('fonts/Prompt-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Prompt; src: url('fonts/Prompt-Medium.ttf'); font-weight: 500; font-display: swap; }
@font-face { font-family: Prompt; src: url('fonts/Prompt-SemiBold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: Prompt; src: url('fonts/Prompt-Bold.ttf'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --navy: #0b1153;
  --blue: #1724d9;
  --paper: #fbfcfc;
  font-family: Prompt, 'Leelawadee UI', sans-serif;
  color: var(--navy);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }

.site { container-type: inline-size; max-width: 1782px; margin: 0 auto; }
.site > * { --u: calc(100cqw / 1264); }
.frame { width: 92%; margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: #fff;
}
:focus-visible { outline: 3px solid #3462ff; outline-offset: 4px; }
:is(main, section, footer, .service-grid)[tabindex='-1']:focus { outline: none; }

.header { background: #fff; position: relative; z-index: 2; }
.header-inner {
  width: 92%;
  height: calc(62 * var(--u));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: calc(20 * var(--u));
}
.brand { flex: 0 0 calc(244 * var(--u)); }
.brand img { width: 100%; }
.navigation {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: calc(25 * var(--u));
  font-size: calc(15.8 * var(--u));
  font-weight: 700;
  white-space: nowrap;
}
.navigation :is(a, button) {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  background: none;
  border: 0;
}
.navigation :is(a, button):hover, .navigation [aria-current] { color: var(--blue); }
.navigation [aria-current]::after {
  content: '';
  position: absolute;
  inset: auto 0 calc(11 * var(--u));
  height: max(2px, calc(2.5 * var(--u)));
  background: var(--blue);
}
.quote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--u));
  flex: 0 0 calc(237 * var(--u));
  height: calc(48 * var(--u));
  margin-left: calc(17 * var(--u));
  border-radius: calc(17 * var(--u));
  color: #fff;
  background: #070c65;
}
.quote:hover { background: #0c1985; }
.quote-copy { display: grid; justify-items: end; line-height: 1.02; }
.quote-copy span { font-size: calc(14 * var(--u)); }
.quote-copy strong { font-size: calc(23.5 * var(--u)); font-weight: 400; white-space: nowrap; }
.icon { object-fit: contain; }
.quote .icon { width: calc(29 * var(--u)); height: calc(27 * var(--u)); }
.menu-toggle { display: none; }

.hero { position: relative; }
.hero-desktop { height: calc(474 * var(--u)); background: #f6f6f6 url('assets/hero.webp') center / 100% 100% no-repeat; }
.hero-mobile { display: none; }
.benefits {
  position: relative;
  min-height: calc(81 * var(--u));
  display: grid;
  grid-template-columns: 1.13fr .94fr .98fr;
  align-items: center;
  margin-top: calc(-33 * var(--u));
  border-radius: calc(18 * var(--u));
  box-shadow: 0 calc(2 * var(--u)) calc(7 * var(--u)) #173b6b25;
  background: #fff;
  color: #171bc7;
}
.benefits li {
  min-width: 0;
  min-height: calc(44 * var(--u));
  padding: 0 calc(20 * var(--u)) 0 calc(41 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(24 * var(--u));
  line-height: 1.27;
  white-space: nowrap;
}
.benefits li:first-child { padding-left: calc(62 * var(--u)); }
.benefits li + li { border-left: max(1px, calc(2 * var(--u))) solid #969ab5; }
.benefits img { width: calc(55 * var(--u)); height: calc(48 * var(--u)); object-fit: contain; }
.benefits strong { font-size: calc(17.6 * var(--u)); font-weight: 700; letter-spacing: -.035em; }
.benefits p { margin-top: calc(5 * var(--u)); font-size: calc(14.1 * var(--u)); font-weight: 600; letter-spacing: -.055em; }

.services { margin-top: calc(21 * var(--u)); margin-bottom: calc(30 * var(--u)); width: 92.5%; }
.section-title {
  font-size: calc(30 * var(--u));
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.18;
}
.section-title::after {
  content: '';
  display: block;
  width: calc(50 * var(--u));
  height: max(2px, calc(2.4 * var(--u)));
  margin-top: calc(7 * var(--u));
  background: #2025e0;
}
.services > h2 { margin: 0 0 calc(9 * var(--u)) calc(4 * var(--u)); }
.service-grid { display: grid; grid-template-columns: 1.055fr 1fr 1.055fr; gap: calc(15 * var(--u)); }
.service {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border-radius: calc(17 * var(--u));
  box-shadow: 0 calc(2 * var(--u)) calc(7 * var(--u)) #1b54822b;
  border: 1px solid #dfebf1;
}
.service-photo { width: 100%; height: calc(201 * var(--u)); object-fit: cover; }
.service-caption {
  min-height: calc(90 * var(--u));
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(69 * var(--u));
  align-items: center;
  padding: calc(9 * var(--u)) calc(19 * var(--u));
}
.service-caption h3 { font-size: calc(22 * var(--u)); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.service-caption h3 span { font-size: .76em; }
.service-caption p {
  font-size: calc(15.2 * var(--u));
  line-height: 1.3;
  letter-spacing: -.04em;
  font-weight: 600;
  margin-top: calc(6 * var(--u));
}
.service:last-child .service-caption { grid-template-columns: minmax(0, 1fr) calc(60 * var(--u)); }
.service:last-child .service-caption p { font-size: calc(13.8 * var(--u)); letter-spacing: -.055em; }
.service-mark {
  display: grid;
  place-items: center;
  justify-items: end;
  height: calc(47 * var(--u));
  border-left: max(1px, calc(2 * var(--u))) solid #8888ab;
}
.service-mark img { width: calc(46 * var(--u)); height: calc(44 * var(--u)); object-fit: contain; }

.about {
  position: relative;
  display: grid;
  grid-template-columns: 55.6% minmax(0, 1fr);
  align-items: center;
  gap: calc(31 * var(--u));
  padding-left: calc(20 * var(--u));
  min-height: calc(394 * var(--u));
  isolation: isolate;
}
.about-photo { width: 100%; height: calc(394 * var(--u)); object-fit: cover; }
.about-copy { padding-right: calc(22 * var(--u)); }
.about-copy .section-title { margin-bottom: calc(24 * var(--u)); }
.about-copy .section-title::before {
  content: '';
  display: block;
  background: #262ae1;
  width: calc(44 * var(--u));
  height: max(2px, calc(2.4 * var(--u)));
  margin-bottom: calc(10 * var(--u));
}
.about-copy p { font-size: calc(18.3 * var(--u)); font-weight: 500; letter-spacing: -.032em; line-height: 1.46; }
.about-decoration {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 55%;
  overflow: hidden;
  background: radial-gradient(ellipse at 100% 98%, #d9f1fd90, transparent 70%);
}
.about-decoration::before, .about-decoration::after {
  content: '';
  position: absolute;
  inset: 0;
  mask-image: linear-gradient(90deg, transparent 12%, #000 74%);
}
.about-decoration::before {
  background: repeating-linear-gradient(29deg, #c5eefe 0% 10%, #a8e2fa 10% 19%, #8ed7f6 19% 27%);
  clip-path: polygon(12% 0, 100% 0, 100% 50%);
  opacity: .64;
}
.about-decoration::after {
  background: repeating-linear-gradient(150deg, #d9f3ff 0% 10%, #beeafa 10% 18%, #a8e2f7 18% 26%);
  clip-path: polygon(18% 100%, 100% 66%, 100% 100%);
  opacity: .72;
}

.clients {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(196 * var(--u));
  padding-top: calc(13 * var(--u));
  text-align: center;
}
.clients::before {
  content: '';
  position: absolute;
  inset: 0 79% 36% 0;
  z-index: -1;
  background: linear-gradient(29deg, #e5f8ff, #b6e6fc);
  mask-image: linear-gradient(109deg, #000 5%, transparent 70%);
  clip-path: polygon(0 0, 24% 0, 100% 91%, 0 55%);
}
.clients .section-title { font-size: calc(28 * var(--u)); }
.clients .section-title::after { width: calc(43 * var(--u)); margin: calc(10 * var(--u)) auto 0; }
.client-carousel {
  display: grid;
  grid-template-columns: calc(48 * var(--u)) minmax(0, 1fr) calc(89 * var(--u));
  align-items: center;
  margin-top: calc(12 * var(--u));
}
.client-logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.client-logos li {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(79 * var(--u));
  padding-inline: calc(14 * var(--u));
}
.client-logos li + li::before {
  content: '';
  position: absolute;
  left: 0;
  height: 64%;
  width: max(1px, calc(2 * var(--u)));
  background: #c6d6e4;
}
.client-logos img { width: calc(140 * var(--u)); height: calc(73 * var(--u)); object-fit: contain; }
.client-logos .cp { width: calc(77 * var(--u)); height: calc(77 * var(--u)); }
.client-logos .seven { width: calc(73 * var(--u)); height: calc(75 * var(--u)); }
.client-logos .betagro { width: calc(104 * var(--u)); height: calc(74 * var(--u)); }
.client-logos .meiji { width: calc(123 * var(--u)); height: calc(53 * var(--u)); }
.client-logos .scg { width: calc(140 * var(--u)); height: calc(55 * var(--u)); }
.carousel-button {
  display: grid;
  place-items: center;
  justify-self: center;
  width: max(44px, calc(45 * var(--u)));
  height: max(44px, calc(45 * var(--u)));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.carousel-button:hover { background: #edf3fe; }
.carousel-button span {
  width: calc(15 * var(--u));
  height: calc(15 * var(--u));
  border: solid #10186d;
  border-width: 0 max(3px, calc(4 * var(--u))) max(3px, calc(4 * var(--u))) 0;
  transform: rotate(-45deg);
}
.previous span { transform: rotate(135deg); }
.next { justify-self: end; }

.footer {
  min-height: calc(251 * var(--u));
  position: relative;
  isolation: isolate;
  color: #fff;
  background: #06275e;
  padding: calc(11 * var(--u)) 0 calc(28 * var(--u));
}
.footer-wave { position: absolute; z-index: -1; inset: 0; overflow: hidden; mask-image: linear-gradient(90deg, #000, #0006 42%, #0006 57%, #000); }
.footer-wave::before, .footer-wave::after {
  content: '';
  position: absolute;
  width: 120%;
  height: 248%;
  left: -9%;
  top: -153%;
  border-radius: 49%;
  transform: rotate(-.85deg);
}
.footer-wave::before { border-bottom: calc(17 * var(--u)) solid #123cc7; box-shadow: 0 calc(23 * var(--u)) calc(17 * var(--u)) #081b6d8c; }
.footer-wave::after { border-bottom: calc(5 * var(--u)) solid #167dff; opacity: .76; transform: translateY(calc(-13 * var(--u))) rotate(-.85deg); }
.footer-inner { width: 87.5%; margin-inline: auto; }
.footer-grid { display: grid; grid-template-columns: 30.5% 37.5% 32%; }
.footer-grid > :not(:first-child) { border-left: max(1px, calc(2 * var(--u))) solid #b5c3db; padding-left: calc(52 * var(--u)); }
.footer-grid h2 { font-size: calc(18.2 * var(--u)); font-weight: 400; line-height: 1.25; }
.footer-company { font-size: calc(16 * var(--u)); line-height: 1.5; }
.footer-brand { display: inline-block; width: calc(290 * var(--u)); }
.footer-brand img { width: 100%; height: calc(53 * var(--u)); object-fit: contain; object-position: left center; }
.facebook { display: inline-flex; align-items: center; gap: calc(5 * var(--u)); margin-top: calc(5 * var(--u)); font-size: calc(22 * var(--u)); }
.facebook img { width: calc(46 * var(--u)); height: calc(46 * var(--u)); }
.footer a:hover, .footer button:hover { text-decoration: underline; }
.footer-contact address { margin-top: calc(4 * var(--u)); }
.contact-row { display: grid; grid-template-columns: calc(30 * var(--u)) 1fr; gap: calc(21 * var(--u)); font-size: calc(17.4 * var(--u)); line-height: 1.45; }
.contact-row .icon { width: calc(24 * var(--u)); height: calc(20 * var(--u)); margin-top: calc(2 * var(--u)); }
.footer-nav ul { margin-top: calc(4 * var(--u)); }
.footer-nav li { display: flex; gap: calc(22 * var(--u)); align-items: baseline; line-height: 1.42; font-size: calc(18 * var(--u)); }
.footer-nav li::before { content: ''; width: calc(7 * var(--u)); height: calc(7 * var(--u)); border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.footer-nav button { background: none; border: 0; padding: 0; }
.copyright { border-top: max(1px, calc(2 * var(--u))) solid #bdcbe2; margin-top: calc(15 * var(--u)); padding-top: calc(7 * var(--u)); text-align: center; font-size: calc(16 * var(--u)); }

dialog { width: min(90vw, 420px); padding: 26px; border: 0; border-radius: 15px; color: var(--navy); box-shadow: 0 12px 60px #0b115350; }
dialog::backdrop { background: #07123785; }
dialog h2 { font-size: 26px; }
dialog p { margin: 10px 0 20px; }
dialog button { border: 0; border-radius: 7px; background: var(--navy); color: #fff; padding: 8px 20px; }

@media (max-width: 900px) {
  .header-inner { min-height: 70px; height: auto; width: 95%; gap: 10px; justify-content: space-between; }
  .brand { flex: 0 1 clamp(132px, 38vw, 230px); }
  .quote { order: 1; flex: 0 0 auto; gap: 6px; height: 42px; margin-left: auto; padding: 0 9px; border-radius: 10px; }
  .quote-copy span { font-size: 9px; }
  .quote-copy strong { font-size: 13px; }
  .quote .icon { width: 17px; height: 17px; }
  .menu-toggle { order: 2; width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; background: transparent; border: 1px solid #dce4f2; border-radius: 8px; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; }
  .menu-toggle span { position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .navigation { display: none; position: absolute; top: 100%; inset-inline: 0; height: auto; background: #fff; padding: 7px 5% 13px; box-shadow: 0 10px 15px #0b115318; font-size: 16px; }
  .menu-toggle[aria-expanded='true'] + .navigation { display: grid; gap: 0; }
  .navigation :is(a, button) { text-align: left; padding: 9px 10px; min-height: 44px; }
  .navigation [aria-current]::after { display: none; }

  .benefits { grid-template-columns: 1fr; margin-top: -12px; width: 92%; border-radius: 14px; padding: 6px 18px; }
  .benefits li, .benefits li:first-child { min-height: 61px; padding: 8px 2px; gap: 17px; white-space: normal; }
  .benefits li + li { border-left: 0; border-top: 1px solid #dbe3ee; }
  .benefits img { width: 39px; height: 35px; flex: 0 0 39px; }
  .benefits strong { font-size: 16px; }
  .benefits p { margin-top: 2px; font-size: 13px; }

  .services { margin-block: 24px; width: 92%; }
  .section-title { font-size: 26px; }
  .section-title::after { width: 40px; }
  .services > h2 { margin: 0 0 14px; }
  .service-grid { gap: 13px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { border-radius: 14px; }
  .service-photo { height: auto; aspect-ratio: 1.82; }
  .service-caption, .service:last-child .service-caption { min-height: 86px; grid-template-columns: minmax(0, 1fr) 40px; padding: 10px 12px; }
  .service-caption h3 { font-size: 17px; }
  .service-caption p, .service:last-child .service-caption p { font-size: 12px; }
  .service-mark { height: 38px; }
  .service-mark img { width: 30px; height: 31px; }

  .about { grid-template-columns: 1fr 1fr; gap: 17px; padding: 0 4%; }
  .about-photo { height: auto; }
  .about-copy { padding: 12px 0; }
  .about-copy .section-title { margin-bottom: 12px; }
  .about-copy .section-title::before { width: 35px; margin-bottom: 7px; }
  .about-copy p { font-size: 15px; }
  .about-decoration { inset: 0 0 0 32%; }

  .clients { min-height: 146px; padding-top: 23px; padding-bottom: 22px; }
  .clients .section-title { font-size: 23px; }
  .clients .section-title::after { width: 35px; margin-top: 8px; }
  .client-carousel { grid-template-columns: 44px minmax(0, 1fr) 44px; margin-top: 9px; }
  .client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-logos li { min-height: 62px; padding-inline: 8px; }
  .client-logos li:nth-child(n+4) { display: none; }
  .client-logos li img, .client-logos img:is(.cp, .seven, .betagro) { width: min(100%, 104px); height: 50px; }
  .client-logos li .meiji, .client-logos li .scg { height: 41px; }
  .carousel-button span { width: 11px; height: 11px; }

  .footer { padding: 22px 0 15px; }
  .footer-inner { width: 90%; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .footer-grid > :not(:first-child) { padding-left: 18px; }
  .footer-grid h2 { font-size: 16px; }
  .footer-company { font-size: 13px; }
  .footer-brand { width: min(100%, 275px); }
  .footer-brand img { height: auto; }
  .facebook { font-size: 16px; gap: 5px; margin-top: 7px; }
  .facebook img { width: 31px; height: 31px; }
  .contact-row { grid-template-columns: 20px minmax(0, 1fr); gap: 6px; font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }
  .contact-row .icon { width: 17px; height: 15px; }
  .footer-nav li { font-size: 14px; gap: 10px; }
  .footer-nav li::before { width: 6px; height: 6px; }
  .copyright { font-size: 12px; margin-top: 16px; padding-top: 13px; }
}

@media (max-width: 600px) {
  .hero-desktop { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); background: none; }
  .hero-mobile { display: grid; justify-items: center; padding-top: 10px; background: #fafafa; }
  .hero-copy { width: 57%; }
  .hero-products { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .service-caption, .service:last-child .service-caption { min-height: 78px; padding-inline: 16px; }
  .service-caption h3 { font-size: 21px; }
  .service-caption p, .service:last-child .service-caption p { font-size: 14px; }
  .about { grid-template-columns: 1fr; gap: 10px; }
  .about-copy { padding: 8px 2px 12px; }
  .about-decoration { inset: 45% 0 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :not(:first-child) { border-left: 0; border-top: 1px solid #bccbed77; padding: 14px 0 0; }
  .footer-wave { opacity: .58; }
}
