@charset "UTF-8";
.p-product__layout {
  display: block;
  padding-top: 0px;
}

.p-product__layout-title {
  border-bottom: 1px solid #ddd;
  margin-bottom: 40px;
  padding-bottom: 30px;
}

.p-product-desc p:nth-child(12){
  margin-top: 5em;
}

.p-product-desc h3 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.p-product-desc p + h3 {
  margin-top: 50px;
}

.p-product-desc ul.photoArea {
  display: flex;
  margin: 40px 0;
  justify-content: space-around;
}

.p-product-desc ul.photoArea li {
  max-width: 400px;
}

.p-product-desc ul.photoArea li p{
  margin: 0.5em 0 0;
  font-size: 1.4rem;
  line-height: 1.4;  
  text-align:center;
}

.p-product-desc ul.photoArea li img {
/*  margin: 0 20px;*/
}

.my-gallery {
  display: flex;
  margin: 0 0 60px;
  justify-content: center;
  flex-wrap: wrap;
}

.my-gallery figure {
  width: calc(100% / 4 - 30px);
  margin: 15px 0;
}

.my-gallery figure:hover {
  opacity: 0.8;
}

.my-gallery figure img {
  height: 177px;
  width: auto;
  display: block;
  margin: 0 auto;
}


@media screen and (max-width:768px){
	.p-product__layout-title .lead {
    text-align: center;
  }
  
  .p-product-desc h3 {
    font-size: 2rem;
  }
  
  .p-product-desc ul.photoArea li {
    max-width: 100%;
  }

  .p-product-desc ul.photoArea li img {
    margin: 0 auto;
    display: block;
    max-width: 70%;
  }
  
  .my-gallery {
    justify-content: space-between;
  }

  .my-gallery figure {
    width: calc(100% / 2 - 10px);
    margin: 10px 0;
    height: 0;
    padding-bottom: 44.9%;
    position: relative;
  }
  
  .my-gallery figure img {
    vertical-align: bottom;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50% , 0);
  }



}
