/* Light */
@font-face {
  font-family: 'KmrApparat';
  src: url('/fonts/kmr-apparat-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Regular (Book보다 얇음) */
@font-face {
  font-family: 'KmrApparat';
  src: url('/fonts/kmr-apparat-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Book (Regular보다 두꺼움) */
@font-face {
  font-family: 'KmrApparat';
  src: url('/fonts/kmr-apparat-book.woff2') format('woff2');
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}

/* Medium */
@font-face {
  font-family: 'KmrApparat';
  src: url('/fonts/kmr-apparat-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: 'KmrApparat';
  src: url('/fonts/kmr-apparat-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Heavy */
@font-face {
  font-family: 'KmrApparat';
  src: url('/fonts/kmr-apparat-heavy.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Black */
@font-face {
  font-family: 'KmrApparat';
  src: url('/fonts/kmr-apparat-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

:root {
  scroll-behavior: smooth;

  --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);

  --text-primary: #2B2B3B;
  --text-secondary: #5A5A72;

  --color-blue--70: #6B78FA;
}

::highlight(search-keyword) {
  background-color: #D3D7F8;
}

body {
  margin: 0;
  font-size: 14px;
  font-family: "Pretendard", sans-serif;
  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;
}
[lang=ja] body {
  font-family: "Pretendard JP", sans-serif;
}
@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-family: 'KmrApparat', sans-serif;
  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: "→";
}
a.outline.light {
  border-color: #E7E7EE;
}

button {
  cursor: pointer;
  font-family: "Pretendard", sans-serif;
  color: inherit;
}
[lang=ja] button {
  font-family: "Pretendard JP", sans-serif;
}

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

/* Legacy content override */
/* MD-106 */
@media (max-width: 767px) {
  #div_block-489-99 {
    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 */
@media (max-width: 767px) {
  #div_block-257-2826 {
    display: none;
  }
}
/* MD-108 */
#div_block-41-2770 {
  display: block;
}
@media (max-width: 767px) {
  #div_block-41-2770 {
    display: none;
  }
}

/* MD-214 */
#link_text-10-2710 {
  padding-left: 30px;
  padding-right: 30px;
  min-width: 210px;
  text-align: center;
}

/* MD-187: use case 본문 카테고리와 검색 기능 감춤 */
#shortcode-451-189,
#shortcode-452-189,
#shortcode-431-189 {
  display: none;
}

/* 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;
}
@media (max-width: 809px) {
  .customer-slide .content-wrap ul li img {
    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) {
  .customer-slide ul {
    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 */
#main-page .related-article {
  background-color: #f1f3fb;
}
#automotive-page .related-article {
  background-color: #f1f3fb;
}
#defense-page .related-article,
#heavy-industry-page .related-article,
#manufacturing-page .related-article,
#expert-page .related-article,
#control-page .related-article {
  background-color: #f1f3fb;
}

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

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

.related-article .scroll-swiper ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
  overflow: auto;
}

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

.related-article .scroll-swiper .photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.related-article .scroll-swiper .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-article .scroll-swiper .category {
  background-color: #2B2B3B;
  padding: 4px 8px;
  font-size: 14px;
  line-height: 1.3;
  display: inline-block;
  margin: 24px 24px 0;
  color: #fff;
  border-radius: 4px;
}

.related-article .scroll-swiper h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  margin: 16px 24px;
}

/* scroll swiper */
@property --left-mask {
  syntax: '<number>';
  initial-value: 1;
  inherits: false;
}
@property --right-mask {
  syntax: '<number>';
  initial-value: 1;
  inherits: false;
}

.scroll-swiper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.scroll-swiper .viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  transition: --left-mask 0.3s ease, --right-mask 0.3s ease;
  mask-image: linear-gradient(
    to right,
    rgb(0, 0, 0) calc(100% - 40px),
    rgba(0, 0, 0, var(--right-mask)) 100%
  );
}
.scroll-swiper .viewport::-webkit-scrollbar {
  display: none;
}

.scroll-swiper .viewport li {
  scroll-snap-align: start;
}

.scroll-swiper .controls {
  margin: 32px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-size: 20px;
}
.scroll-swiper .controls button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0 none;
  border-radius: 28px;
  text-indent: -9em;
  overflow: hidden;
  background: rgba(196, 196, 212, 0.50) url(/images/prev.svg) center center no-repeat;
}
.scroll-swiper .controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.scroll-swiper .controls .next {
  background-image: url(/images/next.svg);
}

.scroll-swiper .controls span {
  text-align: center;
  min-width: 4em;
  font-variant-numeric: tabular-nums;
}

