@charset "UTF-8";

html {
  scroll-behavior: smooth;
}
#header {
  position: relative;
  z-index: 200;
}
.container {
  padding: 0;
}
.wrapper,
#headerWrapper.fixed {
  background-image: url(../images/haunted-house/body_bg.png);
}

.serif,
.contents h3 {
  font-family: "Zen Old Mincho", serif;
  font-weight: 700;
}

#footernav {
  margin: -1px 0 0;
  padding: 5rem 0 2rem;
  color: #fff;
  background: #231f20;
}
#footernav #sns li:nth-child(2) img,
#footernav #sns li:nth-child(4) img {
  filter: invert(100%);
}
#footernav a {
  color: #fff;
}

.contents {
  color: #000;
}

#haunted-house .inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 40px 0 20px;
  font-size: 1.2rem;
  line-height: 1.5;
}
#haunted-house #intro {
  position: relative;
  padding-bottom: 150px;
  color: #fff;
  background: #000 url(../images/haunted-house/bg.jpg) no-repeat 50% 0 / 100% auto;
}
#haunted-house #intro h2 {
  position: relative;
  padding-top: 200px;
  font-size: 120px;
  line-height: 1.2;
  text-align: center;
  z-index: 10;
  animation: introAnimation 3s ease 2s forwards;
  filter: blur(20px);
  opacity: 0;
}
@keyframes introAnimation {
  0% {
    filter: blur(20px);
    opacity: 0;
  }
  100% {
    filter: blur(0px);
    opacity: 1;
  }
}

#haunted-house #intro h2 > i:first-of-type {
  position: relative;
  margin-bottom: 0.5em;
  font-size: 0.6em;
}
#haunted-house #intro h2 > i:first-of-type:before {
  position: absolute;
  bottom: -1em;
  content: "";
  width: 7em;
  aspect-ratio: 1 / 0.24;
  background: url(../images/haunted-house/blood1.svg) no-repeat 50% 100% / 7em auto;
  z-index: -1;
}
#haunted-house #intro h2 small {
  font-size: 0.8em;
}
#haunted-house #intro h2 > i {
  display: block;
  font-style: normal;
}
#haunted-house #intro h2 > i:last-of-type {
  font-size: 1.4em;
}
#haunted-house #intro h2 i i {
  color: #d72928;
}
.gohsts {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  text-align: center;
  overflow: visible;
  z-index: 0;
}
.gohsts img {
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}
.gohsts img:nth-of-type(1) {
  width: 25%;
}
.gohsts img:nth-of-type(2) {
  width: 18%;
  right: 12%;
}
.gohsts img:nth-of-type(3) {
  width: 18%;
  right: 5%;
}
.gohsts img:nth-of-type(4) {
  width: 8%;
  right: 10%;
}
.intro-text {
  position: relative;
  width: fit-content;
  padding: 1em;
  margin: auto;
  font-size: 1.2rem;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.7);
  animation: introAnimation 3s ease 2s forwards;
  filter: blur(20px);
  opacity: 0;
  z-index: 10;
  border-radius: 4px;
  .btn2 {
    margin-top: 1em;
    display: block;
    font-weight: bold;
    color: #231f20;
    background: #fec900;
    border-bottom-color: #976c01;
  }
  .btn2:after {
    border-color: #231f20;
  }
  .btn2:hover {
    border-color: #000;
    transform: translateY(5px);
  }
}
.intro-subtext {
  margin-top: -120px;
  text-align: center;
  h3 {
    position: relative;
    margin-top: -120px;
    font-size: 3em;
    background: linear-gradient(0deg, #feec93 0%, #fecb00 50%, #fea200 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0;
    animation: introAnimation 3s ease 2s forwards;
    z-index: 10;
    i {
      font-size: 2em;
    }
  }
}
.blood img {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.blood img.in-view {
  opacity: 1;
}

#haunted-house div:not(#intro) h2 {
  padding: 1em 0 1.5em;
  text-align: center;
  font-size: 4.2rem;
  color: #fff;
  text-shadow: 2px 2px 0 #d72828, -2px 2px 0 #d72828, -2px -2px 0 #d72828, 2px -2px 0 #d72828;
  background: url(../images/haunted-house/blood2.svg) no-repeat 50% 100% / min(100%, 1000px) auto;
}
.features-bg {
  background: #e6e7e8 url(../images/haunted-house/bg2.svg) no-repeat 100% 100% / 100% auto;
  .inner {
    position: relative;
    padding-bottom: 15vw !important;
  }
  .skeleton {
    position: absolute;
    bottom: -200px;
    right: 0;
    filter: blur(100px);
    opacity: 0;
    z-index: 0;
    transition: 2s;
  }
  .skeleton.in-view {
    bottom: 100px;
    filter: blur(0px);
    opacity: 1;
  }
  ol {
    padding-right: 400px;
  }
}

.olnum {
  position: relative;
  z-index: 1;
  h3 {
    margin-bottom: 0.5em;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ed1c24;
    i {
      display: inline-block;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 2px solid #ed1c24;
      text-align: center;
      line-height: 40px;
      flex-shrink: 0;
    }
  }
}
.olnum li {
  position: relative;
  margin-bottom: 2em;
  font-size: 1.2rem;
  line-height: 1.6;
  strong {
    color: #d72828;
  }
}

.features-items {
  margin-top: -1px;
  padding-bottom: 100px;
  background: #231f20 url(../images/haunted-house/blood.png) no-repeat 0% 100%;
  ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    padding: 0 20px 3rem;
    margin: 0 auto;
  }
  li {
    max-width: 320px;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    gap: 10px;
    line-height: 1.6;
    color: #fff;
    a {
      padding: 0.5em;
      color: #fff;
      border: 1px solid #fff;
      border-radius: 100vh;
      text-align: center;
    }
    a:before {
      position: absolute;
      content: "";
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      z-index: 0;
    }
    a:hover {
      background-color: #ed1c24;
    }
    h3 {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.4rem;
      text-align: center;
      color: #ed1c24;
    }
    h4 {
      display: inline;
      padding-bottom: 0.2em;
      font-size: 1.3rem;
      font-weight: bold;
    }
    p {
      margin-top: 0.5em;
      line-height: 2;
    }
    div + p {
      padding-top: 0.5em;
      border-top: 2px dotted rgba(255, 255, 255, 0.4);
    }
    img {
      border-radius: 4px;
    }
  }
}
.youtube iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

