@charset "UTF-8";

/* service */
.service-wrapper{
  overflow:hidden;
}
.p-service {
  padding-top: clamp(60px, 8.3333333333vw, 100px);
  padding-bottom: 72px;
}

.p-service__top {
  padding-top: clamp(60px, 8.3333333333vw, 100px);
  padding-bottom: clamp(72px, 9.1666666667vw, 110px);
}

.p-service__top-wrap {
  margin-top: clamp(48px, 5.859375vw, 60px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: reverse;
      -ms-flex-direction: column-reverse;
          flex-direction: column-reverse;
  gap: 40px;
  max-width: 1122px;
  margin-inline: auto;
}
@media screen and (min-width:1024px) {
  .p-service__top-wrap {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}

.p-service__top-title {
  padding-inline: clamp(32px, 5.8333333333vw, 70px);
  font-size: clamp(22px, 2.5390625vw, 26px);
  line-height: 1.4230769231;
  font-weight: 500;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
}
.p-service__top-title::before, .p-service__top-title::after {
  content: "";
  position: absolute;
  top: clamp(-26px, -2.1666666667vw, -18px);
  width: clamp(32px, 4.6666666667vw, 56px);
  aspect-ratio: 60/77;
  pointer-events: none;
}
.p-service__top-title::before {
  left: 0;
  background: url(../images/top-about-l.png) no-repeat center center/cover;
}
.p-service__top-title::after {
  right: 0;
  background: url(../images/top-about-r.png) no-repeat center center/cover;
}
.p-service__top-texts {
  margin-top: clamp(32px, 4.8828125vw, 50px);
  max-width: 562px;
}

.p-service__top-text {
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 2;
}
.p-service__top-text + .p-service__top-text {
  margin-top: clamp(24px, 3.90625vw, 30px);
}

.p-service__top-img {
  width: clamp(240px, 62.5vw, 480px);
  height: 100%;
  aspect-ratio: 480/433;
}

.p-solution {
  padding-block: clamp(60px, 9.765625vw, 100px);
  background: #f4f2f2;
}


.p-solution__items {
  margin-top: clamp(48px, 5.859375vw, 60px);
}
@media screen and (min-width:768px) {
  .p-solution__items .webgene-blog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-self: center;
    gap: 14px 10px;
  }
}
.p-solution__items .webgene-item + .webgene-item {
  margin-top: 20px;
}
@media screen and (min-width:768px) {
  .p-solution__items .webgene-item + .webgene-item {
    margin-top: 0;
  }
}

.p-solution__btn {
  margin-top: 40px;
  margin-inline: auto;
}

.p-feature {
  padding-block: clamp(60px, 9.765625vw, 100px);
  position: relative;
  overflow: hidden;
}

.p-feature__items {
  margin-top: clamp(48px, 5.859375vw, 60px);
  max-width: 950px;
  border-top: 1px solid rgba(154, 154, 154, 0.3);
  margin-right: 60px;
}
@media screen and (min-width:1200px) {
  .p-feature__items {
    margin-inline: auto;
  }
}

.p-feature__item {
  padding-block: 20px;
  border-bottom: 1px solid rgba(154, 154, 154, 0.3);
}
@media screen and (min-width:768px) {
  .p-feature__item {
    padding-block: 35px 40px;
  }
}

.p-feature__item-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 18px;
  color: #E64849;
}

.p-feature__item-en {
  font-family: "Prompt", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.7px;
  font-weight: 500;
}

.p-feature__item-num {
  font-family: "Libertinus Serif", serif;
  font-size: clamp(36px, 3.90625vw, 40px);
  line-height: 1.15;
}

.p-feature__item-title {
  margin-top: clamp(24px, 3.90625vw, 30px);
  font-size: clamp(22px, 2.5390625vw, 26px);
  line-height: 1.4230769231;
  font-weight: 500;
}

