@media screen and (max-width: 900px) {
  .l-main {
    padding-bottom: 100px;
  }
}

.p-story__ttl {
  width: 250px;
}
@media screen and (max-width: 900px) {
  .p-story__ttl {
    width: 125px;
  }
}

.p-story__inner {
  padding-top: 15px;
}
@media screen and (max-width: 900px) {
  .p-story__inner {
    padding-top: 0;
    margin-top: -7px;
  }
}

.p-story__contents-list {
  display: flex;
  flex-wrap: wrap;
}
.p-story__contents-list-item {
  width: 31.2%;
  margin-bottom: 2.6%;
}
@media not all and (max-width: 900px) {
  .p-story__contents-list-item {
    margin-right: 3.2%;
  }
  .p-story__contents-list-item:nth-of-type(3n) {
    margin-right: 0;
  }
}
@media screen and (max-width: 900px) {
  .p-story__contents-list-item {
    width: 100%;
    margin-bottom: 7%;
  }
}
.p-story__contents-list-item a {
  display: block;
}
@media not all and (max-width: 900px) {
  .p-story__contents-list-item a:hover .p-in-image::before {
    opacity: 0.4;
  }
  .p-story__contents-list-item a:hover .p-in-title {
    color: var(--color-orange);
  }
}
.p-story__contents-list-item .p-in-image {
  width: 100%;
  padding-top: 54.45%;
  display: block;
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.p-story__contents-list-item .p-in-image::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--color-orange);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.p-story__contents-list-item .p-in-title {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin-top: 12px;
  transition: color 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
@media screen and (max-width: 900px) {
  .p-story__contents-list-item .p-in-title {
    font-size: 13px;
    margin-top: 8px;
  }
}
.p-story__contents-detail {
  position: relative;
  padding: 54px 60px 57px;
  background: url(../img/bg/bg_ptn02.jpg) center left repeat;
  background-size: 700px auto;
  border-top: 2px solid var(--color-brown);
  box-shadow: 0px 10px 20px 0px rgba(72, 42, 19, 0.1);
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail {
    padding: 23px 19px 36px;
  }
}
.p-story__contents-detail::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-brown);
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail::after {
    top: 1px;
  }
}
.p-story__contents-detail-head {
  position: relative;
  margin-bottom: 37px;
  padding-bottom: 30px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail-head {
    margin-bottom: 16px;
    padding-bottom: 14px;
    font-size: 16px;
    line-height: 1.5;
  }
}
.p-story__contents-detail-head-line {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: url(../img/news/line_center_pc.png) left center repeat-x;
  background-size: contain;
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail-head-line {
    left: 14px;
    right: 14px;
    background-image: url(../img/news/line_center_sp.png);
  }
}
.p-story__contents-detail-head-line::before, .p-story__contents-detail-head-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 7px;
  transform: translateY(-50%);
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail-head-line::before, .p-story__contents-detail-head-line::after {
    width: 13.5px;
  }
}
.p-story__contents-detail-head-line::before {
  left: -16px;
  background: url(../img/news/line_l_pc.png) right center no-repeat;
  background-size: contain;
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail-head-line::before {
    left: -13px;
    background-image: url(../img/news/deco_l_sp.png);
  }
}
.p-story__contents-detail-head-line::after {
  right: -16px;
  background: url(../img/news/line_r_pc.png) left center no-repeat;
  background-size: contain;
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail-head-line::after {
    right: -13px;
    background-image: url(../img/news/deco_r_sp.png);
  }
}
.p-story__contents-detail-text {
  font-size: 16px;
  line-height: 1.8;
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail-text {
    font-size: 13px;
    line-height: 1.78;
  }
}
.p-story__contents-detail-text img {
  display: inline-block;
  position: relative;
  width: 32.5%;
  margin: 0 0.4%;
}
@media screen and (max-width: 900px) {
  .p-story__contents-detail-text img {
    width: 48%;
    margin: 0 1%;
  }
}
.p-story__contents-detail-text .p-in-frame {
  padding: 1%;
  position: relative;
}
.p-story__contents-detail-text .p-in-frame::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: url(../img/frame_movie2.png) no-repeat center/contain;
  z-index: 1;
  pointer-events: none;
}
.p-story__contents-detail-text iframe {
  width: 100%;
  display: block;
  height: auto !important;
  aspect-ratio: 16/9;
}

.p-story__footer {
  margin-top: 60px;
}
@media screen and (max-width: 900px) {
  .p-story__footer {
    margin-top: 30px;
  }
}

.p-story__back {
  width: 200px;
  margin: 0 auto;
}
@media screen and (max-width: 900px) {
  .p-story__back {
    width: 140px;
  }
}