@charset "utf-8";
@import "common.css";

:root {
  --section-data-num: "";
}
* {
  word-break: keep-all;
}

.row { display: flex; flex-direction: row; }
.col { display: flex; flex-direction: column; }

#mainImg {
  background-image: url(../img/mainImg/OWLens_mainImg.png);
  background-position: top 56% center;
  /* background-size: 111%; */
  /* background-size: calc(100vw + 11%); */

  container-name: mainImg;
  container-type: inline-size;
}

/* --- */
div[id^="sec"] {
  container-name: sec;
  container-type: inline-size;
}
div[id^="sec"] > p {
  margin-bottom: 8vh;
}

/* --- */
#content > .content:nth-of-type(n+2) .wBox > h3,
.page-owlens-index #content .content h3 {
  margin-bottom: 4vh;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--borderLine);
  font-size: 2.4rem;
  text-align: left;
}
#content > .content:nth-of-type(n+2) h3 ~ div {
  margin: 0 auto;
  width: calc(100% - 40px);
}
.content h3 ~ div img { width: 100%; }

/* --- */
#sec01 ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}
#sec01 ul li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background-color: #FFF;
  border: 1px solid var(--borderLine);
  border-radius: 6px;
  box-shadow: 6px 6px 10px var(--boxShadowColor);
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text);
  cursor: pointer;
  transition:transform .1s;
}
#sec01 ul li.curr {
  border: 1px solid var(--OWLens-orange);
  transform: translateY(4px);
}

.wrap-img {
  padding: 40px;
  border-radius: 20px;
  background-color: #FFF;
  border: 1px solid var(--borderLine);
  img {width: 100%;}
}
.wrap-img:not(:last-of-type),
picture:not(:last-of-type) {
  display: block;
  margin-bottom: 60px;
}


/* overview card___ */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.overview-card {
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border: 1px solid var(--borderLine);
  background-color: #FFF;
}
.icon {
  display: flex;
  justify-content: flex-end;
  height: 60px;
  margin-bottom: 16px;
}
.icon img {
  width: auto;
  height: 100%;
}
.overview-card strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
}
.overview-card p,
.overview-card ul {
  font-size: 14px;
  color: #666;
  text-align: left;
}
.overview-card ul li {
  --p-text-indent: 12px;
  font-size: 1.0rem;
  color: var(--text);
  padding-left: var(--p-text-indent);
  text-indent: calc(var(--p-text-indent) * -1);
  &:not(:last-child) { margin-bottom: 8px; }
  &::before {
    content: "";
    display: inline-block;
    position: relative;
    transform: translateY(-75%);
    margin-right: 6px;
    width: 4px;
    height: 4px;
    background-color: var(--jsct-blue);
  }
}
.overview-card .icon {
  width: 100%;
  height: 60px;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
}

body:not(.mobile) .point {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
  }
}
/* ___overview card */
/* circle-container___ */
.circle-container {
  position: relative;
  margin-top: 8vh;
  height: 600px;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;     /* IE 10+ and Edge */
  user-select: none;         /* Standard */
  .circle-line {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
  }
  .center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    .logo {
      margin: 0 auto;
      width: 280px;
      aspect-ratio: 10/2;
      background-position: center center;
      background-size: contain;
      background-repeat: no-repeat;
      background-image: url(/img/content/OWLens-logo.svg);
    }
    p { margin: 4px 0 24px; font-size: 1.0rem; }
    strong { font-size: 2.4rem; }
  }

  --radius: 280px;

  /* 🔥 원형 배치 */
  .row {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
  }

  /* 순서 (네 배치 기준 맞춤) */
  .row:nth-of-type(2) { --i: 4; --num: 1; }
  .row:nth-of-type(3) { --i: 5; --num: 2; }
  .row:nth-of-type(4) { --i: 0; --num: 3; }
  .row:nth-of-type(5) { --i: 1; --num: 4; }
  .row:nth-of-type(6) { --i: 2; --num: 5; }
  .row:nth-of-type(7) { --i: 3; --num: 6; }

  .row {
    transform:
      rotate(calc(var(--i) * 60deg))
      translate(var(--radius))
      rotate(calc(var(--i) * -60deg))
      translate(-50%, -50%);
  }

  /* 🔵 번호 원 */
  .row::before {
    --step: calc(var(--num) - 1);
    --color-base: color-mix(in srgb, #005DAF, #FFF calc(var(--step) * 15%));
    content: "0" attr(data-num);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--color-base), #b1d6f8 calc(var(--step) * 5%));
    color: #fff;
    text-align: center;
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 160px;
  }

  /* 🔥 텍스트 공통 */
  .wrap-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
  }

  .row.text-left .wrap-text { left: 120px; text-align: left; } /* (2,3,4) */
  .row.text-right .wrap-text { right: 120px; text-align: right; } /* (1,6,5) */

  /* 텍스트 스타일 */
  h3 {
    margin: 0 0 5px;
    font-size: 1.6rem;
  }
  p {
    margin: 0;
    font-size: 1rem;
  }
}
/* ___circle-container */