.p-feature__item-text {
  font-family: "Noto Sans JP", sans-serif;
  margin-top: clamp(24px, 3.90625vw, 30px);
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 1.8571428571;
  max-width: 856px;
}

.p-feature__bg-text {
  position: absolute;
  bottom: -8px;
  right: 0;
  font-family: "Libertinus Serif", serif;
  color: transparent;
  -webkit-text-stroke: 1px #E64849;
  font-size: clamp(60px, 15.5929721816vw, 213px);
  line-height: 1.1361502347;
  opacity: 0.2;
  -webkit-writing-mode: sideways-lr;
      -ms-writing-mode: sideways-lr;
          writing-mode: sideways-lr;
    white-space: nowrap;

}

.p-menu {
  padding-block: clamp(60px, 9.765625vw, 100px);
  background: #f4f2f2;
}

.p-menu__cards {
  margin-top: clamp(48px, 5.859375vw, 60px);
  display: grid;
  gap: 30px 20px;
  max-width: 1050px;
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-menu__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width:1024px) {
  .p-menu__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.p-menu__card {
  background: #ffffff;
  border-left: 2px solid #E64849;
  padding-inline: 22px;
  padding-block: clamp(24px, 3.75vw, 45px);
}

.p-menu__card-title {
  color: #E64849;
  font-size: clamp(16px, 2.2135416667vw, 17px);
  line-height: 1.4705882353;
  font-weight: 700;
}

.p-menu__card-text {
  margin-top: 22px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 2;
}

.p-faq {
  padding-top: clamp(80px, 10vw, 120px);
}

.p-faq__items {
  margin-top: clamp(48px, 7vw, 84px);
  max-width: 1050px;
  margin-inline: auto;
}

.p-faq__item {
  font-family: "Zen Maru Gothic", sans-serif;
  padding-block: 30px;
  padding-inline: 20px;
  background: #fafafa;
  border-radius: 5px;
}
.p-faq__item + .p-faq__item {
  margin-top: 18px;
}
@media screen and (min-width:768px) {
  .p-faq__item {
    padding-inline: 30px 40px;
  }
}

.p-faq__item-q {
  padding-left: 35px;
  padding-bottom: 20px;
  color: #333333;
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 1.7857142857;
  letter-spacing: 0.56px;
  font-weight: 500;
  position: relative;
}
.p-faq__item-q::before {
  content: "Q.";
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Raleway", serif;
  color: #e6484a;
  font-size: clamp(16px, 2.6041666667vw, 20px);
  line-height: 1.2;
  letter-spacing: 1;
  font-weight: 700;
}

.p-faq__item-a {
  padding-top: 20px;
  padding-left: 35px;
  color: #333333;
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 1.7857142857;
  letter-spacing: 0.56px;
  font-weight: 500;
  border-top: 1px solid #d4d4d4;
  position: relative;
}
.p-faq__item-a::before {
  content: "A.";
  position: absolute;
  top: 20px;
  left: 0;
  font-family: "Raleway", serif;
  color: #ef8182;
  font-size: clamp(16px, 2.6041666667vw, 20px);
  line-height: 1.2;
  letter-spacing: 1;
  font-weight: 700;
}

/* company */

.p-company {
  padding-top: clamp(60px, 8.3333333333vw, 100px);
  padding-bottom: clamp(80px, 9.5vw, 114px);
}

.p-company__top {
  padding-top: clamp(60px, 8.3333333333vw, 100px);
  max-width: 1122px;
  margin-inline: auto;
}

.p-company__table-wrap {
  margin-top: 42px;
  border-top: 1px solid rgba(154, 154, 154, 0.3);
}

.p-company__table {
  font-family: "Noto Sans JP", sans-serif;
}

.p-company__table-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
    border-bottom: 1px solid rgba(154, 154, 154, 0.3);

}

.p-company__table-title {
  padding-block: clamp(24px, 3.90625vw, 30px);
  color: #E64849;
  font-size: clamp(13px, 1.3671875vw, 14px);
  line-height: 1.4285714286;
  font-weight: 700;
}

