.p-service__main {
  padding: 8rem 0 8rem 0;
  text-align: center;
  background-color: #f5f0ed;
}

.p-service__main-ttl {
  padding: 8rem 0 0 0;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
}

.p-service__main-container {
  margin-top: 8rem;
}

.p-service__main-container-flexbox {
  display: flex;
  gap: 3.4rem;
  flex-wrap: wrap;
}

.p-service__main-container-flexbox-image {
  width: 100%;
}

.p-service__main-container-flexbox-image-text{
  margin-top: 4rem;
  font-size: 1.6rem;
}

.p-service__main-container-flexbox-image.--w31 {
  width: 31%;
}

.p-service__main-container-ttl {
  font-size: 2.4rem;
  color: #1d1d1d;
  margin-top: 4rem;
}

.p-service__main-container-text {
  margin-top: 2rem;
  color: #1d1d1d;
  font-size: 1.8rem;
}

.p-service__submain {
  text-align: center;
  padding: 0 0 8rem 0;
}

.p-service__submain-list {
  display: flex;
  margin-top: 8rem;
  gap: 2rem;
}

.p-service__submain-list-item {
  width: 32%;
  gap: 1rem;
}

.p-service__submain-list-item-text {
  font-size: 2.4rem;
  color: #1d1d1d;
  margin-top: 4rem;
}

.p-service__submain-container {
  margin-top: 8rem;
}

.p-service__submain-container-ttl {
  font-size: 2.4rem;
  color: #1d1d1d;
  margin-top: 4rem;
}

.p-service__submain-container-text {
  font-size: 1.8rem;
  color: #1d1d1d;
  margin-top: 4rem;
  text-align: left;
}

.p-service__submain-btn {
  margin-top: 8rem;
}

.p-service__submain-btn-content {
  display: block;
}

.p-service__submain-image {
  margin-top: 8rem;
}

.p-service__submain-image-text {
  margin-top: 1rem;
  font-size: 1.8rem;
  color: #1d1d1d;
}

.p-service__main-image {
  margin-top: 8rem;
}

.p-service__main-text {
  color: #1d1d1d;
  font-size: 2.2rem;
  margin-top: 4rem;
}

.p-service__main-text02 {
  color: #1d1d1d;
  font-size: 1.8rem;
}

.p-service__main-subttl{
  font-size: 3.6rem;
  margin-top: 8rem;
  font-family: "ヒラギノ明朝 ProN W3", "HiraMinProN-W3", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
}

.p-service__main-subttl span{
  font-size: 2.0rem;
}

@media screen and (max-width: 768px) {
  .p-service__main {
    padding: 4rem 0;
  }

  .p-service__main-ttl {
    padding: 0;
  }

  .p-service__main-subttl{
    margin-top: 4rem;
    font-size: 1.6rem;
  }

  .p-service__main-subttl span{
  font-size: 1.2rem;
}

  .p-service__main-container {
    margin-top: 4rem;
  }

  .p-service__main-container-flexbox-image.--w31{
    width: 47%;
  }

  .p-service__main-container-flexbox{
    gap: 2rem;
  }
  
  .p-service__main-container-flexbox-image-text{
    margin-top: 2rem;
    font-size: 1.2rem;
  }

  .p-service__main-container-ttl {
    font-size: 2rem;
    color: #1d1d1d;
    margin-top: 2rem;
  }

  .p-service__main-container-text {
    margin-top: 2rem;
    color: #1d1d1d;
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .p-service__submain-ttl {
    width: 40%;
    margin: auto;
  }

  .p-service__submain-list-item {
    width: 50%;
  }

  .p-service__submain-list-item-text {
    margin-top: 1rem;
    font-size: 1.8rem;
  }

  .p-service__submain-container {
    margin-top: 4rem;
  }

  .p-service__submain-container-ttl {
    margin-top: 1rem;
    font-size: 1.8rem;
  }

  .p-service__submain-container-text {
    font-size: 1.6rem;
  }

  .p-service__submain-image {
    margin-top: 4rem;
  }

  .p-service__main-text02{
    font-size: 1.6rem;
  }

  .p-service__main-image{
    margin-top: 4rem;
  }

  .p-service__main-text{
    font-size: 1.6rem;
  }
}



.p-menu__content01-list {
  display: flex;
  flex-wrap: wrap;
  padding:4rem 0rem;
  gap: 2rem;
}

.p-menu__content01-list-item {
  width: 31.5%;
}

@media screen and (max-width: 768px) {

  .p-menu__content01-list {
    display: flex;
    flex-wrap: wrap;
    justify-content:inherit;
    padding: 4rem 0;
    gap: 2rem;
  }

  .p-menu__content01-list-item {
        width: 46%;
  }
}

/* list-item button reset */
button.p-menu__content01-list-item {
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

button.p-menu__content01-list-item img {
  display: block;
  width: 100%;
  transition: opacity 0.25s;
}

button.p-menu__content01-list-item:hover img {
  opacity: 0.8;
}

/* dialog */
.p-menu__dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: 90vw;
  max-width: 900px;
  max-height: 90vh;
  padding: 0;
  border: none;
  background: transparent;
}

.p-menu__dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-menu__dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.p-menu__dialog-img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.p-menu__dialog-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.p-menu__dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.p-menu__dialog-prev,
.p-menu__dialog-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.p-menu__dialog-prev {
  left: 1rem;
}

.p-menu__dialog-next {
  right: 1rem;
}

.p-menu__dialog-prev:hover,
.p-menu__dialog-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media screen and (max-width: 768px) {
  .p-menu__dialog {
    width: 96vw;
  }

  .p-menu__dialog-prev {
    left: 0.25rem;
  }

  .p-menu__dialog-next {
    right: 0.25rem;
  }
}