
.results__fv{
  width: 100%;
  padding-top: calc(500 / 1440 * 100%);
  background-image: url(../../img/results/fv.jpg);
  background-position: center;
  background-size: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 30px;
}

.works__items {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 100px;
}

.works__item {
    width: calc(50% - 25px);
}

.works__item-img {
    overflow: hidden;
}

.works__item-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.works__item a:hover .works__item-img img {
    transform: scale(1.08);
}

.works__item a {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.item__top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-top: 10px;
    border-bottom: 1px solid #0071bc;
}

.item__top-title {
    color: #0071bc;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 0;
}

.item__top-sample {
    color: #fff;
    background: #0071bc;
    border-radius: 50px;
    line-height: 1;
    height: fit-content;
    padding: 5px 10px;
    margin-bottom: 0;
    margin-top: 3px;
}

.item__text {
  margin-top: 10px;
}

@charset "UTF-8";

/* 簡易リセットCSS */
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* モーダル */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  background-color: rgba(120, 123, 131, 0.8);
}

/* モーダルがactiveの時 */
.modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル背景のオーバーレイ部分 */
.modal__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* モーダルのコンテンツ */
.modal__content {
  position: relative;
  background-color: #fff;
  width: 100%;
  max-width: 900px;
  padding: 20px;
}

/* モーダルを閉じるボタン */
.modal__close-btn {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  z-index: 10;
}

/* モーダルスライド内の画像 */
.modal__slide img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: contain;
}

/* ページネーション用の余白 */
.modal__slider {
  padding-bottom: 40px !important;
}

.modal__slider .swiper-pagination {
  bottom: 8px;
}

.modal__slider .swiper-pagination-bullet-active {
  background: #0071bc;
}

/* Swiperの矢印部分 */
@media (max-width: 768px) {
  .modal .swiper-button-next,
  .modal .swiper-button-prev {
    display: none;
  }
}

@media screen and (max-width: 767.98px){
        .works__items{
        gap: 20px;
        display: block;
        margin-top: 50px;
    }
    .works__item{
        width: 100%;
    }
    .works__item-img img {
      height: 200px;
    }
    .item__top{
      padding-bottom: 6px;
    }
    .item__top-title{
      font-size: 16px;
    }
    .item__top-sample{
      font-size: 12px;
    }
}