* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

:root {
  --transition: 0.4s cubic-bezier(0.07, 0.95, 0, 1);
  --spring: 0.4s cubic-bezier(0.07, 0.95, 0, 1);

  --key-color: rgba(84, 101, 228);
  --border-color: rgb(56, 56, 71);
}

body {
  margin: 0;
  font-size: 14px;
  font-family: Pretendard, sans-serif;
  /* font-feature-settings: "blwf", "cv09", "cv03", "cv04", "cv11"; */
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: auto;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  letter-spacing: -0.01em;
}
@media (min-width: 809px) {
  body {
    font-size: 16px;
  }
}

a {
  text-decoration: none;
}

a.outline {
  background-color: transparent;
  border: 1px solid rgb(26, 26, 26);
  padding: 12px 24px;
  font-size: 18px;
  color: rgb(26, 26, 26);
  border-radius: 50px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
a.outline.dark {
  color: #fff;
  border-color: #fff;
}
a.outline:hover,
a.outline:focus {
  background-color: rgb(26, 26, 26);
  border: 1px solid rgb(26, 26, 26);
  color: rgba(255, 255, 255);
}
a.outline.dark:hover,
a.outline.dark:focus {
  color: rgb(26, 26, 26);
  background-color: #fff;
  border-color: #fff;
}
a.outline:after {
  content: "→";
}

button {
  cursor: pointer;
  font-family: Pretendard, sans-serif;
  color: inherit;
}

/* Legacy wp content */
.post-content {
  div,
  img,
  video,
  .wp-video {
    position: static;
    max-width: 100%;
    height: auto;
  }
}

/* Legacy content override */
/* MD-106 */
#div_block-489-99 {
  @media (max-width: 767px) {
    display: block;
    padding-top: 3em;
    padding-bottom: 3em;
  }
}
/* MD-112 */
#code_block-90-2710 svg {
  vertical-align: middle;
  margin-bottom: 2px;
}
/* MD-115 */
#code_block-112-2725 svg {
  vertical-align: text-bottom;
}
/* MD-90 */
#div_block-257-2826 {
  @media (max-width: 767px) {
    display: none;
  }
}
/* MD-108 */
#div_block-41-2770 {
  display: block;
  @media (max-width: 767px) {
    display: none;
  }
}
#div_block-43-2770 {
  margin-top: 0;
}

/* customer list slide */
.customer-slide .content-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 80px;
  padding-bottom: 120px;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgb(0, 0, 0) 12.5%,
    rgb(0, 0, 0) 87.5%,
    rgba(0, 0, 0, 0) 100%
  );
  overflow: hidden;
}
.customer-slide .content-wrap ul li img {
  @media (max-width: 809px) {
    transform: scale(0.7);
  }
}
.customer-slide .content-wrap.fixed {
  mask-image: none;
}

.customer-slide p {
  text-align: center;
  color: rgb(141, 141, 165);
  margin: 0;
}

.customer-slide ul {
  margin: 0;
  padding: 0;
  height: 200px;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 120px;
  @media (max-width: 809px) {
    gap: 24px;
  }
}
.customer-slide .content-wrap.fixed ul {
  width: min-content;
  margin: 0 auto;
}

.customer-slide li {
  flex-shrink: 0;
}
.customer-slide li.crop {
  position: relative;
  overflow: hidden;
}

.customer-slide li.crop img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Related article */
.related-article {
  #main-page & {
    background-color: #f1f3fb;
  }
  #automotive-page & {
    background-color: #f1f3fb;
  }
  #defense-page &,
  #heavy-industry-page &,
  #manufacturing-page &,
  #expert-page &,
  #control-page & {
    background-color: #f1f3fb;
  }

  .content-wrap {
    padding-top: 60px;
    padding-bottom: 80px;
    @media (min-width: 809px) {
      padding-top: 150px;
      padding-bottom: 170px;
    }
  }

  h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    #main-page & {
      font-weight: 500;
    }
    @media (min-width: 809px) {
      font-size: 40px;
    }
  }

  .swiper {
    a {
      display: block;
      border-radius: 12px;
      overflow: hidden;
      width: 340px;
      min-height: 376px;
      background-color: #fff;
      color: #000;
    }

    .photo {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    .category {
      background-color: #eaeaea;
      padding: 4px 8px;
      font-size: 14px;
      line-height: 1.3;
      display: inline-block;
      margin: 20px 20px 0;
    }

    h3 {
      font-size: 16px;
      font-weight: 500;
      line-height: 1.3;
      margin: 20px;
    }
  }
}

/* content swiper */
.swiper {
  position: relative;

  ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 24px;
    overflow: auto;
    transition: mask-image 1s;
    mask-image: linear-gradient(
      to right,
      rgb(0, 0, 0) 0%,
      rgb(0, 0, 0) 12.5%,
      rgb(0, 0, 0) 87.5%,
      rgba(0, 0, 0, 0) 100%
    );
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    &::-webkit-scrollbar {
      display: none;
    }
    &[data-mask="both"] {
      mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgb(0, 0, 0) 12.5%,
        rgb(0, 0, 0) 87.5%,
        rgba(0, 0, 0, 0) 100%
      );
    }
    &[data-mask="start"] {
      mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgb(0, 0, 0) 12.5%,
        rgb(0, 0, 0) 87.5%,
        rgb(0, 0, 0) 100%
      );
    }

    li {
      scroll-snap-align: start;
    }
  }

  .prev,
  .next {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transform-origin: 50% 50%;
    transition: transform var(--spring);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0 none;
    border-radius: 20px;
    text-indent: -9em;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2) url(/images/prev.svg) no-repeat;
    &:active {
      transform: translateY(-50%) scale(0.8);
    }
  }
  .prev {
    [data-mask="end"] + & {
      opacity: 0;
      visibility: hidden;
    }
  }
  .next {
    left: auto;
    right: 20px;
    background-image: url(/images/next.svg);
    [data-mask="start"] + .prev + & {
      opacity: 0;
      visibility: hidden;
    }
  }
}

/* text typing effect */
.typing-effect:after {
  display: inline-block;
  content: " ";
  width: 0.1em;
  height: 0.8em;
  margin: 0 0 -0.05em 0.2em;
  background-color: #333;
  animation: blink 0.8s infinite steps(1);
}

@keyframes blink {
  50% {
    background-color: transparent;
  }
}
