/* about-usページ専用CSS */
.ys-aboutus {

}

.ys-aboutus__main {

}

.ys-aboutus__lead {
  font-size: var(--wp--preset--font-size--xx-large);
  margin-block-end: var(--wp--preset--spacing--60);
}
@media screen and (max-width: 1039px) {
  .ys-aboutus__lead {
    font-size: 32px;
    margin-block-end: var(--wp--preset--spacing--40);
  }
}

.ys-aboutus__list {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--60);
  counter-reset: aboutus-num;
}
@media screen and (max-width: 1039px) {
  .ys-aboutus__list {
    gap: var(--wp--preset--spacing--40);
  }
}

.ys-aboutus__item {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);

  &:nth-child(10) {
    .ys-aboutus__title::before {
      content: "10";
    }
  }
}
@media screen and (max-width: 1039px) {
  .ys-aboutus__item {
    gap: var(--wp--preset--spacing--30);
  }
}

.ys-aboutus__title {
  font-size: var(--wp--preset--font-size--x-large);
  line-height: 1.6;
  background-color: var(--wp--preset--color--custom-gray-01);
  padding-block: 16px;
  padding-inline: 72px 16px;
  position: relative;

  &::before {
    counter-increment: aboutus-num;
    content: "0"counter(aboutus-num);
    position: absolute;
    width: 40px;
    height: 38px;
    background-color: var(--wp--preset--color--custom-black);
    top: 0;
    left: 0;
    font-size: 24px;
    color: var(--wp--preset--color--custom-white);
    font-family: var(--wp--preset--font-family--questrial);
    z-index: 1;
    text-align: center;
  }
}
@media screen and (max-width: 1039px) {
  .ys-aboutus__title {
    font-size: var(--wp--preset--font-size--large);
    padding-block: 34px 16px;
    padding-inline: 16px;

    &::before {
      height: 26px;
      font-size: 16px;
    }
  }
}

.ys-aboutus__content {

}
.ys-aboutus__block {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--40);

  &[data-type="horizontal"] {
    display: flex;
    flex-direction: row;
    gap: var(--wp--preset--spacing--60);
    > * {
      flex: 1 1 50%;
    }
  }
}
@media screen and (max-width: 1039px) {
  .ys-aboutus__block {
    gap: var(--wp--preset--spacing--30);

    &[data-type="horizontal"] {
      flex-direction: column;
      gap: var(--wp--preset--spacing--30);
      > * {
        flex: 1 1 100%;
      }
    }
  }
}

.p-about__02 {
  gap: var(--wp--preset--spacing--30);
  background-color: #DDDFE1;
  padding-block: 16px;
  padding-inline: 20px;

  display: grid;
  grid-template-areas:
    "lead"
    "flow"
    "test";
}

.p-about__02-lead {
  grid-area: lead;
}
.p-about__02-flow {
  grid-area: flow;
}
.p-about__02-test {
  grid-area: test;
}

@media screen and (max-width: 1039px) {
  .p-about__02 {
    padding-inline: 16px;
    gap: var(--wp--preset--spacing--40);
    grid-template-areas:
      "lead"
      "test"
      "flow";
  }
}

.p-about__02-lead {
  color: var(--wp--preset--color--custom-gray-02);
  font-size: var(--wp--preset--font-size--large);
}
@media screen and (max-width: 1039px) {
  .p-about__02-lead {
    font-size: 16px;
  }
}

.p-about__02-flow {
  display: grid;
  grid-template-columns: 68px repeat(5, 1fr) 68px;
  gap: 16px;
  align-items: start;
  height: 338px;
  margin-block-end: var(--wp--preset--spacing--60);
}
@media screen and (max-width: 1039px) {
  .p-about__02-flow {
    grid-template-columns: 1fr;
    height: auto;
    margin-block-end: 0;
  }
}

.p-about__02-col {
  display: flex;
  flex-direction: column;
  gap: 8px;

  position: relative;
  &::before {
    content: "";
    width: 1px;
    height: 70%;
    background-color: var(--wp--preset--color--custom-bg-gray);
    position: absolute;
    bottom: 25px;
    left: 12px;
  }
}
@media screen and (max-width: 1039px) {
  .p-about__02-col {
    &::before {
      height: calc(100% - 30px);
      bottom: unset;
      left: 72px;
      top: 0;
    }
  }
}

