/*
  Layout
*/
/*
  Component
*/

.c-font__color-main {
  color: var(--c-main);
}

.c-factors__icon > * {
  position: relative;
}

.c-factors__icon > ::before{
  content: "";
  position: absolute;
  top: 50%;
  left: -1.1em;
  transform: translateY(-50%);
  width: 1em; 
  height: 1em;
  display: inline-block;
  background-image: url("/image/icon_check.svg");
  background-size: contain;
  
}

/*
  Project
*/
.p-first__img {
  background-position: center center;
}

.p-factors__container {
  display: flex;
  flex-direction: column;
  gap: 1.618rem;
  text-align: left;
  font-size: 1.618rem;
  padding: 2.618rem;
  padding-left: 3.618rem;
  border: 5px solid var(--c-main);
  border-radius: 10px;
  max-width: 80%;
}

.p-section-service__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.618rem;
  width: 90%;
}

@media screen and (max-width: 834px) {
  .p-section-service__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.p-section-service__card__container {
  width: 100%;
  max-width: 450px;
}

.p-section-service__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.618rem;
  width: 100%;
  height: 100%;
  padding: 2.618rem 1.618rem;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.p-service__card__img {
  width: 25%;
  object-fit: contain;
  margin-bottom: 1em;
}
/*
  Utility
*/

.catch_container {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.main_img {
  width: 100%;
  background-position: center;
}

.sub_catchphrase {
  background-color: rgba(255,255,255,.7);
  width: 80%;
}

.factors_container {
  border: 5px solid var(--c-main);
  border-radius: 10px;
  width: 100%;
}

.factors_container_in {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-align: start;
}

.factors_icon > ::before{
  content: "";
  width: 1.618em; 
  height: 1.618em;
  display: inline-block;
  background-image: url("/image/task_alt_black.svg");
  background-size: contain;
  vertical-align: text-bottom;
}

.service_container {
  aspect-ratio: 3 / 4;
}

.sub_service_card_container {
}

.sub_service_card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-bottom: 1rem; 
  color: #333;
  background-color: #fff;
  border-top: 5px solid var(--c-main);
  }

.sub_service_img {
  aspect-ratio: 4 / 3;
}

.sub_service_headline {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1em;
}

.sub_service_text {
  text-align: start;
  height: 1fr;
}

.p-process__container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

.p-process__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.p-process__item::before {
  --size: 3rem;
  content: "";
  position: relative;
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background-color: var(--c-main);
  align-self: center;
  justify-self: end;
}

.p-process__item:not(:last-child)::after {
  content: "";
  position: relative;
  top: 25%;
  left: 50%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: -1;
  order: -1;
}

.c-process__text {
  font-size: 1rem;
  font-weight: 700;
}

@media screen and (max-width: 834px) {

  .p-process__container {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    flex-direction: column;
  }
  
  .p-process__item {
    position: relative;
    display: flex;
    flex-direction: row;
    flex: none;
    gap: 1rem;
    padding-bottom: 2.618rem;
    white-space: nowrap;
  }

  .p-process__item:before {
    --size: 3rem;
    content: "";
    position: relative;
    flex: 0 0 var(--size);
    width: auto;
    height: var(--size);
    margin: 0;
    border-radius: 50%;
    background-color: var(--c-main);
  }

  .p-process__item:not(:last-child):after {
    content: "";
    position: absolute;
    left: 0;
    transform: translateX(calc(1.5rem));
    width: 2px;
    height: 100%;
    background-color: #e0e0e0;
  }

  .c-process__box {
    height: fit-content;
  }

  .c-process__headline {
    text-align: left;
    font-size: 1.618rem;
  }

  .c-process__text {
    text-align: left;
    font-size: 1rem;
    line-height: 1.618em;
  }
}