@charset "UTF-8";


/* service */
.p-service {
  padding-top: clamp(20px, 6.25vw, 48px);
  padding-bottom: clamp(76px, 14.6484375vw, 150px);
}

.p-service__top-main {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(28px, 3.3203125vw, 34px);
  line-height: 1.5588235294;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.p-service__top-texts {
  margin-top: clamp(24px, 3.125vw, 32px);
}

.p-service__top-text {
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 2.2857142857;
  font-weight: 500;
}
.p-service__top-text + .p-service__top-text {
  margin-top: clamp(24px, 3.125vw, 32px);
}

.p-service__menu-wrap {
  margin-top: clamp(48px, 5.859375vw, 60px);
  padding-bottom: clamp(48px, 7.8125vw, 80px);
  border-bottom: 1px solid #9a9a9a;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3.90625vw, 30px);
  max-width: 600px;
  margin-inline: auto;
}
@media screen and (min-width:1024px) {
  .p-service__menu-wrap {
        max-width: none;
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-service__menu {
  max-width: 300px;
  padding-bottom: 30px;
  background: #ffffff;
  border-radius: 5px;
  position: relative;
}
@media screen and (min-width:1024px) {
  .p-service__menu {
    max-width: 262px;
  }
}
.p-service__menu::after {
  content: "";
  position: absolute;
  bottom: 11px;
  left: 50%;
  translate: -50%;
  width: 16px;
  height: 8px;
  background: url(../images/icon-service-menu.svg) no-repeat center center/cover;
}

.p-service__menu-img {
    aspect-ratio: 1/1;
    position: relative;
  border-radius: 5px 5px 0 0;
}
.p-service__menu-img img {
  border-radius: 5px 5px 0 0;
}

.p-service__menu-title {
  position: absolute;
  left: 7px;
  bottom: 10px;
  padding: 0 14px;
  color: #CAA206;
  font-size: clamp(13px, 1.1713030747vw, 16px);
  line-height: 2;
  font-weight: 500;
  background: #022247;
  border-radius: 5px;
  z-index: 1;
}


.p-service__content {
  margin-top: clamp(60px, 9.1666666667vw, 110px);
  position: relative;
}
.p-service__content .l-inner {
  z-index: 1;
}

@media screen and (min-width:1024px) {
  .p-service__content:nth-child(2n-1) .p-service__content-img {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
  }
}

.p-service__content-wrap {
  margin-top: clamp(48px, 5.859375vw, 60px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5.8333333333vw, 70px);
}
@media screen and (min-width:1024px) {
  .p-service__content-wrap {
    grid-template-columns: clamp(200px, 38.140556369vw, 521px) clamp(260px, 40.1171303075vw, 548px);
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}

.p-service__content-body {
  max-width: 548px;
}

.p-service__content-title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(20px, 2.3333333333vw, 28px);
  line-height: 1.7142857143;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.p-service__content-text {
  margin-top: clamp(24px, 3.80859375vw, 39px);
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 2.2857142857;
  font-weight: 500;
  max-width: 548px;
}

.p-service__feature {
  margin-top: clamp(32px, 4.4921875vw, 46px);
  border-top: 1px solid #b1b1b1;
  padding-top: clamp(40px, 5.17578125vw, 53px);
}

.p-service__feature-title {
  font-size: clamp(16px, 1.953125vw, 20px);
  font-weight: 700;
}

.p-service__feature-lists {
  padding-top: 18px;
}

.p-service__feature-list {
  padding-block: clamp(16px, 2.734375vw, 21px);
  padding-left: clamp(28px, 5.3385416667vw, 41px);
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 2.2857142857;
  font-weight: 500;
  position: relative;
}
.p-service__feature-list::before {
  content: "";
  position: absolute;
  top: clamp(18px, 2.734375vw, 21px);
  left: 0;
  width: clamp(22px, 3.90625vw, 30px);
  aspect-ratio: 1/1;
  background: url(../images/icon-service-check.svg) no-repeat center center/contain;
}
.p-service__feature-list + .p-service__feature-list::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: url(../images/list-line.svg) repeat center center/cover;
}

.p-service__content-img {
  aspect-ratio: 521/578;
  max-width: 521px;
  -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
          order: -1;
  border-radius: 5px;
}
.p-service__content-img img {
  border-radius: 5px;
}

.p-service__bg-text {
  margin-top: clamp(-135px, -11.25vw, -72px);
  width: 98vw;
  overflow: hidden;
  position: relative;
  left: 50%;
  translate: -50%;
}
.p-service__bg-text .bg-text__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 48px;
  width: 100%;
}
.p-service__bg-text .bg-text {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(60px, 16.1054172767vw, 220px);
  color: #caa206;
  font-weight: 500;
  opacity: 0.1;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-animation: infinity-scroll-left 50s infinite linear 0.5s both;
          animation: infinity-scroll-left 50s infinite linear 0.5s both;
}
@-webkit-keyframes infinity-scroll-left {
  from {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
  }
  to {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
}
@keyframes infinity-scroll-left {
  from {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
  }
  to {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
}



/* company */

.p-company {
  padding-top: 30px;
  padding-bottom: clamp(96px, 14.6484375vw, 150px);
}

.p-company__top-wrap {
    margin-top: clamp(48px, 7.3333333333vw, 88px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media screen and (min-width:1024px) {
  .p-company__top-wrap {
    grid-template-columns: clamp(300px, 41.654465593vw, 569px) clamp(200px, 36.2371888726vw, 495px);
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }
}

.p-company__table {
  width: 100%;
  max-width: 495px;
}

.p-company__table-row {
  padding-block: 19px 23px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
}
.p-company__table-row:nth-of-type(n + 2) {
  border-top: 1px solid #9a9a9a;
}

.p-company__table-title {
  font-size: clamp(13px, 1.3671875vw, 14px);
  font-weight: 700;
}

.p-company__table-text {
  font-size: clamp(13px, 1.3671875vw, 14px);
  font-weight: 500;
}

.p-company__top-imgs {
  display: grid;
  grid-template-columns: clamp(100px, 27.34375vw, 210px) clamp(150px, 40.4947916667vw, 311px);
  gap: clamp(20px, 3.513909224vw, 48px);
  width: 100%;
  max-width: 569px;
}
@media screen and (min-width:1024px) {
  .p-company__top-imgs {
    grid-template-columns: clamp(100px, 15.3733528551vw, 210px) clamp(150px, 22.7672035139vw, 311px);
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
  }
}
.p-company__top-imgs .img-right {
  max-width: 311px;
  aspect-ratio: 311/354;
  margin-bottom: clamp(48px, 8.345534407vw, 114px);
}
.p-company__top-imgs .img-left {
  max-width: 210px;
  aspect-ratio: 210/287;
  margin-top: clamp(60px, 13.2503660322vw, 181px);
}

.p-access {
  margin-top: clamp(80px, 11.71875vw, 120px);
}

.p-map {
  margin-top: 39px;
}
.p-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1366/470;
  border: none;
  min-height: 300px;
  max-width: 1366px;
  margin-inline: auto;
}

.p-message {
  margin-top: clamp(80px, 11.71875vw, 120px);
}

.p-message__img-main {
  margin-top: clamp(48px, 7.8125vw, 80px);
  width: 100%;
  aspect-ratio: 1166/406;
  border-radius: 5px;
}
.p-message__img-main img {
  border-radius: 5px;
}

.p-message__wrap {
  margin-top: clamp(48px, 8.30078125vw, 85px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media screen and (min-width:768px) {
  .p-message__wrap {
    grid-template-columns: clamp(120px, 27.6720351391vw, 378px) 1fr;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: end;
    gap: 32px;
  }
}


.p-message__content {
  margin-left: auto;
  max-width: 646px;
}

.p-message__title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(26px, 2.8333333333vw, 34px);
  line-height: 1.5588235294;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.p-message__texts {
  margin-top: clamp(48px, 5.859375vw, 60px);
}

.p-message__text {
  font-size: clamp(13px, 1.3671875vw, 14px);
  line-height: 2.2857142857;
  font-weight: 500;
}
.p-message__text + .p-message__text {
  margin-top: clamp(24px, 3.125vw, 32px);
}

.p-message__name {
  margin-top: clamp(24px, 3.80859375vw, 39px);
  padding-left: 18px;
  border-left: 1px solid #022247;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
}
.p-message__name .name-top {
  font-size: 14px;
  font-weight: 500;
}
.p-message__name .name-bottom {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.p-message__img {
  max-width: 50%;
  -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
          order: -1;
  aspect-ratio: 378/569;
  border-radius: 5px;
}
@media screen and (min-width:768px) {
  .p-message__img {
    max-width: 378px;
  }
}
.p-message__img img {
  border-radius: 5px;
}



/* blog */

.p-news {
  padding-top: 20px;
  padding-bottom: clamp(92px, 10.980966325vw, 150px);
}

.p-news__categories {
  margin-bottom: clamp(40px, 9.1145833333vw, 70px);
  max-width: 1142px;
  margin-inline: auto;
}

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

.p-news__category {
  display: inline-block;
  min-width: 140px;
  background: #ffffff;
  padding: 10px 30px;
  font-family: "Noto Sans JP", sans-serif;
  color: #022247;
  border: 1px solid #022247;
  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-news__category {
    min-width: 150px;
    padding: 15px 43px;
    font-size: 14px;
  }
}
@media (any-hover: hover) {
  .p-news__category:hover {
    background: #022247;
    color: #ffffff;
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-news__items {
  max-width: 1142px;
  margin-inline: auto;
}
.p-news__items .webgene-item + .webgene-item {
  margin-top: 10px;
}

.p-blog__item {
  padding-block: clamp(20px, 3.2552083333vw, 25px);
  padding-inline: clamp(20px, 3.3333333333vw, 40px);
  background: #ffffff;
  border-radius: 5px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-right: 36px;
  position: relative;
}
.p-blog__item::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: clamp(20px, 3.3333333333vw, 40px);
  width: 22px;
  aspect-ratio: 1/1;
  background: url(../images/icon-right-box.svg) no-repeat center center/contain;
}
@media screen and (min-width:1024px) {
  .p-blog__item {
    grid-template-columns: auto 1fr;
    gap: 29px;
  }
}

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

.p-blog__item-date {
  font-family: "Montserrat", sans-serif;
  color: #43423f;
  font-size: 12px;
}

.p-blog__item-tag span {
  padding: 3px 5px;
  color: #ffffff;
  font-size: 12px;
  line-height: 0.8333333333;
  letter-spacing: 0.03em;
  font-weight: 500;
  background: #CAA206;
  border-radius: 3px;
  text-align: center;
}

.p-blog__item-title {
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 2.1428571429;
  letter-spacing: 0.03em;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.webgene-pagination {
  margin-top: clamp(40px, 9.765625vw, 100px);
  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: #ffffff;
  color: #4b4b4b;
}

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

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

li.next a,
li.prev a {
  display: block;
  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: #404040;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}


/* products */

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

.p-product__item {
  max-width: calc(100% - 60px);
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-product__item {
    max-width: none;
    margin-inline: 0;
  }
}
@media screen and (min-width:1024px) {
  .p-product__item {
    max-width: 354px;
  }
}
@media (any-hover: hover) {
  .p-product__item:hover {
    opacity: 1;
  }
  .p-product__item:hover .p-product__item-head img,
  .p-product__item:hover .p-product__item-head::after {
    scale: 1.1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-product__item-head {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
    z-index: 1;

}
.p-product__item-head img {
  border-radius: 10px;
}
.p-product__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;
}

.p-product__item-title {
  margin-top: 15px;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(14px, 1.5625vw, 16px);
  line-height: 2;
  font-weight: 500;
}

.p-product__item-price {
  font-size: clamp(14px, 1.5625vw, 16px);
  line-height: 2;
  font-weight: 500;
}


/* works */

@media screen and (min-width:768px) {
  .p-works__items .webgene-blog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 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: 500px;
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-works__item {
    margin-inline: 0;
  }
}
@media screen and (min-width:1024px) {
  .p-works__item {
    max-width: 354px;
  }
}
@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: 354/250;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
@media screen and (min-width:768px) {
  .p-works__item-head {
    max-width: 354px;
  }
}
.p-works__item-head img {
  border-radius: 10px;
}
.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;
}

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

.p-works__item-date {
  font-size: 13px;
}

.p-works__item-tag span {
  padding: 2px 3px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
  background: #787878;
  text-align: center;
}

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

.p-works__item-text {
  margin-top: 8px;
  margin-left: auto;
  padding-right: 19px;
  padding-bottom: 3px;
  font-size: clamp(13px, 1.3671875vw, 14px);
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
}
.p-works__item-text::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  width: 7px;
  height: 6px;
  background: url(../images/icon-right-yellow.svg) no-repeat center center/contain;
}

@media screen and (min-width:768px) {
  .p-works__items .webgene-blog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 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: 500px;
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-works__item {
    margin-inline: 0;
  }
}
@media screen and (min-width:1024px) {
  .p-works__item {
    max-width: 354px;
  }
}
@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: 354/250;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
@media screen and (min-width:768px) {
  .p-works__item-head {
    max-width: 354px;
  }
}
.p-works__item-head img {
  border-radius: 10px;
}
.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;
}

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

.p-works__item-date {
  font-family: "Montserrat", sans-serif;
  color: #43423f;
  font-size: 12px;
}

.p-works__item-tag span {
  padding: 3px 5px;
  color: #ffffff;
  font-size: 12px;
  line-height: 0.8333333333;
  letter-spacing: 0.03em;
  font-weight: 500;
  background: #CAA206;
  border-radius: 3px;
  text-align: center;
}

.p-works__item-title {
  margin-top: 10px;
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 2.1428571429;
  letter-spacing: 0.03em;
  font-weight: 500;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.p-works__item-text {
  margin-top: 8px;
  margin-left: auto;
  padding-right: 19px;
  padding-bottom: 4px;
  font-size: clamp(13px, 1.3671875vw, 14px);
  border-bottom: 1px solid #b5b5b5;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
}
.p-works__item-text::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  width: 7px;
  height: 6px;
  background: url(../images/icon-right-blue.svg) no-repeat center center/contain;
}


/* detail */

.p-detail {
  padding-top: 34px;
  padding-bottom: clamp(80px, 14.1666666667vw, 170px);
}

.detail {
  max-width: 924px;
  margin-inline: auto;
}
.detail .post-detail__content p {
  font-weight: 500;
}

.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: #CAA206;
  width: 8px;
  height: 57%;
  top: 6px;
  left: 0;
}

.post-detail__content img,
.detail img {
  margin: 40px auto 10px;
  margin-inline: auto;
  display: block;
  border-radius: 5px;
  width: auto;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

@media screen and (min-width: 768px) {
  .post-detail__content img,
  .detail img {
    margin: 65px auto;
  }
}
.webgene-item-main-image {
  margin-inline: auto;
}

.detail-text {
  padding-top: 46px;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0px;
  line-height: 1.8571428571;
}
.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 #CAA206;
  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: #CAA206;
  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: 51px;
  display: block;
  min-width: 140px;
  background: #022247;
  border: 1px solid #022247;
  padding: 8.5px 30px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  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: #022247;
    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;
  border-radius: 5px;
}

/* ===== アニメーション部分 ===== */
.main-image-box {
  position: relative;
}

.main-image-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  opacity: 0;
  -webkit-transition: opacity 0.6s ease;
  transition: opacity 0.6s ease;
}

.main-image-box img.slide-current {
  opacity: 1;
  z-index: 2;
}

.main-image-box img.slide-next {
  opacity: 0;
  z-index: 1;
}

/* ===== アニメーション部分 ここまで ===== */
.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: contain;
     object-fit: contain;
}

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



/* contact */


.p-contact__body {
  padding-top: 49px;
  padding-bottom: clamp(96px, 12.5vw, 150px);
}

.contact {
  font-family: "Noto Sans JP", sans-serif;
  color: #555555;
  max-width: 924px;
  margin-inline: auto;
}

.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 #022247;
  width: 183px;
  background: #022247;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3125;
  letter-spacing: 0.75px;
  font-weight: 600;
  text-align: center;
  border-radius: 35px;
}

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

.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 #404040;
  background-color: #ffffff;
  -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: #022247;
  border-color: #022247;
  -webkit-box-shadow: inset 0 0 0 4px #fff;
          box-shadow: inset 0 0 0 4px #fff;
}

.p-contact-after__text {
  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;
  }
}