@-webkit-keyframes p-background {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes p-background {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.c-header {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  background: rgba(0,0,0,0);
  transition: background-color .3s ease;
}

body.is-view-navigation .c-header {
  background: #fff;
}

.p-mainvisual {
  padding-top: 2rem;
  padding-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
}

.p-mainvisual__body {
  position: relative;
  z-index: 0;
  padding: .4rem .85rem;
}

.p-mainvisual__body::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background-image: url(/pessary/build/images/page/top/mainvisual-tone.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: url(/pessary/build/images/page/top/mainvisual-mask.svg);
  mask-image: url(/pessary/build/images/page/top/mainvisual-mask.svg);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: .7;
}

.p-mainvisual__new {
  width: 2.67rem;
  position: absolute;
  left: -0.3rem;
  top: -1.15rem;
  z-index: 1;
}

.p-mainvisual__title {
  font-size: .32rem;
  text-align: center;
  color: #fff;
  font-weight: 400;
  letter-spacing: .2em;
  margin-right: -0.2em;
  font-family: "Noto Serif JP",serif;
}

.p-mainvisual__button {
  margin-inline: auto;
  margin-top: .4rem;
  width: 3.2rem;
}

.p-background {
  position: fixed;
  width: 100vw;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  z-index: -1;
  display: flex;
}

.p-background__photo {
  width: 100%;
  height: 100lvh;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
  -webkit-animation: p-background 1s ease both;
  animation: p-background 1s ease both;
}

.p-container-1 {
  padding-inline: var(--inner-padding, 0);
  margin-inline: calc(var(--inner-padding, 0)*-1);
  background: #fff;
  padding-top: 1rem;
  padding-bottom: 1.2rem;
}

.p-lead-text {
  color: #1b8dd5;
  font-size: .3rem;
  text-align: center;
  font-family: "Noto Serif JP",serif;
  line-height: 1.8666666667;
  font-weight: 400;
}

@media screen and (max-width: 767px) {
  .p-mainvisual {
    min-height: 6rem;
  }

  .p-mainvisual__inner {
    width: 100%;
  }

  .p-mainvisual__body {
    padding: .2rem;
  }

  .p-mainvisual__new {
    width: 1.3rem;
    left: 0;
    top: -0.66rem;
  }

  .p-mainvisual__title {
    font-size: .2rem;
  }

  .p-mainvisual__button {
    width: 2.4rem;
  }

  .p-container-1 {
    padding-top: .6rem;
    padding-bottom: .6rem;
  }

  .p-lead-text {
    font-size: .22rem;
    text-align: left;
  }
}