.p-company__table-text {
  padding-block: clamp(24px, 3.90625vw, 30px);
  padding-left: clamp(16px, 3.90625vw, 40px);
  color: #464646;
  font-size: clamp(13px, 1.3671875vw, 14px);
  line-height: 1.4285714286;
  font-weight: 500;
}

.p-philo {
  margin-top: clamp(60px, 8.3333333333vw, 100px);
}

.p-philo__content {
  margin-top: 16px;
  max-width: 830px;
  margin-inline: auto;
}

.p-philo__main {
  margin-top: 40px;
  padding-inline: clamp(32px, 5.3333333333vw, 64px);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  position: relative;
}
.p-philo__main::before, .p-philo__main::after {
  content: "";
  position: absolute;
  top: clamp(-26px, -2.1666666667vw, -18px);
  width: clamp(32px, 4.6666666667vw, 56px);
  aspect-ratio: 60/77;
  pointer-events: none;
}
.p-philo__main::before {
  left: 0;
  background: url(../images/top-about-l.png) no-repeat center center/cover;
}
.p-philo__main::after {
  right: 0;
  background: url(../images/top-about-r.png) no-repeat center center/cover;
}

.p-philo__main-text {
  font-size: clamp(22px, 2.5390625vw, 26px);
  line-height: 1.4230769231;
  font-weight: 500;
}

.p-philo__texts {
  margin-top: 47px;
  font-family: "Noto Sans JP", sans-serif;
  color: #00132b;
  max-width: 830px;
  margin-inline: auto;
}

.p-philo__text {
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 2;
}
.p-philo__text + .p-philo__text {
  margin-top: clamp(24px, 3.90625vw, 30px);
}

.p-message {
  margin-top: clamp(60px, 7.6171875vw, 78px);
}

