@charset "UTF-8";

/* service */

.p-service__swiper-container {
  margin-top: clamp(-87px, -7.25vw, -56px);
  padding-top: clamp(50px, 10.980966325vw, 150px);
  padding-bottom: clamp(40px, 5vw, 60px);
  background: #F1F2ED;
}

.p-service__swiper-wrapper {
  -webkit-transition-timing-function: linear;
          transition-timing-function: linear;
}

.p-service__swiper-slide {
  width: 100%;
  max-width: clamp(270px, 37.7745241581vw, 516px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
}
.p-service__swiper-slide .texts {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: clamp(10px, 1.6105417277vw, 22px);
}
.p-service__swiper-slide .text-l {
  font-family: "Lato", sans-serif;
  font-size: clamp(16px, 2.4890190337vw, 34px);
  line-height: 1;
}
.p-service__swiper-slide .text-r {
  font-family: "Cormorant Garamond", sans-serif;
  font-size: clamp(20px, 2.9282576867vw, 40px);
  line-height: 1.2;
  font-weight: 500;
}
.p-service__swiper-slide .img {
  max-width: clamp(100px, 10.980966325vw, 150px);
  aspect-ratio: 3/2;
  border-radius: 5px;
}
.p-service__swiper-slide .img img {
  border-radius: 5px;
}

.p-service__container {
  margin-top: clamp(60px, 6.25vw, 75px);
  display: grid;
  grid-template-areas: "stack"; /* 1つのエリアを定義 */
  position: relative;
}

.p-service__content {
  grid-area: stack;
  z-index: 1;
  position: relative;
}

.p-service__bg {
  grid-area: stack;
  position: sticky;
  top: 75px;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  z-index: -1;
  max-width: 1366px;
  margin-inline: auto;
  
}
.p-service__bg img {
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center top;
     object-position: center top;
}


.p-service__top {
  margin-top: clamp(60px, 10.6666666667vw, 128px);

}

@media screen and (min-width:1024px) {
  .p-service__top-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 32px;
  }
}

.p-service__top-head {
  max-width: 384px;
}

.p-service__title-en {
  font-family: "Lato", sans-serif;
  font-size: clamp(14px, 1.953125vw, 15px);
  line-height: 1;
  font-weight: 300;
}

.p-service__title-ja {
  margin-top: 12px;
  font-size: clamp(20px, 3.3854166667vw, 26px);
  line-height: 1.4615384615;
  letter-spacing: 0.78px;
  font-weight: 700;
}

.p-service__lead {
  margin-top: clamp(24px, 5.078125vw, 39px);
  font-size: clamp(18px, 3.125vw, 24px);
  line-height: 1.5833333333;
}

.p-service__top-body {
  margin-top: 32px;
  max-width: 579px;
}
@media screen and (min-width:1024px) {
  .p-service__top-body {
    margin-top: 10px;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
  }
}

.p-service__top-text {
  font-size: clamp(12px, 1.6927083333vw, 13px);
  line-height: 2.0769230769;
}
.p-service__top-text + .p-service__top-text {
  margin-top: 16px;
}

.p-service__top-img {
  margin-top: clamp(60px, 9.9166666667vw, 119px);
  aspect-ratio: 1068/450;
  max-width: 1068px;
  border-radius: 3px;
  margin-bottom: clamp(120px, 15vw, 180px);
  position: relative;
}
.p-service__top-img::after {
  content: "";
  position: absolute;
  bottom: clamp(-180px, -15vw, -120px);
  left: 0;
  width: 100%;
  height: 1px;
  background: url(../images/page-dash-line.svg) no-repeat center center/cover;
}
.p-service__top-img img {
  border-radius: 3px;
}

.p-feature {
  padding-top: clamp(20px, 3.125vw, 24px);
  padding-bottom: clamp(80px, 12.4166666667vw, 149px);
}

.p-service__title {
  padding-left: 25px;
  font-size: clamp(18px, 2.34375vw, 24px);
  line-height: 1.5;
  letter-spacing: 0.72px;
  font-weight: 500;
  position: relative;
}
.p-service__title::before {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  left: 0;
  width: 11px;
  height: 11px;
  background: #4f5150;
  border-radius: 4px;
}