.animation-target li {
  opacity: 0;
  filter: blur(20px);
  transition: 1s;
}

.animation-target li.in-view {
  filter: blur(0px);
  opacity: 1;
}

.feature-story {
  position: relative;
  margin: 50px auto 0;
  max-width: 1260px;
  padding: 2em 2em 1em;
  font-size: 1.2rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.7);
  img {
    position: absolute;
    left: -10px;
    top: -40px;
  }
}
#products:after {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "";
  width: 100%;
  height: 2px;
  background: #231f20;
}
#products,
#haunted-post {
  position: relative;
  padding-bottom: 10rem;
  background: #e6e7e8 url(../images/haunted-house/bg2.svg) no-repeat 100% 100% / 100% auto;
  .skeleton {
    position: absolute;
    transform: scale(-1, 1);
    bottom: -200px;
    left: 0;
    filter: blur(100px);
    opacity: 0;
    z-index: 0;
    transition: 2s;
  }
  .skeleton.in-view {
    bottom: 0;
    filter: blur(0px);
    opacity: 1;
  }
}
.products-list {
  max-width: 980px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  margin: 40px auto 0;
  z-index: 1;
  .product-item {
    position: relative;
    width: 280px;
  }
  .product-item:last-of-type,
  .product-item:nth-last-of-type(2) {
    width: 460px;
  }
  img {
    border-radius: 4px;
  }
  .text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    h3 {
      position: relative;
      padding: 0 0 26px 10px;
      font-size: 1.2rem;
      line-height: 60px;
      text-align: center;
      color: #fff;
      background: url(../images/haunted-house/bgHeading.svg) no-repeat 50% 0 / 260px auto;
      z-index: 1;
    }
    p {
      position: relative;
      margin-top: -30px;
      padding: 1em;
      background: #000;
      z-index: 0;
    }
  }
  .product-item:last-of-type h3 {
    line-height: 1.6;
  }
}
.products-list:before {
  position: absolute;
  top: -50px;
  right: -10px;
  display: inline-block;
  content: "";
  width: 100px;
  height: 100px;
  background: url(../images/haunted-house/more50.svg) no-repeat 0 0 / cover;
  z-index: 1;
}
#cases-upper {
  position: relative;
  padding-bottom: 6vw;
  background-image: url(../images/haunted-house/bg2.svg), linear-gradient(#e6e7e8 0%, #e6e7e8 99%, #231f20 100%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: auto, 100% 100%;
  .case-item {
    counter-increment: gohstCase;
    .img:after {
      content: counter(gohstCase, decimal-leading-zero);
    }
    p {
      background: rgba(230, 231, 232, 0.8);
    }
  }
  .skeleton {
    position: absolute;
    bottom: 0;
    left: -200px;
    filter: blur(100px);
    opacity: 0;
    z-index: 0;
    transition: 2s;
  }
  .skeleton.in-view {
    left: 0;
    filter: blur(0px);
    opacity: 1;
  }
}

#cases-lower {
  margin-top: -22px;
  padding-bottom: 6vw;
  color: #fff;
  background: #231f20;
  counter-reset: gohstCase2 2;
  .case-item {
    counter-increment: gohstCase2;
    .img:after {
      content: counter(gohstCase2, decimal-leading-zero);
    }
  }
}

.case-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  line-height: 1.6;
  z-index: 1;
  .img {
    flex-shrink: 0;
    position: relative;
    width: 600px;
    padding-right: 40px;
    color: #fff;
    z-index: 0;
    border-radius: 8px;
  }
  .img:after {
    position: absolute;
    top: 50px;
    right: 60px;
    font-size: 2em;
    font-family: "Zen Old Mincho", serif;
    z-index: 2;
  }
  .img:before {
    position: absolute;
    top: -20px;
    right: 0;
    padding-top: 120px;
    padding-right: 10px;
    width: 140px;
    height: 147px;
    content: "ご利用事例";
    background: url(../images/haunted-house/hand.svg) no-repeat 100% 0 / 140px auto;
    font-size: 0.8rem;
    text-align: center;
    z-index: 1;
  }
  img {
    border-radius: 4px;
  }
  h3 {
    margin: 0 0 0.5em 0.5rem;
    font-size: 2rem;
    color: #ed1c24;
  }
  p {
    padding: 0.5rem;
  }
}

