.p-cs {
 overflow: clip;
 padding-inline: 20px;
 color: #222;
}

.p-cs__section-wrap {
  --section-gap: 120px;
  margin-top: var(--section-gap);
  display: grid;
  gap: var(--section-gap);
  max-width: 1200px;
  margin-inline: auto;

  @media screen and (max-width: 768px) {
    --section-gap: 60px;
  }
}

.p-cs__title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-block: 0 40px;

  @media screen and (max-width: 768px) {
    font-size: 24px;
  }

  &::after {
    content: "";
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    width: 140px;
    height: 4px;
    border-radius: 16px;
    background: #a3c4e2;
  }

  span {
    display: inline-block;
  }
}

.p-cs__text {
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-weight: 400;

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}

.p-cs__btn {
  display: inline-block;
  background: #B12C2C;
  color: #fff;
  padding: 10px 37px;
  border-radius: calc(1px/0);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.3s, color 0.3s;
  border: solid 2px;

  &:hover,
  &:focus {
    background: #fff;
    color: #B12C2C;
    outline: none;
  }
}

.p-cs-lead__text {
  text-align: center;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-size: 20px;
  word-break: auto-phrase;

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }

  strong{
    display: inline-block;
  }
}

.p-cs-lead__list {
  margin-top: 64px;
  width: fit-content;
  margin-inline: auto;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px;

  @media screen and (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

.p-cs-lead__list-item {
  display: grid;
  gap: 10px;
}

.p-cs-lead__list-img {
  width: 100%;
  height: auto;
}

.p-cs-lead__list-text {
  text-align: center;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  min-height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-cs-cta {
  text-align: center;
  background: #f0f6fb;
  padding-block: 40px;
  margin-inline: calc(50% - 50vi);
  box-shadow: 0 4px 6px 0 rgba(123, 123, 123, 0.24));
}

.p-cs-cta__text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;

  small{
    font-size: 16px;
  }
}

.p-cs-training__block-wrap {
  display: grid;
  gap: 64px;

  @media screen and (max-width: 768px) {
    gap: 40px;
  }
}

.p-cs-training__block {
  background: #F0F6FB;
  padding: 24px 60px 56px;

  @media screen and (max-width: 768px) {
    padding: 24px 20px 40px;
  }
}

.p-cs-training__block-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-bottom: 16px;
  border-bottom: 1px dotted #B12C2C;
  text-align: center;

  @media screen and (max-width: 768px) {
    font-size: 20px;
  }
}

.p-cs-training__block-top{
  margin-top: 36px;
  display: grid;
  grid-template-columns: 338px 1fr;

  @media screen and (max-width: 980px) {
    grid-template-columns: 1fr;
  }
}

.p-cs-training__block-top-img {
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.p-cs-training__block-top-content {
  background: #fff;
  padding: 24px 40px;

  @media screen and (max-width: 768px) {
    padding: 24px 20px;
  }
}

.p-cs-training__block-top-title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-align: center;

  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
}

.p-cs-training__block-top-list {
  margin-top: 12px;
  list-style: disc;
  padding: 0;
}

.p-cs-training__block-top-list-item {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  display: flex;
  &::before {
    content: "・";
  }

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}

.p-cs-training__block-text {
  margin-top: 48px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}

.p-cs-training__block-bottom {
  margin-top: 48px;
  background: #fff;
  padding: 20px 40px 28px;
  border: 1px solid #B12C2C;

  @media screen and (max-width: 768px) {
    padding: 20px 20px 28px;
  }
}

.p-cs-training__block-bottom-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.8;
  color: #B12C2C;
  margin: 0;

  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
}

.p-cs-training__block-bottom-list {
  margin-top: 12px;
  list-style: disc;
  padding: 0;
}

.p-cs-training__block-bottom-list-item {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  display: flex;
  &::before {
    content: "・";
  }

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}

.p-cs-media__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.02em;

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}

.p-cs-media__list {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;

  @media screen and (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.p-cs-media__list-img-caption {
  text-align: center;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;

  @media screen and (max-width: 768px) {
    font-size: 14px;
  }
}

.p-cs-contents-design {
  padding-bottom: 70px;
}

.p-cs-contents-design__video-wrap {
  margin-top: 40px;
  max-width: 898px;
  margin-left: auto;
  margin-right: auto;
}

.p-cs-contents-design__bottom-text {
  margin-top: 100px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  word-break: auto-phrase;

  @media screen and (max-width: 768px) {
    font-size: 16px;
  }
}

.p-cs-contents-design__btn-wrap {
  text-align: center;
  margin-top: 24px;
}
