@charset "utf-8";

/* ==========================================
    プロジェクト一覧
   ========================================== */

#rwd-content .projects {
  margin: 0 auto;
  width: 96%;
  max-width: 1244px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 45px 0;
}
#rwd-content .projects li {
  width: calc(600 / 1244 * 100%);
}
#rwd-content .projects li.hidden {
  display: none;
}
#rwd-content .projects li .item {
  display: block;
}
#rwd-content .projects li .pic {
  width: calc(376 / 402 * 100%);
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 4;
  border: solid 2px #000;
  border-right-width: 4px;
  border-bottom-width: 4px;
  border-radius: 20px;
  overflow: hidden;
}
#rwd-content .projects li .pic img {
  transition: transform 0.3s ease-out;
}

#rwd-content .projects li .texts {
  margin-top: -40px;
  padding: 63px 34px 34px;
  background: #fff;
  border-radius: 20px;
  border: solid 2px #000;
  border-right-width: 4px;
  border-bottom-width: 4px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease-out;
}
#rwd-content .projects li .texts .title {
  font-size: 2.4rem;
  line-height: 1.2;
  font-weight: 700;
  color: #000;
}
#rwd-content .projects li .texts .title .q {
  width: 42px;
  height: 42px;
  /*padding-top: 3px;*/
  padding-top: 0;
  margin-right: 8px;
  background: #f00;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: 0;
  border: solid 1px #000;
}
#rwd-content .projects li .texts .tags {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
#rwd-content .projects li .texts .tag {
  height: 28px;
  padding: 0 0.8em;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: solid 1px #000;
  font-size: 13px;
  font-weight: 500;
  border-radius: 15px;
  position: relative;
  background: #fff;
  color: #000;
}
#rwd-content .projects li .texts .tag.gray {
  background: #505050;
  color: #fff;
}
#rwd-content .projects li .texts .tag.field {
  padding: 0 1.4em 0 61px;
  border: none;
  color: #fff;
}
#rwd-content .projects li .texts .tag.sea {
  background: #2A99AC;
}
#rwd-content .projects li .texts .tag.sea { background: #2A99AC; }
#rwd-content .projects li .texts .tag.town { background: #5CA764; }
#rwd-content .projects li .texts .tag.mountain { background: #DA521E; }
#rwd-content .projects li .texts .tag.river { background: #68B7C5; }
#rwd-content .projects li .texts .tag.sky { background: #3B6096; }

#rwd-content .projects li .texts .tag::before {
  content: "";
  display: block;
  position: absolute;
}
#rwd-content .projects li .texts .tag.sea::before {
  width: calc(84px * 0.48);
  height: calc(66px * 0.48);
  background: url("/jp/design_technology/replay/shared_replay/img/deco_field_001.png") no-repeat 0 0 / contain;
  left: 16px;
  top: -1px;
}
#rwd-content .projects li .texts .tag.town::before {
  width: calc(68px * 0.46);
  height: calc(74px * 0.46);
  background: url("/jp/design_technology/replay/shared_replay/img/deco_field_002.png") no-repeat 0 0 / contain;
  left: 18px;
  top: -4px;
}
#rwd-content .projects li .texts .tag.mountain::before {
  width: calc(92px * 0.46);
  height: calc(67px * 0.46);
  background: url("/jp/design_technology/replay/shared_replay/img/deco_field_003.png") no-repeat 0 0 / contain;
  left: 8px;
  top: -3px;
}
#rwd-content .projects li .texts .tag.river::before {
  width: calc(56px * 0.41);
  height: calc(68px * 0.41);
  background: url("/jp/design_technology/replay/shared_replay/img/deco_field_004.png") no-repeat 0 0 / contain;
  left: 21px;
  top: 0px;
}
#rwd-content .projects li .texts .tag.sky::before {
  width: calc(76px * 0.46);
  height: calc(50px * 0.46);
  background: url("/jp/design_technology/replay/shared_replay/img/deco_field_005.png") no-repeat 0 0 / contain;
  left: 15px;
  top: 2px;
}

@media print, screen and (min-width: 768px){
  #rwd-content .projects li a.item:hover .pic img {
    transform: scale(1.05);
  }
  #rwd-content .projects li a.item:hover .texts {
    background: #F7D113;
  }
}

@media screen and (max-width: 767px) {
  #rwd-content .projects {
    width: calc(328 var(--spp));
    max-width: none;
    margin-top: 0;
    display: block;
  }
  #rwd-content .projects li {
    width: 100%;
  }
  #rwd-content .projects li + li {
    margin-top: 30px;
  }
  #rwd-content .projects li .pic {
    width: calc(306 / 328* 100%);
    border-width: 1px;
    border-right-width: 3px;
    border-bottom-width: 3px;
    border-radius: 10px;
  }
  #rwd-content .projects li .texts {
    margin-top: -22px;
    padding: 35px 10px 14px;
    border-radius: 8px;
    border-right-width: 3px;
    border-bottom-width: 3px;
  }
  #rwd-content .projects li .texts .title {
    font-size: 1.6rem;
  }
  #rwd-content .projects li .texts .title .q {
    width: 19px;
    height: 19px;
    margin-right: 6px;
    font-size: 10px;
    vertical-align: 3px;
  }
  #rwd-content .projects li .texts .tags {
    margin-top: 14px;
    gap: 6px;
  }
}