.p-feature__items {
  margin-top: clamp(62px, 7.03125vw, 72px);
  position: relative;
}
.p-feature__items::after {
  content: "";
  position: absolute;
  bottom: clamp(-149px, -12.4166666667vw, -100px);
  left: 0;
  width: 100%;
  height: 1px;
  background: url(../images/page-dash-line.svg) no-repeat center center/cover;
}
.p-feature__item {
  max-width: 424px;
  margin-inline: auto;
}
@media screen and (min-width:1024px) {
  .p-feature__item {
    max-width: 908px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 32px;
  }
}
.p-feature__item + .p-feature__item {
  margin-top: clamp(40px, 8.3333333333vw, 100px);
}

.p-feature__item-texts {
  max-width: 414px;
}

@media screen and (min-width:1024px) {
  .p-feature__item-texts {
    margin-top: clamp(40px, 3.8799414348vw, 53px);
  }
}

.p-feature__item-num {
  font-family: "Lato", sans-serif;
  font-size: clamp(14px, 2.0833333333vw, 16px);
  line-height: 1;
  font-weight: 300;
}

.p-feature__item-title {
  margin-top: clamp(16px, 3.02734375vw, 31px);
  font-size: clamp(16px, 2.6041666667vw, 20px);
  line-height: 1.6;
}

.p-feature__item-text {
  margin-top: clamp(24px, 3.90625vw, 40px);
  font-size: clamp(12px, 1.6927083333vw, 13px);
  line-height: 1.9230769231;
}

.p-feature__item-img {
  margin-top: 24px;
  max-width: 424px;
  aspect-ratio: 424/350;
  border-radius: 5px;
}
.p-feature__item-img img {
  border-radius: 5px;
}
@media screen and (min-width:1024px) {
  .p-feature__item-img {
    margin-top: 0;
  }
}

.p-service__work {
  padding-top: 21px;
  padding-bottom: clamp(80px, 12.5vw, 150px);
}

@media screen and (min-width:768px) {
  .p-service__work-head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 24px;
  }
}

@media screen and (min-width:768px) {
  .p-service__title {
    margin-top: 3px;
  }
}