/* ---------- 개별 --------- */
/* index */
.page-owlens-index {
  #content01 {
    position: relative;
    z-index: 0;
  }
  #content01::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 840px;
    height: 720px;
    background-image: url(/img/product/OWLens/index/owl.svg);
    background-size: 104%;
    background-position: top 0 left -4%;
    background-repeat: no-repeat;
    opacity: 0.02;
    z-index: -1;
  }
  
  div[id^="sec"] > p {
    position: relative;
    font-size: 1.4rem;
    font-weight: 500;
    color: #878787;
    font-style: italic;
  }

  div[id^="sec"] > p::before,
  div[id^="sec"] > p::after {
    --size : 16px;
    content: "";
    display: inline-block;
    position: relative;
    top: -12px;
    margin: 0 12px;
    /* transform: rotate(-5deg); */
    width: var(--size);
    height: calc(var(--size) + 4px);
    background: url(../img/product/OWLens/index/quote2-orange.svg) no-repeat center center / contain;
    opacity: 0.8;
  }

  /* *** cardArea *** */
  .cardArea {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    width: min(100%, 1260px);
  }
  .cardArea > div {
    padding: 30px;
    width: 100%;
    background-color: #FFF;
    border: 1px solid var(--borderLine);
    box-shadow: 6px 6px 10px var(--boxShadowColor);
    text-align: left;
  }
  .cardArea > div img {
    margin: 0 auto;
    width: auto;
    height: 120px;
    margin-bottom: 28px;
  }
  .cardArea > div p:first-of-type {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 900;
    word-break: keep-all;
  }
  .cardArea > div p:not(:first-of-type) {
    position: relative;
    margin-top: 6px;
    margin-left: 12px;
    color: #888;
    font-size: 1.0rem;
    font-weight: 500;
  }
  .cardArea > div p:not(:first-of-type)::before {
    content: "";
    display: block;
    position: absolute;
    top: 12px;
    left: -12px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background-color: #888;
  }
}

.page-owlens-introduction #content {
  #sec02 .point {
    position: relative;
    margin-top: 12vh;
    margin-bottom: 4vh;
    font-size: 3.0rem;
    z-index: 0;
  }
  #sec02 .point::before,
  #sec02 .point::after {
    --size : 52px;
    content: "";
    display: inline-block;
    position: relative;
    top: -6px;
    margin: 0 12px;
    width: var(--size);
    height: var(--size);
    background: url(../img/product/OWLens/introduction/01-/quote.svg) no-repeat center center / contain;
    z-index: -1;
  }
  #sec02 .point::after {
    transform: rotate(180deg);
  }
  #sec04 img {width: 100%;}
}