.p-about__02-label {
  font-size: var(--wp--preset--font-size--large);
  background: var(--wp--preset--color--custom-gray-01);
  color: var(--wp--preset--color--custom-tk-blue);
  padding-block: var(--wp--preset--spacing--30);
  padding-inline: var(--wp--preset--spacing--20);
  text-align: left;
  margin-bottom: 8px;
  clip-path: polygon(0 0, calc(100% - 40px)0, 100% 50%, calc(100% - 40px) 100%, 0 100%);
}
.p-about__02-label.is-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wp--preset--color--custom-tk-blue);
  color: var(--wp--preset--color--custom-white);
  height: 338px;
  clip-path: polygon(0 0, calc(100% - 25px)0, 100% 50%, calc(100% - 25px) 100%, 0 100%);
  padding-block: 25px 8px;
  padding-inline: 0;
  /* letter-spacing: -0.3em; */
}
:is(.os-windows) .p-about__02-label.is-vertical {
  letter-spacing: -0.3em;
}
@media screen and (max-width: 1039px) {
  .p-about__02-col {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 8px 0px;
    position: relative;
    &.is-vertical {
      display: block;
      /* grid-template-columns: 1fr; */
    }
    &:nth-child(5) {
      margin-block-end: 42px;
    }
  }
  .p-about__02-label {
    grid-column: 1 / 2;
    grid-row: 1 / span 5;
    justify-self: center;
    align-self: stretch;
    width: 100%;
    height: fit-content;
    min-height: 168px;
    font-size: 20px;
    padding-inline: 24px 44px;
    margin-bottom: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.12em;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 50% 100%, 0 calc(100% - 24px));

    &.is-vertical {
      background: var(--wp--preset--color--custom-tk-blue);
      color: var(--wp--preset--color--custom-white);
      width: 100%;
      min-height: unset;
      height: auto;
      clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 50% 100%, 0 calc(100% - 24px));
      padding-block: 12px 36px;
      padding-inline: 0;
      letter-spacing: 0.10em;
      font-size: var(--wp--preset--font-size--large);
      line-height: 1.6;
      writing-mode: horizontal-tb;
    }
  }
  .browser-chrome .p-about__02-label.is-vertical {
    letter-spacing: 0;
  }

}

.p-about__02-item {
  background: var(--wp--preset--color--custom-white);
  color: var(--wp--preset--color--custom-tk-blue);
  padding-inline: 8px 2px;
  font-size: var(--wp--preset--font-size--x-small);
  text-align: left;
  height: 42px;
  margin-inline-start: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;

  &.is-2lines {
    font-size: var(--wp--preset--font-size--xx-small);
    line-height: 1.2;
  }
  &.is-external {
    background: var(--wp--preset--color--custom-gray-02);
    color: #fff;
    --p-about__02-item-bg-color: var(--wp--preset--color--custom-gray-02);
  }
  &.is-oversea {
    background: var(--wp--preset--color--custom-black);
    color: #fff;
    --p-about__02-item-bg-color: var(--wp--preset--color--custom-black);
  }

  position: relative;
  &::before {
    content: "";
    width: 10px;
    height: 12px;
    background-color: var(--p-about__02-item-bg-color, var(--wp--preset--color--custom-white));
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
  }
  &::after {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--wp--preset--color--custom-tk-blue);
    position: absolute;
    top: 50%;
    left: -26px;
    transform: translateY(-50%);
    border-radius: 50%;
  }
}
@media screen and (max-width: 1039px) {
  .p-about__02-item {
    grid-column: 2 / 3;
    margin-inline-start: 50px;
    min-height: 38px;
    align-items: center;
    font-size: 16px;
    padding-block: 8px;
    padding-inline: 16px;

    &.is-2lines {
      font-size: inherit;
    }
  }
}

.p-about__02-test {
  width: fit-content;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
@media screen and (max-width: 1039px) {
  .p-about__02-test {
    justify-self: start;
  }
}

.p-about__02-test-text {

  position: relative;
  &::before {
    content: "";
    width: 82px;
    height: 26px;
    background-color: var(--p-about__02-test-text-bg-color, var(--wp--preset--color--custom-white));
    display: inline-block;
    margin-inline-end: 8px;
    vertical-align: middle;
  }
}
@media screen and (max-width: 1039px) {
  .p-about__02-test-text {
    font-size: var(--wp--preset--font-size--xx-small);
    &::before {
      width: 60px;
      height: 19px;
    }
  }
}

.is-external {
  --p-about__02-test-text-bg-color: var(--wp--preset--color--custom-gray-02);
}

.is-oversea {
  --p-about__02-test-text-bg-color: var(--wp--preset--color--custom-black);
}

.p-about__04 {
  display: flex;
}

.p-about__04-block {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
}
.p-about__04-label {
  font-size: var(--wp--preset--font-size--large);
  color: var(--wp--preset--color--custom-gray-02);
}

.p-about__04-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media screen and (max-width: 1039px) {
  .p-about__04-table-wrap {
    width: calc(100vw - 24px);
  }
}

.p-about__04-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  background: #fff;
  border: 1px solid #fff;
  /* min-width: 837px; */
}
@media screen and (max-width: 1039px) {
  .p-about__04-table {
    width: 846px;
    font-size: 14px;
  }
}

