@charset "UTF-8";

html {
  scroll-behavior: smooth;
}

.p-cad__catch {
  width: min(1280px, 90%);
  padding: 120px 0;
  margin: 0 auto;
  box-sizing: border-box;
}
.p-cad__ttl {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  line-height: 2;
  margin-bottom: 24px;
  color: #3A86C5;
}
.p-cad__txt {
  font-size: 0.875rem;
  line-height: 2;
}

.p-cad__contents {
  padding: 64px 0 150px;
  position: relative;
  box-sizing: border-box;
}
.p-cad__contents::before {
  background-image: url(../../assets/images/service/service-bg@2x.png);
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  z-index: -1;
}
.p-cad__contents--inner {
  width: min(1280px, 90%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.p-cad__menu {
  width: 117px;
  counter-reset:order 0;
  position: sticky;
  top: 120px;
}

.p-cad__menu--item {
  padding-bottom: 24px;
  margin-bottom: 24px;
  position: relative;
}
.p-cad__menu--item:last-of-type {
  padding: 0;
  margin: 0;
}
.p-cad__menu--item::after {
  content: "";
  width: 80px;
  height: 2px;
  background: #9DC4E4;
  position: absolute;
  bottom: 0;
  left: 0;
}
.p-cad__menu--item:last-of-type::after {
  content: none;
}
.p-cad__menu--item .__link {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 2;
  color: #3A86C5;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
  opacity: 0.35;
}
.p-cad__menu--item.is-active .__link {
  opacity: 1;
}
.p-cad__menu--item .__link::before {
  font-family: Oswald, sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  line-height: 2;
  width: 40px;
  counter-increment:order 1;
  content: "0" counter(order);
  color: #9DC4E4;
}

.p-cad__wrap {
  width: calc(100% - 240px);
  counter-reset:order 0;
}
.p-cad__products--list {
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}
.p-cad__products:last-of-type .p-cad__products--list {
  margin-bottom: 0;
}
.p-cad__products--ttl {
  font-size: 1.125rem;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
  background: #9DC4E4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.p-cad__products--ttl::before {
  font-family: Oswald, sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-align: center;
  line-height: 2;
  width: 40px;
  counter-increment:order 1;
  content: "0" counter(order);
  color: #fff;
}
.p-cad__child {
  background: #fff;
}
.p-cad__child--item {
  border-bottom: 1px solid #C7DAEA;
  display: flex;
}
.p-cad__child--item:first-of-type {
  border-top: 1px solid #C7DAEA;
}
.p-cad__child--link {
  display: flex;
}
.p-cad__child--item .__ttl {
  width: 100%;
  padding: 22px 20px;
  box-sizing: border-box;
}
.p-cad__child--dxf,.p-cad__child--pdf {
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 27px;
  border-left: 1px solid #C7DAEA;
}
.p-cad__child--dxf::before,.p-cad__child--pdf::before {
  content: "";
  width: 27px;
  aspect-ratio: 27/32;
}
.p-cad__child--dxf::before {
  background: url(../../assets/images/cad/ico_dxf.svg) no-repeat center / 100%;
}
.p-cad__child--pdf::before {
  background: url(../../assets/images/cad/ico_pdf.svg) no-repeat center / 100%;
}

@media screen and (max-width: 768px) {
  .p-cad__contents--inner {
    flex-direction: column;
    gap: 80px;
  }
  .p-cad__menu {
    width: 100%;
    position: unset;
  }
  .p-cad__menu--item {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .p-cad__menu--item .__link {
    font-size: 0.875rem;
    opacity: 1;
  }
  .p-cad__menu--item .__link::before {
    font-size: 1.25rem;
    width: auto;
  }
  .p-cad__child--item .__ttl {
    line-height: 1.25;
  }
  .p-cad__wrap {
    width: 100%;
  }
  .p-cad__products--list {
    scroll-margin-top: 0;
  }
  .p-cad__products--ttl {
    font-size: 1rem;
    padding: 4px 0;
  }
  .p-cad__products--ttl::before {
    font-size: 1.25rem;
    width: auto;
  }
  .p-cad__child--item {
    align-items: center;
  }
  .p-cad__child--dxf, .p-cad__child--pdf {
    flex-direction: column;
    gap: 5px;
    padding: 11px 16px;
    line-height: 1;
  }
}