@charset "UTF-8";

.single-works__contents {
  padding-top: 140px;
  padding-bottom: 120px;
}

@media screen and (max-width: 768px) {
  .single-works__contents {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.single-works__contents-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 50px;
}

@media screen and (max-width: 768px) {
  .single-works__contents-inner {
    padding: 0 20px;
  }
}

.single-works__title {
  font-size: 32px;
  font-family: var(--m-plus);
  font-weight: bold;
  color: var(--blue);
  text-align: center;
}

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

.single-works__tag {
  font-size: 13px;
  color: #fff;
  background-color: var(--pink);
  padding: 5px 10px;
  display: block;
  text-align: end;
  width: fit-content;
  margin-left: auto;
  margin-top: 20px;
}

.single-works__grid-img {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .single-works__grid-img {
    display: grid;
    grid-template-columns: 1fr;
    /* grid-template-rows: repeat(4, 1fr); */
    grid-column-gap: 0px;
    grid-row-gap: 10px;
    width: 100%;
    max-width: 500px;
    margin: 10px auto 40px;
}
}

.img-item--1 img {
  aspect-ratio: 900/435;
  object-fit: cover;
}
.img-item--2 img,
.img-item--3 img,
.img-item--4 img {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.img-item--1 {
  grid-area: 1 / 1 / 2 / 4;
}

.img-item--2 {
  grid-area: 2 / 1 / 3 / 2;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.img-item--3 {
  grid-area: 2 / 2 / 3 / 3;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.img-item--4 {
  grid-area: 2 / 3 / 3 / 4;
  aspect-ratio: 1/1;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .img-item--1 {
    grid-area: 1 / 1 / 2 / 2; 
  }

  .img-item--2 {
    grid-area: 2 / 1 / 3 / 2; 
  }

  .img-item--3 {
    grid-area: 3 / 1 / 4 / 2;
  }

  .img-item--4 {
    grid-area: 4 / 1 / 5 / 2; 
  }

  .img-item--1 img {
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  .img-item--2 img,
  .img-item--3 img {
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .img-item--4 img {
    aspect-ratio: 1/1;
    object-fit: cover;
  }
  
}

.works__grid-contents {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  justify-content: center;
}

@media screen and (max-width: 768px) {
  .works__grid-contents {
    flex-direction: column;
  }
}

.works__company-name {
  font-size: clamp( 18px, calc( 13.070422535211268px + 1.3145539906103285vw ), 32px );
  font-weight: bold;
  color: #fff;
  background-color: var(--pink);
  padding: 0px 10px;
  line-height: var(--line-height-large);
  width: 100%;
  text-align: center;
  margin-top: -90px;
}


.works__grid-right {
  flex: 0 0 189px;
}
.works__grid-right img {
  width: 100%;
  aspect-ratio: 189 / 223;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .works__grid-right img {
    aspect-ratio: 335 / 200;
  }
	
.works__company-name {
  margin-top: 0;
}

}

.works__grid-left {
}

.works__grid-box {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .works__grid-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.works__grid-name {
  font-size:clamp( 16px, calc( 13.887323943661972px + 0.5633802816901409vw ), 22px );
  font-weight: bold;
  color: var(--blue);
  line-height: 1.4;
}

.works__grid-title {
  width: fit-content;
  color: #fff;
  background-color: var(--blue);
  padding: 0px 10px;
  line-height: var(--line-height-large);
  font-size: 12px;
  margin-right: 20px;
  flex-shrink: 0;
}

.works__grid-text {
  font-size: 14px;
  line-height: 1.8;
  margin-top: 10px;
  letter-spacing: var(--letter-spacing-large);
}

.works__grid-info {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.single-works__contents-list-wrapper {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.works__grid-info-company {
}

.works__grid-info-career {
}

.single-works__contents-list {
  flex: 1;
}

.single-works__contents-item-title {
  color: var(--blue);
  font-weight: bold;
  line-height: 1.8;
  letter-spacing: 0.1em;
}
.single-works__contents-item-title::before {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--blue);
  display: inline-block;
  margin-right: 10px;
}

.single-works__contents-item-text {
  margin-top: 10px;
  padding-left: 15px;
}

.single-works__contents-button-wrapper {
  margin-top: 80px;
  text-align: center;
}

.single-works__contents-list-box {
  display: flex;
  gap: 20px;
}

@media screen and (max-width: 768px) {
  .single-works__contents-list-box {
    flex-direction: column;
  }
}

.single-works__contents-img {
  flex: 0 0 150px;
}

.single-works__contents-img img {
  width: 100%;
  aspect-ratio: 150 / 116;
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .single-works__contents-img img {
    aspect-ratio: 335 / 116;
  }
}
