.c-card-list {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .c-card-list--col-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .c-card-list--col-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1280px) {
  .c-card-list--col-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.c-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: block;
  padding: 12px;
  --grad-black: linear-gradient(#00000020, #00000020);
  --grad-blue: linear-gradient(#afd8ff20, #afd8ff20);
  --grad-white: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.2),
    rgba(255, 255, 255, 0)
  );
}
.c-card__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: var(--grad-black), var(--grad-blue), var(--grad-white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.c-card__desc {
  color: #F8FCFF;
  margin-top: 8px;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}
@media (min-width: 768px) {
  .c-card__desc {
    color: unset;
  }
}
.c-card__image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
@media (min-width: 768px) {
  .c-card__image-wrapper {
    margin-top: 8px;
    margin-bottom: 16px;
    position: static;
    height: auto;
  }
}
.c-card__image-wrapper--works {
  width: 100%;
  height: 100%;
  margin-top: 0;
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .c-card__image-wrapper--works {
    position: absolute;
  }
}
.c-card__image {
  position: relative;
  height: 100%;
}
@media (min-width: 768px) {
  .c-card__image--ratio-2x1 {
    aspect-ratio: 2/1;
  }
}
.c-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}
.c-card:hover .c-card__image {
  -webkit-transform: scale(1.03);
          transform: scale(1.03);
  -webkit-transition: 0.4s ease;
  transition: 0.4s ease;
}
.c-card__button-wrapper {
  margin-top: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}
.c-card .c-button {
  pointer-events: none;
}

@media (min-width: 768px) {
  .p-services {
    width: calc(100vw - var(--sw));
    margin: 0 calc(50% - 50vw);
    padding-left: 12px;
  }
}
.p-services__grid-container {
  gap: 24px;
}
@media (min-width: 768px) {
  .p-services__grid-container {
    gap: 1px;
  }
}
@media (min-width: 768px) {
  .p-services__grid-container > * {
    outline: 1px solid #d1cac6;
  }
}
.p-services__grid-item {
  container-type: inline-size;
  position: relative;
}
@media (min-width: 768px) {
  .p-services__grid-item:not(:first-child)::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 3px;
    height: 21px;
    background-color: #9a887e;
  }
}
@media (min-width: 768px) {
  .p-services__grid-item:not(:first-child)::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 21px;
    height: 3px;
    background-color: #9a887e;
  }
}
.p-services__grid-item:first-child {
  aspect-ratio: unset;
}
@media (min-width: 768px) {
  .p-services__grid-item:first-child {
    grid-column: span 2;
    padding: 3em;
    height: 100%;
  }
}
.p-services__grid-item:first-child .c-card {
  aspect-ratio: unset;
}
.p-services__card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  aspect-ratio: 3/2;
}
@media (min-width: 768px) {
  .p-services__card {
    padding: 7.5cqw;
    aspect-ratio: unset;
  }
}
.p-services__card:hover .p-services__button {
  background-color: #F8FCFF;
  color: #333A3A;
  border-color: transparent;
}
@media (min-width: 768px) {
  .p-services__card:hover .p-services__button {
    background-color: #2D678F;
    color: #F8FCFF;
    border-color: #2D678F;
  }
}
.p-services__button {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  background-color: transparent;
  color: #F8FCFF;
  border: 1px solid #F8FCFF;
}
@media (min-width: 768px) {
  .p-services__button {
    background-color: transparent;
    color: #2D678F;
    border-color: #2D678F;
  }
}
.p-services__card-title {
  color: #F8FCFF;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}
@media (min-width: 768px) {
  .p-services__card-title {
    color: unset;
    color: #2D678F;
  }
}
.p-services__lead {
  margin-top: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  row-gap: 24px;
}
@media (min-width: 768px) {
  .p-services__lead {
    margin-top: 48px;
  }
}
@container (min-width:800px) {
  .p-services__lead {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-column-gap: 7.6%;
       -moz-column-gap: 7.6%;
            column-gap: 7.6%;
  }
}
.p-services__lead-catch {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: 0.2em;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
@media (min-width: 768px) {
  .p-services__lead-catch {
    font-size: 2rem;
  }
}
.p-services__lead-body {
  line-height: 2;
  letter-spacing: 0.1em;
  width: 100%;
}

.l-hero {
  --bg-photo: url("../images/services/bg.webp");
}