@keyframes gohstFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bloodFadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media only screen and (min-width: 1141px) {
  body {
    overflow-x: hidden;
  }
  .container {
    width: 100vw;
    max-width: initial;
    margin: 0 calc(50% - 50vw);
    background: none;
  }
  section.contents {
    position: relative;
    margin: 0;
    padding: 0;
    z-index: 100;
  }
  #header {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto -70px;
  }
  .headerWrap {
    display: flex;
    justify-content: space-between;
  }
  .headerWrap .logo_pc {
    padding: 10px;
    background: #fff;
  }
  .headerWrap > div {
    width: calc(100% - 140px);
  }
  #footernav {
    margin-left: 0;
  }
}

@media only screen and (max-width: 1140px) {
  .headerWrap .logo_pc {
    display: none;
  }
  #header {
    padding-bottom: 20px;
  }
  .headerWrap {
    padding-bottom: 0;
  }
  #header .spset .logo {
    max-width: 80px;
    margin: 0 auto;
  }
  .headerWrap .nav {
    display: none;
  }
  #cases-upper .skeleton,
  #products .skeleton {
    display: none;
  }
}

@media only screen and (max-width: 840px) {
  .wrapper {
    background: #fff;
  }
  .gohsts {
    top: 1rem;
  }
  .gohsts img:nth-of-type(1) {
    width: 30vw;
  }
  .gohsts img:nth-of-type(2) {
    width: 30vw;
    right: 15vw;
  }
  .gohsts img:nth-of-type(3) {
    width: 30vw;
    right: 25vw;
  }
  .gohsts img:nth-of-type(4) {
    width: 20vw;
    top: -50vw;
    right: -30vw;
  }
  .intro-subtext {
    margin-top: 0;
    h3 {
      font-size: 5vw;
    }
  }
  .blood img {
    width: 30%;
  }
  #haunted-house #intro {
    padding-bottom: 3rem;
  }
  #haunted-house #intro h2 {
    font-size: 20vw;
  }
  #haunted-house div:not(#intro) h2 {
    font-size: 7vw;
  }
  #haunted-house .inner {
    padding: 0 10px;
  }
  .features-bg .skeleton {
    width: 30vw;
  }
  #features ol {
    padding-right: 0;
  }
  #features ol li:not(:first-of-type) {
    padding-right: 30vw;
  }
  .features-items ul {
    display: block;
    li,
    img {
      width: 100%;
      max-width: initial;
    }
    h3,
    .btn {
      margin: 1rem 0;
    }
  }
  #cases-lower {
    margin-top: -1px;
    padding-top: 2rem;
  }
  .case-item {
    flex-direction: column;
    .text {
      order: 1;
      width: 100%;
    }
    .img {
      order: 0;
      width: 100%;
      margin: auto;
      width: fit-content;
    }
    h3 {
      font-size: 1.5rem;
    }
  }
  .feature-story {
    margin-top: 80px;
    padding: 2em 1em;
  }
}

@media only screen and (max-width: 640px) {
  .intro-text,
  #haunted-house .inner,
  #haunted-house .btn {
    font-size: 1.25rem;
  }
  .case-item .img {
    width: 100%;
  }
  .case-item .img:before {
    right: 40px;
    padding-top: 75px;
    width: 100px;
    background-size: 100px auto;
  }
  .case-item .img:after {
    top: 15px;
    right: 80px;
    font-size: 1.5em;
  }
  .features-items {
    background-size: 50vw auto;
  }
  .features-bg .skeleton.in-view {
    width: 10vw;
    bottom: 5vw;
  }
  #features ol li {
    padding-right: 0 !important;
  }
  .products-list:before {
    right: 30px;
  }
}
#haunted-flow {
  color: #fff;
  background: #231f20;
  .inner {
    padding-bottom: 5rem;
    ol {
      margin: auto;
      width: fit-content;
    }
  }
}
#haunted-post {
  .inner {
    max-width: 1000px;
    padding: 0 20px 5rem;
    div {
      background: rgba(230, 231, 232, 0.8);
      p {
        padding-bottom: 1em;
        margin-bottom: 1em;
        border-bottom: 2px dotted rgba(0, 0, 0, 0.5);
      }
      a {
        position: relative;
        display: block;
        padding-left: 1em;
      }
      a:before {
        position: absolute;
        left: 0;
        content: "";
        width: 8px;
        height: 8px;
        margin-top: 0.5em;
        border-top: solid 3px #d72828;
        border-right: solid 3px #d72828;
        transform: rotate(45deg);
      }
    }
  }
}
#haunted-contact {
  padding-bottom: 5rem;
  background: #231f20;
}
