.works-list {
  width: clamp(331px, 88.3%, 1266px);
  margin: 0 auto;
  padding: 98px 0 100px;
  border-radius: 100px;
  background-color: #fff;
}
@media screen and (max-width: 768px) {
  .works-list {
    width: clamp(331px, 88.3%, 1266px);
    background-color: unset;
    padding-top: 102px;
  }
}
.works-linklist {
  width: clamp(320px, 90%, 1000px);
  margin: 0 auto;
}
.works-linklist ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  margin-bottom: 80px;
}
@media screen and (max-width: 768px) {
  .works-linklist ul {
    gap: 15px;
    height: auto;
    flex-wrap: wrap;
    margin-bottom: 50px;
  }
}
.works-linklist ul li {
  width: 23%;
  max-width: 233px;
  height: 64px;
}
@media screen and (max-width: 768px) {
  .works-linklist ul li {
    width: 46.8%;
    height: 65px;
  }
}
.works-linklist ul li a {
  display: block;
  padding: 20px 20px 20px 30px;
  border-radius: 100px;
  color: #fff;
  text-align: left;
  background-color: #0d6fb8;
  font-family: "Noto Sans JP";
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 24px */
  letter-spacing: 0.45px;
  border: 2px solid #0d6fb8;
  position: relative;
}
@media screen and (max-width: 768px) {
  .works-linklist ul li a {
    font-size: 14px;
    line-height: 150%; /* 21px */
    letter-spacing: 0.42px;
    padding: 0 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 155px;
    height: 65px;
  }
}
.works-linklist ul li a::after {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  background-image: url(../image/common/buttonarrowwhite.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  .works-linklist ul li a::after {
    width: 24px;
    height: 24px;
    right: 20px;
  }
}
.works-linklist ul li a:hover {
  background-color: #fff;
  color: #0d6fb8;
}
.works-linklist ul li a:hover::after {
  background-image: url(../image/common/buttonarrowblue.svg);
}

.works-list-inner {
  width: clamp(320px, 90%, 1000px);
  margin: 0 auto 100px;
}
.works-list-inner ul {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 60px 6%;
}
@media screen and (max-width: 768px) {
  .works-list-inner ul {
    gap: 30px;
  }
}
.works-list-inner ul li {
  width: 47%;
  background-color: #f9f3e0;
  border-radius: 20px;

  position: relative;
}
@media screen and (max-width: 768px) {
  .works-list-inner ul li {
    width: 100%;
    background-color: #fff;
  }
}

.works-list-inner ul li a {
  width: 100%;
  display: block;
  padding: 50px;
}
@media screen and (max-width: 768px) {
  .works-list-inner ul li a {
    padding: 30px;
  }
}
.works-list-inner-ul-img {
  height: 270px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 27px;
}
@media screen and (max-width: 768px) {
  .works-list-inner-ul-img {
    height: 200px;
    margin-bottom: 20px;
  }
}
.works-list-inner-ul-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}
.works-list-inner-ul li a:hover .works-list-inner-ul-img img {
  transform: scale(1.1);
}