.p-service__work-btn {
  margin-top: 12px;
  margin-left: auto;
}
@media screen and (min-width:768px) {
  .p-service__work-btn {
    margin: 0;
  }
}
.p-service__work-items {
    margin-top: clamp(60px, 9.25vw, 111px);
  position: relative;
}
.p-service__work-items::after {
  content: "";
  position: absolute;
  bottom: clamp(-149px, -12.4166666667vw, -100px);
  left: 0;
  width: 100%;
  height: 1px;
  background: url(../images/page-dash-line.svg) no-repeat center center/cover;
}
.p-service__work-items .webgene-blog {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 24px;
}
@media screen and (min-width:1024px) {
  .p-service__work-items .webgene-blog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }
}
@media screen and (min-width:1024px) {
  .p-service__work-items .webgene-item:nth-of-type(2n) {
    padding-left: 40px;
    position: relative;
  }
  .p-service__work-items .webgene-item:nth-of-type(2n)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: #303332;
    opacity: 0.2;
  }
}
@media screen and (min-width:1024px) {
  .p-service__work-items .webgene-item:nth-of-type(2n-1) {
    padding-right: 40px;
  }
}
.p-service__work-items .p-works__item-head {
  max-width: 226px;
  aspect-ratio: 226/220;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.p-service__work-items .p-works__item-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.p-flow {
  padding-top: 24px;
}

.p-flow__items {
  margin-top: clamp(60px, 9.66796875vw, 99px);
  position: relative;
}

.p-flow__line {
  position: absolute;
  width: 1px;
  background: url(../images/flow-line.svg) repeat-y center top/cover;
  z-index: 0;
}

.p-flow__item {
  max-width: 898px;
  margin-inline: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -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;
  gap: clamp(24px, 4.1666666667vw, 32px);
}
@media screen and (min-width:768px) {
  .p-flow__item {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}
.p-flow__item + .p-flow__item {
  margin-top: clamp(40px, 7.421875vw, 76px);
}

.p-flow__item-texts {
  max-width: 414px;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
@media screen and (min-width:768px) {
  .p-flow__item-texts {
    -webkit-box-flex: initial;
        -ms-flex: initial;
            flex: initial;
  }
}

.p-flow__item-num {
  font-family: "Lato", sans-serif;
  font-size: clamp(14px, 1.953125vw, 15px);
  line-height: 1;
  font-weight: 300;
}

.p-flow__item-title {
  margin-top: 12px;
  font-size: clamp(16px, 1.953125vw, 20px);
  line-height: 1.45;
}

.p-flow__item-text {
  margin-top: clamp(32px, 4.8828125vw, 50px);
  font-size: clamp(12px, 1.6927083333vw, 13px);
  line-height: 2.0769230769;
}

.p-flow__item-img {
  max-width: 424px;
  aspect-ratio: 424/280;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  border-radius: 5px;
  position: relative;
  z-index: 1;
  -webkit-box-flex: 0.5;
      -ms-flex: 0.5;
          flex: 0.5;
}
@media screen and (min-width:768px) {
  .p-flow__item-img {
    -webkit-box-flex: initial;
        -ms-flex: initial;
            flex: initial;
  }
}
.p-flow__item-img img {
  border-radius: 5px;
}

/* company */


.p-message {
  padding-top: clamp(80px, 11.6666666667vw, 140px);
  padding-inline: clamp(20px, 4.8828125vw, 50px);
  max-width: 1366px;
  margin-inline: auto;
}

@media screen and (min-width:1024px) {
  .p-message__head {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
        -ms-flex-direction: row-reverse;
            flex-direction: row-reverse;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: start;
  }
}

@media screen and (min-width:1024px) {
  .p-message__title {
    margin-top: clamp(60px, 7.6134699854vw, 104px);
    padding-left: clamp(50px, 10.980966325vw, 150px);
  }
}

.p-message__img {
  margin-top: 32px;
  max-width: 740px;
  aspect-ratio: 74/39;
  border-radius: 3px;
  margin-inline: auto;
}
.p-message__img img {
  border-radius: 3px;
}
@media screen and (min-width:1024px) {
  .p-message__img {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    margin: 0;
  }
}

.p-message__body {
  margin-top: clamp(40px, 4.5387994143vw, 62px);
}
@media screen and (min-width:1024px) {
  .p-message__body {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 32px;
  }
}
@media screen and (min-width:1024px) {
  .p-message__body .texts {
    max-width: 603px;
  }
}
.p-message__body .texts:nth-of-type(2) {
  margin-top: 40px;
}
@media screen and (min-width:1024px) {
  .p-message__body .texts:nth-of-type(2) {
    margin-top: 0;
  }
}
.p-message__body .text {
  font-size: clamp(11px, 1.6927083333vw, 13px);
  line-height: 1.7692307692;
}
.p-message__body .text + .text {
  margin-top: clamp(24px, 4.1015625vw, 42px);
}
.p-message__body .name {
  margin-top: 19px;
  padding-left: 16px;
    width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-left: auto;
  border-left: 1px solid rgba(48, 51, 50, 0.2);
}
.p-message__body .name .text {
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 1.4285714286;
}
.p-message__body .name .text + .text {
  margin-top: 10px;
}

.p-policy {
  margin-top: clamp(80px, 11.3333333333vw, 136px);
  padding-top: clamp(80px, 11.3333333333vw, 136px);
  padding-bottom: clamp(60px, 10vw, 120px);
  padding-inline: clamp(20px, 4.1666666667vw, 50px);
  position: relative;
}

.p-policy__content {
  color: #ffffff;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.p-policy__title {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
}
.p-policy__title .c-head__title-en {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.p-policy__title .c-head__title-ja {
  padding-left: 0;
  text-align: center;
}

.p-policy__text {
  margin-top: clamp(40px, 5.859375vw, 60px);
  max-width: 603px;
  margin-inline: auto;
  font-size: clamp(13px, 1.3671875vw, 14px);
  line-height: 1.9285714286;
  text-align: center;
}

.p-policy__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.p-policy__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.33);
  pointer-events: none;
}
.p-policy__bg img {
  -webkit-filter: blur(7px);
          filter: blur(7px);
}

.p-company__table-container {
  padding-top: clamp(80px, 13.8333333333vw, 166px);
  max-width: 1366px;
  margin-inline: auto;
}

.p-table__title {
  padding-left: clamp(20px, 4.8828125vw, 50px);
}

.p-company__table {
  margin-top: clamp(32px, 3.90625vw, 40px);
}

.p-company__table-row {
  display: grid;
  grid-template-columns: min(39.2386530015%, 536px) 1fr;
  border-bottom: 1px solid rgba(48, 51, 50, 0.2);
}
@media screen and (min-width:1367px) {
  .p-company__table-row {
    grid-template-columns: 536px, 1fr;
  }
}
.p-company__table-row:first-of-type {
  border-top: 1px solid rgba(48, 51, 50, 0.2);
}


.p-company__table-title {
  padding-block: clamp(24px, 2.9296875vw, 30px);
  padding-left: clamp(20px, 5.3333333333vw, 50px);
  color: #313332;
  font-size: 13px;
  line-height: 1.4615384615;
  font-weight: 600;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media screen and (min-width:1024px) {
  .p-company__table-title {
    padding-left: clamp(100px, 16.8374816984vw, 230px);
  }
}

.p-company__table-text {
  padding-block: 15px;
  padding-right: 20px;
  max-width: 398px;
  font-size: 13px;
  line-height: 1.4615384615;
  font-weight: 500;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.p-access {
  padding-top: clamp(120px, 13.8333333333vw, 166px);
  padding-bottom: clamp(20px, 3.3333333333vw, 40px);
}

.p-access__title {
  padding-left: clamp(20px, 4.8828125vw, 50px);
    max-width: 1366px;
  margin-inline: auto;
}

.p-access__map-wrap {
  margin-top: clamp(32px, 3.90625vw, 40px);
}

.p-access__map {
  aspect-ratio: 1366/489;
  position: relative;
}
.p-access__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 260px;
}

.p-access__map-text {
  padding-left: clamp(20px, 4.8828125vw, 50px);
  margin-top: clamp(32px, 3.90625vw, 40px);
  color: #454545;
  font-size: clamp(13px, 1.3671875vw, 14px);
  line-height: 1.7857142857;
  font-weight: 500;
    max-width: 1366px;
  margin-inline: auto;
}


/* works */

.p-works {
  padding-block: clamp(116px, 12.5vw, 150px);
  position: relative;
}
.p-works .l-inner {
  padding-inline: clamp(20px, 3.6603221083vw, 50px);
}
@media screen and (min-width:1367px) {
  .p-works .l-inner {
    padding-inline: calc((100vw - 1266px) / 2);
  }
}

.p-works__categories {
  margin-bottom: clamp(48px, 7.5vw, 90px);
}

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

.p-works__items {
  padding-bottom: clamp(60px, 5.8565153734vw, 80px);
}
.p-works__items .webgene-blog {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 24px;
}
@media screen and (min-width:1024px) {
  .p-works__items .webgene-blog {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    -webkit-column-gap: 0;
       -moz-column-gap: 0;
            column-gap: 0;
    --gap-y: clamp(60px, calc((160 / 1366) * 100vw), 160px);
    row-gap: var(--gap-y);
  }
}
.p-works__items .webgene-item {
  position: relative;
}
@media screen and (min-width:1024px) {
  .p-works__items .webgene-item:nth-of-type(2n) {
    padding-left: 40px;
    position: relative;
  }
  .p-works__items .webgene-item:nth-of-type(2n)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: #303332;
    opacity: 0.2;
  }
}
@media screen and (min-width:1024px) {
  .p-works__items .webgene-item:nth-of-type(2n-1) {
    padding-right: 40px;
  }
}
@media screen and (min-width:1024px) {
  .p-works__items .webgene-item:nth-of-type(n+3)::after {
    content: "";
    display: block;
    position: absolute;
    top: calc(var(--gap-y) / -2);
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(48, 51, 50, 0.2);
  }
}


.p-works__item {
  max-width: 633px;
  margin-inline: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 20px;
}
@media screen and (min-width:1024px) {
  .p-works__item {
    margin-inline: 0;
  }
}
@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 {
  max-width: clamp(140px, 36.4583333333vw, 280px);
  aspect-ratio: 28/22;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}
@media screen and (min-width:1024px) {
  .p-works__item-head {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 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;
}
.p-works__item-head img {
  border-radius: 5px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}


.p-works__item-body {
  width: 100%;
  max-width: 288px;
}

.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-date {
  font-family: "Lato", sans-serif;
  font-size: 12px;
  line-height: 1;
}

.p-works__item-tag span {
  display: block;
  min-width: 70px;
  padding-inline: 10px;
  font-family: "Lato", sans-serif;
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid #303332;
  text-align: center;
}

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

/* news */

.p-news {
  padding-top: clamp(80px, 11.6666666667vw, 140px);
  padding-bottom: clamp(116px, 12.5vw, 150px);
  position: relative;
}

.p-news__categories {
  margin-bottom: clamp(40px, 6.5104166667vw, 50px);
}

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

.p-news__cat {
  display: inline-block;
  min-width: 140px;
  background: #EFF0EB;
  padding: 10px 30px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4615384615;
  letter-spacing: 0.7px;
  font-weight: 500;
  color: #232323;
  border-radius: 5px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media screen and (min-width:768px) {
  .p-news__cat {
    min-width: 150px;
    padding: 11px 48px;
    font-size: 13px;
  }
}
@media (any-hover: hover) {
  .p-news__cat:hover {
    background: #2F3332;
    color: #ffffff;
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}

.p-news__items {
  width: 100%;
  max-width: 1106px;
  margin-inline: auto;
  border-top: 1px solid rgba(48, 51, 50, 0.2);
}

.p-news__item {
  width: 100%;
  padding-right: 63px;
  border-bottom: 1px solid rgba(48, 51, 50, 0.2);
  position: relative;
}
.p-news__item::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 0;
  width: 38px;
  aspect-ratio: 1/1;
  background: url(../images/icon-right-box-g.png) no-repeat center center/contain;
}
@media screen and (min-width:768px) {
  .p-news__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 20px;
  }
}

.p-news__item-meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  margin-top: 10px;
}
@media screen and (min-width:768px) {
  .p-news__item-meta {
    display: block;
    margin-top: 0;
  }
}

.p-news__item-date {
  font-family: "Lato", sans-serif;
  font-size: 12px;
  line-height: 1;
}

@media screen and (min-width:768px) {
  .p-news__item-tag {
    margin-top: 5px;
  }
}
.p-news__item-tag span {
  display: block;
  min-width: 70px;
  padding-inline: 10px;
  font-family: "Lato", sans-serif;
  font-size: 10px;
  line-height: 1.4;
  border: 1px solid #303332;
  text-align: center;
}

.p-news__item-title {
  padding-block: clamp(24px, 2.9166666667vw, 35px);
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 1.4285714286;
  font-weight: 500;
  text-decoration: underline;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.webgene-pagination {
  margin-top: clamp(40px, 7.3206442167vw, 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: #fff;
  color: #303332;
}

.webgene-pagination ul .number.selected a {
  background: #2F3332;
  color: #ffffff;
  -webkit-box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3019607843);
          box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.3019607843);
  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: #303332;
  }
  li.prev:after,
  li.next:after {
    pointer-events: auto;
  }
}

/* detail */

.p-detail {
  padding-block: clamp(116px, 12.5vw, 150px);
}

.detail {
  color: #00132b;
  background: #ffffff;
  max-width: 925px;
  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: #4F5150;
  width: 8px;
  height: 57%;
  top: 6px;
  left: 0;
}

.post-detail__content img,
.detail img {
  aspect-ratio: 594/350;
  margin: 40px auto 10px;
  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;
}

.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 #4F5150;
  margin-bottom: 40px;
}

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

.post-detail__content h3 {
  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 {
    gap: 17px;
  }
}
.post-detail__content h3::before {
  content: "";
  width: 16px;
  height: 17px;
  border-radius: 3px;
  background: #4F5150;
  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: #2F3332;
  border: 1px solid #2F3332;
  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: #2F3332;
    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/483;
  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%;
  }
}

/* contact */

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

.contact {
  padding-top: clamp(80px, 11.8333333333vw, 142px);
  color: #555555;
  background: #ffffff;
  max-width: 898px;
  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: 180px;
}

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

.privacy-policy {
  margin-top: 50px;
  height: 155px;
  padding: 30px 20px;
  border-radius: 3px;
  border: 1px solid #d3d3d3;
  background: #FAFAFA;
  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 #2F3332;
  width: 183px;
  background: #2F3332;
  border-radius: 25px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3125;
  letter-spacing: 0.75px;
  font-weight: 600;
  text-align: center;
}

.formBtn:hover {
  background: transparent;
  color: #2F3332;
}

.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: #FAFAFA;
  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 #303332;
  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: #F1F2ED;
  border-color: #F1F2ED;
  -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: #303332;
  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;
  }
}