

.common-gallery-catrd--img-wrapper img{
    aspect-ratio: 311 / 242;
    object-fit: cover;
}

/* -----------------------------
   カード
------------------------------ */
.featured-project-list {
  margin-top: 80px;

  .featured-project-list--inner {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;

    .featured-project-list-grid {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: clamp(40px, 5.6vw, 80px);
      padding: 40px 0;
    }

    .featured-project-row {
      position: relative;
    }

    .featured-project-row:not(:nth-child(3n + 1))::before {
      content: "";
      position: absolute;
      left: clamp(-40px, -2.8vw, -20px);
      top: 0;
      width: 1px;
      height: 100%;
      background: #000;
    }

    .featured-project-row:nth-child(3n)::after {
      content: "";
      position: absolute;
      bottom: clamp(-40px, -2.8vw, -20px);
      right: 0;
      width: calc(300% + 160px);
      height: 1px;
      background: #000;
    }

    .featured-project-row:nth-last-child(-n + 3)::after {
      display: none;
    }
  }
}

@media screen and (max-width: 768px) {
  .featured-project-list {
    .featured-project-list--inner {
      border-top: unset;
      border-bottom: unset;

      .featured-project-list-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        border-top: 1px solid #000;
      }

      .featured-project-row {
        border-bottom: 1px solid #000;
      }

      .featured-project-row:not(:nth-child(3n + 1))::before {
        content: none;
      }

      .featured-project-row:nth-child(3n)::after {
        content: none;
      }
    }
  }
}

/* -----------------------------
   カード内容
------------------------------ */
.featured-project-card {
  .featured-project-card_inner {
    text-align: center;

    .featured-project-card--header {
      text-align: center;
      display: flex;
      justify-content: center;
      position: relative;
      color: #111;
      .featured-project-card--number {
        margin: 0 0 10px;
        letter-spacing: 0;
        font-size: 1.2rem;
        font-family: var(--font-Work-Sans);
      }

      .featured-project-card--title {
        margin: 0 0 12px;
        letter-spacing: 0.3px;
        font-family: var(--font-Zen-Kaku-Gothic-New);
        font-size: clamp(1.5rem, 1.9vw, 2rem);
        font-weight: normal;
      }

      &.Wロフトのいえ::before,
      &.みんなのいえ::before,
      &.こだわりのいえ::before {
        content: "";
        display: inline-block;
        width: 40px;
        height: 40px;
        margin-right: 8px;
        vertical-align: middle;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        position: absolute;
        left: 0;
        bottom: 10px;
      }

      &.Wロフトのいえ::before {
        background-image: url("../img/featured-project/wloft.webp");
      }
      &.みんなのいえ::before {
        background-image: url("../img/featured-project/minna.webp");
      }
      &.こだわりのいえ::before {
        background-image: url("../img/featured-project/kodawari.webp");
      }
    }

    .featured-project-card--body {
	color: #111;
      .featured-project-card--thumb {
        img {
          width: 100%;
          height: 100%;
          aspect-ratio: 4 / 3;
          object-fit: cover;
        }
        .featured-project-card--catch {
          margin: 20px 0 15px;
          line-height: 1.4;
          font-size: clamp(1.2rem, 1.5vw, 1.6rem);
        }
      }

      .featured-project-spec {
        margin-top: 20px;

        .featured-project-spec--row {
          display: flex;
          align-items: center;
          margin-bottom: 0.5em;
          line-height: 1.5;
          text-align: left;

          dt {
            width: clamp(100px, 9.8vw, 140px);
            font-size: clamp(0.9rem, 1.19vw, 1.22rem);

            span {
              padding: 3px 7px;
              background: var(--color-gray);
            }
          }

          dd {
            margin-left: 5px;
            letter-spacing: 0.6px;
            font-size: clamp(1rem, 1.36vw, 1.4rem);
            font-weight: 300;
          }
        }
      }



    }
  }
}

.featured-project-spec {
margin-top: 20px;

.featured-project-spec--row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
  line-height: 1.5;
  text-align: left;

  dt {
    width: clamp(120px, 9.8vw, 140px);
    font-size: clamp(11px, 3.5vw, 12px);

    span {
      padding: 3px 7px;
      background: #ede9e2;
      font-size: clamp(10px, 0.8vw, 12px);
    }
  }

  dd {
    margin-left: 5px;
    letter-spacing: 0.6px;
    font-size: clamp(12px, 1vw, 13px);
    font-weight: 300;
  }
}
}

.common-gallery-card--title {
    position: relative;
      &.Wロフトのいえ::before,
      &.みんなのいえ::before,
      &.こだわりのいえ::before {
        content: "";
        display: inline-block;
        width: 40px;
        height: 40px;
        margin-right: 8px;
        vertical-align: middle;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        position: absolute;
        left: 0;
        bottom: 0px;
      }

      &.Wロフトのいえ::before {
        background-image: url("../img/featured-project/wloft.webp");
      }
      &.みんなのいえ::before {
        background-image: url("../img/featured-project/minna.webp");
      }
      &.こだわりのいえ::before {
        background-image: url("../img/featured-project/kodawari.webp");
      }
}

@media screen and (max-width: 768px) {
  .featured-project-card {
    width: 93%;
    margin: 0 auto;
    padding: 20px 0 22px;

    .featured-project-card_inner {
      .featured-project-card--header {
        .featured-project-card--number {
          margin: 0 0 7px;
          font-size: 1.1rem;
        }

        .featured-project-card--title {
          font-size: clamp(1.2rem, 4.4vw, 1.75rem);
        }
      }

      .featured-project-card--body {
        .featured-project-card--thumb {
          .featured-project-card--catch {
            margin: 13px 0;
            font-size: clamp(1rem, 3.5vw, 1.41rem);
          }
        }

        .featured-project-spec {
          margin-top: 10px;

          .featured-project-spec--row {
            margin-bottom: 6px;

            dt {
              width: clamp(120px, 36.9vw, 144px);
              font-size: clamp(1rem, 3.2vw, 1.25rem);
            }

            dd {
              width: 38%;
              font-size: clamp(1rem, 3.5vw, 1.41rem);
              font-weight: 300;
            }
          }
        }



      }
    }
  }




.featured-project-spec {
  margin-top: 10px;

  .featured-project-spec--row {
    margin-bottom: 6px;

    dt {
      width: clamp(120px, 36.9vw, 144px);
            font-size: clamp(11px, 3.5vw, 12px);
    }

    dd {
      width: 38%;
      font-size: clamp(13px, 3.5vw, 14px);
      font-weight: 300;
    }
  }
}



}