.page-owlens-function #content {
  /* 보이는 방식 변경으로 배경색 조정 */
  .content:nth-of-type(n+2) { display: none; }
  .content:nth-of-type(1) { background-color: #FFFFFF; }
  .content:nth-of-type(n+2) { background-color: #F5F5F5; }
  .section:nth-of-type(even) {
    position: relative;
    z-index: 0;
    &::after {
      content: "";
      display: inline-block;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      height: calc(100% + 12vh);
      width: calc(100% + 40px + var(--wBox-margin-x)*2 + 40px);
      background-color: #FFFFFF;
      z-index: -1;
    }
    &:last-of-type::after {
      --extra-height: 110px;
      transform: translate(-50%, calc(-50% + var(--extra-height)/2));
      height: calc(100% + 12vh + var(--extra-height));
      /* opacity: 0.5; */
    }
  }
  /* 소제목 앞 숫자 자동증가 */
  counter-reset: content -1;
  .content {
    counter-increment: content;
    counter-reset: section;
  }
  .content .section {
    counter-increment: section;
    &:not(:last-of-type) {margin-bottom: 12vh;}
  }
  .content .section h4 {
    /* margin-bottom: 2vh; */
    font-size: 2.0rem;
    text-align: left;
    color: var(--text);
  }
  .content .section h4::before {
    content: var(--section-data-num) "-" counter(section, decimal-leading-zero) ". ";
    font-size: 1.8rem;
    color: #999;
  }
  /* 소제목 끝 */
  .wrap-text {
    margin: 4vh 0 6vh;
    padding: 40px;
    /* border-radius: 1rem; */
    background-color: color-mix(in srgb, var(--OWLens-orange) 5%, #FFF);
    border: 1px solid var(--OWLens-orange);
    text-align: left;
    p {
      display: flex;
      align-items: center;
      font-size: 1.25rem;
      font-weight: 500;
      line-height: 1.8;
      color: var(--text);
    }
    P::before {
      --clippy: 60%;
      content: "";
      display: inline-block;
      margin-right: 8px;
      width: 20px;
      height: 12px;
      background-color: var(--primary);
      transform: rotate(45deg);
      clip-path: polygon(0% 0%, var(--clippy) 0%, 100% 50%, var(--clippy) 100%, 0% 100%);
    }
    & ~ .wrap-text {
      margin-top: 6vh;
    }
  }
  h5 {
    margin-top: 4vh;
    margin-bottom: 1.2vh;
    font-size: 1.4rem;
    text-align: left;
  }
  table {
    width: 100%;
    background-color: #FFF;
    border: 1px solid var(--borderLine);
    border-collapse: collapse;
    th {
      padding: 12px;
      border: 1px solid var(--borderLine);
      font-size: 1.4rem;
      background-color: #E3F3FF;
    }
    td {
      padding: 20px;
      border: 1px solid var(--borderLine);
      font-size: 1.2rem;
      text-align: left;
    }
    li {
      margin-left: 20px;
      list-style-type: disc;
    }
  }
  .row, .col {
    gap: 20px;
    margin-bottom: 20px;
    img {
      /* flex: 0 1 auto; */
      width: 40%;
    }
    div {
      flex: 1 0 auto;
      text-align: left;
    }
    p:not(.highlight) {
      --p-text-indent: 14px;
      margin-bottom: 8px;
      font-size: 1.2rem;
      color: var(--text);
      padding-left: var(--p-text-indent);
      text-indent: calc(var(--p-text-indent) * -1);
      &::before {
        content: "";
        display: inline-block;
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 8px;
        width: 8px;
        height: 8px;
        background-color: var(--OWLens-orange);
        clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
      }
    }
    p.highlight {
      margin-bottom: 16px;
      font-size: 1.6rem;
      font-weight: bold;
      color: var(--text);
    }
  }
  .col img {
    width: 100%;
  }
  .row img ~ div { margin-left: 20px; }
  .col img ~ div { margin-top: 20px; }

  .col:has(.extra-place) {
    position: relative;
  }
  .extra-place {
    position: absolute;
    top: 20px;
    right: 0;
    width: 480px;
  }
  .two-col-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}


/* --- mobile --- */
.mobile {
  #content > .content:nth-of-type(n+2) h3 ~ div {
    /* width: 100%; */
  }
  #sec01 ul {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  &.page-owlens-index {
    #content01::before {
      width: 100vw;
      height: 200px;
      background-size: 60%;
      background-position: top -12% right 20%;
      background-size: 84%;
      background-position: top 0% center;
    }
    div[id^="sec"] > p {
      font-size: 1.2rem;
    }
    div[id^="sec"] > p::before, div[id^="sec"] > p::after {
      --size : 8px;
      margin: 0 4px;
    }
    .cardArea {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }
  }
  &.page-owlens-introduction {
    #content #sec02 .point {
      position: relative;
      font-size: 1.6rem;
    }
    #content #sec02 .point::before,
    #content #sec02 .point::after {
      --size: 1.6rem;
      --position: calc(var(--size) * -1 - 4px);
      position: absolute;
      width: var(--size);
      height: var(--size);
      z-index: 1;
    }
    #content #sec02 .point::before {
      left: var(--position);
    }
    #content #sec02 .point::after {
      right: var(--position);
    }
    .wrap-img {
      padding: 12px 0px;
      border-radius: 0px;
      border: 0;
    }
    .overview-grid {
      grid-template-columns: repeat(1, 1fr);
    }
    /* ! */
    #sec04 {width: 100%;}
    .circle-container {
      margin: 0;
      height: auto;

      /* 원 숨김 */
      .circle-line {
        display: none;
      }

      /* 중앙 컨텐츠도 흐름으로 */
      .center-content {
        position: static;
        transform: none;
        text-align: center;
        margin-bottom: 40px;
      }

      /* 🔥 원형 배치 제거 */
      .row {
        display: flex;
        align-items: flex-start;
        gap: 20px;
        position: relative;
        left: 0;
        transform: none;
        margin-bottom: 32px;
        padding-bottom: 20px;
      }
      .row::after {
        content: "";
        display: block;
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 100vw;
        height: 1px;
        background-color: var(--borderLine);
      }

      /* 번호 원 */
      .row::before {
        flex-shrink: 0;
        position: static;
        transform: none;
        width: 60px;
        line-height: 60px;
        font-size: 1.4rem;
      }

      /* 텍스트 */
      .wrap-text {
        position: static;
        transform: none;
        width: auto;
        h3 {
          font-size: 1.2rem;
        }
      }

      /* 👉 방향 통일 (좌측 정렬 추천) */
      .row.text-left .wrap-text,
      .row.text-right .wrap-text {
        text-align: left;
      }
    }
  }
  &.page-owlens-function {
  
  }
}