.p-about__04-table th {
  background: var(--wp--preset--color--custom-tk-blue);
  color: #fff;
  font-weight: 500;
  text-align: center;
  padding: 16px 32px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
@media screen and (max-width: 1039px) {
  .p-about__04-table th {
    padding: 16px 14px;
  }
}
.p-about__04-table th:last-child {
  border-right: none;
}
.p-about__04-table td {
  background: #CFD4D9;
  color: var(--wp--preset--color--custom-black);
  font-weight: 500;
  text-align: left;
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;

  &.small {
    font-size: 14px;
  }
  .x-small {
    font-size: 12px;
  }
  &:nth-child(1) {
    width: 240px;
  }
  &:nth-child(2) {
    width: 153px;
  }
  &:nth-child(3) {
    width: 176px;
  } 
}
@media screen and (max-width: 1039px) {
  .p-about__04-table td {
    &:nth-child(1) {
      width: 204px;
      width: auto;
    }
    &:nth-child(2) {
      width: auto;
    }
    &:nth-child(3) {
      width: 152px;
      width: auto;
    }
    &:nth-child(4) {
      width: 78px;
      width: auto;
    }
  }
}

.p-about__05 {
  .p-about__04-table td {
    &:nth-child(1) {
      width: 393px;
    }
    &:nth-child(2) {
      width: auto;
    }
    &:nth-child(3) {
      width: auto;
    }
  }
}
@media screen and (max-width: 1039px) {
  .p-about__05 {
    .p-about__04-table {
      width: 560px;
    }
    .p-about__04-table td {
      &:nth-child(1) {
        width: 204px;
      }
      &:nth-child(2) {
        width: auto;
      }
      &:nth-child(3) {
        width: auto;
      }
    }
  }
}

.p-about__04-table td:last-child {
  border-right: none;
  text-align: left;
}
.p-about__04-table tr:nth-child(even) td {
  background: #DDDFE1;
}
.p-about__04-table tr:last-child td {
  border-bottom: none;
}
@media screen and (max-width: 1039px) {
}

.p-about__09-block {
  color: var(--wp--preset--color--custom-black);
}
.p-about__09-title {
  color: var(--wp--preset--color--custom-tk-blue);
  font-size: var(--wp--preset--font-size--x-large);
  margin-bottom: 16px;
}
.p-about__09-row {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}
.p-about__09-label {
  color: var(--wp--preset--color--custom-black);
  flex-shrink: 0;
}
.p-about__09-row a {
  text-decoration: underline;
  word-break: break-all;
}
.p-about__09-value {
  display: inline-block;
  white-space: pre-line;
  vertical-align: top;
}

.p-about__10 {

}
.p-about__10-image {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.p-about__10-block {
}
.p-about__10-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--wp--preset--color--custom-gray-01);
}
.p-about__10-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--wp--preset--color--custom-gray-01);
  padding: 24px 0;
}
@media screen and (max-width: 1039px) {
  .p-about__10-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.p-about__10-year {
  width: 60px;
  font-size: 20px;
  font-family: var(--wp--preset--font-family--questrial);
  flex-shrink: 0;
  text-align: left;
}
.p-about__10-award {
  margin-inline-start: 32px;
  font-size: 16px;
}
@media screen and (max-width: 1039px) {
  .p-about__10-award {
    margin-inline-start: 0;
  }
}


.ys-aboutus__client {
  background-color: var(--wp--preset--color--custom-bg-black);

  .ys-title {
    color: var(--wp--preset--color--custom-white);
    text-align: center;
    margin-block-end: var(--wp--preset--spacing--60);
  }
}

.p-client {
  max-width: 760px;
  margin-inline: auto;
}

.p-client__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--40);
  justify-content: center;
}
@media screen and (max-width: 1039px) {
  .p-client__list {
    gap: var(--wp--preset--spacing--30);
  }
}

.p-client__item {
  width: 160px;
  height: auto;
  background-color: var(--wp--preset--color--custom-white);
}
@media screen and (max-width: 1039px) {
  .p-client__item {
    width: 136px;
  }
}