/* 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;
  }
}

/* pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 64px 0 120px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-primary);
  border-radius: 22px;
}
.pagination a.current,
.pagination span.current {
  background-color: #E3E2EB;
}
.pagination a.prev,
.pagination span.prev,
.pagination a.next,
.pagination span.next {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="22" viewBox="0 0 12 22" fill="none"><path d="M10.5832 1.91667L1.4165 11.0833L10.5832 20.25" stroke="%232B2B3B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center center / 12px 22px;
  text-indent: -9em;
  overflow: hidden;
}
.pagination a.next,
.pagination span.next {
  transform: rotate(180deg);
}
.pagination span.prev,
.pagination span.next {
  opacity: 0.3;
}

/* event badge */
.event-badge {
  display: flex;
  gap: 8px;
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  margin: 0;
}

.event-badge .tag {
  padding: 4px 12px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.event-badge .tag.online {
  background-color: #2B2B3B;
}
.event-badge .tag.dday {
  background-color: #006AFF;
  display: none;
}
.event-badge.upcoming .tag.dday,
.event-badge.in-progress .tag.dday,
.event-badge.closed .tag.dday,
.event-badge.ondemand .tag.dday {
  display: block;
}
.event-badge.closed .tag.dday {
  display: block;
  background-color: #707D8F;
}

/* Tab list */
.tab-list {
  position: relative;
  margin: 82px auto 0;
  max-width: 500px;
}
@media (min-width: 724px) {
  .tab-list {
    margin-top: 91px;
  }
}
@media (min-width: 1086px) {
  .tab-list {
    max-width: none;
  }
}

.tab-list > button {
  padding: 0 48px 0 16px;
  height: 42px;
  border-radius: 4px;
  border: 1px solid #E7E7EE;
  background: #fff;
  font-size: 16px;
  color: #000;
  width: 100%;
  text-align: left;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10" fill="none"><path d="M0.308163 1.27884C0.505539 1.08152 0.773202 0.970673 1.05229 0.970673C1.33138 0.970673 1.59904 1.08152 1.79642 1.27884L7.00638 6.48879L12.2163 1.27884C12.4148 1.08711 12.6807 0.981023 12.9567 0.983421C13.2326 0.985819 13.4966 1.09651 13.6918 1.29166C13.8869 1.4868 13.9976 1.75079 14 2.02675C14.0024 2.30272 13.8963 2.56859 13.7046 2.76709L7.75051 8.72118C7.55313 8.9185 7.28547 9.02934 7.00638 9.02934C6.72729 9.02934 6.45962 8.9185 6.26225 8.72118L0.308163 2.76709C0.110846 2.56972 0 2.30205 0 2.02296C0 1.74387 0.110846 1.47621 0.308163 1.27884Z" fill="%232B2B3B"/></svg>') no-repeat right 16px center / 14px 10px;
}
.tab-list.dark > button {
  background-color: #fff;
}
@media (min-width: 1086px) {
  .tab-list > button {
    display: none;
  }
}

.tab-list ul {
  display: none;
  position: absolute;
  z-index: 1;
  top: 41px;
  margin: 0 auto;
  padding: 8px 0;
  list-style: none;
  width: 100%;
  background: #fff;
  border: 1px solid #E7E7EE;
  border-radius: 4px;
  font-size: 16px;
}
.tab-list.open ul {
  display: block;
}
@media (min-width: 1086px) {
  .tab-list ul {
    display: flex;
    position: static;
    width: fit-content;
    padding: 3px 7px;
    border-radius: 29px;
    border: 1px solid #E7E7EE;
    background: #EFEFF5;
    gap: 8px;
    align-items: center;
    overflow: auto;
  }
  .tab-list.dark ul {
    background: #4C4C59;
    border-color: #3c3c45;
  }
}

.tab-list ul li {
  flex-shrink: 0;
}

.tab-list ul a,
.tab-list ul button {
  display: block;
  width: 100%;
  padding: 4px 16px;
  color: var(--text-primary);
  background-color: transparent;
  text-decoration: none;
  border: 0 none;
  font-size: 1em;
  line-height: 1.6;
  text-align: left;
}
.tab-list ul a:hover,
.tab-list ul button:hover {
  background: #F0F0F4;
}
.tab-list.dark ul a,
.tab-list.dark ul button {
  color: #111827;
}
@media (min-width: 1086px) {
  .tab-list ul a,
  .tab-list ul button {
    display: inline-block;
    width: auto;
    padding: 4px 30px;
    border-radius: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-secondary);
  }
  .tab-list ul a.on,
  .tab-list ul button.on {
    background-color: #fff;
  }
  .tab-list.dark ul button {
    color: #fff;
  }
  .tab-list.dark ul button.on {
    color: #111827;
  }
  .tab-list.dark ul a:hover,
  .tab-list.dark ul button:hover {
    background: transparent;
  }
  .tab-list.dark ul a.on:hover,
  .tab-list.dark ul button.on:hover {
    background: #fff;
  }
}