.p-message__wrap {
    margin-top: clamp(48px, 5.859375vw, 60px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: reverse;
      -ms-flex-direction: column-reverse;
          flex-direction: column-reverse;
  gap: 40px;
  max-width: 1122px;
  margin-inline: auto;
}
@media screen and (min-width:1024px) {
  .p-message__wrap {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}

.p-message__content {
  max-width: 562px;
  margin-inline: auto;
}
@media screen and (min-width:1024px) {
  .p-message__content {
    margin-inline: 0;
  }
}

.p-message__title {
  font-size: clamp(24px, 2.5390625vw, 26px);
  line-height: 1.4230769231;
  font-weight: 500;
}

.p-message__texts {
  margin-top: clamp(32px, 4.8828125vw, 50px);
}

.p-message__text {
  font-family: "Noto Sans JP", sans-serif;
  color: #00132b;
  font-size: 14px;
  line-height: 2;
}
.p-message__text + .p-message__text {
  margin-top: clamp(24px, 3.90625vw, 30px);
}

.p-message__name {
  margin-top: clamp(24px, 3.90625vw, 30px);
  padding-block: 8px;
  padding-left: 13px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  border-left: 1px solid #e6484a;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: clamp(20px, 2.9296875vw, 30px);
}

.p-message__name-l {
  color: #A7A7A7;
  font-size: 13px;
  line-height: 1.4615384615;
  font-weight: 500;
}

.p-message__name-r {
  color: #464646;
  font-size: 14px;
  line-height: 1.4285714286;
  font-weight: 500;
}

.p-message__img {
  width: clamp(240px, 62.5vw, 480px);
    height: 100%;
  aspect-ratio: 480/433;
}

/* works */

.p-works {
  padding-top: clamp(48px, 7.8125vw, 80px);
  padding-bottom: clamp(92px, 7.3206442167vw, 100px);
}

.p-works__categories {
  margin-bottom: clamp(40px, 10.4166666667vw, 80px);
}

.p-works__categories > .webgene-blog {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.p-works__category {
  display: inline-block;
  min-width: 140px;
  background: #F6F5F3;
  padding: 10px 30px;
  color: #E64849;
  text-align: center;
  font-size: 12px;
  line-height: 1.4285714286;
  letter-spacing: 0.7px;
  font-weight: 500;
  border-radius: 26px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (min-width:768px) {
  .p-works__category {
    min-width: 150px;
    padding: 15px 51px;
    font-size: 14px;
  }
}
@media (any-hover: hover) {
  .p-works__category:hover {
    background: #E64849;
    color: #ffffff;
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-works__items {
  margin-top: clamp(48px, 5vw, 60px);
}
@media screen and (min-width:768px) {
  .p-works__items .webgene-blog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 20px;
  }
}
.p-works__items .webgene-item + .webgene-item {
  margin-top: 32px;
}
@media screen and (min-width:768px) {
  .p-works__items .webgene-item + .webgene-item {
    margin-top: 0;
  }
}

.p-works__item {
  max-width: 400px;
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-works__item {
    margin-inline: 0;
    max-width: 340px;
  }
}
@media (any-hover: hover) {
  .p-works__item:hover {
    opacity: 1;
  }
  .p-works__item:hover .p-works__item-head img,
  .p-works__item:hover .p-works__item-head::after {
    scale: 1.1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-works__item-head {
  aspect-ratio: 340/240;
  height: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.p-works__item-head::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url("../images/ogp.jpg") center/cover no-repeat;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  z-index: -1;
}
@media screen and (min-width:768px) {
  .p-works__item-head {
    max-width: 340px;
  }
}

.p-works__item-body {
  margin-top: 13px;
}

.p-works__item-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.p-works__item-tag span {
  padding: 2px 5px;
  font-size: 12px;
  height: 1.4166666667;
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  text-align: center;
  border-radius: 30px;
  background: #ffffff;
  border: 0.5px solid #707070;
  border-radius: 3px;
}

.p-works__item-date {
  padding-left: 10px;
  font-size: 12px;
  line-height: 1.4166666667;
  border-left: 0.5px solid rgba(40, 40, 40, 0.3);
}

.p-works__item-title {
  margin-top: 10px;
  font-size: clamp(14px, 1.46484375vw, 15px);
  line-height: 1.4666666667;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.webgene-pagination {
  margin-top: clamp(40px, 8.1259150805vw, 111px);
  font-size: 14px;
  justify-self: center;
  grid-column: 1/-1;
}

.webgene-pagination a:hover {
  opacity: 0.7;
}

.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: #EAE7DC;
  color: #282828;
}

.webgene-pagination ul .number.selected a {
  background: #E6484A;
  color: #ffffff;
  border-radius: 50%;
}

li.next,
li.prev {
  position: relative;
}

li.next a,
li.prev a {
  height: 40px;
  width: 40px;
  padding: 2px;
  position: relative;
}

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;
    color: #919191;
  }
  li.next a {
    padding-right: 48px;
    color: #282828;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}

/* info */

.p-info__items {
  margin-top: clamp(40px, 7.8125vw, 60px);
  max-width: 900px;
  margin-inline: auto;
  border-top: 1px solid rgba(40, 40, 40, 0.15);
}

.p-news__item {
  padding-block: 25px;
  border-bottom: 1px solid rgba(40, 40, 40, 0.15);
}

.p-news__item-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
}

.p-news__item-date {
  padding-left: 10px;
  font-size: 12px;
  line-height: 1.4166666667;
  border-left: 0.5px solid rgba(40, 40, 40, 0.3);
}

.p-news__item-tag span {
  padding: 2px 5px;
  font-size: 12px;
  height: 1.4166666667;
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  text-align: center;
  border-radius: 30px;
  background: #ffffff;
  border: 0.5px solid #707070;
  border-radius: 3px;
}

.p-news__item-title {
  padding-right: 28px;
  margin-top: 11px;
  font-size: clamp(14px, 1.46484375vw, 15px);
  line-height: 1.4666666667;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  position: relative;
}
.p-news__item-title::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 10px;
  width: 8px;
  height: 5px;
  background: url(../images/icon-arrow-right-red.svg) no-repeat center center/contain;
}

/* detail */

.p-detail {
  padding-top: clamp(48px, 11.71875vw, 120px);
  padding-bottom: 64px;
}

.detail {
  padding-block: clamp(40px, 8.3333333333vw, 100px);
  padding-inline: 20px;
  color: #00132b;
  max-width: 961px;
  margin-inline: auto;
}

.post-ttl {
  margin-top: 58px;
  font-size: clamp(16px, 2.1484375vw, 22px);
  line-height: 1.5;
  letter-spacing: 1.32px;
  font-weight: 500;
  padding-bottom: 21px;
  border-bottom: 1.5px solid #d0d0d0;
  padding-left: 29px;
  position: relative;
}

.post-ttl::before {
  content: "";
  position: absolute;
  background: #E64849;
  width: 8px;
  height: 57%;
  top: 6px;
  left: 0;
}

.post-detail__content img,
.detail img {
  aspect-ratio: 594/356;
  margin: 40px auto 10px;
  margin-inline: auto;
  display: block;
  border-radius: 5px;
  width: auto;
  height: auto;
}

@media screen and (min-width: 768px) {
  .post-detail__content img,
  .detail img {
    margin: 65px auto;
  }
}
.post-detail__content img,
.detail img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
}

.webgene-item-main-image {
  margin-inline: auto;
}

.detail-text {
  padding-top: 60px;
  color: #00132b;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0px;
  line-height: 2.2142857143;
}
.detail-text p + p {
  padding-top: 30px;
}

.post-detail__content h4 {
  margin-top: 83px;
  font-size: 18px;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #E64849;
  margin-bottom: 40px;
}

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

.post-detail__content h3,
.post-detail__content h2 {
  margin-top: 53px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.06em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .post-detail__content h3,
  .post-detail__content h2 {
    gap: 17px;
  }
}
.post-detail__content h3::before,
.post-detail__content h2::before {
  content: "";
  width: 16px;
  height: 17px;
  border-radius: 3px;
  background: #E64849;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  -ms-flex-item-align: start;
      align-self: start;
  margin-top: 6px;
}

.detail__btn {
  margin-top: 79px;
  display: block;
  min-width: 140px;
  background: #E64849;
  border: 1px solid #E64849;
  padding: 8.5px 30px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4666666667;
  letter-spacing: 0.75px;
  font-weight: 600;
  color: #ffffff;
  border-radius: 42px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (min-width:768px) {
  .detail__btn {
    min-width: 183px;
    padding: 12.5px 52px;
    font-size: 15px;
  }
}
@media (any-hover: hover) {
  .detail__btn:hover {
    background: transparent;
    color: #E64849;
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.col-2 {
  min-width: 25%;
}
@media screen and (min-width:1024px) {
  .col-2 {
    min-width: unset;
  }
}
.col-2 img {
  max-width: 100%;
  height: auto;
}

.main-image-container {
  max-width: 594px;
  width: 96%;
  margin: 80px auto 0;
}

.main-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 594/365;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto;
}
.main-image-box img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  margin: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.thumbnail-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: static;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 17px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0 auto;
  padding: 40px 0 0;
}

.thumbnail-box {
  width: 25%;
  cursor: pointer;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.thumbnail-box:hover {
  opacity: 0.7;
}

.thumbnail-img {
  position: relative;
  aspect-ratio: 97/97;
  border-radius: 10px;
  overflow: hidden;
}
.thumbnail-img:empty {
  display: none;
}
.thumbnail-img img {
  position: absolute;
  width: auto;
  height: auto;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

@media screen and (min-width: 768px) {
  .thumbnail-container {
    padding: 66px 0 0;
  }
  .thumbnail-box {
    width: 10%;
  }
}

/* solu */

.p-solu {
  background: #FDF8F9;
  position: relative;
}
.p-solu::after {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FDF8F9;
  z-index: -1;
  pointer-events: none;
}

.p-solu__wrap .webgene-blog {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 20px;
}

.p-solu__items {
  margin-top: clamp(48px, 6.75vw, 81px);
}
@media screen and (min-width:768px) {
  .p-solu__items .webgene-blog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-self: center;
    gap: 14px 10px;
  }
}
.p-solu__items .webgene-item + .webgene-item {
  margin-top: 20px;
}
@media screen and (min-width:768px) {
  .p-solu__items .webgene-item + .webgene-item {
    margin-top: 0;
  }
}

.p-solu__item {
  padding-block: clamp(20px, 2.8333333333vw, 34px);
  padding-inline: clamp(16px, 2.9166666667vw, 35px);
  max-width: 470px;
  margin-inline: auto;
  background: #ffffff;
  position: relative;
}
@media screen and (min-width:768px) {
  .p-solu__item {
    margin-inline: 0;
  }
}
.p-solu__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #E64849;
  pointer-events: none;
  opacity: 0;
}
@media (any-hover: hover) {
  .p-solu__item:hover::after {
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-solu__item-title {
  padding-left: clamp(32px, 4.5vw, 54px);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.4444444444;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  position: relative;
}
.p-solu__item-title::before {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  left: 0;
  width: clamp(18px, 2.3333333333vw, 28px);
  height: 25px;
  background: url(../images/icon-comment-red.svg) no-repeat top center/contain;
}

/* contact */

.p-contact__body {
  padding-top: clamp(80px, 8.3333333333vw, 100px);
  padding-bottom: clamp(60px, 5.8333333333vw, 70px);
}

.contact {
  padding-top: clamp(60px, 7.6666666667vw, 92px);
  padding-bottom: clamp(80px, 9.5vw, 114px);
  padding-inline: 20px;
  color: #454545;
  max-width: 1060px;
  margin-inline: auto;
  background: #f7f7f7;
  -webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
          box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
  border-radius: 10px;
}
@media screen and (min-width:768px) {
  .contact {
    padding-inline: clamp(40px, 6.75vw, 81px);
  }
}

.contact__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 40px;
}

.contact__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 17px;
}
.contact__item + .contact__item {
  margin-top: 37px;
}

.col-md-4,
.col-md-8 {
  padding: 0;
  max-width: 100%;
  -webkit-box-flex: unset;
      -ms-flex: unset;
          flex: unset;
}

.row {
  margin: 0;
}

.contact__item label {
  font-size: 14px;
  line-height: 1.3571428571;
}

.contact__item > .formTh > .requiredText {
  background: #d80e0e;
  width: 32px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  padding: 3px 2px;
  margin-left: 10px;
}

.contact__item > .formTh > .anyText {
  background: #5c5c5c;
  width: 32px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  padding: 3px 2px;
  margin-left: 10px;
}

.contact__item > .formTd > textarea {
  height: 197px;
}

:focus-visible {
  outline: #284038 auto 1px;
}

.privacy-policy {
  margin-top: 50px;
  height: 155px;
  padding: 30px 20px;
  border-radius: 3px;
  border: 1px solid #d3d3d3;
  background: #ffffff;
  overflow-y: scroll;
  width: 100%;
  margin-inline: auto;
}

@media screen and (min-width: 768px) {
  .privacy-policy {
    padding: 8px 30px;
  }
}
.privacy-policy__text.privacy-policy__text--first {
  margin: 0;
}

.privacy-policy__item {
  max-width: 828px;
}

.privacy-policy__item + .privacy-policy__item {
  margin-top: 52px;
}

.privacy-policy__title {
  font-size: 18px;
  letter-spacing: 0.006em;
  color: #464646;
  padding: 0 0 15px 0;
  border-bottom: 1.5px solid #d0d0d0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 28px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.privacy-policy__title::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: #272727;
}

.privacy-policy__text {
  margin-top: 20px;
  font-size: 14px;
  line-height: 2.2;
  color: #464646;
}

.privacy-policy__text-bottom {
  margin-top: -16px;
  font-size: 14px;
  line-height: 2.0571428571;
}

.privacy-policy__text-link {
  text-decoration: underline;
}

.privacy-policy__text-flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.privacy-policy__text-link:hover {
  opacity: 0.6;
  text-decoration: underline;
}

.privacy-policy__check {
  margin-top: 20px;
}

.formBtn {
  margin: 60px auto 0;
  padding: 13px 0;
  border: 1px solid #f11821;
  width: 183px;
  background: #f11821;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3125;
  letter-spacing: 0.75px;
  font-weight: 600;
  text-align: center;
}

.formBtn:hover {
  background: transparent;
  color: #f11821;
}

.privChek {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
}

.privacyLabel {
  margin-bottom: 1px;
  font-size: 14px;
}

.privacyformError {
  margin-top: -36.5px !important;
}

.contact__item > .formTd > input,
.contact__item > .formTd > textarea,
.contact__item > .formTd > select {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font: inherit;
  color: inherit;
  vertical-align: top;
  width: 100%;
  border-radius: 3px;
  border: 1px solid #d3d3d3;
  background: #ffffff;
  padding: 15px 14px 15px;
}

.contact__item > .formTd > select {
  width: min(320px, 100%);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("../images/arrow-down.svg");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 20px;
  background-size: 12px;
}

.contact__item > .formTd > input::-webkit-input-placeholder, .contact__item > .formTd > textarea::-webkit-input-placeholder, .contact__item > .formTd > div > select::-webkit-input-placeholder {
  color: #5d5d5d;
}

.contact__item > .formTd > input::-moz-placeholder, .contact__item > .formTd > textarea::-moz-placeholder, .contact__item > .formTd > div > select::-moz-placeholder {
  color: #5d5d5d;
}

.contact__item > .formTd > input:-ms-input-placeholder, .contact__item > .formTd > textarea:-ms-input-placeholder, .contact__item > .formTd > div > select:-ms-input-placeholder {
  color: #5d5d5d;
}

.contact__item > .formTd > input::-ms-input-placeholder, .contact__item > .formTd > textarea::-ms-input-placeholder, .contact__item > .formTd > div > select::-ms-input-placeholder {
  color: #5d5d5d;
}

.contact__item > .formTd > input::placeholder,
.contact__item > .formTd > textarea::placeholder,
.contact__item > .formTd > div > select::placeholder {
  color: #5d5d5d;
}

input[type=radio] {
  width: 1px;
  height: 1px;
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

.d-inline:nth-of-type(n + 2) {
  padding-left: 20px;
}

/* ラベルのデザイン */
.checkbox-label {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  padding-left: 30px; /* ラジオボタン用のスペースを確保 */
}

/* カスタムラジオボタンの作成 */
.checkbox-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #282828;
  background-color: #fff;
  -webkit-transition: background-color 0.2s, border-color 0.2s;
  transition: background-color 0.2s, border-color 0.2s;
}

/* 選択時のデザイン */
input[type=radio]:checked + .checkbox-label::before {
  background-color: #E64849;
  border-color: #E64849;
  -webkit-box-shadow: inset 0 0 0 4px #fff;
          box-shadow: inset 0 0 0 4px #fff;
}

.p-contact-after__body {
  padding-top: 50px;
  padding-bottom: 50px;
}
@media screen and (min-width:768px) {
  .p-contact-after__body {
    padding-top: 150px;
    padding-bottom: 150px;
  }
}

.p-contact-after__text {
  color: #282828;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 1px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-contact-after__text {
    font-size: 18px;
  }
}