/* Main Visual */
.main_visual {
  background-image: url(../images/main_visual_sp_bg.jpg);
  background-size: cover;
}

@media screen and (min-width: 768px) {
  .main_visual {
    background-image: url(../images/main_visual_pc_bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}

.main_visual_inner {
  max-width: 1366px;
  container-type: inline-size;
  margin: 0 auto;
  position: relative;

  img {
    display: block;
  }
}

/* Override */
.bl_cont_ttl {
  margin-bottom: 5rem;
}

.blocked_text {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;

  span {
    display: block;
    margin-right: 1rem;
    white-space: nowrap;
  }
}

.mt-wide {
  margin-top: 120px;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.no_x_padding {
  padding-left: 0;
  padding-right: 0;
}

@media screen and (min-width: 768px) {
  .no_x_padding {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media screen and (min-width: 768px) {
  .mt-wide {
    margin-top: 160px;
  }

  .mt-4 {
    margin-top: 4rem;
  }
}

.mt-large {
  margin-top: 100px;
}

.mt-medium {
  margin-top: 60px;
}

.mt-short {
  margin-top: 20px;
}

.narrow-text {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.button-ghost-black {
  span {
    position: relative;
    display: inline-block;
    width: 400px;
    max-width: 100%;
    z-index: 1;
    background-color: #fff;

    .logo {
      display: block;
      /* margin: 18px auto; */
      width: 100%;
      height: auto;
      fill: #000;
      transition: 0.3s fill;
    }
  }

  &:hover {
    text-decoration: underline;
  }

  &:hover span {
    .logo {
      fill: #fff;
    }
  }

  span::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    content: '';
    background: #555555;
    transform: scaleX(0);
    transition: 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955) transform;
    transform-origin: right;
    z-index: -1;
  }

  &:hover span::before {
    transform: none;
    transform-origin: left;
  }
}

img {
  height: auto;
}

.solution_example {
  padding: 2rem;
  margin-top: 3rem;
  color: #182460;
  line-height: 1.8;

  .layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ex_link {
    display: inline-block;
    margin-top: 15px;
  }

  video {
    display: block;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  }

  h3 {
    font-weight: bold;

    span {
      display: block;
    }

    .product_name {
      display: flex;
      flex-wrap: nowrap;
      align-items: flex-start;
      gap: 1rem;
      line-height: 1.2;
      font-size: 2.5rem;

      &::before {
        content: '■';
        display: block;
        /* width: 2rem;
        aspect-ratio: 1 / 1;
        margin-top: 0.6rem;
        background-color: #182460; */
      }
    }
  }
}

@media screen and (min-width: 640px) {
  .content_mid {
    max-width: 830px;
    margin-left: auto;
    margin-right: auto;
  }

  .content_thin {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }
}

.slick-dots {
  display: none;
}

.with_floating {
  .text p {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }
}

.square_head {
  display: flex;
  gap: 0.3em;
  align-items: center;

  &::before {
    content: '';
    display: block;
    width: 0.9em;
    height: 0.9em;
    margin-top: 0.1em;
    /* border-radius: 2px; */
    background-color: var(--ixs-blue);
  }
}

.pc_frame {
  container-type: inline-size;
  aspect-ratio: 62 / 45;
  max-width: var(--inner-width);
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  background-image: url(../images/pc_frame_resize.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  video {
    display: block;
    width: 78%;
    height: auto;
    margin-top: 2cqw;
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing {
  background-color: #e6e4f4;

  .container {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .price {
    max-width: var(--thin-width);
    margin-left: auto;
    margin-right: auto;
    color: var(--ixs-blue);

    p {
      font-size: 1.2rem;
    }
  }
}

@media screen and (min-width: 640px) {
  .pricing {
    .price {
      p {
        font-size: 1.5rem;
      }
    }
  }
}

.campaign {
  background-color: #000;

  picture {
    display: block;
    max-width: var(--inner-width);
    margin-left: auto;
    margin-right: auto;
  }
}

.flow {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: var(--inner-width);
  margin-left: auto;
  margin-right: auto;
  color: var(--ixs-blue);

  picture {
    display: block;
    position: relative;
    margin-bottom: 10px;
  }
}

@media screen and (min-width: 640px) {
  .flow {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    li {
      color: var(--ixs-blue);
    }

    li:not(:last-of-type) picture::after {
      position: absolute;
      content: '';
      width: 17px;
      height: 50px;
      right: -30px;
      top: 0;
      bottom: 0;
      margin-top: auto;
      margin-bottom: auto;
      background-image: url(../images/next_step.png);
      background-size: cover;
      background-repeat: no-repeat;
    }

    picture {
      margin-bottom: 5px;
    }
  }
}

hr.spacer {
  border: 0;
  padding-top: 8rem;
  margin: 0;
}

.button-ghost-black {
  span {
    border: 0;
  }
}

.campaign_banner {
  position: absolute;
  max-width: 410px;
  width: 45cqw;
  height: auto;
  right: 10px;
  top: 25cqw;

  img {
    opacity: 0;
  }
}

@media screen and (min-width: 768px) {
  .campaign_banner {
    width: 30cqw;
    right: 0;
    top: 20px;
  }
}

.effect_bounce {
  animation-name: z-bounce;
  animation-duration: 6s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-delay: 2s;
}

.horizontal_block:not(.bg_grid):first-of-type {
  .text {
    margin-top: 0;

    p,
    h3 {
      margin-top: 0;
    }
  }
}

@media screen and (min-width: 768px) {
  .horizontal_block:first-of-type {
    .text {
      margin-top: 2rem;

      h3 {
        margin-top: 1rem;
      }

      p {
        margin-top: 2rem;
      }
    }
  }
}

@keyframes z-bounce {
  0%,
  5%,
  10%,
  15% {
    transform: scale(1);
  }

  7.5%,
  12.5% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  /* 
  90% {
    opacity: 1;
    transform: scale(1.02);
  } */

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate {
  animation-name: zoomIn;
  /* animation-timing-function: cubic-bezier(0.42, 0.00, 0.58, 1.00); */
  animation-timing-function: cubic-bezier(0.38, 0, 0.37, 1);
  animation-duration: 0.65s;
  animation-delay: 300ms;
  animation-fill-mode: forwards;
}
