
.p-category-group__tag .webgene-blog {
  margin-block: 20px 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 10px;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
}
@media screen and (max-width: 768px) {
  .p-category-group__tag .webgene-blog {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}
@media screen and (max-width: 768px) and (max-width: 375px) {
  .p-category-group__tag .webgene-blog {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}
.p-category-group__tag .p-category-group__tag-item {
  width: 160px;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
.p-category-group__tag .p-works__cat {
  position: relative;
  display: block;
  overflow: hidden;
  width: 160px;
  padding-block: 15px 15px;
  border: 1px solid #b82634;
  border-radius: 26px;
  background: #fff;;
  text-align: center;
  -webkit-transition: color 0.25s ease;
  transition: color 0.25s ease;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.p-category-group__tag .p-works__cat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 26px;
  background: #b82634;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: left bottom;
          transform-origin: left bottom;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.p-category-group__tag .p-works__cat span {
  position: relative;
  z-index: 1;
}
@media (any-hover: hover) {
  .p-category-group__tag .p-works__cat:hover::before {
    -webkit-transform: scaleX(1);
            transform: scaleX(1);
  }
  .p-category-group__tag .p-works__cat:hover {
    color: #fff;
  }
}
.p-category-group__tag .is-selected {
  background: #b82634;
  color: #fff;
}
.p-category-group__tag .is-selected::before {
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
}

.webgene-pagination {
  margin-top: 0px;
  font-size: 14px;
  justify-self: center;
  grid-column: 1/-1;
  margin-inline: auto;
}
.webgene-pagination ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  list-style: none;
  gap: 10px;
  -webkit-padding-start: 0;
          padding-inline-start: 0;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.webgene-pagination ul .number a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  line-height: 2.2;
  border-radius: 50%;
  background-color: #eff0ef;
  color: #4b4b4b;
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease, -webkit-transform 0.25s ease;
}
.webgene-pagination ul .number a:hover {
  opacity: 0.7;
  -webkit-transform: scale(1.15);
          transform: scale(1.15);
}
.webgene-pagination ul .number.selected a {
  background: #b82634;
  color: #fff;
  border-radius: 50%;
}
.webgene-pagination ul li.dots {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #4b4b4b;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

li.next,
li.prev {
  position: relative;
  display: inline-block;
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease, -webkit-transform 0.25s ease;
}
li.next:hover,
li.prev:hover {
  -webkit-transform: scale(1.15);
          transform: scale(1.15);
  opacity: 0.7;
}
li.next a,
li.prev a {
  height: 40px;
  width: 40px;
  padding: 2px;
  position: relative;
  display: inline-block;
}

li.prev:after,
li.next:after {
  pointer-events: none;
  content: "";
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 40px;
  height: 40px;
}

li.prev:after {
  background-image: url("../images/prev.png");
  left: 0;
}

li.next:after {
  background-image: url("../images/next.png");
  right: 0;
}

@media screen and (min-width: 768px) {
  li.next {
    margin-left: 30px;
  }
  li.prev {
    margin-right: 30px;
  }
  li.next a,
  li.prev a {
    margin-top: 3px;
    width: auto;
    padding-block: 10px;
    z-index: 10;
    line-height: 1;
  }
  li.prev a {
    padding-left: 48px;
  }
  li.next a {
    padding-right: 48px;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}
.info__item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 900px;
  margin-top: 10px;
  padding-block: 26px 20px;
  padding-inline: 27px 60px;
  background-color: #f8f8f8;
  text-align: left;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
  transition: transform 0.25s ease, -webkit-transform 0.25s ease;
}
@media screen and (max-width: 1366px) {
  .info__item {
    width: 65.8857979502vw;
    padding-block: 1.9033674963vw 1.4641288433vw;
    padding-inline: 1.9765739385vw 4.39238653vw;
  }
}
@media screen and (max-width: 1199px) {
  .info__item {
    padding-left: 24px;
    padding-right: 60px;
  }
}
@media screen and (max-width: 1170px) {
  .info__item {
    margin-inline: auto;
  }
}
@media screen and (max-width: 768px) {
  .info__item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    width: 100%;
    padding-left: 16px;
    padding-right: 48px;
    padding-block: 20px 21px;
    margin-top: 8px;
    margin-inline: 0;
  }
}
.info__item:hover {
  -webkit-transform: scale(1.03);
          transform: scale(1.03);
}
.info__item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 26px;
  height: 26px;
  background-image: url("../images/icon_topworks-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  translate: 0 -50%;
}
@media screen and (max-width: 1199px) {
  .info__item::after {
    right: 24px;
  }
}
@media screen and (max-width: 768px) {
  .info__item::after {
    right: 16px;
    width: 22px;
    height: 22px;
  }
}

.info__date {
  padding-left: 30px;
}

.info__date-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0px;
}

.info__category {
  padding-right: 17px;
  border-right: 1px solid rgba(23, 52, 108, 0.3);
}
.info__category p {
  padding-block: 4px;
  padding-inline: 7px 7px;
  border-radius: 3px;
  background: #f2f4f3;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .info__category p {
    margin-left: 0;
  }
}

.info__title {
  margin-top: 10px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media screen and (min-width: 1200px) {
  .info__title {
    padding-top: 0;
  }
}
@media screen and (max-width: 768px) {
  .info__title {
    margin-top: 10px;
    padding-left: 0;
  }
}

/* =========================
   記事詳細
========================= */
.p-works-detail {
  text-align: left;
}

.detail {
  padding-block: 83px 50px;
  padding-inline: 70px;
  width: 1060px;
  margin-inline: auto;
  border-radius: 10px;
}
@media screen and (max-width: 1080px) {
  .detail {
    width: min(90.6666666667vw, 921px);
    padding-block: min(8.7037037037vw, 94px) min(9.2592592593vw, 100px);
    padding-inline: min(6.4814814815vw, 70px);
  }
}

.detail-catBtn {
  margin-left: 0px;
  margin-left: 9px;
  display: inline-block;
  padding-block: 4px;
  padding-inline: 4px;
  background: #f8eff0;
  border-radius: 5px;
  text-align: center;
}

.detail-day {
  padding-right: 9px;
  border-right: 1px solid rgba(23, 52, 108, 0.3);
}

.post-ttl {
  margin-top: 50px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #d0d0d0;
  padding-left: 29px;
  position: relative;
}
.post-ttl::before {
  content: "";
  position: absolute;
  background: #b82634;
  width: 8px;
  height: 57%;
  top: 6px;
  left: -3px;
}

.post-detail__content img,
.detail img {
  margin: 40px auto 10px;
  max-width: 550px !important;
  margin-inline: auto;
  display: block;
  aspect-ratio: 594/356;
  border-radius: 10px;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .post-detail__content img,
  .detail img {
    margin: 71px auto 93px;
    width: 43.9238653001vw;
    max-width: 600px !important;
  }
}
.post-detail__content img,
.detail img {
  -o-object-fit: cover;
     object-fit: cover;
}

.detail-text {
  padding-block: 40px 60px;
}
.detail-text p + p {
  padding-top: 30px;
}

.post-detail__content > h3:first-child {
  margin-top: 0;
}

.post-detail__content h3 {
  margin-top: 53px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 45px;
}
@media screen and (max-width: 768px) {
  .post-detail__content h3 {
    gap: 17px;
  }
}
.post-detail__content h3::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: #b82634;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.post-detail__content h4 {
  margin-top: 53px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 35px;
}
.post-detail__content h4::before {
  position: relative;
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b82634;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
@media screen and (max-width: 768px) {
  .post-detail__content h4 {
    gap: 17px;
  }
}

.post-detail__content h5 {
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #d0d0d0;
}
.post-detail__content h5::before {
  position: relative;
  top: -2px;
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.post-detail__content h6 {
  margin-top: 83px;
  padding-bottom: 12px;
  margin-bottom: 10px;
}
.post-detail__content h6::before {
  position: relative;
  top: -2px;
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.detail__btn {
  margin-inline: auto;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.detail__btn .button {
  padding-block: 12px 14px;
  padding-inline: 52px;
  border-radius: 28px;
  background: #b82634;
}
@media (any-hover: hover) {
  .detail__btn .button:hover {
    background: #ffffff;
    border: 1px solid #b82634;
  }
}

.row > .formTd > input::-webkit-input-placeholder, .row > .formTd > textarea::-webkit-input-placeholder {
  color: #555;
  font-size: 14px;
  letter-spacing: -0.2px;
  line-height: 1;
}

.row > .formTd > input::-moz-placeholder, .row > .formTd > textarea::-moz-placeholder {
  color: #555;
  font-size: 14px;
  letter-spacing: -0.2px;
  line-height: 1;
}

.row > .formTd > input:-ms-input-placeholder, .row > .formTd > textarea:-ms-input-placeholder {
  color: #555;
  font-size: 14px;
  letter-spacing: -0.2px;
  line-height: 1;
}

.row > .formTd > input::-ms-input-placeholder, .row > .formTd > textarea::-ms-input-placeholder {
  color: #555;
  font-size: 14px;
  letter-spacing: -0.2px;
  line-height: 1;
}

.row > .formTd > input::placeholder,
.row > .formTd > textarea::placeholder {
  color: #555;
  font-size: 14px;
  letter-spacing: -0.2px;
  line-height: 1;
}
@media screen and (max-width: 768px) {
  .row > .formTd > input::-webkit-input-placeholder, .row > .formTd > textarea::-webkit-input-placeholder {
    font-size: 12px;
  }
  .row > .formTd > input::-moz-placeholder, .row > .formTd > textarea::-moz-placeholder {
    font-size: 12px;
  }
  .row > .formTd > input:-ms-input-placeholder, .row > .formTd > textarea:-ms-input-placeholder {
    font-size: 12px;
  }
  .row > .formTd > input::-ms-input-placeholder, .row > .formTd > textarea::-ms-input-placeholder {
    font-size: 12px;
  }
  .row > .formTd > input::placeholder,
  .row > .formTd > textarea::placeholder {
    font-size: 12px;
  }
}

.l-works .p-page__content {
  margin-top: 12px;
}
.l-works .p-works-group-cards {
  padding-block: 7px 77px;
}
@media screen and (max-width: 768px) {
  .l-works .p-works-group-cards {
    padding-bottom: 5.6368960469vw;
  }
}
.l-works .p-works-group-cards .webgene-blog {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 45px 45px;
  text-align: left;
}
@media screen and (max-width: 1366px) {
  .l-works .p-works-group-cards .webgene-blog {
    gap: calc(45 / 1366 * 100vw) calc(45 / 1366 * 100vw);
  }
}
@media screen and (max-width: 1080px) {
  .l-works .p-works-group-cards .webgene-blog {
    grid-template-columns: 1fr 1fr;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 30px;
  }
}
@media screen and (max-width: 650px) {
  .l-works .p-works-group-cards .webgene-blog {
    grid-template-columns: 1fr;
    gap: calc(60 / 650 * 100vw);
  }
}
.l-works .p-works-group-cards .webgene-blog .p-works__cards {
  display: block;
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
  transition: transform 0.25s ease, -webkit-transform 0.25s ease;
  -webkit-transform-origin: center;
          transform-origin: center;
}
.l-works .p-works-group-cards .webgene-blog .p-works__item-head img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.25s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.l-works .p-works-group-cards .webgene-blog .p-works__cards:hover .p-works__item-head img {
  transform: scale(1.08);
}
.l-works .p-works-group-cards .webgene-blog .p-works__item-head {
  width: 370px;
  aspect-ratio: 370/240;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f5f5;
}
@media screen and (max-width: 1366px) {
  .l-works .p-works-group-cards .webgene-blog .p-works__item-head {
    width: calc(370 / 1366 * 100vw);
  }
}
@media screen and (max-width: 1080px) {
  .l-works .p-works-group-cards .webgene-blog .p-works__item-head {
    width: 41.2037037037vw;
  }
}
@media screen and (max-width: 650px) {
  .l-works .p-works-group-cards .webgene-blog .p-works__item-head {
    width: 100%;
  }
}

.l-works .p-works-group-cards .webgene-blog .p-works__item-head img.is-fallback {
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.l-works .p-works-group-cards .webgene-blog .p-works__item-info {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.l-works .p-works-group-cards .webgene-blog .p-works__item-info .p-works__item-day {
  padding-right: 9px;
  border-right: 1px solid rgba(23, 52, 108, 0.3);
}
.l-works .p-works-group-cards .webgene-blog .p-works__item-info .p-works__item-tag {
  margin-left: 9px;
  display: inline-block;
  padding-block: 4px;
  padding-inline: 4px;
  background: #f8eff0;
  border-radius: 5px;
  text-align: center;
}
.l-works .p-works-group-cards .webgene-blog .p-works__item-body {
  margin-top: 18px;
}
.l-works .p-works-group-cards .webgene-blog .p-works__item-title {
  margin-top: 13px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
