/*******************************

shirakawa CSS

**********************************/
.under_layer .hero {
  margin-bottom: 0;
}

/* intro
----------------------- */
.intro {
  width: 100%;
  margin: 0 auto 80px;
}
.intro .block {
  width: 100%;
  background: url("../img/shirakawa/fukushimaken.png") no-repeat 120% 30% / auto
    80%;
  padding: 120px 0;
  max-width: 700px;
  margin: 0 auto;
}
.intro .block p {
  width: 90%;
  margin-right: auto;
  line-height: 2.5;
  font-size: 1.8rem;
}

.intro .block02 {
  width: 100%;
}

.intro .block02 .js-smn {
  width: 100%;
  cursor: pointer;
  max-width: 500px;
  margin: 0 auto 10px;
  transition: 0.3s ease-in-out;
}
.intro .block02 .js-smn:hover {
  opacity: 0.7;
}
.intro .block02 p {
  text-align: center;
}
@media all and (max-width: 900px) {
  .intro .block02 .js-smn:hover {
    opacity: 1;
  }
}
@media all and (max-width: 600px) {
  .intro {
    margin: 0 auto 50px;
  }
  .intro .block {
    background: url("../img/shirakawa/fukushimaken.png") no-repeat 50% 87% /
      115% auto;
    padding: 45px 0 250px;
  }
  .intro .block p {
    width: 100%;
    font-size: 1.8rem;
    text-align: center;
  }
}

/*contents
----------------------- */
.contents {
  padding-top: 100px;
  margin-bottom: 50px;
}

.contents ul {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
}

.contents ul li {
  width: calc(84% / 3);
  margin-right: 8%;
  margin-bottom: 50px;
}

.contents ul li:nth-of-type(3n),
.contents ul li:last-of-type {
  margin-right: 0;
}
.contents ul li p.name {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 5px;
}
.contents ul li figure {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
  padding-top: calc(300% / 4);
  overflow: hidden;
}
.contents ul li figure img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contents ul li p.caption {
  font-size: 1.4rem;
}
@media all and (max-width: 1300px) {
  .contents ul li {
    width: calc(92% / 2);
    margin-right: 8%;
  }

  .contents ul li:nth-of-type(3n) {
    margin-right: 8%;
  }
  .contents ul li:nth-of-type(2n) {
    margin-right: 0;
  }
}

@media all and (max-width: 900px) {
  .contents ul li {
    width: calc(92% / 2);
    margin-right: 8%;
  }

  .contents ul li:nth-of-type(3n) {
    margin-right: 8%;
  }
  .contents ul li:nth-of-type(2n) {
    margin-right: 0;
  }
}
@media all and (max-width: 600px) {
  .contents {
    padding-top: 50px;
    margin-bottom: 50px;
  }

  .contents ul li {
    width: 100%;
    margin-right: 0;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #000;
  }
  .contents ul li:last-of-type {
    margin-bottom: 0;
    border-bottom: none;
  }
  .contents ul li:nth-of-type(3n) {
    margin-right: 0;
  }
  .contents ul li:nth-of-type(2n) {
    margin-right: 0;
  }
  .contents ul li p.name {
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 43%;
    margin-bottom: 20px;
    font-size: 1.8rem;
    line-height: 1.4;
  }
  .contents ul li figure {
    width: 57%;
    margin-bottom: 20px;
  }
  .contents ul li p.caption {
    font-size: 1.4rem;
    width: 100%;
  }
}

/*prl
----------------------- */
.parallax {
  width: 100%;
  z-index: 10;
  position: relative;
  /* height: 300px; */
  height: 0 !important;
  padding-top: 30%;
  overflow: hidden;
}
@media all and (max-width: 900px) {
}
@media all and (max-width: 600px) {
  .parallax {
    height: 0 !important;
    padding-top: 40%;
  }
}

.parlx-children {
  position: absolute;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0 0;
}

@media all and (-ms-high-contrast: none) {
  .prl01 {
    background: url(../img/shirakawa/prl01.jpg) no-repeat 50% 50% / 100% auto;
  }
  .prl02 {
    background: url(../img/shirakawa/prl02.jpg) no-repeat 50% 10% / 100% auto;
  }
}

/* video modal
---------------------------- */
.intro .block02 .js-smn {
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: 0.3s ease-in;
}
.intro .block02 .js-smn:hover {
  opacity: 0.7;
  transition: 0.3s ease-in-out;
}
.intro .block02 .js-smn div {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 30%;
  height: 80%;
}

.intro .block02 .js-smn div img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

.modal-video .iframe-wr {
  width: 100%;
  position: relative;
  padding-top: 55%;
  height: 0;
}
.modal-video .iframe-wr iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 100%;
  height: 100%;
}