.works-list-inner-ul-text .category {
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.45px;
  border-radius: 5px;
  background: #0d6fb8;
  padding: 2px 15px 4px;
  display: inline-block;
  margin-bottom: 10px;
}
@media screen and (max-width: 768px) {
  .works-list-inner-ul-text .category {
    margin-bottom: 16px;
  }
}
.works-list-inner-ul-text h3 {
  color: #222;
  text-align: left;
  font-size: 25px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 37.5px */
  letter-spacing: 0.75px;
  margin-bottom: 15px;
}
@media screen and (max-width: 768px) {
  .works-list-inner-ul-text h3 {
    font-size: 22px;
    letter-spacing: 0.66px;
  }
}
.works-list-inner-ul-text h3 span {
  background: linear-gradient(transparent 60%, #f1c846 60%);
}
ul.works-list-inner-ul-text-list.flex {
  flex-wrap: wrap;
  width: 250px;
  gap: 7px;
}
@media screen and (max-width: 768px) {
  ul.works-list-inner-ul-text-list.flex {
    margin-bottom: 20px;
  }
}
ul.works-list-inner-ul-text-list li {
  width: 100%;
  justify-content: flex-start;
  padding: 0;
  justify-content: flex-starts;
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 24px */
  letter-spacing: 0.45px;
}
@media screen and (max-width: 768px) {
  ul.works-list-inner-ul-text-list li {
    font-size: 14px;
    letter-spacing: 0.42px;
  }
}
ul.works-list-inner-ul-text-list li p:nth-child(1) {
  width: 76px;
}

.linkbutton {
  position: absolute;
  right: 94px;
  bottom: 45px;
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 24px */
  letter-spacing: 0.45px;
  transition: all 0.3s ease;
  align-items: center;
  gap: 5px;
}
@media screen and (max-width: 768px) {
  .linkbutton {
    position: static;
    justify-content: end;
  }
}
.linkbutton span {
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 24px */
  letter-spacing: 0.45px;
  transition: all 0.3s ease;
}
.linkbutton p.arrow {
  width: 34px;
  height: 34px;
  background-color: #0d6fb8;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}
.linkbutton p.arrow img {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  transition: all 0.3s ease;
}
.works-list-inner-ul li a:hover .linkbutton span {
  color: #0d6fb8;
}

.works-list-inner-ul li a:hover .linkbutton p.arrow img {
  right: 8px;
  left: auto;
}

/* 施工実績の詳細ページ */
.workscontents-head {
  height: 292px;
}
@media screen and (max-width: 768px) {
  .workscontents-head {
    height: calc(196px - 24px);
  }
}
.workscontents-head-back {
  position: absolute;
  max-width: 1151px;
  max-height: 221px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}
@media screen and (max-width: 768px) {
  .workscontents-head-back {
    height: 94px;
    width: 100%;
  }
  .workscontents-head-back img {
    height: 96%;
    width: 100%;
    object-fit: cover;
  }

  .works-contents-container.works-single {
    width: 100%;
    padding-top: 60px;
    border-radius: 20px;
    padding-bottom: 80px;
  }
}
.works-contents-container {
  background-color: #fff;
  border-radius: 100px;
  width: clamp(320px, 90%, 1266px);
  margin: 0 auto;
  padding-top: 160px;
  padding-bottom: 100px;
}
.workscontents-inner {
  width: clamp(320px, 90%, 1000px);
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .workscontents-inner {
    width: 100%;
  }
}
.workscontents-inner h2 {
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 38px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 60.8px */
  letter-spacing: 1.14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 50px;
}
@media screen and (max-width: 768px) {
  .workscontents-inner h2 {
    font-size: 24px;
    letter-spacing: 0.72px;
    margin: 0 22px;
    margin-bottom: 20px;
  }
}
.workscontents-inner span.before-after {
  display: inline-block;
  border-radius: 50px;
  background: #0d6fb8;
  color: #fff;
  text-align: center;
  font-family: "Fredoka", sans-serif;
  font-size: 25px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.75px;
  padding: 7px 30px 6px;
  margin-bottom: 32px;
}
@media screen and (max-width: 768px) {
  .workscontents-inner span.before-after {
    font-size: 16px;
    line-height: normal;
    letter-spacing: 0.48px;
    padding: 7px 20px;
    margin-bottom: 20px;
    margin-left: 22px;
  }
}

.beforeimage {
  border-radius: 50px;
  margin-bottom: 80px;
  height: 660px;
  background-color: #d9d9d9;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .beforeimage {
    width: 100%;
    height: 250px;
    margin-bottom: 50px;
    margin-left: 22px;
    margin-right: 22px;
    width: auto;
  }
  .afterimage-container .slick-slider {
    margin-left: 22px;
    margin-right: 22px;
  }
}

.thumslider .slick-img {
  border-radius: 50px;
  margin-bottom: 80px;
  height: 660px;
  background-color: #d9d9d9;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .thumslider .slick-img {
    width: 100%;
    height: 250px;
    margin-bottom: 40px;
  }
}
.thumslider .slick-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnail-img {
  margin: 0 15px;
  border-radius: 20px;
  overflow: hidden;
}
.afterimage-container .thumbnail {
  width: 90%;
  margin: 0 auto 59px;
}
@media screen and (max-width: 768px) {
  .afterimage-container .thumbnail {
    width: 100%;
  }
}

.afterimage-container .thumbnail .slick-arrow {
  width: 100px;
  height: 100px;
  z-index: 10;
  background-color: #0d6fb8;
  border-radius: 50%;
  background-image: url(../image/common/buttonarrowblue.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: 50%;
  transform: translateY(-50%);
}
@media screen and (max-width: 768px) {
  .afterimage-container .thumbnail .slick-arrow {
    width: 51px;
    height: 51px;
    background-image: url(../image/common/buttonarrowblue-sp.svg);
  }
}
.afterimage-container .thumbnail .slick-arrow::before {
  display: none;
}
.afterimage-container .thumbnail .slick-arrow.slick-prev {
  transform: rotate(180deg) translateY(50%);
  left: -60px;
}
.afterimage-container .thumbnail .slick-arrow.slick-next {
  transform: rotate(0deg) translateY(-50%);
  right: -60px;
}
@media screen and (max-width: 768px) {
  .afterimage-container .thumbnail .slick-arrow.slick-prev {
    transform: rotate(180deg) translateY(50%);
    left: 10px;
  }
  .afterimage-container .thumbnail .slick-arrow.slick-next {
    transform: rotate(0deg) translateY(-50%);
    right: 10px;
  }
}

.kokiarea {
  width: 100%;
  margin: 0 auto 59px;
}
@media screen and (max-width: 768px) {
  .kokiarea {
    margin: 0 22px 50px;
    width: auto;
  }
}
.kokiarea .flex {
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 1px solid #d9d9d9;
  padding: 22px 60px;
}
@media screen and (max-width: 768px) {
  .kokiarea .flex {
    flex-wrap: wrap;
    padding-left: 0;
    padding-right: 0;
  }
}
.kokiarea .flex:nth-child(1) {
  padding-top: 0;
}
.kokiarea .flex .kokiarea-left {
  width: 180px;
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 32px */
  letter-spacing: 0.6px;
}
@media screen and (max-width: 768px) {
  .kokiarea .flex .kokiarea-left {
    width: 100%;

    font-size: 18px;
    letter-spacing: 0.54px;
  }
}
.kokiarea .flex .kokiarea-right {
  width: auto;
  color: #222;
  font-family: "Noto Sans JP";
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 32px */
  letter-spacing: 0.6px;
}
@media screen and (max-width: 768px) {
  .kokiarea .flex .kokiarea-right {
    width: 100%;
    font-size: 18px;
    letter-spacing: 0.54px;
  }
}
