.p-serviceService {
  background-color: var(--color-background-white);
  padding: 24px 16px;

  @media only screen and (min-width: 768px) {
    padding: 32px;
  }
}

.p-serviceService__catch {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.p-serviceService__catchBar {
  flex-shrink: 0;
  width: 4px;
  height: 22px;
  background-color: #267e05;
  position: relative;
  top: 4px;

  &::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #b0db97;
  }
}

.p-serviceService__catchText {
  color: var(--color-text-gray-100);
  font-size: var(--font-size-160);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-small);
}

.p-serviceService__main {
  display: flex;
  flex-direction: column;
  gap: 24px;

  @media only screen and (min-width: 768px) {
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
  }
}

.p-serviceService__visual {
  @media only screen and (min-width: 768px) {
    width: 50%;
    max-width: 420px;
  }
}

.p-serviceService__iconCard {
  background-color: var(--color-background-white);
  border: 4px solid #d9d9d9;
  border-radius: 12px;
  padding: 8px;
  z-index: 1;
  width: fit-content;
  margin-bottom: -30px;
  position: relative;
}

.p-serviceService__logo {
  width: fit-content;
  max-width: 131px;
  height: 58px;
  object-fit: contain;
}

.p-serviceService__appImage {
  width: 100%;

  @media only screen and (min-width: 768px) {
    width: 100%;
  }

  img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.p-serviceService__content {
  flex: 1;
}

.p-serviceService__name {
  color: var(--green-800);
  font-size: var(--font-size-160);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-small);
  margin: 0;
}

.p-serviceService__description {
  color: var(--color-text-gray-100);
  font-size: var(--font-size-100);
  line-height: var(--line-height-medium);
  margin: 0;
  margin-top: 8px;
}

.p-serviceService__linkList {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;

  @media only screen and (min-width: 768px) {
    flex-direction: row;
    /* display: grid;
    grid-template-columns: repeat(3, 1fr); */
  }

  & > li {
    @media only screen and (min-width: 768px) {
      min-width: 163px;
    }
  }

  &.-sns-x > li {
    flex: 1;

    @media only screen and (min-width: 768px) {
      min-width: 163px;
      max-width: calc(50% - 4px);
    }
  }

  & > li:only-child {
    @media only screen and (min-width: 768px) {
      max-width: 100%;
    }
  }
}

.p-serviceService__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  background-color: var(--color-background-white);
  border: 1px solid #bfd1b2;
  border-radius: 4px;
  text-decoration: none;
  color: #1e4e1e;
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-small);
  transition: color 0.2s;
  align-self: flex-start;
  width: 100%;
  justify-content: space-between;

  @media (any-hover: hover) {
    &:hover {
      text-decoration: underline;
    }
  }

  @media only screen and (min-width: 768px) {
    .p-serviceService__linkList > li:only-child & {
      max-width: 200px;
    }
  }
}

.p-serviceService__linkText {
  flex: 0 0 auto; //1;
  word-break: keep-all;
}

.p-serviceService__linkArrow {
  flex-shrink: 0;
  position: relative;
  transition: color 0.2s;
  width: 32px;
  height: 32px;

  &::after {
    content: '\e809';
    color: currentColor;
    font-family: 'fontello';
    position: absolute;
    font-size: 32px;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
  }
}
